/* ============================================================
   传统服饰数字资源平台 - 主样式文件
   包含：CSS变量、Reset、全站通用、头部、Footer、暗黑模式
   ============================================================ */

/* ============================================================
   1. CSS 变量（亮色/暗色）
   ============================================================ */
:root {
    /* 主色系 - 图书风格 */
    --c-primary: #913500;
    --c-primary-light: #fff3e8;
    --c-primary-dark: #6b2800;
    --c-primary-bg: #fef2e8;
    --c-primary-rgb: 145, 53, 0;
    --c-primary-hover: #b44a1a;

    /* 功能色 */
    --c-success: #52c41a;
    --c-warning: #fa8c16;
    --c-danger: #f5222d;

    /* 背景色 - 图书风格暖白 */
    --c-bg: #f5f0e8;
    --c-bg-card: #ffffff;
    --c-bg-hover: #f5f5f5;
    --c-bg-header: #ffffff;

    /* 文字色 */
    --c-text: #1f1f1f;
    --c-text-2: #595959;
    --c-text-3: #8c8c8c;
    --c-text-inverse: #ffffff;

    /* 边框色 */
    --c-border: #e8e8e8;
    --c-border-light: #f0f0f0;

    /* 阴影 */
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);

    /* 布局 */
    --radius: 6px;
    --radius-lg: 12px;
    --header-h: 64px;
    --max-w: 1400px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

    /* 过渡 */
    --transition: all 0.2s ease;
}

/* 暗黑模式变量 */
[data-theme="dark"] {
    --c-primary: #d4611a;
    --c-primary-light: #e67c3a;
    --c-primary-dark: #b44a1a;
    --c-primary-bg: #2a1a0a;
    --c-primary-rgb: 212, 97, 26;

    --c-success: #73d13d;
    --c-warning: #ffa940;
    --c-danger: #ff4d4f;

    --c-bg: #0f0f0f;
    --c-bg-card: #1a1a1a;
    --c-bg-hover: #262626;
    --c-bg-header: #1a1a1a;

    --c-text: #e8e8e8;
    --c-text-2: #a0a0a0;
    --c-text-3: #666666;
    --c-text-inverse: #1f1f1f;

    --c-border: #333333;
    --c-border-light: #2a2a2a;

    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
}

/* 系统级暗黑模式自动适配 */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --c-primary: #d4611a;
        --c-primary-light: #e67c3a;
        --c-primary-dark: #b44a1a;
        --c-primary-bg: #2a1a0a;
        --c-success: #73d13d;
        --c-warning: #ffa940;
        --c-danger: #ff4d4f;
        --c-bg: #0f0f0f;
        --c-bg-card: #1a1a1a;
        --c-bg-hover: #262626;
        --c-bg-header: #1a1a1a;
        --c-text: #e8e8e8;
        --c-text-2: #a0a0a0;
        --c-text-3: #666666;
        --c-border: #333333;
        --c-border-light: #2a2a2a;
        --shadow: 0 2px 8px rgba(0,0,0,0.3);
        --shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
    }
}


/* ============================================================
   2. Reset
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 15px;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s, color 0.3s;
}

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--c-primary-light);
}

img {
    max-width: 100%;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}


/* ============================================================
   3. 全站通用样式
   ============================================================ */

/* 布局容器 */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

.btn-primary:hover {
    background: var(--c-primary-light);
    color: #fff;
}

.btn-outline {
    background: var(--c-bg-card);
    color: var(--c-text-2);
    border-color: var(--c-border);
}

.btn-outline:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

/* 卡片 */
.card {
    background: var(--c-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    padding: 24px 0;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--c-text-2);
    background: var(--c-bg-card);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.pagination .current {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

/* 表单 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--c-text);
    background: var(--c-bg-card);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(145,53,0,0.1);
}

/* 提示框 */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-success {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.alert-error {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

/* 网格系统 */
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1400px) {
    .card-grid-5 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1200px) {
    .card-grid-4, .card-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .album-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .card-grid-2, .card-grid-3, .card-grid-4, .card-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .album-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   4. 头部样式
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--c-bg-header);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: 100%;
    border-bottom: 2px solid var(--c-primary);
    transition: background 0.3s, border-color 0.3s, margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0 24px;
    height: var(--header-h);
    gap: 16px;
    max-width: 100%;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    flex-shrink: 0;
    order: 1;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.3s;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: 1px;
    transition: color 0.3s;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--c-text-3);
    font-weight: 400;
    margin-top: 2px;
}

/* 导航菜单 */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1 1 auto;
    justify-content: center;
    order: 2;
    min-width: 0;
}

.nav-item {
    padding: 0 14px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    color: var(--c-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    border-radius: 6px;
}

.nav-item:hover {
    color: var(--c-primary);
    text-decoration: none;
}

.nav-item.active {
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 600;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--c-primary);
    border-radius: 2px;
    transition: width 0.2s ease;
}

.nav-item:hover.active::after {
    width: 28px;
}

/* 下拉箭头 */
.nav-dropdown-arrow {
    width: 12px;
    height: 12px;
    margin-left: 2px;
    opacity: 0.5;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.nav-item.has-dropdown {
    padding: 0;
    position: relative;
    z-index: 1001;
}

.nav-item.has-dropdown > .nav-label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: var(--header-h);
    padding: 0 14px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-item.has-dropdown:hover > .nav-label {
    color: var(--c-primary);
}

/* 中国/世界 hover 保持专属色 */
.china-nav:hover > .nav-label {
    color: #791f1f !important;
    background: #fef2e8 !important;
}
.world-nav:hover > .nav-label {
    color: #0e3d6b !important;
    background: #e6f1fb !important;
}

.nav-item.has-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
    opacity: 0.8;
}

/* 桥接区域：鼠标从导航项移到下拉菜单时不会丢失hover */
.nav-item.has-dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
    background: transparent;
    z-index: 1002;
}

/* 右侧区域 */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    order: 3;
    margin-left: auto;
}

/* 搜索框 */
.header-search-wrap {
    flex-shrink: 0;
}

.header-search-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--c-border);
    border-radius: 24px;
    overflow: hidden;
    background: var(--c-bg);
    transition: all 0.2s;
}

.header-search-box:focus-within {
    border-color: var(--c-primary);
    background: var(--c-bg-card);
    box-shadow: 0 0 0 3px var(--c-primary-bg);
}

.header-search-box input {
    border: none;
    background: transparent;
    padding: 6px 10px 6px 14px;
    width: 160px;
    font-size: 13px;
    outline: none;
    color: var(--c-text);
}

.header-search-box input::placeholder {
    color: var(--c-text-3);
    font-size: 12px;
}

.header-search-box button {
    border: none;
    background: var(--c-primary);
    color: #fff;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    margin: 2px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
}

.header-search-box button:hover {
    background: var(--c-primary-dark);
}

.header-search-box button svg {
    display: block;
}

/* 搜索框内图标颜色 */
.header-search-box .search-icon {
    color: var(--c-text-3);
    margin-left: 10px;
    flex-shrink: 0;
}

/* 登录/注册 */
.header-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.auth-login {
    color: var(--c-primary);
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    text-decoration: none;
}

.auth-login:hover {
    background: var(--c-primary-bg);
    text-decoration: none;
}

.auth-register {
    background: var(--c-primary);
    color: #fff !important;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    text-decoration: none !important;
}

.auth-register:hover {
    background: var(--c-primary-dark);
    text-decoration: none;
}

/* 用户入口 */
.header-user {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 8px 4px 4px;
    border-radius: 20px;
    transition: background 0.2s;
    flex-shrink: 0;
    position: relative;
}

.header-user:hover {
    background: var(--c-primary-bg);
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.header-user .dropdown-arrow {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    transition: transform 0.2s;
}

.header-user:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 0.8;
}

.header-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    padding: 6px;
    min-width: 140px;
    z-index: 1002;
}

.header-user-dropdown.active {
    display: block;
}

.header-user-dropdown a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--c-text);
    border-radius: 6px;
    transition: all 0.15s;
    text-decoration: none;
}

.header-user-dropdown a:hover {
    background: var(--c-primary-bg);
    color: var(--c-primary);
}

/* 用户已登录 */
.auth-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    transition: background 0.2s;
}

.auth-user:hover {
    background: var(--c-bg-hover);
}

.auth-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.auth-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 8px 0 6px 0;
    display: none;
    z-index: 200;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.auth-user:hover .auth-menu {
    display: block;
}

.auth-menu a {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    color: var(--c-text);
    font-size: 13px;
    transition: background 0.15s;
    white-space: nowrap;
}

.auth-menu a:hover {
    background: var(--c-bg-hover);
    text-decoration: none;
}

.auth-menu .divider {
    height: 1px;
    background: var(--c-border);
    margin: 4px 12px;
}

/* ---------- 单色图标（全局） ---------- */
.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; }
.icon path, .icon circle, .icon line, .icon polyline, .icon rect, .icon polygon {
    stroke: currentColor; fill: none; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.icon.fill path, .icon.fill circle, .icon.fill polygon { fill: currentColor; stroke: none; }

/* 主题切换按钮 */
.theme-toggle {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--c-border); background: var(--c-bg-card);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; flex-shrink: 0; padding: 0; color: var(--c-text);
}
.theme-toggle:hover { border-color: var(--c-primary); background: var(--c-primary-bg); }
.theme-toggle svg { display: none; width: 18px; height: 18px; }
html[data-theme="light"] .theme-toggle .light-icon { display: inline-block !important; }
html[data-theme="dark"]  .theme-toggle .dark-icon  { display: inline-block !important; }
html[data-theme="auto"]  .theme-toggle .auto-icon  { display: inline-block !important; }

/* ---------- 暗色模式变量 ---------- */
html[data-theme="dark"] {
    --c-text: #e8e8e8;
    --c-text-secondary: #aaa;
    --c-text-placeholder: #666;
    --c-border: #444;
    --c-bg: #1a1a1a;
    --c-bg-white: #242424;
    --c-bg-card: #2a2a2a;
    --c-bg-hover: #333;
    --shadow: 0 2px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.4);
}
@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] {
        --c-text: #e8e8e8;
        --c-text-secondary: #aaa;
        --c-text-placeholder: #666;
        --c-border: #444;
        --c-bg: #1a1a1a;
        --c-bg-white: #242424;
        --c-bg-card: #2a2a2a;
        --c-bg-hover: #333;
        --shadow: 0 2px 12px rgba(0,0,0,0.4);
        --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
        --shadow-card: 0 2px 8px rgba(0,0,0,0.4);
    }
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    background: none; border: none; cursor: pointer;
    padding: 6px; display: none; align-items: center; justify-content: center;
    border-radius: 6px; color: var(--c-text); transition: background .2s;
}
.mobile-menu-btn:hover { background: rgba(0,0,0,0.06); }

/* 大型下拉菜单 — 带动画 */
.mega-dropdown {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100vw;
    background: var(--c-bg-card);
    box-shadow: 0 12px 40px rgba(0,0,0,0.10);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    z-index: 999;
    border: none;
    border-top: 1px solid var(--c-border-light);

    /* 动画 */
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-item.has-dropdown:hover .mega-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-dropdown-inner {
    display: flex;
    min-height: 220px;
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
}

.mega-dropdown-left {
    width: 200px;
    background: linear-gradient(180deg, var(--c-primary), var(--c-primary-light));
    color: #fff;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-radius: 0 0 0 12px;
}

.mega-dropdown-left h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.mega-dropdown-left p {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    white-space: normal;
}

.mega-link {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.mega-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.mega-dropdown-right {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    gap: 28px;
    overflow-x: auto;
}

.mega-col {
    min-width: 120px;
}

.mega-col-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--c-border-light);
}

.mega-item-small {
    display: block;
    padding: 5px 8px;
    margin: 0 -8px;
    color: var(--c-text-2);
    font-size: 13px;
    transition: all 0.15s;
    border-radius: 6px;
}

.mega-item-small:hover {
    color: var(--c-primary);
    background: var(--c-primary-bg);
    text-decoration: none;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--c-text);
    order: 4;
    flex-shrink: 0;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--c-bg-card);
    border-bottom: 1px solid var(--c-border);
    padding: 12px 16px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mobile-nav.show {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--c-text-2);
}

.mobile-nav a:hover {
    background: var(--c-primary-bg);
}


/* ============================================================
   5. Footer 样式（参考原站点：浅色背景 + 六列 + 合作机构）
   ============================================================ */
.site-footer {
    background: #f5f5f5;
    color: var(--c-text-2);
    padding: 40px 0 20px;
    margin-top: 40px;
    transition: background 0.3s, margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--c-border);
}

[data-theme="dark"] .site-footer {
    background: #1a1a1a;
    border-top-color: var(--c-border);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

/* 六列导航 */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

/* 页脚多栏布局 (builder footer_row) */
.footer-row {
    display: grid;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-row-1 { grid-template-columns: 1fr; }
.footer-row-2 { grid-template-columns: repeat(2, 1fr); }
.footer-row-3 { grid-template-columns: repeat(3, 1fr); }
.footer-row-4 { grid-template-columns: repeat(4, 1fr); }
.footer-row-5 { grid-template-columns: repeat(5, 1fr); }
.footer-row-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
    .footer-row-4, .footer-row-5, .footer-row-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .footer-row-2, .footer-row-3, .footer-row-4, .footer-row-5, .footer-row-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .footer-row { grid-template-columns: 1fr !important; }
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: var(--c-text-2);
    transition: color 0.15s;
    line-height: 1.6;
}

.footer-col a:hover {
    color: var(--c-primary);
}

/* 最新文章列稍宽 */
.footer-col-wide a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 二维码占位 */
.footer-qr .qr-placeholder {
    width: 90px;
    height: 90px;
    border: 1px dashed var(--c-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--c-text-3);
    background: var(--c-bg-card);
}

/* ========== 区块宽度布局 ========== */
.page-block {
    width: 100%;
}
.block-width-standard {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.block-width-full {
    max-width: 100%;
}
.block-width-narrow {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.block-width-wide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
.block-width-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

[data-theme="dark"] .footer-qr .qr-placeholder {
    border-color: var(--c-border);
    background: #222;
}

/* 合作机构 */
.footer-partners {
    border-top: 1px solid var(--c-border-light);
    padding: 16px 0;
    margin-bottom: 16px;
    text-align: center;
}

.footer-partners p {
    font-size: 12px;
    color: var(--c-text-3);
    line-height: 2;
    margin: 0;
}

.footer-partners br {
    display: block;
    content: "";
    margin-bottom: 2px;
}

/* 版权 */
.footer-bottom {
    border-top: 1px solid var(--c-border-light);
    padding-top: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--c-text-3);
}

.footer-bottom p {
    margin: 0;
}

/* Footer 响应式 */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .footer-qr .qr-placeholder {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .footer-inner {
        padding: 0 16px;
    }
    .footer-partners p {
        font-size: 11px;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   6. 主内容区
   ============================================================ */
.site-main {
    min-height: calc(100vh - var(--header-h) - 200px);
    background: var(--c-bg);
    transition: background 0.3s, margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}


/* ============================================================
   6.5 首页专属样式
   ============================================================ */

/* ---------- Hero 首屏 ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--c-primary-bg) 0%, #fff 50%, var(--c-primary-bg) 100%);
    padding: 72px 0 56px;
    text-align: center;
    overflow: hidden;
}
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1a0f05 0%, #1a1a1a 50%, #1a0f05 100%);
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 12px;
    letter-spacing: 3px;
}
.hero-content p {
    font-size: 16px;
    color: var(--c-text-2);
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 大搜索框 */
.hero-search {
    display: flex;
    max-width: 560px;
    margin: 0 auto 28px;
    border: 2px solid var(--c-primary);
    border-radius: 32px;
    overflow: hidden;
    background: var(--c-bg-card);
    box-shadow: 0 4px 16px rgba(145,53,0,0.12);
    transition: box-shadow 0.2s;
}
.hero-search:focus-within {
    box-shadow: 0 4px 24px rgba(145,53,0,0.2);
}
.hero-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 24px;
    font-size: 16px;
    outline: none;
    color: var(--c-text);
    min-width: 0;
}
.hero-search input::placeholder {
    color: var(--c-text-3);
}
.hero-search button {
    border: none;
    background: var(--c-primary);
    color: #fff;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.hero-search button:hover {
    background: var(--c-primary-dark);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- 统计条 ---------- */
.stats-bar {
    background: var(--c-bg-card);
    padding: 32px 0;
    border-bottom: 1px solid var(--c-border-light);
    margin-bottom: 8px;
}
[data-theme="dark"] .stats-bar {
    border-bottom-color: var(--c-border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-item {
    padding: 8px 0;
}
.stat-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1.2;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 14px;
    color: var(--c-text-2);
}

/* ---------- Section 通用 ---------- */
.section {
    padding: 32px 0;
}
.section-alt {
    background: var(--c-bg);
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.more-link {
    font-size: 14px;
    color: var(--c-text-3);
    transition: color 0.2s;
}
.more-link:hover {
    color: var(--c-primary);
}

/* ---------- 书籍卡片 ---------- */
.book-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
}
.book-card:hover {
    color: inherit;
    text-decoration: none;
}
.book-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    background: var(--c-bg-hover);
}
.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.book-card:hover .book-cover img {
    transform: scale(1.04);
}
.book-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: var(--c-primary);
    background: var(--c-primary-bg);
}
.book-badge {
    position: absolute;
    top: 8px;
    right: 8px;
}
.book-card .card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.book-card .card-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 6px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.book-card .card-meta {
    font-size: 13px;
    color: var(--c-text-3);
    margin-top: auto;
}

/* ---------- 文章卡片 ---------- */
.article-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
}
.article-card:hover {
    color: inherit;
    text-decoration: none;
}
.article-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    background: var(--c-bg-hover);
}
.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.article-card:hover .article-cover img {
    transform: scale(1.04);
}
.article-card .card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card .card-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.article-card .card-meta {
    font-size: 12px;
    color: var(--c-text-3);
    margin-bottom: 8px;
}
.article-card .card-desc {
    font-size: 13px;
    color: var(--c-text-2);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0;
}

/* ---------- 文献卡片 ---------- */
.lit-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    padding: 20px;
}
.lit-card:hover {
    color: inherit;
    text-decoration: none;
}
.lit-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.lit-card .card-meta {
    font-size: 12px;
    color: var(--c-text-3);
    margin-bottom: 10px;
}
.lit-card .card-desc {
    font-size: 13px;
    color: var(--c-text-2);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0;
}

/* ---------- 百科卡片 ---------- */
.ency-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    padding: 20px;
}
.ency-card:hover {
    color: inherit;
    text-decoration: none;
}
.ency-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ency-card .card-meta {
    font-size: 12px;
    color: var(--c-text-3);
    margin-bottom: 10px;
}
.ency-card .card-desc {
    font-size: 13px;
    color: var(--c-text-2);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0;
}

/* ---------- 相册卡片 ---------- */
.album-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
}
.album-card:hover {
    color: inherit;
    text-decoration: none;
}
.album-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.album-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
}
.album-card .card-body {
    padding: 14px;
}
.album-card .card-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.album-card .card-meta {
    font-size: 13px;
    color: var(--c-text-3);
}

/* ---------- 时间轴 ---------- */
.timeline {
    position: relative;
    padding-left: 24px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--c-border);
}
.timeline-item {
    position: relative;
    padding-bottom: 28px;
    display: flex;
    gap: 20px;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid var(--c-bg-card);
    box-shadow: 0 0 0 2px var(--c-primary);
    flex-shrink: 0;
    z-index: 2;
}
.timeline-content {
    flex: 1;
    min-width: 0;
}
.timeline-era {
    font-size: 13px;
    color: var(--c-primary);
    font-weight: 500;
    margin-bottom: 4px;
}
.timeline-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 6px;
}
.timeline-content p {
    font-size: 14px;
    color: var(--c-text-2);
    line-height: 1.7;
    margin: 0;
}

/* ---------- 专题推荐 ---------- */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.topic-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    text-decoration: none !important;
    color: inherit;
    transition: var(--transition);
}
.topic-card:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
}
.topic-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--c-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.topic-body {
    flex: 1;
    min-width: 0;
}
.topic-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 8px;
}
.topic-body > p {
    font-size: 13px;
    color: var(--c-text-2);
    line-height: 1.7;
    margin: 0 0 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.topic-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--c-text-3);
}
.topic-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---------- 中西方对比横幅 ---------- */
.compare-banner {
    background: linear-gradient(135deg, var(--c-primary-bg) 0%, #fff 100%);
    border-top: 1px solid var(--c-border-light);
    border-bottom: 1px solid var(--c-border-light);
}
[data-theme="dark"] .compare-banner {
    background: linear-gradient(135deg, #1a0f05 0%, #1a1a1a 100%);
    border-color: var(--c-border);
}
.compare-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.compare-text {
    flex: 1;
    min-width: 280px;
}
.compare-text h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 10px;
}
.compare-text p {
    font-size: 14px;
    color: var(--c-text-2);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 480px;
}
.compare-visual {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.compare-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
    background: var(--c-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    min-width: 120px;
}
.compare-flag {
    font-size: 32px;
}
.compare-item span:last-child {
    font-size: 13px;
    color: var(--c-text-2);
    font-weight: 500;
}
.compare-vs {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-primary);
}

/* ---------- 首页响应式 ---------- */
@media (max-width: 768px) {
    .hero {
        padding: 48px 16px 36px;
    }
    .hero-content h1 {
        font-size: 26px;
    }
    .hero-content p {
        font-size: 14px;
    }
    .hero-search {
        max-width: 100%;
    }
    .hero-search input {
        padding: 12px 16px;
        font-size: 15px;
    }
    .hero-search button {
        padding: 12px 18px;
        font-size: 15px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .stat-num {
        font-size: 24px;
    }
    .topic-grid {
        grid-template-columns: 1fr;
    }
    .topic-card {
        flex-direction: column;
        gap: 12px;
    }
    .timeline {
        padding-left: 20px;
    }
    .timeline-dot {
        left: -20px;
        width: 12px;
        height: 12px;
    }
    .compare-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .compare-text p {
        max-width: 100%;
    }
    .compare-visual {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================================
   7. 响应式
   ============================================================ */
@media (max-width: 900px) {
    .header-inner {
        padding: 0 16px;
        gap: 12px;
    }

    .header-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo-subtitle {
        display: none;
    }
}

@media (max-width: 600px) {
    .header-search-wrap {
        display: none;
    }

    .main-inner {
        padding: 0 16px;
    }
}


/* ============================================================
   8. 暗黑模式切换动画
   ============================================================ */
/* 为所有元素添加平滑过渡 */
*:not(.mega-dropdown):not(.auth-menu) {
    transition-property: background-color, border-color, color, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

/* 图片在暗黑模式下降低亮度 */
[data-theme="dark"] img:not(.auth-avatar) {
    filter: brightness(0.9);
}

/* 卡片在暗黑模式下的悬停效果 */
[data-theme="dark"] .card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

/* ============================================================
   9. 导航栏新增样式（中国红 / 世界蓝）
   ============================================================ */

/* ============================================================
   中国服饰 / 世界服饰 专属导航样式
   ============================================================ */

/* ---- 中国服饰 — 红色标识 ---- */
.china-nav > .nav-label {
    color: #a32d2d;
}
.china-nav:hover > .nav-label {
    color: #791f1f;
    background: #fef2e8;
}
.china-nav.active > .nav-label {
    color: #791f1f;
    font-weight: 600;
}
.china-nav.active > .nav-label::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #a32d2d;
    border-radius: 2px;
}
.china-dropdown .mega-dropdown-left.china-left {
    background: linear-gradient(135deg, #a32d2d 0%, #d85a30 100%) !important;
}
/* 覆盖默认激活线，避免重叠 */
.china-nav.active::after {
    display: none;
}

/* ---- 世界服饰 — 蓝色标识 ---- */
.world-nav > .nav-label {
    color: #185fa5;
}
.world-nav:hover > .nav-label {
    color: #0e3d6b;
    background: #e6f1fb;
}
.world-nav.active > .nav-label {
    color: #0e3d6b;
    font-weight: 600;
}
.world-nav.active > .nav-label::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #185fa5;
    border-radius: 2px;
}
.world-dropdown .mega-dropdown-left.world-left {
    background: linear-gradient(135deg, #185fa5 0%, #378add 100%) !important;
}
/* 覆盖默认激活线，避免重叠 */
.world-nav.active::after {
    display: none;
}

/* 导航分组分隔线 — 小圆点 */
.nav-separator {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--c-border);
    border-radius: 50%;
    margin: 0 6px;
    flex-shrink: 0;
    opacity: 0.6;
}

/* 朝代标签（中国下拉右栏） */
.mega-dynasty-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}
.mega-dynasty-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--c-text);
    background: var(--c-bg);
    border: 1px solid var(--c-border-light);
    text-decoration: none;
    transition: all 0.15s;
}
.mega-dynasty-tag:hover {
    background: #fef2e8;
    border-color: #e24b4a;
    color: #791f1f;
    text-decoration: none;
}
.china-dropdown .mega-dynasty-tag:hover {
    background: #fef2e8;
    border-color: #e24b4a;
    color: #791f1f;
}

/* 左栏标签容器 */
.mega-left-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 16px;
}
.mega-left-tags .mega-dynasty-tag {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.mega-left-tags .mega-dynasty-tag:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

/* 世界服饰 - 地区分组 */
.mega-world-regions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0 16px;
}
.mega-region-group-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.mega-region-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mega-region-tag {
    display: inline-block;
    padding: 3px 2px;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.15s;
}
.mega-region-tag:hover {
    color: #ffd89e;
    text-decoration: none;
}

/* 移动端：下拉菜单适配 */
@media (max-width: 768px) {
    .mega-dropdown {
        position: fixed !important;
        top: var(--header-h) !important;
        left: 0 !important;
        width: 100vw !important;
    }
    .mega-dropdown-inner {
        flex-direction: column;
    }
    .mega-dropdown-left {
        width: 100% !important;
        min-width: 100% !important;
    }
    .mega-dropdown-right {
        padding: 16px !important;
    }
}

/* ============================================================
   10. 文章首页：中国服饰高亮区块
   ============================================================ */

/* 中国服饰 英雄区块 */
.china-hero-section {
    background: linear-gradient(135deg, #fef2e8 0%, #fce4e4 100%);
    border-bottom: 3px solid #a32d2d;
}
.china-hero-card {
    display: block;
    padding: 28px 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(163,45,45,0.10);
    border: 1px solid rgba(163,45,45,0.15);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}
.china-hero-card:hover {
    box-shadow: 0 8px 32px rgba(163,45,45,0.18);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.china-hero-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.china-hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.china-hero-icon {
    font-size: 48px;
    line-height: 1;
}
.china-hero-title {
    font-size: 22px;
    font-weight: 700;
    color: #791f1f;
    margin: 0;
}
.china-hero-desc {
    font-size: 13px;
    color: #a32d2d;
    margin: 0;
}
.china-hero-right {
    flex: 1;
    min-width: 0;
}
.china-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.china-hero-tag {
    display: inline-block;
    padding: 5px 14px;
    background: #fef2e8;
    border: 1px solid rgba(163,45,45,0.18);
    border-radius: 20px;
    font-size: 13px;
    color: #791f1f;
    text-decoration: none;
    transition: all 0.15s;
}
.china-hero-tag:hover {
    background: #a32d2d;
    color: #fff;
    border-color: #a32d2d;
    text-decoration: none;
}
.china-hero-count {
    font-size: 13px;
    color: #a32d2d;
    font-weight: 500;
}

/* 大洲分组 */
.continent-group {
    margin-bottom: 28px;
}
.continent-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--c-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.continent-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--c-primary);
    border-radius: 2px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .china-hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .china-hero-tags {
        justify-content: center;
    }
    .continent-title {
        font-size: 14px;
    }
}

/* ========== 菜单布局增强 ========== */
/* 菜单对齐方式 */
.header-nav.nav-align-center  { justify-content: center; }
.header-nav.nav-align-right   { justify-content: flex-end; }
.header-nav.nav-align-justify { justify-content: space-between; }

/* 菜单项样式：胶囊 */
.header-nav.nav-style-pill .nav-item,
.header-nav.nav-style-pill .nav-item.has-dropdown > .nav-label {
    border-radius: 20px;
    margin: 0 3px;
    transition: background 0.2s, color 0.2s;
}
.header-nav.nav-style-pill .nav-item:hover,
.header-nav.nav-style-pill .nav-item.active {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

/* 菜单项样式：下划线 */
.header-nav.nav-style-underline .nav-item.active::after,
.header-nav.nav-style-underline .nav-item:hover::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--c-primary);
    border-radius: 2px;
    transition: width 0.2s;
}
.header-nav.nav-style-underline .nav-item.active::after { width: 28px; }

/* 菜单项样式：无高亮 */
.header-nav.nav-style-none .nav-item.active::after { display: none; }
.header-nav.nav-style-none .nav-item.active {
    background: none;
    color: var(--c-primary);
    font-weight: 600;
}

/* 隐藏下拉箭头 */
.header-nav.nav-no-arrow .nav-dropdown-arrow { display: none !important; }

/* 简单下拉菜单 */
.nav-simple-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1002;
    padding: 4px 0;
    overflow: hidden;
}
.nav-item.has-simple-dropdown:hover .nav-simple-dropdown { display: block; }

.nav-simple-dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--c-text);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.nav-simple-dropdown a:hover {
    background: var(--c-primary-light);
    color: var(--c-primary);
}
