:root {
    --primary-color: #4a8bf5;
    --primary-hover: #357ae8;
    --bg-light: #f5f7fa;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --border-color: #ebeef5;
    --border-radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f9;
    color: var(--text-main);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.logo { font-size: 20px; font-weight: bold; color: var(--primary-color); display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 16px; padding: 10px 0; border-bottom: 2px solid transparent; transition: all 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }

.page-banner {
    background: linear-gradient(135deg, #4a8bf5 0%, #2b68c9 100%);
    padding: 25px 20px 70px;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a { color: rgba(255, 255, 255, 0.8); transition: 0.2s; }
.breadcrumb a:hover { color: #ffffff; text-decoration: underline; }
.breadcrumb span { margin: 0 8px; color: rgba(255, 255, 255, 0.4); }
.breadcrumb .current { color: #ffffff; font-weight: bold; }

.main-container {
    max-width: 1200px;
    margin: -45px auto 40px;
    padding: 0 15px;
    position: relative;
    z-index: 10;
}

.content-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.left-main {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    padding: 20px;
}

.right-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.article-container {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 0;
}

.article-header {
    text-align: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.article-title {
    font-size: 26px;
    color: #222;
    line-height: 1.4;
    margin-bottom: 15px;
    font-weight: bold;
}

.article-meta {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-meta span {
    background: #f4f4f5;
    padding: 4px 12px;
    border-radius: 14px;
}

.article-content {
    font-size: 16px;
    line-height: 2;
    color: #333;
    text-align: justify;
}

.article-content p { margin-bottom: 1.5em; text-indent: 2em; }
.article-content strong { color: #000; }

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    text-indent: 0;
}

.article-content th, .article-content td {
    border: 1px solid #dcdfe6;
    padding: 10px 15px;
    text-align: left;
}

.article-content th { background-color: #f5f7fa; font-weight: bold; }

.attachment-section {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.attachment-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.attachment-list { display: flex; flex-direction: column; gap: 10px; }

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #ebeef5;
    transition: all 0.2s;
}

.attachment-item:hover { border-color: #c6d9f9; background: #eef4fe; }
.attachment-name { font-size: 14px; color: var(--text-main); display: flex; align-items: center; gap: 8px; }

.btn-download {
    background: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    transition: 0.2s;
}

.btn-download:hover { background: var(--primary-hover); }

.official-notice {
    margin-top: 32px;
    background-color: #fdf6ec;
    border: 1px solid #faecd8;
    color: #e6a23c;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

.official-notice strong { color: #f56c6c; }

.related-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.related-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.related-list { display: flex; flex-direction: column; gap: 0; }

.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 10px;
    border-bottom: 1px dashed var(--border-color);
    transition: background 0.2s;
}

.related-item:last-child { border-bottom: none; }
.related-item:hover { background-color: #fafafa; }

.related-item-title {
    font-size: 15px;
    color: var(--text-main);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.related-item-title:hover { color: var(--primary-color); }

.related-item-title::before {
    content: "•";
    color: var(--text-light);
    margin-right: 8px;
}

.related-item-date {
    font-size: 13px;
    color: var(--text-light);
    width: 90px;
    text-align: right;
    flex-shrink: 0;
}

.sidebar-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.ad-box {
    background-color: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: var(--border-radius);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dcdfe6;
    font-size: 14px;
    overflow: hidden;
}

.ad-adsense-wrap {
    padding: 12px;
}

.ad-adsense-unit {
    width: 100%;
    min-height: 90px;
}

.ad-adsense-unit-vertical {
    min-height: 600px;
}

.ad-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 10px;
    color: #c0c4cc;
    border: 1px solid #e4e7ed;
    padding: 0 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    line-height: 1.4;
}

.ad-horizontal {
    width: 100%;
    min-height: 90px;
    margin: 20px 0 30px;
}

.ad-horizontal-bottom {
    margin-top: 30px;
    margin-bottom: 0;
}

.ad-vertical-slot {
    width: 100%;
    min-height: 600px;
}

.ad-vertical-copy { text-align: center; line-height: 1.8; }
.is-hidden { display: none !important; }

.footer { background: #333; color: #999; text-align: center; padding: 30px 20px; margin-top: 40px; font-size: 14px; }

@media (max-width: 1024px) {
    .content-layout {
        flex-direction: column;
    }

    .right-sidebar {
        width: 100%;
    }

    .ad-vertical-slot {
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 0;
    }

    .article-title {
        font-size: 22px;
    }

    .article-meta {
        gap: 10px;
    }
}
