* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}
.protect_carousel-content {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}
.protect_carousel-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
@media (max-width: 640px) {
    .banner-img {
        height: 200px;
    }
    .protect_carousel-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 2;
    }
    .protect_carousel-content h2 {
        font-size: 1.5rem;
    }
}
@media (max-width: 968px) {
    .protect_carousel-content h2 {
        font-size: 2rem;
    }
}
.banner-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
/* 主容器 */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 文章头部 */
.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.3;
    background: linear-gradient(135deg, #1A4FA2, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-date {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6b7280;
}

/* 文章图片 */
.article-image {
    width: 100%;
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 富文本内容样式 */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

/* 富文本编辑器常见元素样式 */
.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content h1 {
    font-size: 1.8rem;
    color: #1f2937;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1A4FA2;
}

.article-content h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin: 35px 0 18px;
    padding-left: 16px;
    border-left: 4px solid #1A4FA2;
}

.article-content h3 {
    font-size: 1.3rem;
    color: #374151;
    margin: 30px 0 15px;
    font-weight: 600;
}

.article-content h4 {
    font-size: 1.1rem;
    color: #374151;
    margin: 25px 0 12px;
    font-weight: 600;
}

.article-content h5, .article-content h6 {
    font-size: 1rem;
    color: #4b5563;
    margin: 20px 0 10px;
    font-weight: 600;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-content blockquote {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-left: 4px solid #1A4FA2;
    padding: 20px 24px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4b5563;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.article-content th, .article-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.article-content th {
    background: linear-gradient(135deg, #1A4FA2, #2563eb);
    color: white;
    font-weight: 600;
}

.article-content tr:nth-child(even) {
    background: #f9fafb;
}

.article-content a {
    color: #1A4FA2;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: #1A4FA2;
}

.article-content strong, .article-content b {
    color: #1f2937;
    font-weight: 600;
}

.article-content em, .article-content i {
    color: #4b5563;
}

.article-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #1f2937;
}

.article-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #f9fafb;
}

.article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 30px 0;
}

/* 相关链接 */
.related-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f1f5f9;
}

.related-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.related-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #1A4FA2;
}

.related-item h4 {
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-item p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
}

/* 平板适配 */
@media screen and (max-width: 1024px) {
    .container {
        padding: 30px 20px;
    }

    .article-title {
        font-size: 1.9rem;
    }

    .article-content {
        font-size: 1.05rem;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* 手机端适配 */
@media screen and (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .article-header {
        margin-bottom: 30px;
        padding-bottom: 25px;
    }

    .article-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .article-date {
        font-size: 0.85rem;
    }

    .article-image {
        margin: 30px 0;
    }

    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .article-content p {
        margin-bottom: 18px;
        text-align: left;
    }

    .article-content h1 {
        font-size: 1.5rem;
        margin: 30px 0 15px;
    }

    .article-content h2 {
        font-size: 1.3rem;
        margin: 28px 0 15px;
        padding-left: 12px;
    }

    .article-content h3 {
        font-size: 1.15rem;
        margin: 25px 0 12px;
    }

    .article-content h4 {
        font-size: 1.05rem;
        margin: 22px 0 10px;
    }

    .article-content ul, .article-content ol {
        padding-left: 24px;
        margin: 18px 0;
    }

    .article-content blockquote {
        padding: 16px 20px;
        margin: 20px 0;
    }

    .article-content table {
        font-size: 0.9rem;
    }

    .article-content th, .article-content td {
        padding: 10px 12px;
    }

    .related-section {
        margin-top: 40px;
        padding-top: 30px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .related-item {
        padding: 16px;
    }
}

/* 小屏手机适配 */
@media screen and (max-width: 480px) {
    .container {
        padding: 15px 12px;
    }

    .article-title {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .article-content {
        font-size: 0.95rem;
    }

    .article-content h1 {
        font-size: 1.3rem;
    }

    .article-content h2 {
        font-size: 1.2rem;
        padding-left: 10px;
    }

    .article-content h3 {
        font-size: 1.1rem;
    }

    .article-content blockquote {
        padding: 14px 16px;
    }

    .article-content ul, .article-content ol {
        padding-left: 20px;
    }

    .article-content table {
        font-size: 0.85rem;
    }

    .article-content th, .article-content td {
        padding: 8px 10px;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container > * {
    animation: fadeInUp 0.6s ease forwards;
}

.container > *:nth-child(1) { animation-delay: 0.1s; }
.container > *:nth-child(2) { animation-delay: 0.2s; }
.container > *:nth-child(3) { animation-delay: 0.3s; }
.container > *:nth-child(4) { animation-delay: 0.4s; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1A4FA2, #2563eb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #164f8a, #1d4ed8);
}

/* 富文本内容居中对齐优化 */
.article-content[style*="text-align: center"] p,
.article-content .text-center {
    text-align: center;
}

.article-content[style*="text-align: right"] p,
.article-content .text-right {
    text-align: right;
}
