* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a1a;
    --secondary: #8b0000;
    --accent: #c9a961;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-dark: #f5f2ed;
    --border: #e0ddd7;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --max-width: 1280px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Source Han Sans SC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', 'Songti SC', 'Source Han Serif SC', 'STSong', 'SimSun', 'Georgia', serif;
    font-weight: 700;
}

.logo, .section-title, .hero-text h1, .page-header h1 {
    font-family: 'Noto Serif SC', 'Songti SC', 'Georgia', serif;
    font-weight: 700;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.top-bar {
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 15px;
}

.top-bar a:hover {
    color: var(--accent);
}

.main-header {
    border-bottom: 1px solid var(--border);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    color: var(--secondary);
}

.logo-slogan {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: none;
    margin-left: 10px;
    font-weight: 400;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    padding: 25px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 2px solid var(--secondary);
}

.main-nav > ul > li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.submenu li a:hover {
    background: var(--bg-dark);
    color: var(--secondary);
    padding-left: 25px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    border: 1px solid var(--border);
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 20px;
    outline: none;
    width: 180px;
    font-family: inherit;
}

.search-box input:focus {
    border-color: var(--secondary);
    width: 220px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 5px;
    font-size: 18px;
    color: var(--text-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--secondary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid var(--secondary);
}

.hero-btn:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 15px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 40px;
    background: var(--secondary);
}

.section-more {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.channel-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.channel-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.channel-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.6));
}

.channel-card-body {
    padding: 20px;
}

.channel-card-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
}

.channel-card-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 6px;
}

.featured-img {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.featured-content .category {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.featured-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.featured-meta {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.article-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.article-card-body {
    padding: 20px;
}

.article-card-body .cat {
    font-size: 12px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.article-card-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-date {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
    font-style: italic;
}

.page-header {
    background: linear-gradient(135deg, #2c1810 0%, #1a1a1a 100%);
    color: #fff;
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.85;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    background: var(--bg-dark);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb span {
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb .current {
    color: var(--text);
    font-weight: 500;
}

.list-page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 50px 0;
}

.list-item {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.list-item:hover {
    background: var(--bg-dark);
    margin: 0 -20px;
    padding: 25px 20px;
    border-radius: 4px;
}

.list-item-img {
    width: 200px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.list-item-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
}

.list-item-content h3 a:hover {
    color: var(--secondary);
}

.list-item-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.list-item-meta {
    font-size: 13px;
    color: #999;
}

.list-item-meta span {
    margin-right: 15px;
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.widget {
    background: var(--bg-dark);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
    color: var(--primary);
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list li a {
    display: block;
    color: var(--text);
}

.widget-list li a:hover {
    color: var(--secondary);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    background: #fff;
    border: 1px solid var(--border);
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 15px;
    transition: var(--transition);
}

.tag-cloud a:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid var(--border);
    font-size: 14px;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.pagination .active {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.detail-page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    padding: 0px 0;
}

.detail-page-layout > article,
.main-col {
    min-width: 0;
    max-width: 100%;
}

.article-detail-header {
    margin-bottom: 40px;
}

.article-detail-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--primary);
}

.article-detail-meta {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: var(--text-light);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-detail-body {
    font-size: 17px;
    line-height: 2;
    color: var(--text);
}

.article-detail-body p {
    margin-bottom: 25px;
}

.article-detail-body h2 {
    font-size: 26px;
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid var(--secondary);
}

.article-detail-body h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: var(--primary);
}

.article-detail-body blockquote {
    background: var(--bg-dark);
    border-left: 4px solid var(--accent);
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
    border-radius: 0 4px 4px 0;
}

.article-detail-body ul,
.article-detail-body ol {
    padding-left: 25px;
    margin-bottom: 25px;
}

.article-detail-body li {
    margin-bottom: 10px;
}

.article-detail-body .detail-img {
    margin: 30px 0;
    text-align: center;
}

.article-detail-body .detail-img img {
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.article-detail-body .detail-img .caption {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 10px;
    font-style: italic;
}

.today-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #fff 100%);
}

.today-date {
    text-align: center;
    margin-bottom: 50px;
}

.today-date .day {
    font-size: 100px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.today-date .month-year {
    font-size: 24px;
    color: var(--primary);
    letter-spacing: 3px;
}

.today-event {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    padding: 25px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.today-event:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.today-event .year {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    text-align: center;
    padding-top: 5px;
}

.today-event .event-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.today-event .event-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

.dynasty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.dynasty-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.dynasty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.dynasty-card-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.dynasty-card-img .period {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 15px 10px 10px;
    font-size: 13px;
}

.dynasty-card-body {
    padding: 20px 15px;
}

.dynasty-card-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
}

.dynasty-card-body p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.province-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.province-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.province-card:hover {
    background: var(--bg-dark);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.province-card .province-icon {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.province-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.province-card .count {
    font-size: 14px;
    color: var(--text-light);
}

footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary);
    color: #fff;
}

.timeline {
    position: relative;
    padding-left: 40px;
    margin: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--secondary);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 5px;
    width: 15px;
    height: 15px;
    background: var(--bg-dark);
    border: 3px solid var(--secondary);
    border-radius: 50%;
}

.timeline-item .year {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.timeline-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .channel-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-page-layout,
    .detail-page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .dynasty-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .province-list {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 28px;
    }

    .footer-col {
        padding: 0 16px;
    }

    .footer-col:first-child {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(201, 169, 97, 0.25);
    }

    .footer-col h4 {
        font-size: 15px;
        margin-bottom: 14px;
        letter-spacing: 2px;
        color: var(--accent);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .footer-col h4::before {
        content: '';
        width: 3px;
        height: 14px;
        background: var(--secondary);
        border-radius: 2px;
    }

    .footer-col p {
        font-size: 13px;
        line-height: 1.9;
        opacity: 0.85;
        margin-bottom: 14px;
    }

    .footer-col ul li {
        margin-bottom: 10px;
        font-size: 13px;
        padding-left: 14px;
        position: relative;
    }

    .footer-col ul li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 8px;
        width: 5px;
        height: 5px;
        background: var(--accent);
        border-radius: 50%;
        opacity: 0.7;
    }

    .footer-col ul li a {
        transition: color 0.2s, padding-left 0.2s;
    }

    .footer-col ul li a:active {
        color: var(--accent);
        padding-left: 4px;
    }

    .social-icons {
        gap: 12px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        background: rgba(201, 169, 97, 0.15);
        border: 1px solid rgba(201, 169, 97, 0.3);
        font-size: 15px;
        transition: all 0.25s;
    }

    .social-icons a:active {
        background: var(--accent);
        color: var(--primary);
        transform: scale(0.92);
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 12px;
        line-height: 1.8;
        opacity: 0.7;
    }

    .footer-bottom p {
        padding: 0 16px;
    }

    .footer-bottom::before {
        content: '';
        display: block;
        width: 40px;
        height: 2px;
        background: var(--accent);
        margin: 0 auto 14px;
        border-radius: 1px;
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-img {
        height: 300px;
    }

    .hero-text h1 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    #header-include-wrap {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #fff;
    }

    .top-bar {
        display: none;
    }

    body {
        padding-top: 70px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: var(--shadow-hover);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 1001;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav > ul > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border);
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: var(--bg-dark);
        display: none;
    }

    .main-nav > ul > li:hover .submenu,
    .main-nav > ul > li.sub-open .submenu {
        display: block;
    }

    .search-box {
        display: none;
    }

    .hero {
        height: 350px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .channel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .dynasty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .province-list {
        grid-template-columns: 1fr;
    }

    .list-item {
        flex-direction: column;
    }

    .list-item-img {
        width: 100%;
        height: 200px;
    }

    .today-event {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .today-event .year {
        font-size: 28px;
    }

    .featured-article {
        padding: 25px;
    }

    .featured-content h2 {
        font-size: 24px;
    }

    .article-detail-header h1 {
        font-size: 26px;
    }

    .article-detail-body {
        font-size: 15px;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .today-date .day {
        font-size: 70px;
    }
}

@media (max-width: 480px) {
    .channel-grid {
        grid-template-columns: 1fr;
    }

    .dynasty-grid {
        grid-template-columns: 1fr;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

.recommend-section {
    background: #f4f0ea;
    padding: 50px 0;
    margin-top: 40px;
    border-top: 1px solid #e5e0d7;
}
.rec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}
.rec-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Noto Serif SC', Georgia, serif;
}
.rec-header h2::before {
    content: '';
    width: 4px; height: 22px;
    background: var(--secondary);
    border-radius: 2px;
}
.rec-header .rec-sub {
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 1px;
}
.rec-scroll-wrap {
    position: relative;
}
.rec-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 2px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.rec-scroll::-webkit-scrollbar { display: none; }
.rec-card {
    flex: 0 0 240px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
}
.rec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.rec-card-img {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}
.rec-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.rec-badge {
    position: absolute;
    top: 10px; left: 10px;
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 1px;
    font-weight: 500;
}
.rec-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.rec-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rec-summary {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rec-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    transition: all .2s;
}
.rec-arrow:hover {
    background: var(--primary);
    color: #fff;
}
.rec-prev { left: -8px; }
.rec-next { right: -8px; }

@media (max-width: 768px) {
    .recommend-section { padding: 36px 0; }
    .rec-card { flex: 0 0 200px; }
    .rec-card-img { height: 110px; }
    .rec-title { font-size: 14px; }
    .rec-arrow { width: 34px; height: 34px; font-size: 12px; }
    .rec-prev { left: 0; }
    .rec-next { right: 0; }
}
@media (max-width: 480px) {
    .rec-card { flex: 0 0 180px; gap: 14px; }
    .rec-scroll { gap: 14px; }
    .rec-header h2 { font-size: 18px; }
    .rec-arrow { display: none; }
}
.recommend-inline {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0 0 24px;
    padding: 0;
    background: none;
    border: none;
}
.recommend-inline .rec-scroll-wrap {
    max-width: 100%;
}
.recommend-inline .rec-scroll {
    width: 100%;
    max-width: 100%;
}
.recommend-inline .rec-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e5e0d7;
}
.recommend-inline .rec-header h2 {
    font-size: 15px;
    letter-spacing: 0;
}
.recommend-inline .rec-header h2::before {
    width: 3px; height: 15px;
}
.recommend-inline .rec-card {
    flex: 0 0 180px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.recommend-inline .rec-card-img {
    height: 100px;
}
.recommend-inline .rec-card-body {
    padding: 10px 12px 12px;
}
.recommend-inline .rec-title {
    font-size: 13px;
    margin-bottom: 4px;
}
.recommend-inline .rec-summary {
    font-size: 11px;
    line-height: 1.5;
    -webkit-line-clamp: 1;
}
.recommend-inline .rec-arrow {
    width: 32px; height: 32px;
    font-size: 12px;
    background: rgba(255,255,255,0.92);
}
.recommend-inline .rec-prev { left: -4px; }
.recommend-inline .rec-next { right: -4px; }

.article-pager {
    display: flex;
    gap: 16px;
    margin: 40px 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.article-pager a,
.article-pager span.pager-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
}
.article-pager a:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}
.article-pager .pager-empty {
    opacity: 0.45;
    cursor: default;
    background: var(--bg-dark);
}
.article-pager .pager-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}
.article-pager .pager-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 640px) {
    .article-pager {
        flex-direction: column;
        gap: 10px;
    }
}

.hero-bg > img,
.channel-card-img > img,
.featured-img > img,
.article-card-img > img,
.cc-img > img,
.continent-card-img > img,
.list-item-img > img,
.rc-img > img,
.feat-hero-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-bg {
    overflow: hidden;
}
.hero-bg > img {
    position: absolute;
    inset: 0;
}

.event-hero {
    position: relative;
    overflow: hidden;
}
.event-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.event-hero-inner {
    position: relative;
    z-index: 1;
}
