/* ============================
   T.A.L.O.S V2.0 - Nature Style
   With Dark Mode & Localization
   ============================ */
:root {
    /* Light Mode (Default) */
    --bg-main: #FFFFFF;
    --bg-sub: #F8F9FA;
    --text-main: #121212;
    --text-muted: #666666;
    --border-color: #E0E0E0;
    --brand-red: #D12020;
    --brand-gold: #D4AF37;
    --font-serif: 'Playfair Display', 'Noto Serif SC', 'Times New Roman', serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="dark"] {
    /* Dark Mode (Terminal) */
    --bg-main: #121212;
    --bg-sub: #1A1A1A;
    --text-main: #EAEAEA;
    --text-muted: #A0A0A0;
    --border-color: #333333;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

a {
    color: var(--text-main);
    text-decoration: none;
}

a:hover {
    color: var(--brand-red);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
    background: #000000;
    color: #888888;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-blight {
    color: var(--brand-red);
    font-weight: bold;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-links {
    display: flex;
    gap: 15px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.top-bar-links a {
    color: #888;
    text-transform: uppercase;
}

.top-bar-links a:hover {
    color: #fff;
    text-decoration: none;
}

.top-bar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid #444;
    padding-left: 20px;
}

.lang-toggle,
.theme-toggle {
    cursor: pointer;
    padding: 2px 8px;
    border: 1px solid #444;
    background: transparent;
    color: #888;
    font-family: var(--font-mono);
    font-size: 10px;
    transition: all 0.2s;
}

.lang-toggle:hover,
.theme-toggle:hover {
    border-color: var(--brand-red);
    color: #fff;
}

/* Layout Wrappers for Sticky Header */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-main);
    transition: background 0.3s, box-shadow 0.3s;
    will-change: transform;
}

.header-wrapper.is-sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .header-wrapper.is-sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
}

/* --- Main Header / Masthead --- */
.masthead {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.3s ease;
    will-change: padding;
    contain: layout style;
}

.masthead .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.masthead.is-sticky {
    padding: 15px 0;
}

.masthead-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-menu-btn {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.nav-menu-btn:hover {
    color: var(--brand-red);
}

.masthead-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.masthead-title {
    font-family: var(--font-serif);
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--text-main);
    line-height: 1;
    transition: font-size 0.3s ease;
}

.masthead.is-sticky .masthead-title {
    font-size: 28px;
}

.masthead-depts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
    transition: opacity 0.3s ease;
}

.masthead.is-sticky .masthead-depts {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.dept-item {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.masthead-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.nav-search {
    font-size: 16px;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.2s;
}

.nav-search:hover {
    color: var(--brand-red);
}

.btn-member {
    background-color: var(--brand-red);
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 11px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s;
}

.btn-member:hover {
    background-color: #B71C1C;
}

.btn-login {
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 11px;
    padding: 8px 18px;
    border: 2px solid var(--text-main);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.btn-login:hover {
    background-color: var(--text-main);
    color: var(--bg-main);
}

/* --- Navigation --- */
.main-nav {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu-btn {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    padding: 14px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-search {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

/* --- Announcement Banner --- */
.announcement-banner {
    background: #1A1D20;
    border-bottom: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: bannerScan 4s ease-in-out infinite;
}

@keyframes bannerScan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.announcement-banner a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 40px;
    text-decoration: none;
    transition: background 0.2s;
    max-width: 1280px;
    margin: 0 auto;
}

.announcement-banner a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.banner-tag {
    background: var(--brand-red);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.banner-text {
    color: #ccc;
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0.5px;
    flex: 1;
}

.banner-arrow {
    color: #888;
    font-size: 18px;
    transition: transform 0.2s, color 0.2s;
}

.announcement-banner a:hover .banner-arrow {
    transform: translateX(4px);
    color: #fff;
}

.announcement-banner a:hover .banner-text {
    color: #fff;
}

/* --- Hero Section (Centered Quote) --- */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 40px 40px;
    margin-bottom: 40px;
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 30px;
}

.hero-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.hero-hex {
    font-size: 32px;
    color: var(--brand-gold);
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(189, 163, 101, 0.3));
    animation: hexPulse 3s ease-in-out infinite;
}

@keyframes hexPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 6px rgba(189, 163, 101, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(189, 163, 101, 0.6));
    }
}

.hero-quote {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 900;
    color: var(--text-main);
    text-align: center;
    line-height: 1.4;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.hero-quote-zh {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
}

.hero-bottom-line {
    width: 100%;
    max-width: 800px;
    height: 2px;
    background: var(--text-main);
}

.news-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 15px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    align-items: center;
}

.news-meta .highlight {
    color: var(--brand-red);
    font-weight: bold;
}

.news-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

/* --- Content Grid (Main + Sidebar) --- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    padding-bottom: 60px;
}

/* --- Editorial Section --- */
.editorial-section {
    padding-bottom: 20px;
}

.editorial-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 3px solid var(--brand-gold);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.editorial-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Editorial Main: left image (40%) + right text (60%) */
.editorial-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 30px;
}

.editorial-media {
    display: flex;
    flex-direction: column;
}

.editorial-media .editorial-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-sub);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0;
}

.editorial-media .editorial-image-placeholder::after {
    content: '[SCAN: SECTOR-4]';
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.editorial-text {
    display: flex;
    flex-direction: column;
}

.editorial-text h2 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 8px;
}

.editorial-text h2 a {
    color: var(--text-main);
}

.editorial-text h2 a:hover {
    color: var(--brand-red);
    text-decoration: none;
}

.editorial-text h3 {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.editorial-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: justify;
}

.editorial-cta {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-gold);
    margin-top: auto;
}

.editorial-cta:hover {
    color: var(--brand-red);
    text-decoration: none;
}

/* --- Research Section --- */
.research-section h2,
.research-section h3 {
    font-family: var(--font-serif);
}

/* --- Research Section --- */
.research-section {
    padding: 40px 0;
}

.research-section h2,
.research-section h3 {
    font-family: var(--font-serif);
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 10px;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.section-header .vol-info {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.research-list {
    display: flex;
    flex-direction: column;
}

.research-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.research-item:last-child {
    border-bottom: none;
}

.research-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.research-type {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--brand-gold);
    border: 1px solid var(--brand-gold);
    padding: 4px 8px;
    align-self: flex-start;
    letter-spacing: 1px;
}

.research-type.retracted-label {
    color: var(--brand-red);
    border-color: var(--brand-red);
    font-weight: 900;
}

.research-type.retracted {
    color: var(--text-muted);
    border-color: var(--text-muted);
    text-decoration: line-through;
}

.research-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.research-doi {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

.research-content {
    display: flex;
    flex-direction: column;
}

.research-content-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.research-item.has-image .research-content-top {
    grid-template-columns: 1fr 200px;
}

.research-thumbnail {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #0a3d5c 0%, #0d6b5e 30%, #1a8f6e 50%, #d4af37 80%, #f4c542 100%);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.research-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px);
}

.research-content h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.research-content h3 a:hover {
    color: var(--brand-red);
    text-decoration: none;
}

.research-content h3.retracted {
    text-decoration: line-through;
    text-decoration-color: var(--brand-red);
    text-decoration-thickness: 2px;
    opacity: 0.7;
}

.research-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.research-abstract {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.research-authors {
    font-size: 13px;
    color: var(--text-main);
    font-weight: bold;
}

/* === ENHANCED RETRACTION NOTICE === */
.retraction-notice {
    background: rgba(209, 32, 32, 0.05);
    border-left: 4px solid var(--brand-red);
    padding: 15px;
    margin-top: 20px;
}

.retraction-notice-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: bold;
    color: var(--brand-red);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.retraction-notice-text {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.6;
}

.view-all-research {
    display: block;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: bold;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.view-all-research:hover {
    text-decoration: none;
    opacity: 0.8;
    color: var(--brand-gold);
}

/* --- Sidebar Updates --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* News sidebar (moved to global sidebar) */
.news-sidebar {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.news-header {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid var(--brand-gold);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.news-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand-red);
    font-weight: 700;
}

.sidebar-submit-btn {
    display: block;
    background-color: var(--brand-gold);
    color: #fff;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 16px;
    margin-bottom: 20px;
    transition: background-color 0.2s;
    text-decoration: none;
    border-radius: 4px;
}

.sidebar-submit-btn:hover {
    background-color: #B8972E;
    color: #fff;
    text-decoration: none;
}

.sidebar-section {
    border-top: 2px solid var(--text-main);
    padding-top: 10px;
}

.sidebar-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.trending-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trending-item {
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 1.4;
    display: flex;
    counter-increment: trending-counter;
}

.trending-item::before {
    content: counter(trending-counter) ".";
    font-family: var(--font-mono);
    color: var(--brand-gold);
    font-weight: bold;
    min-width: 24px;
}

.trending-item a {
    color: var(--text-main);
    transition: color 0.2s;
}

.trending-item a:hover {
    color: var(--brand-red);
    text-decoration: none;
}

/* --- Footer (3-column layout) --- */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #fff;
}

.footer-brand p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    max-width: 400px;
}

.footer-col h3 {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--brand-gold);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #aaa;
    font-size: 13px;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #666;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: #666;
    text-transform: uppercase;
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: #aaa;
}

/* --- Nav Separator Lines (竖线分隔符) --- */
.nav-links a:not(:last-child)::after {
    content: '|';
    color: var(--border-color);
    margin-left: 24px;
    font-weight: 300;
    pointer-events: none;
}

/* --- Editorial Image Caption --- */
.editorial-caption {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
}

/* --- More News Link --- */
.more-news-link {
    display: block;
    text-align: right;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.more-news-link:hover {
    color: var(--brand-gold);
    opacity: 0.8;
    text-decoration: none;
}

.news-category {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Action Cards (Preprint / CfP) --- */
.action-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 0 60px;
}

.action-card {
    background: var(--bg-sub);
    border: 1px solid var(--border-color);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    transition: background 0.3s, border-color 0.3s;
}

.action-card-content {
    flex: 1;
}

.action-card-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.action-card-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.action-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.action-card-btn {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px 28px;
    border: 2px solid var(--text-main);
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.action-card-btn:hover {
    background: var(--text-main);
    color: var(--bg-main);
    text-decoration: none;
}

/* --- COPE Badge --- */
.cope-badge {
    border: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
    transition: border-color 0.3s;
}

.cope-badge-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.cope-hex {
    font-size: 36px;
    color: var(--brand-gold);
}

.cope-badge-title {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.cope-badge-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Metrics Grid (2x2) --- */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metrics-grid .metric-item {
    display: flex;
    flex-direction: column;
}

.metrics-grid .metric-item-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.metrics-grid .metric-item-value {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
}

.metrics-grid .metric-item-unit {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Gold Research Titles --- */
.research-content h3 a {
    color: var(--brand-gold);
}

.research-content h3 a:hover {
    color: var(--brand-red);
    text-decoration: none;
}

/* --- Footer Portal Branding --- */
.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.footer-hex-icon {
    font-size: 40px;
    color: var(--brand-gold);
    line-height: 1;
    display: flex;
    align-items: center;
    height: 40px;
}

.footer-brand h2 {
    margin-bottom: 4px;
}

.footer-brand-subtitle {
    font-family: var(--font-sans);
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.footer-brand-desc {
    font-size: 13px;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-doi {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #666;
    margin-left: auto;
}

/* --- Navigation Content Sections --- */
.nav-content-section {
    padding: 60px 0;
    border-top: 2px solid var(--text-main);
}

.nav-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.nav-section-header h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 900;
}

.nav-section-header .section-vol {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.nav-section-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 30px;
    max-width: 800px;
}

.nav-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.nav-card {
    border: 1px solid var(--border-color);
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
}

.nav-card:hover {
    border-color: var(--brand-gold);
    transform: translateY(-2px);
}

.nav-card-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 700;
}

.nav-card h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.nav-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.nav-card .nav-card-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
    display: flex;
    gap: 12px;
}

.nav-featured-list {
    list-style: none;
    padding: 0;
}

.nav-featured-list li {
    padding: 16px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.nav-featured-list li:last-child {
    border-bottom: none;
}

.nav-featured-list .featured-num {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 900;
    color: var(--brand-gold);
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
}

.nav-featured-list .featured-text h4 {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.nav-featured-list .featured-text p {
    font-size: 13px;
    color: var(--text-muted);
}

.nav-info-panel {
    background: var(--bg-sub);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-top: 20px;
}

.nav-info-panel h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--brand-red);
}

.nav-info-panel p,
.nav-info-panel li {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.nav-info-panel ul {
    list-style: none;
    padding: 0;
}

.nav-info-panel ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-info-panel ul li:last-child {
    border-bottom: none;
}

/* --- Preprint Tabs (四级漏斗) --- */
.preprint-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.preprint-tabs .pt-tab {
    padding: 12px 20px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}

.preprint-tabs .pt-tab:hover {
    color: var(--text-main);
}

.preprint-tabs .pt-tab.active {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}

.preprint-tabs .pt-arrow {
    color: var(--text-muted);
    font-size: 12px;
    padding: 0 4px;
    user-select: none;
}

/* --- Preprint Filter Bar --- */
.preprint-filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.preprint-filter-bar label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.preprint-filter-bar select {
    font-family: var(--font-sans);
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    cursor: pointer;
}

.preprint-filter-bar .sort-btn {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.preprint-filter-bar .sort-btn:hover,
.preprint-filter-bar .sort-btn.active {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

/* --- Preprint Cards --- */
.preprint-card {
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.preprint-card:hover {
    border-color: #c8a96e;
}

.preprint-card .pc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.preprint-card .pc-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.preprint-card .pc-meta {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.preprint-card .pc-tags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.preprint-card .pc-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 2px 8px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.preprint-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.preprint-rating .shard {
    color: #c8a96e;
    font-size: 16px;
}

.preprint-rating .score {
    font-weight: 700;
    color: var(--text-main);
    font-size: 16px;
}

/* --- Open Letter Block --- */
.letter-block {
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-bottom: 2rem;
    position: relative;
}

.letter-block::before {
    content: '⬡';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-main);
    padding: 0 12px;
    font-size: 18px;
    color: var(--brand-red);
}

.letter-block h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-main);
}

.letter-block p {
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.letter-block .letter-sign {
    text-align: right;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-muted);
    margin-top: 2rem;
    font-size: 14px;
}

/* --- Reviewer Team Grid --- */
.reviewer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 3rem;
}

.reviewer-card {
    border: 1px solid var(--border-color);
    padding: 28px 20px;
    text-align: center;
    transition: border-color 0.2s;
}

.reviewer-card:hover {
    border-color: #c8a96e;
}

.reviewer-card .rc-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
    color: var(--brand-red);
    border: 2px solid var(--border-color);
}

.reviewer-card .rc-name {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.reviewer-card .rc-role {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--brand-red);
    margin-bottom: 10px;
}

.reviewer-card .rc-bio {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- News Filter Buttons --- */
.news-filter-btn.active,
.news-filter-btn:hover {
    background: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    color: #fff !important;
}

/* --- Journal Unavailable Badge --- */
.journal-unavailable {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    margin-top: 8px;
}

/* --- Modal System --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    max-width: 640px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    transition: color 0.2s;
    font-family: var(--font-sans);
}

.modal-close:hover {
    color: var(--brand-red);
}

.modal-content h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
}

.modal-content .modal-subtitle {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 14px;
    text-align: justify;
}

.modal-content h3 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--brand-red);
}

.modal-content ul {
    list-style: none;
    padding: 0;
}

.modal-content ul li {
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-sub);
    border-bottom: 1px solid var(--border-color);
    line-height: 1.6;
}

.modal-content ul li:last-child {
    border-bottom: none;
}

.modal-content .modal-stamp {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 900px) {

    .hero-section {
        padding: 30px 20px;
    }

    .hero-quote {
        font-size: 24px;
    }

    .hero-quote-zh {
        font-size: 16px;
    }

    .editorial-main {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .masthead-center {
        display: none;
        /* simple mobile fallback */
    }

    .research-item {
        grid-template-columns: 1fr;
    }

    .research-item.has-image .research-content-top {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .nav-card-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 24px;
    }
}

.footer-col h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #666;
    font-size: 12px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .research-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav-links {
        display: none;
    }

    .masthead-title {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .top-bar-controls {
        gap: 8px;
    }
}

/* ===== P4: Skeleton Loading =====  */
.skeleton-block {
    animation: skeletonFadeIn 0.3s ease;
}

.skeleton-line {
    background: linear-gradient(90deg, var(--bg-sub) 25%, var(--border-color) 50%, var(--bg-sub) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes skeletonFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== P4: View Transition Animation ===== */
.view-fade-in {
    animation: viewFadeSlideIn 0.35s ease-out;
}

@keyframes viewFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== P4: Vote Button Micro-interactions ===== */
.vote-btn {
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--brand-red);
    background: transparent;
    color: var(--brand-red);
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.vote-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(209, 32, 32, 0.2);
}

.vote-btn:active {
    transform: scale(0.95);
}

.vote-btn.voted {
    background: var(--brand-red);
    color: #fff;
}

.vote-btn.voted:hover {
    background: #B71C1C;
    border-color: #B71C1C;
}

.vote-pulse {
    animation: votePulse 0.3s ease;
}

@keyframes votePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* Vote card hover */
.vote-card {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vote-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .vote-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* ============ AUTH MODALS ============ */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.auth-modal-card {
    background: var(--bg-main, #fff);
    border: 1px solid var(--border-color, #ddd);
    padding: 48px 40px;
    max-width: 440px;
    width: 90%;
    position: relative;
    animation: authSlideUp 0.35s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.auth-modal-close:hover {
    color: var(--text-main);
}

.auth-modal-logo {
    font-size: 48px;
    color: var(--brand-gold, #c8a96e);
    text-align: center;
    margin-bottom: 12px;
}

.auth-modal-card h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 4px;
}

.auth-modal-subtitle {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-field input,
.auth-field select {
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.auth-field input:focus,
.auth-field select:focus {
    border-color: var(--brand-gold, #c8a96e);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
}

.auth-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.auth-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.auth-checkbox label {
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
}

.auth-error {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--brand-red, #D32F2F);
    min-height: 18px;
}

.auth-submit-btn {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px;
    border: none;
    background: var(--brand-gold, #c8a96e);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.auth-submit-btn:hover {
    background: #B8972E;
}

.auth-submit-btn:active {
    transform: scale(0.98);
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
}

.auth-switch a {
    color: var(--brand-gold, #c8a96e);
    font-weight: 700;
    text-decoration: none;
}

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

/* ============ USER DASHBOARD ============ */
.user-info-card {
    border: 1px solid var(--border-color);
    padding: 32px;
    margin-bottom: 32px;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.user-avatar {
    font-size: 48px;
    color: var(--brand-gold);
    width: 72px;
    height: 72px;
    border: 2px solid var(--brand-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-info-text h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 4px;
}

.user-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.auth-logout-btn {
    margin-left: auto;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-logout-btn:hover {
    border-color: var(--brand-red, #D32F2F);
    color: var(--brand-red, #D32F2F);
}

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

.user-stat-card {
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
}

.user-stat-value {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 900;
    color: var(--brand-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.user-stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.user-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}

.user-tab {
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.user-tab:hover {
    color: var(--text-main);
}

.user-tab.active {
    color: var(--brand-gold);
    border-bottom-color: var(--brand-gold);
}

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

.user-history-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.user-history-item:last-child {
    border-bottom: none;
}

.user-history-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.user-history-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.user-history-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 8px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* logged-in top bar state */
.top-bar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--brand-gold);
    cursor: pointer;
    letter-spacing: 1px;
}

.top-bar-user:hover {
    text-decoration: underline;
}

/* ============ SUBSCRIBE LOCK ANIMATION ============ */
.subscribe-locked {
    position: relative;
    animation: lockPulse 2s ease-in-out infinite;
    opacity: 0.75;
}

.subscribe-locked:hover {
    opacity: 1;
}

@keyframes lockPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* ============ ACADEMIC PAGE SECTIONS (Nature Style) ============ */
.page-section .container {
    max-width: 720px;
    padding-top: 60px;
    padding-bottom: 80px;
}

.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 16px;
}

.page-title-en {
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    font-size: 24px;
}

.page-rule {
    width: 60px;
    height: 3px;
    background: #D12020;
    margin-top: 16px;
}

.page-epigraph {
    font-family: var(--font-serif);
    font-size: 18px;
    font-style: italic;
    color: var(--text-muted);
    border-left: 3px solid #D12020;
    padding: 16px 24px;
    margin: 0 0 40px 0;
    background: rgba(209, 32, 32, 0.03);
    line-height: 1.8;
}

[data-theme="dark"] .page-epigraph {
    background: rgba(209, 32, 32, 0.06);
}

.page-body {
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 2;
    color: var(--text-main);
}

.page-body p {
    margin-bottom: 24px;
    text-align: justify;
}

.page-subheading {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: #D12020;
    margin: 36px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}