:root {
    --ink: #4A3A6B;
    --heading: #4A3A6B;
    --heading-secondary: #4A3A6B;
    --purple: #4A3A6B;
    --sn-purple: #4A3A6B;
    --sn-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sn-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --sn-mono: 'JetBrains Mono', 'Consolas', monospace;
    --purple-light: #6B5A8A;
    --purple-soft: #F5F2FA;
    --gold: #D4AF37;
    --gold-light: #E8D87A;
    --gold-soft: #FDF8E6;
    --teal: #087F8C;
    --green: #2F6F4E;
    --line: #EDEBF2;
    --paper: #FFFFFF;
    --wash: #FAFAFB;
    --text-secondary: #6B6882;
    --text-muted: #9490A8;
    --radius-card: 8px;
    --shadow-card: 0 2px 12px rgba(61, 58, 82, 0.05);

    /* ===== 全站标题层级规范（2026-08-19 字体统一规范） ===== */
    --text-h1: 32px;     --text-h1-weight: 700; --text-h1-lh: 1.3;
    --text-h2: 28px;     --text-h2-weight: 700; --text-h2-lh: 1.3;
    --text-h3: 22px;     --text-h3-weight: 600; --text-h3-lh: 1.4;
    --text-h4: 18px;     --text-h4-weight: 600; --text-h4-lh: 1.5;
    --text-body: 16px;   --text-body-weight: 400; --text-body-lh: 1.6;
    --text-secondary-size: 14px; --text-secondary-weight: 400; --text-secondary-lh: 1.50;
    --text-small-size: 12px;     --text-small-weight: 400; --text-small-lh: 1.40;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #FAFAFB 0%, #FFFFFF 100%);
    color: var(--ink);
    font-family: var(--sn-sans);
    letter-spacing: 0;
    font-size: var(--text-body);
    line-height: var(--text-body-lh);
    /* 允许正文文本选中与复制，避免后台/管理页面无法复制内容 */
}

/* 允许输入框/文本域/可编辑区域正常选择和输入 */
input,
textarea,
[contenteditable="true"],
[contenteditable=""] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ===== 字体层级规范：字号做主次，颜色做辅助（2026-08-09） ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sn-serif);
    color: var(--heading);
}
h1 { font-size: var(--text-h1); font-weight: var(--text-h1-weight); line-height: var(--text-h1-lh); }
h2 { font-size: var(--text-h2); font-weight: var(--text-h2-weight); line-height: var(--text-h2-lh); }
h3 { font-size: var(--text-h3); font-weight: var(--text-h3-weight); line-height: var(--text-h3-lh); }
h4 { font-size: var(--text-h4); font-weight: var(--text-h4-weight); line-height: var(--text-h4-lh); }
h5 { font-size: 16px; font-weight: 600; line-height: 1.5; }
h6 { font-size: 14px; font-weight: 600; line-height: 1.5; }

/* 层级工具类：直接给元素打类即可套用规范 */
.t-h1 { font-size: var(--text-h1); font-weight: var(--text-h1-weight); line-height: var(--text-h1-lh); color: var(--heading); }
.t-h2 { font-size: var(--text-h2); font-weight: var(--text-h2-weight); line-height: var(--text-h2-lh); color: var(--heading); }
.t-h3 { font-size: var(--text-h3); font-weight: var(--text-h3-weight); line-height: var(--text-h3-lh); color: var(--heading); }
.t-body { font-size: var(--text-body); font-weight: 400; line-height: var(--text-body-lh); color: var(--ink); }
.t-secondary { font-size: var(--text-secondary-size); font-weight: 400; line-height: var(--text-secondary-lh); color: var(--text-secondary); }
.t-small { font-size: var(--text-small-size); font-weight: 400; line-height: var(--text-small-lh); color: var(--text-muted); }

p,
li,
dd,
td,
input,
select,
textarea {
    color: var(--ink);
}

small,
.text-muted,
.muted,
.subtitle,
.description,
.helper-text,
.meta,
.hint {
    color: var(--text-muted);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(74, 58, 107, 0.06);
}

.site-header-inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--purple);
    transition: all 0.25s ease;
}
.nav-open .hamburger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
}
.nav-open .hamburger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.site-brand .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
}

.brand-mark {
    height: 64px;
    padding: 0;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}

.brand-logo {
    height: 100%;
    width: auto;
    /* SNX_LOGO_MAXW(20261012): stop non-square/oversized logos from bursting the header at width:auto.
       the old rule only had height:100% + width:auto with no horizontal constraint. */
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.brand strong {
    display: block;
    color: var(--heading);
    font-size: 20px;
    font-weight: 700;
}

.brand small {
    color: var(--text-secondary);
    font-size: 14px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    overflow: visible;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.site-nav a,
.auth-nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--purple);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.site-nav a:hover,
.auth-nav a:hover {
    background: var(--purple-soft);
    color: #8A5A00;
}

.site-nav a.is-active {
    border-color: #8A5A00;
    background: var(--gold-soft);
    color: var(--purple);
    font-weight: 600;
}

/* ── More Dropdown ── */
.nav-more {
    position: relative;
    flex-shrink: 0;
}
.nav-more-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: inherit;
}
.nav-more-btn:hover {
    background: var(--purple-soft);
    color: var(--purple);
    border-color: var(--purple);
}
.nav-more-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s;
}
.nav-more.open .nav-more-arrow {
    transform: rotate(180deg);
}
.nav-more-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 140px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(74, 58, 107, 0.14);
    z-index: 30;
}
.nav-more.open .nav-more-dropdown,
.nav-more:hover .nav-more-dropdown {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-more-dropdown a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
}
.nav-more-dropdown a:hover {
    background: var(--gold-soft);
    color: var(--purple);
}

.auth-nav {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    margin-left: 8px;
}

.auth-nav a {
    padding: 4px 8px;
    border-radius: 6px;
}

.auth-nav span {
    padding: 0 2px;
    color: #6B6882;
    font-size: 0.75rem;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    height: 40px;
    padding: 4px 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text-muted);
    box-shadow: 0 4px 16px rgba(74, 58, 107, 0.06);
}

.lang-btn {
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--purple);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--purple);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   语言切换「中 | EN」/「中 EN」按钮 —— 最终规范样式
   覆盖 base.html(.lang-toggle/.lang-btn) 与
   platform_base.html(.lang-switcher button) 两种组件，
   使用 !important 防止被各页面内联样式或其它规则覆盖。
   规范：
     默认  transparent / #4A3A6B / 1px solid #4A3A6B
     悬停  #4A3A6B / #FFFFFF / #4A3A6B
     激活  #4A3A6B / #FFFFFF / #4A3A6B
   ═══════════════════════════════════════════════════════════ */
.lang-switcher button,
.lang-toggle .lang-btn {
    background: transparent !important;
    color: #4A3A6B !important;
    border: 1px solid #4A3A6B !important;
    border-radius: 4px !important;
    padding: 6px 14px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}
.lang-switcher button:hover,
.lang-toggle .lang-btn:hover {
    background: #4A3A6B !important;
    color: #FFFFFF !important;
    border-color: #4A3A6B !important;
}
.lang-switcher button.active,
.lang-toggle .lang-btn.active {
    background: #4A3A6B !important;
    color: #FFFFFF !important;
    border-color: #4A3A6B !important;
}

.site-main {
    flex: 1;
    width: 100%;
}

.site-main-inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 60px 0;
}

/* ===== 页脚（单排布局）===== */
.site-footer {
    border-top: 1px solid #E8E5EE;
    background: #FFFFFF;
    color: #4A3A6B;
    font-size: 14px;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
}
.footer-subscribe {
    flex: 1 1 100%;
    width: 100%;
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid #E6DDF3;
    border-radius: 14px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF9FF 100%);
    box-shadow: 0 8px 24px rgba(74, 58, 107, 0.06);
    margin-bottom: 4px;
}
.footer-subscribe-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-subscribe-title {
    color: #4A3A6B;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}
.footer-subscribe-link {
    color: #D4AF37;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.footer-subscribe-link:hover {
    color: #B98B11;
}
.footer-subscribe-form {
    display: grid;
    gap: 12px;
}
.footer-subscribe-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-subscribe-email {
    flex: 1 1 240px;
    min-width: 220px;
    box-sizing: border-box;
    border: 1px solid #DCD3EA;
    border-radius: 10px;
    padding: 11px 12px;
    background: #fff;
    color: #2D2A3E;
    font-size: 14px;
}
.footer-subscribe-email:focus {
    outline: none;
    border-color: #4A3A6B;
    box-shadow: 0 0 0 3px rgba(74, 58, 107, 0.12);
}
.footer-subscribe-submit {
    border: 0;
    border-radius: 10px;
    padding: 11px 18px;
    background: linear-gradient(135deg, #4A3A6B 0%, #6A5493 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(74, 58, 107, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.footer-subscribe-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(74, 58, 107, 0.22);
    filter: brightness(1.02);
}
.footer-subscribe-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.footer-subscribe-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5A5A6E;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.footer-subscribe-type input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #4A3A6B;
}
/* ===== 页脚「关注我们」二维码板块 ===== */
.footer-follow {
    flex: 1 1 100%;
    width: 100%;
    display: grid;
    gap: 14px;
    text-align: center;
    padding: 18px 20px;
    border: 1px solid #E6DDF3;
    border-radius: 14px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF9FF 100%);
    box-shadow: 0 8px 24px rgba(74, 58, 107, 0.06);
    margin-bottom: 4px;
}
.footer-follow-head {
    display: grid;
    gap: 6px;
}
.footer-follow-title {
    color: #4A3A6B;
    font-family: var(--sn-serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}
.footer-follow-desc {
    color: #8A8A8A;
    font-size: 14px;
}
.footer-follow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    justify-items: center;
}
.footer-follow-card {
    display: grid;
    gap: 8px;
    justify-items: center;
    width: 100%;
    max-width: 220px;
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid #EFEAF6;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(74, 58, 107, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-follow-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 58, 107, 0.14);
}
.footer-follow-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #EDE8F4;
}
.footer-follow-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border: 1px dashed #DCD3EA;
    border-radius: 8px;
    color: #9A92B0;
    font-size: 13px;
    background: #F2F2F2;
}
.footer-follow-name {
    color: #4A3A6B;
    font-size: 14px;
    font-weight: 600;
}
.footer-follow-tip {
    color: #8A8A8A;
    font-size: 12px;
}
@media (max-width: 1023px) {
    .footer-follow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .footer-follow-grid {
        grid-template-columns: 1fr;
    }
    .footer-follow-card img,
    .footer-follow-fallback {
        width: 100px;
        height: 100px;
    }
}
.footer-inner .footer-brand {
    display: flex;
    align-items: center;
}
.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand .footer-logo strong {
    color: #4A3A6B;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}
.footer-brand .footer-logo .brand-mark {
    height: 32px;
    border: none;
    box-shadow: none;
}
.footer-copyright {
    color: #6B6582;
    font-size: 12.5px;
    white-space: nowrap;
}
.footer-beian {
    color: #6B6582;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}
.footer-beian:hover {
    color: #D4AF37;
}
.footer-inner > a:not(.footer-beian) {
    color: #4A3A6B;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.footer-inner > a:not(.footer-beian):hover {
    color: #D4AF37;
}
@media (max-width: 768px) {
    .footer-inner {
        justify-content: center;
        text-align: center;
        gap: 10px 18px;
        padding: 16px;
    }
    .footer-subscribe {
        padding: 16px;
    }
    .footer-subscribe-head {
        justify-content: center;
        text-align: center;
    }
    .footer-subscribe-row {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-subscribe-email,
    .footer-subscribe-submit {
        width: 100%;
        min-width: 0;
    }
    .footer-subscribe-types {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
    }
}
@media (max-width: 520px) {
    .footer-subscribe-types {
        grid-template-columns: 1fr;
    }
}

.page-stack {
    display: grid;
    gap: 36px;
    /* SNX_GRID_TRACK_FIX(20261023-layout): column tracks must be declared explicitly.
       without it, the implicit single column sizes as minmax(auto, auto), whose minimum takes the largest child min-content;
       once any child's min-content exceeds the container width, the whole track is pushed past it,
       children's backgrounds overflowed the container and the rest shifted (root cause of the homepage's right-side background fault line).
       // minmax(0, 1fr) floors the track at 0, so tracks equal the container width exactly. */
    grid-template-columns: minmax(0, 1fr);
}

.page-hero {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 56px 48px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F2FA 50%, #FDF8E6 100%);
    box-shadow: 0 16px 48px rgba(74, 58, 107, 0.1);
    position: relative;
    overflow: hidden;
}

.page-hero > div:first-child {
    flex: 1 1 0;
    min-width: 0;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 58, 107, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero h1 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--purple);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.hero-stat-grid {
    display: grid;
    gap: 14px;
    min-width: 240px;
    position: relative;
    z-index: 1;
}

.hero-stat {
    padding: 20px;
    border: 1px solid rgba(74, 58, 107, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.hero-stat:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 24px rgba(74, 58, 107, 0.08);
}

.hero-stat span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.hero-stat strong {
    display: block;
    margin-top: 6px;
    color: var(--purple);
    font-size: 28px;
    font-weight: 700;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.feature-grid > .feature-card {
    flex: 1 1 220px;
    max-width: calc(25% - 15px);
    min-width: 220px;
    box-sizing: border-box;
}

.feature-card {
    display: grid;
    gap: 16px;
    min-height: 200px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--paper);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(74, 58, 107, 0.14);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-badge {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: var(--gold-soft);
    color: var(--purple);
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
}

.feature-card h3 {
    margin: 0;
    color: var(--heading);
    font-size: 20px;
    font-weight: 700;
}

.feature-heading {
    display: grid;
    gap: 4px;
}

.feature-subtitle {
    color: #8A5A00;
    font-size: 13px;
    font-weight: 700;
}

.feature-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-link,
.card-link {
    color: #8A5A00;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-block;
    margin-top: 8px;
}

.text-link:hover,
.card-link:hover {
    color: #4A3A6B;
}

.feature-card-link {
    display: grid;
    gap: 12px;
    height: 100%;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag-row span {
    background: var(--purple-soft);
    color: var(--purple);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
}

.focus-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.soft-panel {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--paper);
    box-shadow: var(--shadow-card);
}

.soft-panel h2 {
    margin: 0 0 22px;
    color: var(--heading);
    font-size: 24px;
    font-weight: 700;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-title h2 {
    margin: 0;
    color: var(--heading);
    font-size: 28px;
    font-weight: 700;
}

.section-title p {
    max-width: 560px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== 学院风：区块小标题前金色圆点 ===== */
.section-title h2::before,
.panel-heading h2::before,
.help-section-title::before,
.content-section-title::before,
.eb-section-title h2::before {
    content: "●";
    color: var(--gold);
    font-size: 0.62em;
    margin-right: 10px;
    vertical-align: 0.12em;
}
.accent-num {
    color: var(--gold);
}

.solid-button,
.ghost-button {
    min-height: 44px;
    border-radius: 30px;
    padding: 10px 28px;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-size: 15px;
}

.solid-button {
    background: var(--gold);
    color: #fff;
    border-color: #8A5A00;
    padding: 12px 32px;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.solid-button:hover {
    background: #c9a22e;
    border-color: #c9a22e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.solid-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.ghost-button {
    background: transparent;
    color: var(--purple);
    border-color: var(--purple);
    padding: 10px 28px;
}

.ghost-button:hover {
    background: var(--purple);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 58, 107, 0.2);
}

.compact {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 14px;
}

.compact-form {
    display: grid;
    gap: 20px;
}

.compact-form label {
    gap: 10px;
}

.compact-form input,
.compact-form select,
.compact-form textarea {
    min-height: 50px;
    border-radius: 8px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--purple);
    font-weight: 600;
}

label span {
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 12px 16px;
    transition: all 0.2s ease;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #8A5A00;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.compact-list {
    display: grid;
    gap: 14px;
}

.compact-list div,
.compact-list a {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.compact-list .ts-quick-template {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--purple);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: all 0.2s ease;
}

.compact-list .ts-quick-template:hover {
    border-color: #8A5A00;
    background: var(--gold-soft);
}

.compact-list .ts-quick-template strong {
    color: var(--purple);
    font-weight: 600;
}

.compact-list a:hover {
    border-color: #8A5A00;
    background: var(--gold-soft);
}

.compact-list strong {
    color: var(--purple);
    font-weight: 600;
}

.compact-list span {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Unified Card Styles ── */
.unified-card {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(74, 58, 107, 0.06);
    background: var(--paper);
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid var(--line);
}

.unified-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(74, 58, 107, 0.12);
}

.unified-card h3 {
    color: var(--heading);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
}

.unified-card p {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ── Unified Button Styles ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 30px;
    background: var(--gold);
    color: #4A3A6B;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #c9a22e;
    border-color: #c9a22e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 30px;
    background: transparent;
    color: var(--purple);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--purple);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: var(--purple);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 58, 107, 0.2);
}

.api-preview,
.result-panel pre {
    margin: 16px 0 0;
    width: 100%;
    max-height: 560px;
    overflow: auto;
    border: 1px solid #E2DCCD;
    border-radius: 8px;
    background: #1A1724;
    color: #E8E4F0;
    padding: 20px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--sn-mono);
    font-size: 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--purple-soft);
    color: var(--purple);
    font-size: 13px;
    font-weight: 600;
}

.chip-state {
    background: #EEF6EF;
    color: var(--green);
}

.chip-alert {
    background: #FDF0E7;
    color: #A24B15;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.status-chip {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(74, 58, 107, 0.16);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.writing-page {
    gap: 28px;
}

.writing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 28px;
}

.outline-list {
    display: grid;
    gap: 12px;
}

.outline-item {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 20px 22px;
    text-align: left;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    transition: all 0.2s ease;
    cursor: pointer;
}

.outline-item:hover,
.outline-item.is-active {
    border-color: #8A5A00;
    box-shadow: 0 8px 24px rgba(74, 58, 107, 0.1);
    transform: translateY(-2px);
}

.outline-item strong {
    color: var(--purple);
    font-size: 16px;
    font-weight: 600;
}

.outline-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.empty-state {
    padding: 24px;
    border: 2px dashed rgba(74, 58, 107, 0.2);
    border-radius: 8px;
    color: var(--text-muted);
    background: #fff;
    text-align: center;
}

.selected-section {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--gold-soft);
}

.selected-section strong {
    color: var(--purple);
    font-weight: 600;
}

.selected-section p {
    margin: 0;
    color: var(--text-secondary);
}

.writing-output {
    min-height: 300px;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.drawing-page {
    gap: 28px;
}

.drawing-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.drawing-tool-card {
    display: grid;
    gap: 12px;
    min-height: 230px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 14px 34px rgba(35, 27, 46, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.drawing-tool-card:hover {
    transform: translateY(-5px);
    border-color: #8A5A00;
    box-shadow: 0 20px 38px rgba(74, 58, 107, 0.16);
}

.drawing-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--gold-soft);
    font-size: 28px;
}

.drawing-tool-card h2 {
    margin: 0;
    color: var(--heading-secondary);
    font-size: 19px;
}

.drawing-tool-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.drawing-card-link {
    align-self: end;
    color: var(--purple);
    font-weight: 800;
}

.drawing-capabilities {
    padding: 26px;
}

.drawing-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.drawing-workspace {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 24px;
    align-items: start;
}

.drawing-form,
.drawing-result-panel {
    min-width: 0;
}

.drawing-canvas {
    min-height: 330px;
    display: grid;
    place-items: center;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdfa;
}

.drawing-canvas svg {
    width: 100%;
    min-width: 560px;
    max-height: 440px;
}

.drawing-analysis {
    max-height: 220px;
}

@media (max-width: 900px) {
    .drawing-tool-grid,
    .drawing-workspace {
        grid-template-columns: 1fr;
    }
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-page {
    gap: 28px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 8px 0 28px;
}

.profile-stats div {
    padding: 20px;
    border-radius: var(--radius-card);
    background: var(--purple-soft);
    text-align: center;
}

.profile-stats strong,
.profile-stats span {
    display: block;
}

.profile-stats strong {
    color: var(--purple);
    font-size: 32px;
    font-weight: 700;
}

.profile-stats span {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.panel-heading h2 {
    margin: 0;
    color: var(--heading-secondary);
    font-size: 22px;
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
}

th {
    color: #fff;
    background: var(--purple);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

td {
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

tbody tr:hover {
    background: var(--gold-soft);
}

tbody tr:last-child td {
    border-bottom: none;
}

.page-hero.writing-hero {
    align-items: start;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
    gap: 28px;
}

.split-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--paper);
    box-shadow: var(--shadow-card);
}

.panel h2 {
    margin: 0 0 16px;
    color: var(--heading-secondary);
    font-size: var(--text-h2);
    font-weight: var(--text-h2-weight);
    line-height: 1.3;
}

.asset-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.asset-list a {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.asset-list a:hover {
    border-color: #8A5A00;
    background: var(--gold-soft);
}

.asset-list strong {
    color: var(--purple);
    font-weight: 600;
}

.asset-list span {
    color: var(--text-secondary);
    font-size: 14px;
}

.result-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.operation-list {
    margin: 0;
    padding-left: 24px;
    display: grid;
    gap: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.form-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-message {
    min-height: 26px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.form-message.is-error {
    color: #A33A3A;
}

/* ===== Survey Studio ===== */
.survey-page {
    gap: 28px;
}

.survey-hero {
    min-height: 280px;
}

.compact-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 220px;
    padding-top: 38px;
    padding-bottom: 38px;
}

.survey-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.survey-card,
.survey-question-editor,
.survey-result-card {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--paper);
    box-shadow: var(--shadow-card);
}

.survey-card {
    min-height: 250px;
}

.survey-card-top,
.survey-card-meta,
.survey-form-actions,
.survey-ai-row,
.survey-fill-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.survey-card h3,
.survey-result-card h3 {
    margin: 0;
    color: var(--purple);
    font-size: 20px;
}

.survey-card p,
.survey-card-meta,
.survey-date,
.survey-share-panel p {
    margin: 0;
    color: var(--text-secondary);
}

.survey-card-meta {
    margin-top: auto;
    font-size: 13px;
}

.survey-empty {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-height: 180px;
}

.survey-empty strong,
.survey-success strong,
.survey-closed strong {
    color: var(--purple);
    font-size: 20px;
}

.survey-builder-form {
    display: grid;
    gap: 22px;
}

.survey-publish-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.survey-publish-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--purple);
}

.survey-ai-row {
    align-items: stretch;
    padding: 14px;
    border-radius: 8px;
    background: var(--purple-soft);
}

.survey-ai-row input {
    min-height: 42px;
    border-color: transparent;
}

.survey-question-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.survey-question-editor {
    gap: 12px;
    background: #fffdfa;
}

.survey-question-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.survey-question-editor-head strong {
    color: #8A5A00;
    font-size: 16px;
}

.survey-form-actions {
    padding: 4px 0;
}

.survey-form-actions .form-message {
    flex: 1;
}

.survey-fill-form {
    display: grid;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.survey-fill-progress {
    color: var(--text-secondary);
    font-size: 13px;
}

.survey-fill-progress > div {
    flex: 1;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--purple-soft);
}

.survey-fill-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--gold);
    transition: width 0.2s ease;
}

.survey-question {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 0 0 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
}

.survey-question legend {
    display: flex;
    align-items: start;
    gap: 10px;
    width: 100%;
    padding: 0;
    color: var(--purple);
    font-size: 17px;
    font-weight: 700;
}

.survey-question legend em {
    color: #A33A3A;
    font-style: normal;
}

.question-number {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--purple);
    font-size: 12px;
}

.survey-options,
.survey-scale {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.survey-options label,
.survey-scale label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 500;
    cursor: pointer;
}

.survey-options input,
.survey-scale input {
    width: 18px;
    height: 18px;
    accent-color: var(--purple);
}

.survey-matrix {
    display: grid;
    grid-template-columns: minmax(120px, 1.4fr) repeat(auto-fit, minmax(80px, 1fr));
    align-items: center;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.survey-matrix > * {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 8px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
}

.survey-matrix strong {
    color: var(--purple);
    background: var(--purple-soft);
}

.survey-matrix label {
    display: grid;
    place-items: center;
    cursor: pointer;
}

.survey-matrix input {
    width: 17px;
    height: 17px;
    accent-color: var(--purple);
}

.survey-success,
.survey-closed {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 64px 24px;
    text-align: center;
}

.survey-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.survey-metrics article {
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.survey-metrics span {
    color: var(--text-secondary);
    font-size: 13px;
}

.survey-metrics strong {
    color: var(--purple);
    font-size: 30px;
}

.survey-share-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.survey-share-panel h2 {
    margin-bottom: 8px;
}

.survey-share-panel code {
    display: block;
    max-width: 760px;
    margin-top: 14px;
    overflow-wrap: anywhere;
    color: var(--purple);
    font-size: 13px;
}

.survey-share-panel img {
    width: 140px;
    height: 140px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.survey-result-list {
    display: grid;
    gap: 16px;
}

.survey-result-card .panel-heading {
    margin-bottom: 4px;
}

.survey-bars {
    display: grid;
    gap: 12px;
    flex: 1;
}

.survey-chart-row {
    display: flex;
    align-items: center;
    gap: 28px;
}

.survey-pie {
    width: 132px;
    height: 132px;
    flex: 0 0 132px;
    border: 12px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line), 0 8px 18px rgba(74, 58, 107, 0.08);
}

.survey-bar-row {
    display: grid;
    grid-template-columns: minmax(100px, 0.3fr) minmax(0, 1fr) 32px;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.survey-bar-row > div {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--purple-soft);
}

.survey-bar-row i {
    display: block;
    min-width: 2px;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--purple), var(--gold));
}

.survey-bar-row strong {
    color: var(--purple);
    text-align: right;
}

.survey-analysis-output {
    margin: 0 0 20px;
    padding: 18px;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    background: var(--gold-soft);
    color: var(--ink);
    white-space: pre-wrap;
    line-height: 1.7;
}

@media (max-width: 1050px) {
    .focus-layout,
    .workspace-grid,
    .writing-grid,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .feature-grid > .feature-card {
        max-width: calc(50% - 10px);
    }

    .survey-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .site-header-inner {
        width: min(1280px, calc(100% - 32px));
    }

    .site-main-inner {
        width: min(1280px, calc(100% - 32px));
        padding-top: 32px;
    }

    .page-hero {
        flex-direction: column;
        padding: 40px 28px;
        gap: 32px;
    }

    .page-hero h1 {
        font-size: clamp(32px, 5vw, 52px);
    }

    .hero-stat-grid {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .hamburger {
        display: flex;
    }

    .site-nav {
        display: none;
    }

    .brand strong {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 15px;
        max-width: 120px;
    }

    .brand small {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 11px;
        max-width: 120px;
    }

    .brand-mark {
        height: 48px;
    }

    .site-brand .brand {
        gap: 10px;
    }

    .nav-open .site-nav {
        display: flex;
        flex-wrap: wrap;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 16px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 8px 24px rgba(74, 58, 107, 0.12);
        z-index: 25;
        gap: 6px;
    }

    .site-header-inner {
        width: calc(100% - 32px);
        flex-wrap: nowrap;
        gap: 8px;
    }

    .header-actions {
        gap: 4px;
        margin-left: 8px;
    }

    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-nav a {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .nav-more {
        display: none;
    }

    .feature-grid > .feature-card {
        max-width: calc(50% - 10px);
    }

    .survey-list,
    .survey-metrics {
        grid-template-columns: 1fr;
    }

    .compact-hero,
    .survey-share-panel {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .survey-ai-row,
    .survey-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .survey-share-panel img {
        align-self: center;
    }

    .field-grid,
    .form-two-col {
        grid-template-columns: 1fr;
    }

    .section-title {
        display: grid;
    }

    .page-hero {
        padding: 28px 20px;
    }

    .survey-options,
    .survey-scale {
        grid-template-columns: 1fr;
    }

    .survey-bar-row {
        grid-template-columns: minmax(80px, 0.45fr) minmax(0, 1fr) 28px;
    }

    .survey-chart-row {
        align-items: stretch;
        flex-direction: column;
    }

    .survey-pie {
        align-self: center;
    }
}

@media (max-width: 640px) {
    .hero-stat-overlay {
        grid-template-columns: 1fr;
    }

    .header-actions {
        gap: 6px;
    }

    .hero-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-stat {
        padding: 14px;
    }

    .hero-stat strong {
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .site-header-inner {
        width: calc(100% - 24px);
        gap: 6px;
    }

    .site-brand .brand {
        gap: 8px;
    }

    .brand-mark {
        height: 44px;
        border-width: 1.5px;
    }

    .brand strong {
        font-size: 12px;
        max-width: 92px;
    }

    .brand small {
        font-size: 10px;
        max-width: 92px;
    }

    .header-actions {
        gap: 2px;
        margin-left: 2px;
    }

    .header-actions a {
        font-size: 0.75rem;
        padding: 4px 5px;
    }

    .header-actions .lang-switcher {
        gap: 2px;
        margin-left: 4px;
        padding: 2px;
    }

    .header-actions .lang-switcher button {
        font-size: 0.75rem;
        padding: 3px 7px;
    }

    .hamburger {
        padding: 6px;
    }
}

/* ===== Writing Toolbar ===== */
.writing-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 30px;
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tool-btn:hover {
    background: var(--purple-soft);
    border-color: var(--purple);
    color: var(--purple);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 58, 107, 0.12);
}

.tool-btn:active {
    transform: translateY(0);
}

.tool-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.tool-icon {
    font-size: 16px;
    line-height: 1;
}

.tool-label {
    font-weight: 500;
}

/* ===== Export Toolbar ===== */
.export-toolbar {
    display: flex;
    gap: 6px;
}

.mini-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mini-button:hover {
    background: var(--gold-soft);
    border-color: #8A5A00;
    color: var(--purple);
}

/* ===== Editable textarea ===== */
#writing-content {
    width: 100%;
    min-height: 400px;
    padding: 20px;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 8px;
    font-family: 'Georgia', 'Noto Serif SC', 'SimSun', serif;
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

#writing-content:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(74, 58, 107, 0.08);
}

#writing-content::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* ===== Mermaid Panel ===== */
.mermaid-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.mermaid-panel .mermaid {
    text-align: center;
    min-height: 100px;
}

/* ===== History List ===== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: var(--purple);
    box-shadow: 0 2px 8px rgba(74, 58, 107, 0.08);
}

.history-meta {
    flex: 1;
    min-width: 0;
}

.history-meta strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta span {
    font-size: 12px;
    color: var(--text-muted);
}

.history-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

/* ===== Outline Item ===== */
.outline-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 12px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    gap: 4px;
}

.outline-item:hover {
    border-color: var(--purple);
    background: var(--purple-soft);
}

.outline-item.is-active {
    border-color: var(--purple);
    background: var(--purple);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 58, 107, 0.2);
}

.outline-item.is-active small {
    color: rgba(255, 255, 255, 0.75);
}

.outline-item strong {
    font-size: 14px;
    font-weight: 600;
}

.outline-item small {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* IMRaD section actions */
.outline-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 12px;
}

.outline-item-select {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.outline-item-select:focus-visible,
.outline-expand-button:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.55);
    outline-offset: 2px;
}

.outline-item-actions {
    display: flex;
    align-items: center;
}

.outline-expand-button {
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--purple);
    border-radius: 6px;
    background: #fff;
    color: var(--purple);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.outline-expand-button:hover:not(:disabled) {
    background: var(--purple);
    color: #fff;
}

.outline-expand-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.outline-item.is-active .outline-item-select strong,
.outline-item.is-active .outline-item-select small {
    color: #fff;
}

.expand-section-note {
    margin: 0 0 18px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.expand-section-limit-field {
    max-width: 180px;
}

.expand-section-result {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.expand-section-result > label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.expand-section-result textarea {
    width: 100%;
    min-height: 180px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    line-height: 1.7;
    resize: vertical;
}

.expand-section-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .outline-item {
        grid-template-columns: 1fr;
    }

    .outline-expand-button {
        width: 100%;
    }
}


.hero-visual {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: min(520px, 42vw);
    min-width: 360px;
    aspect-ratio: 1200 / 760;
    border: 1px solid rgba(230, 223, 208, 0.9);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 56px rgba(74, 58, 107, 0.16);
}

.hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-stat-overlay {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-stat-overlay .hero-stat {
    min-width: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(230, 223, 208, 0.9);
    box-shadow: 0 10px 24px rgba(45, 42, 36, 0.08);
    backdrop-filter: blur(10px);
}

.hero-stat-overlay .hero-stat strong {
    font-size: 24px;
}

/* ===== Auth Pages (Login / Register) ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
    padding: 40px 24px;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: inherit;
    text-decoration: none;
}
.auth-logo .brand-mark {
    height: 64px;
    padding: 0;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    background: transparent;
    flex: 0 0 auto;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}
.auth-logo .brand-logo {
    height: 100%;
    width: auto;
}
.auth-logo strong {
    color: var(--purple);
    font-size: 18px;
    font-weight: 700;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px 36px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(74, 58, 107, 0.08);
}

.auth-card .eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--purple);
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--heading);
}

.auth-subtitle {
    margin: 0 0 28px;
    font-size: 14px;
    color: var(--purple);
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form label {
    display: grid;
    gap: 6px;
}

.auth-form label span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink);
    background: var(--paper);
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.auth-form input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(74, 58, 107, 0.08);
}

.auth-form .solid-button {
    margin-top: 4px;
}

.auth-switch {
    margin: 24px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--purple);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-form .form-message {
    margin: 0;
    font-size: 13px;
}

/* ===== 第三方 OAuth 登录 (微信 / 钉钉) ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: var(--text-secondary);
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.auth-social {
    display: grid;
    gap: 12px;
}
.social-btn {
    display: block;
    text-align: center;
    padding: 12px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.social-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}
.social-btn-weixin {
    background: #07C160;
}
.social-btn-dingtalk {
    background: #0089FF;
}


/* ===== 学术动态板块 ===== */
.academic-news-section {
    padding: 60px 24px;
    background: #fff;
}

.academic-news-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.academic-news-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.academic-news-section .section-header h2 {
    font-size: 28px;
    color: var(--heading-secondary);
    font-weight: 700;
    margin: 0 0 8px;
}

.academic-news-section .section-header .subtitle {
    color: #6B6882;
    font-size: 16px;
}

/* ===== 1大+3小卡片布局 ===== */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* --- 大卡片 --- */
.news-card.featured {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(74, 58, 107, 0.08);
    border: 1px solid #E6DFD0;
    overflow: hidden;
    display: flex;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card.featured:hover {
    box-shadow: 0 8px 28px rgba(74, 58, 107, 0.14);
    border-color: #8A5A00;
}

.featured-accent {
    width: 8px;
    background: linear-gradient(180deg, #4A3A6B 0%, #6B5A8B 100%);
    flex-shrink: 0;
}

.featured-body {
    padding: 28px 32px;
    flex: 1;
}

.news-tag {
    display: inline-block;
    background: #D4AF37;
    color: #4A3A6B;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card.featured h3 {
    font-size: 22px;
    font-weight: 700;
    color: #3D3A52;
    margin: 0 0 8px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.news-card.featured:hover h3 {
    color: #4A3A6B;
}

.news-card.featured .news-excerpt {
    font-size: 15px;
    color: #3D3A52;
    line-height: 1.7;
    margin: 12px 0 16px;
    font-weight: 400;
}

.news-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- 小卡片 --- */
.news-small-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card.small {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(74, 58, 107, 0.08);
    border: 1px solid #E6DFD0;
    border-top: 3px solid #D4AF37;
    padding: 18px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card.small:hover {
    box-shadow: 0 8px 28px rgba(74, 58, 107, 0.14);
    border-color: #8A5A00;
}

.news-card.small h4 {
    font-size: 15px;
    font-weight: 600;
    color: #3D3A52;
    margin: 0 0 6px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.news-card.small:hover h4 {
    color: #8A5A00;
}

/* --- 通用元素 --- */
.news-date {
    font-size: 13px;
    color: #6B6882;
    font-weight: 400;
    display: block;
    margin-bottom: 8px;
}

.news-read-more {
    font-size: 14px;
    font-weight: 600;
    color: #8A5A00;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-read-more:hover {
    color: #6B5A8A;
}

/* ===== 查看全部公告 ===== */
.view-all-announcements {
    text-align: right;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #EDE7F6;
}

.view-all-link {
    color: #4A3A6B;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #8A5A00;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .featured-accent {
        width: 100%;
        height: 6px;
    }

    .news-card.featured {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .academic-news-section {
        padding: 48px 16px;
    }

    .academic-news-section .section-header h2 {
        font-size: 24px;
    }

    .featured-body {
        padding: 20px 24px;
    }

    .news-card.featured h3 {
        font-size: 19px;
    }

    .news-card.featured .news-excerpt {
        font-size: 14px;
    }

    .news-card.small h4 {
        font-size: 14px;
    }

    .news-small-list {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .news-card.featured h3 {
        font-size: 17px;
    }

    .news-card.featured .news-excerpt {
        font-size: 13px;
    }

    .featured-body {
        padding: 16px 20px;
    }

    .view-all-link {
        font-size: 13px;
    }
}

/* ===== 精选期刊卡片 ===== */
.journals-section {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.journals-section .section-title {
    display: block;
    text-align: left;
    margin-bottom: 32px;
}

.journals-section .section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-secondary);
    margin: 0 0 8px 0;
}

.journals-section .section-title p {
    font-size: 14px;
    color: #6B6882;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

.journals-grid {
    display: grid;
    /* 精选期刊固定展示 4 本，一行排列；其余期刊通过"查看更多期刊"访问 */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.journal-card {
    display: flex;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(74, 58, 107, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
    flex-direction: column;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
}

.journal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 58, 107, 0.15);
}

.journal-cover-link {
    display: block;
    width: 100%;
}

.journal-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #F5F2FA;
    position: relative;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

.journal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.journal-info {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.journal-badge {
    font-size: 20px;
    font-weight: 700;
    color: #4A3A6B;
    margin-bottom: 8px;
}

.journal-title {
    font-size: 13px;
    font-weight: 400;
    color: #6B6882;
    line-height: 1.4;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.journal-btn {
    font-size: 14px;
    font-weight: 600;
    color: #8A5A00;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto;
}

.journal-btn:hover {
    color: #4A3A6B;
}

/* ===== 查看全部按钮 ===== */
.journals-footer {
    text-align: center;
    margin-top: 32px;
}

.journals-all-btn {
    display: inline-block;
    padding: 12px 36px;
    background: transparent;
    border: 2px solid #4A3A6B;
    color: #4A3A6B;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.journals-all-btn:hover {
    background: #4A3A6B;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 58, 107, 0.25);
}

/* 响应式 */
@media (max-width: 1024px) {
    .journals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .journals-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 20px;
    }
    .journals-section {
        padding: 50px 16px;
    }
}

/* ===== Navigation Dropdown Animations ===== */
@media (min-width: 761px) {
.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    overflow: visible;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    margin-left: -10px;
}
}

.site-nav .nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.site-nav .nav-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--purple);
    font: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.site-nav .nav-link:hover {
    background: var(--purple-soft);
    color: #8A5A00;
}

.site-nav .nav-link.is-active,
.site-nav .nav-item.is-open .nav-link {
    border-color: #8A5A00;
    background: var(--gold-soft);
    color: var(--purple);
    font-weight: 600;
}

.site-nav .nav-arrow {
    display: inline-block;
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    color: inherit;
}

.site-nav .nav-arrow.open {
    transform: rotate(180deg);
}

/* ── ASIRS 导航徽标（紫底金字，指向 /asirs/）── */
.nav-item.asirs-nav-item {
    display: flex;
    align-items: center;
    margin-left: 6px;
}
/* 选择器带 a 标签提升特异性，压制 academic_style.css 的 .site-nav a 紫色 !important */
.site-nav a.asirs-nav-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 30px;
    padding: 4px 10px 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4A3A6B 0%, #6B21A8 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #D4AF37 !important;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(74, 58, 107, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.site-nav a.asirs-nav-badge:hover {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    color: #E8D79A !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(107, 33, 168, 0.35);
}
.site-nav a.asirs-nav-badge.is-active {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    color: #F0C040 !important;
    border-color: #F0C040;
}
.asirs-badge-arrow {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.85;
}

/* COMMENTED OUT 20261024 — nav-dropdown rules moved to nav.css */
/*  */
@media (max-width: 1200px) {
    .hamburger {
        display: flex;
    }

    .site-nav {
        display: none;
    }

    .site-header-inner {
        flex-wrap: nowrap;
    }

    .nav-open .site-nav {
        display: flex;
        flex-wrap: wrap;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 16px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 8px 24px rgba(74, 58, 107, 0.12);
        z-index: 25;
        gap: 6px;
        margin-left: 0;
    }

    .nav-open .site-nav .nav-item {
        width: 100%;
    }

    .nav-open .site-nav .nav-link,
    .nav-open .site-nav a {
        width: 100%;
        justify-content: space-between;
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .nav-open .nav-dropdown {
        position: static;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
        border: none;
        background: #F8F6FB;
        transform: none;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    }

    .nav-open .nav-dropdown a:hover {
        padding-left: 14px;
    }

    /* ASIRS 徽标在折叠菜单中展开为完整菜单项 */
    .nav-open .site-nav a.asirs-nav-badge {
        width: 100%;
        justify-content: space-between;
        border-radius: 8px;
        font-size: 0.85rem;
        padding: 8px 12px;
        min-height: 34px;
    }

    .nav-more {
        display: none;
    }
}

/* ── Service Flow Diagrams ── */
.flow-diagram-section {
    padding: 36px 32px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(74, 58, 107, 0.06);
    margin-bottom: 24px;
}
.flow-diagram-section h2 {
    margin: 0 0 6px;
    color: var(--heading-secondary);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}
.flow-diagram-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 24px;
}
.flow-diagram-svg {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
}
@media (max-width: 768px) {
    .flow-diagram-section { padding: 24px 16px; }
    .flow-diagram-section h2 { font-size: 18px; }
}

/* ============================================================
 * 功能符号规范 (Feature Icon Spec) —— 2026-08-07
 * 用于查新报告 / 审稿报告等页面，以「图标 + 文字 + Tooltip」标识平台核心能力
 *
 * 标准结构：
 *   <a class="fx-entry" href="..." data-tip-zh="中文说明" data-tip-en="English tip"
 *      data-tip="中文说明">
 *     <span class="fx-icon fx-search" aria-hidden="true">🔍</span>
 *     <span class="fx-label" data-zh="智能检索" data-en="Smart Search">智能检索</span>
 *   </a>
 *
 * 图标变体（图标 → 功能名称 → 备选名称）：
 *   fx-highlight  ✨ 智能标注 / AI Highlight（亮点提取 · AI标注）
 *   fx-relation   ↔ 关联分析 / Relation Mapping（关系图谱 · 关联网络）
 *   fx-back       ↩ 返回 / Back（返回上一步 · 撤回）
 *   fx-text       文 文本分析 / Text Analysis（纯文本 · 正文查看）
 *   fx-matrix     ▦ 数据矩阵 / Data Matrix（统计表格 · 矩阵视图）
 *   fx-thumb      ▥ 缩略预览 / Thumbnail Preview（预览 · 缩略图）
 *   fx-search     🔍 智能检索 / Smart Search（文献搜索 · 跨库检索）
 *
 * 组合闭环：.fx-chain（💡 创新点分析 + 🔗 证据追溯 → 从发现到验证）
 * Tooltip：data-tip 由 switchLang 按语言同步（data-tip-zh / data-tip-en）
 * ============================================================ */
.fx-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
}
.fx-entry {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: default;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
a.fx-entry { cursor: pointer; }
a.fx-entry:hover {
    border-color: var(--purple);
    box-shadow: 0 3px 10px rgba(74, 58, 107, 0.12);
    transform: translateY(-1px);
}
.fx-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
    background: var(--purple-soft);
    color: var(--purple);
    flex-shrink: 0;
}
.fx-icon.fx-highlight { background: #FDF3E7; color: #C46B2A; }   /* ✨ 智能标注 */
.fx-icon.fx-relation  { background: #EAF3FB; color: #1F6FB2; }   /* ↔ 关联分析 */
.fx-icon.fx-back      { background: var(--purple-soft); color: var(--purple); } /* ↩ 返回 */
.fx-icon.fx-text      { background: #F0F4EE; color: var(--green); }  /* 文 文本分析 */
.fx-icon.fx-matrix    { background: #F3EFFB; color: #6B4FA0; }  /* ▦ 数据矩阵 */
.fx-icon.fx-thumb     { background: #FFF8E1; color: #B8962E; }  /* ▥ 缩略预览 */
.fx-icon.fx-search    { background: var(--gold-soft); color: #A07D16; } /*  智能检索 */
.fx-label {
    white-space: nowrap;
    color: #3D3A52;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

/* ── Tooltip（悬停显示，中英文自适应）── */
/* .has-tip 为通用工具类：任意元素加 class="has-tip" + data-tip 即可获得 Tooltip */
.has-tip { position: relative; }
.fx-entry[data-tip]::after,
.has-tip[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(3px);
    background: #2f2745;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 40;
    box-shadow: 0 4px 12px rgba(47, 39, 69, 0.25);
}
.fx-entry[data-tip]:hover::after,
.has-tip[data-tip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.fx-entry[data-tip]::before,
.has-tip[data-tip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2f2745;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 40;
}
.fx-entry[data-tip]:hover::before,
.has-tip[data-tip]:hover::before { opacity: 1; }

/* ── 组合闭环：💡 创新点分析 + 🔗 证据追溯 ── */
.fx-chain {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 16px;
    border: 1px dashed var(--purple);
    border-radius: 4px;
    background: linear-gradient(135deg, var(--purple-soft) 0%, var(--gold-soft) 100%);
    color: var(--purple);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 14px 0;
}
.fx-chain .fx-chain-zh { display: inline; }
.fx-chain .fx-chain-en { display: none; }
.fx-chain .fx-plus { color: var(--text-secondary); font-weight: 400; padding: 0 2px; }
.fx-chain .fx-arrow { color: #8A5A00; font-weight: 700; padding: 0 2px; }
.fx-chain .fx-chain-note { color: #6B6882; font-weight: 500; }

@media (max-width: 600px) {
    .fx-entry { padding: 4px 10px 4px 5px; font-size: 0.78rem; }
    .fx-icon { width: 22px; height: 22px; font-size: 13px; }
}

/* ===== 2026-08-09 收尾统一规范：卡片圆角 8px + 阴影 ===== */
.feature-card, .scenario-card, .journal-card, .ecosystem-card, .unified-card,
.auth-card, .news-card, .survey-result-card, .survey-card, .drawing-tool-card,
.page-card, .info-card, .stat-card, .card, .article-card, .result-card {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(61, 58, 82, 0.05);
}

/* ===== 2026-08-09 收尾统一规范：按钮 hover + loading ===== */
.solid-button, .ghost-button, .ws-btn, .btn-primary, .btn-outline, .btn-gold,
.cta-btn-purple, .cta-btn-gold, .eb-cta-btn, .btn {
    transition: all 0.25s ease;
}
.solid-button:hover, .ws-btn:hover, .btn-primary:hover, .btn-gold:hover,
.cta-btn-gold:hover, .eb-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 58, 107, 0.22);
}
.ghost-button:hover, .btn-outline:hover, .cta-btn-purple:hover {
    transform: translateY(-2px);
}

/* loading 状态：按钮文字隐藏 + 旋转 spinner */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.75;
    color: transparent !important;
    text-shadow: none !important;
}
.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sn-spin 0.7s linear infinite;
    box-sizing: border-box;
}
/* 金底/浅底按钮（深色文字）使用深色 spinner */
.btn-loading.dark-spin::after,
.btn-gold.btn-loading::after,
.solid-button.btn-loading::after {
    border-color: rgba(74, 58, 107, 0.3);
    border-top-color: #4A3A6B;
}
@keyframes sn-spin {
    to { transform: rotate(360deg); }
}

/* ===== 标题颜色规范：品牌紫 #4A3A6B（2026-08-16）=====
   仅兜底未显式设置颜色的裸标题元素；带类的页面规则（如 .section-title h2、
   .card-head h2、.page-hero h1）优先级更高，品牌紫 #4A3A6B / 金色 /
   深色背景上的白色标题均不受影响。 */
h1, h2, h3, h4, h5, h6,
.title, .heading, .section-title, .page-title,
.card-title, .widget-title {
    color: #4A3A6B;
}
/* 深色背景上的标题保持白色（Hero 区、深色卡片头等）。
   带 !important 以对抗 academic_style.css「body .site-shell h1 全站品牌紫」规则，
   否则深紫 Hero 上的标题会被覆盖成紫色、与背景同色而不可见。 */
.contact-box h2,
.hero h1, .hero h2, .hero h3,
.dark-section h1, .dark-section h2,
.footer h1, .footer h2,
.detail-header h1,
.ag-hero h1, .demo-hero h1, .insights-hero h1, .insights-cta h2,
.ei-hero h1, .ari-hero h1, .argument-report-head h3,
.hero-section.submit-hero h1,
[style*="background: #4A3A6B"] h1,
[style*="background: #4A3A6B"] h2,
[class*="dark-bg"] h1,
[class*="dark-bg"] h2 {
    color: #FFFFFF !important;
}
/* .contact-box 兜底：以更高特异性对抗 academic_style.css 的 body .site-shell h2 紫色 !important */
body .site-shell .contact-box h2,
body .site-shell .contact-box h3,
body .site-shell .contact-box h4 {
    color: #FFFFFF !important;
}
/* 暗紫渐变容器内正文/链接保持白色（2026-08-09 暗紫背景对比度修复）
   平台全局裸元素选择器（p/li/td、h1-h6）会覆盖这些容器 color:#fff 的继承，
   此处逐项补白；金色强调元素（徽章/统计数字/金色按钮）不受影响。 */
.contact-box p, .contact-box li,
.jp-hero h1, .jp-hero li,
.jp-cta h2, .jp-cta li,
.eb-cta h3, .eb-cta li,
.recruit-cta p, .recruit-cta li,
.v-hero p, .v-hero li,
.v-cta p, .v-cta li,
.b-hero p, .b-hero li,
.b-cta p, .b-cta li,
[class*="dark-bg"] h3,
[class*="dark-bg"] p,
[class*="dark-bg"] li {
    color: #FFFFFF;
}

/* ===== 移动端 Header 紧凑化（修复 375px 横向溢出，2026-08-11）===== */
@media (max-width: 520px) {
    body {
        overflow-x: hidden;
    }
    .site-header-inner {
        width: calc(100% - 16px);
        gap: 4px;
    }
    .site-brand .brand {
        gap: 6px;
    }
    .brand-mark {
        height: 34px;
    }
    .brand strong {
        font-size: 12px;
        max-width: 92px;
    }
    .brand small {
        display: none;
    }
    .header-actions {
        gap: 2px;
        margin-left: 2px;
    }
    .auth-nav {
        margin-left: 0;
        gap: 0;
    }
    .auth-nav a {
        padding: 3px 4px;
        font-size: 12px;
        min-height: 28px;
    }
    .auth-nav span {
        display: none;
    }
    .lang-toggle {
        height: 30px;
        padding: 2px;
        gap: 2px;
    }
    .lang-btn {
        min-width: 26px;
        height: 24px;
        padding: 0 5px;
        font-size: 12px;
    }
    /* platform_base.html 的紧凑语言切换器 */
    .lang-switcher {
        padding: 2px;
        gap: 2px;
    }
    .lang-switcher button {
        padding: 3px 8px;
        font-size: 0.78rem;
    }
}

/* SNX_LOGO_MAXW_SCOPE(20261012): login-page/footer logos get the same horizontal cap,
   aligned with the header .brand-logo max-width:180px so oversized graphics cannot burst the container. */
.auth-logo .brand-logo { max-width: 180px; }

/* ============================================================
   页脚品牌紫底改版（2026-10-12）
   ------------------------------------------------------------
   品牌紫 #4A3A6B 底 + 白字；三栏：品牌区 / 快速链接 / 订阅
   版权与备案独立成行、居中、小字号。
   采用覆盖式追加，兼容 base.html 与 platform_base.html 两种结构。
   规范：紫底 #4A3A6B → 文字 #FFFFFF；金 #D4AF37 仅作点缀与链接 hover
   ============================================================ */
.site-footer {
    border-top: none;
    background: #4A3A6B;
    color: #FFFFFF;
}
.footer-inner {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 22px;
}
.footer-cols {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1.35fr;
    gap: 32px 40px;
    align-items: start;
    text-align: left;
}

/* ---- 品牌区 ---- */
.footer-col-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-col-brand .footer-logo strong {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}
.footer-col-brand .brand-mark {
    height: 32px;
    border: none;
    box-shadow: none;
}
.footer-brand-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.75;
    max-width: 300px;
}

/* ---- 快速链接 ---- */
.footer-col-title {
    display: block;
    margin-bottom: 14px;
    color: #D4AF37;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.footer-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
}
.site-footer .footer-link-grid a,
.site-footer .footer-inner > a:not(.footer-beian) {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.site-footer .footer-link-grid a:hover,
.site-footer .footer-inner > a:not(.footer-beian):hover {
    color: #D4AF37;
    text-decoration: underline;
}

/* ---- 订阅区（紫底上的白卡） ---- */
.footer-col-subscribe .footer-subscribe,
.site-footer .footer-subscribe {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
}
.site-footer .footer-subscribe-title {
    color: #FFFFFF;
}
.site-footer .footer-subscribe-link {
    color: #D4AF37;
}
.site-footer .footer-subscribe-link:hover {
    color: #F4CF47;
}
.site-footer .footer-subscribe-email {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.96);
    color: #2D2A3E;
}
.site-footer .footer-subscribe-email:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.28);
}
.site-footer .footer-subscribe-submit {
    background: linear-gradient(135deg, #D4AF37 0%, #C09A22 100%);
    color: #4A3A6B;
    box-shadow: none;
}
.site-footer .footer-subscribe-submit:hover {
    filter: brightness(1.06);
}
.site-footer .footer-subscribe-type {
    color: rgba(255, 255, 255, 0.86);
}
.site-footer .footer-subscribe-type input {
    accent-color: #D4AF37;
}

/* ---- 关注我们（二维码，仅 base.html 有） ---- */
.footer-follow {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.site-footer .footer-follow-head {
    text-align: left;
}
.site-footer .footer-follow-title {
    color: #FFFFFF;
}
.site-footer .footer-follow-desc {
    color: rgba(255, 255, 255, 0.72);
}
.site-footer .footer-follow-grid {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.site-footer .footer-follow-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
}
.site-footer .footer-follow-name {
    color: #FFFFFF;
}
.site-footer .footer-follow-tip {
    color: rgba(255, 255, 255, 0.68);
}
.site-footer .footer-follow-fallback {
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ---- 底部版权行（独立一行、居中、小字号） ---- */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.site-footer .footer-copyright {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12.5px;
}
.footer-bottom-sep {
    color: rgba(255, 255, 255, 0.35);
}
.site-footer .footer-beian {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    text-decoration: none;
}
.site-footer .footer-beian:hover {
    color: #D4AF37;
}

/* ---- 响应式 ---- */
@media (max-width: 900px) {
    .footer-cols {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col-subscribe {
        grid-column: 1 / -1;
    }
}
@media (max-width: 640px) {
    .footer-inner {
        padding: 30px 18px 20px;
    }
    .footer-cols {
        grid-template-columns: 1fr;
        gap: 26px;
        text-align: center;
    }
    .footer-col-brand .footer-logo,
    .site-footer .footer-follow-head {
        justify-content: center;
        text-align: center;
    }
    .footer-brand-desc {
        max-width: none;
        margin: 0 auto;
    }
    .footer-link-grid {
        justify-items: center;
    }
    .site-footer .footer-follow-grid {
        justify-content: center;
    }
    .footer-bottom {
        text-align: center;
    }
}

/* ============================================================
   页眉排版优化（2026-10-12）
   ------------------------------------------------------------
   目标：保持浅底（不改底色），只做 3 件事：
     1) logo 尺寸约束，避免撑高页头
     2) 导航项间距与对齐更紧凑，去掉"松散感"
     3) 导航 hover 改品牌金下划线；语言切换按钮加品牌金边框
   采用覆盖式追加，同时作用于 base.html 与 platform_base.html。
    不改 .site-header 背景，保持现有浅色毛玻璃底。
   ============================================================ */

/* logo：约束高度与最大宽度，保持圆形金边 */
.brand-mark {
    height: 46px;
    width: 46px;
    flex: 0 0 46px;
}
.brand-logo {
    height: 100%;
    width: auto;
    max-width: 46px;
    object-fit: contain;
}
.site-brand .brand {
    gap: 10px;
}
.site-brand .brand strong {
    font-size: 18px;
    line-height: 1.2;
}
.site-brand .brand small {
    font-size: 12.5px;
    line-height: 1.3;
}

/* 导航：收紧间距、统一行高、金色 hover 下划线 */
.site-nav {
    gap: 2px;
    align-items: center;
}
.site-nav a,
.site-nav .dropdown-toggle,
.site-nav .nav-link {
    position: relative;
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
}
.site-nav a:hover,
.site-nav .dropdown-toggle:hover,
.site-nav .nav-link:hover {
    background: var(--purple-soft, #F0EDF5);
    color: #4A3A6B;
}
/* 品牌金下划线（hover 时出现） */
.site-nav > .nav-item > a::after,
.site-nav > .nav-item > .dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 4px;
    height: 2px;
    background: #D4AF37;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}
.site-nav > .nav-item > a:hover::after,
.site-nav > .nav-item > .dropdown-toggle:hover::after,
.site-nav > .nav-item.is-open > .dropdown-toggle::after {
    transform: scaleX(1);
}
/* 下拉箭头不参与下划线 */
.site-nav .nav-arrow::after,
.site-nav .dropdown-toggle .arrow::after {
    display: none;
}

/* 右侧动作区：语言切换按钮品牌金边框 */
.header-actions {
    gap: 10px;
    margin-left: 14px;
    flex: 0 0 auto;
}
.lang-switcher {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.lang-switcher button,
.lang-toggle .lang-btn {
    border: 1px solid #D4AF37 !important;
    color: #4A3A6B !important;
    background: transparent !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}
.lang-switcher button:hover,
.lang-toggle .lang-btn:hover,
.lang-switcher button.active,
.lang-toggle .lang-btn.active {
    background: #4A3A6B !important;
    color: #FFFFFF !important;
    border-color: #4A3A6B !important;
}

/* 用户名下拉按钮：品牌紫文字 + 紧凑 */
.user-dropdown-btn {
    font-size: 14px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-dropdown-btn > span:first-child {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}
.user-dropdown-btn:hover {
    background: #F0EDF5;
}
.user-dropdown-menu a:hover {
    background: #F0EDF5 !important;
}

/* 移动端：logo 再小一档，避免挤占 */
@media (max-width: 768px) {
    .brand-mark {
        height: 38px;
        width: 38px;
        flex: 0 0 38px;
    }
    .brand-logo {
        max-width: 38px;
    }
    .site-brand .brand strong {
        font-size: 16px;
    }
}

/* ===== Footer QR Codes v3 ===== */
.site-footer .footer-follow-grid {
  display: flex; gap: 20px; margin-top: 24px;
  flex-wrap: wrap; justify-content: flex-start;
}
.site-footer .qr-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 20px; border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(212,175,55,0.40);
  backdrop-filter: blur(4px);
  transition: all .25s ease;
  min-width: 120px; text-align: center;
}
.site-footer .qr-card:hover {
  background: rgba(255,255,255,0.16);
  border-color: #D4AF37;
  transform: translateY(-2px);
}
.site-footer .qr-card img {
  width: 100px; height: 100px; border-radius: 6px;
  display: block; background: #fff; padding: 6px;
  box-sizing: content-box;
}
.site-footer .qr-label {
  font-size: 14px; font-weight: 500;
  color: #FFFFFF !important;
  letter-spacing: .5px; margin: 0; line-height: 1.2;
}
.site-footer .qr-hint {
  font-size: 12px;
  color: rgba(212,175,55,0.9) !important;
  margin: 0; line-height: 1.2;
}
@media (max-width: 768px) {
  .site-footer .footer-follow-grid { justify-content: center; }
  .site-footer .qr-card { min-width: 100px; padding: 12px 16px; }
  .site-footer .qr-card img { width: 80px; height: 80px; }
}
@media (max-width: 480px) {
  .site-footer .qr-card { min-width: 88px; padding: 10px 12px; }
  .site-footer .qr-card img { width: 72px; height: 72px; }
}

/* ============================================================
   页脚二维码区终修 · 白底紫字（2026-10-12 修正版）
   ------------------------------------------------------------
   根因（实测）：
     1. 真实类名是 .footer-follow-card / -name / -tip，
        此前追加的 .qr-card / .qr-label / .qr-hint 在 HTML 中不存在 → 规则落空。
     2. .footer-follow 外层仍是「白色渐变」容器，且 .footer-follow-name 为 #FFFFFF，
        造成「白底 + 白字」对比度为 0，文字不可见。
   本段：拆掉外层白容器 → 卡片实心白底 → 卡内文字品牌紫 / 深金。
   （保留 .footer-follow-title / -desc 的白色，因其位于紫色底上，可读）
   ============================================================ */

/* ---- 1) 拆掉外围白容器（关键：此前遗漏了 background） ---- */
.site-footer .footer-follow {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 24px 0 0 !important;
    margin-top: 30px !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
}

/* ---- 2) 卡片：实心白底 + 品牌紫细边（坐在紫底上，清晰分离） ---- */
.site-footer .footer-follow-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(74, 58, 107, 0.15) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14) !important;
}

/* ---- 3) 卡内机构名：品牌紫 ---- */
.site-footer .footer-follow-card .footer-follow-name {
    color: #4A3A6B !important;
    font-weight: 600 !important;
}

/* ---- 4) 卡内提示语：深金（白底上可读） ---- */
.site-footer .footer-follow-card .footer-follow-tip {
    color: #B8860B !important;
}

/* ---- 5) 卡内二维码图：白底上收边，避免"白盒套白盒" ---- */
.site-footer .footer-follow-card img {
    border: 1px solid #EDE8F4 !important;
    background: #FFFFFF !important;
}

/* ---- 6) 移动端 ---- */
@media (max-width: 767px) {
    .site-footer .footer-follow-grid { justify-content: center !important; }
    .site-footer .footer-follow-head { text-align: center !important; }
}

/* ===== SNX_QRCENTER(20261012): center the footer QR-code area =====
   root cause: the later rule at L4379 `.site-footer .footer-follow-grid{justify-content:flex-start}`
        overrides every earlier declaration; the old center rule only sat inside @media(max-width:767px) and never applied on desktop.
   this block sits at end of file (outside media queries) and wins via same selector + !important. */
.site-footer .footer-follow-grid {
    justify-content: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* ===== Footer QR v3: 透明背景 + 品牌色文字 ===== */
/* 2026-10-12：去除.footer-follow 白底，统一紫底 */
.site-footer .footer-follow {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* 白卡保持 + 品牌紫边框强化 */
.site-footer .footer-follow-card {
  border-color: rgba(74,58,107,0.15) !important;
}

/* 标题/名称：品牌紫加粗 */
.site-footer .footer-follow-title,
.site-footer .footer-follow-name {
  font-weight: 700 !important;
}

/* 描述/提示：深金 */
.site-footer .footer-follow-desc,
.site-footer .footer-follow-tip {
  color: #B8860B !important;
}

/* ===== SNX_QRCENTER_FIX2(20261012): fix grid shrink =====
   after adding margin:0 auto above, .footer-follow-grid as a grid item "shrank to content width"
   (measured width 526 instead of the parent's 1152) => 3 cards wrapped into 2+1.
   added width:100% to fill first (then capped by max-width) so justify-content:center takes effect. */
.site-footer .footer-follow-grid {
    width: 100% !important;
}

/* SNX_QR_NAME_HIDE(20261013): Hide QR card names, keep gold tips */
.footer-follow-name,
.qr-label {
display: none !important;
}

/* SNX_QR_NAME_HIDE(20261013): hide QR card name */
.footer-follow-name,
.qr-label {
  display: none !important;
}
