/* ===== article.css — Shared styles for SGS article pages ===== */

/* CSS Variables */
:root {
    --bg-primary: rgb(20, 40, 42);
    --bg-nav: rgba(15, 25, 30, 0.95);
    --bg-footer: rgb(15, 25, 30);
    --text-primary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-dim: rgba(255, 255, 255, 0.4);
    --text-faint: rgba(255, 255, 255, 0.35);
    --text-ghost: rgba(255, 255, 255, 0.3);
    --accent: rgb(140, 200, 180);
    --border-light: rgba(255, 255, 255, 0.15);
    --border-faint: rgba(255, 255, 255, 0.1);
    --border-ghost: rgba(255, 255, 255, 0.08);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

/* i18n */
.i18n-zh { display: none; }
html[lang="zh"] .i18n-en { display: none; }
html[lang="zh"] .i18n-zh { display: inline; }

/* Body */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.8;
}

/* Language Toggle */
.lang-toggle {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    font-family: var(--font-sans);
}
.lang-toggle:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Nav Right */
.nav-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 32px 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
}

/* Logo */
.logo {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 8px;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.logo-sub {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 3.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-top: 4px;
}

/* Back Link */
nav a.back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}
nav a.back:hover { color: #fff; }

/* Article Layout */
article {
    max-width: 720px;
    margin: 0 auto;
    padding: 160px 32px 120px;
}

/* Tag & Date */
.tag {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}
.date {
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 48px;
}

/* Headings */
h1 {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 400;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 16px;
}
h2 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    color: #fff;
    margin-top: 56px;
    margin-bottom: 20px;
}

/* Paragraphs */
p {
    font-size: 16px;
    margin-bottom: 24px;
}

/* Highlight Block */
.highlight {
    border-left: 2px solid rgba(140, 200, 180, 0.5);
    padding-left: 24px;
    margin: 40px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

/* Stats Grid */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}
.stat {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}
.stat-value {
    font-family: var(--font-serif);
    font-size: 28px;
    color: #fff;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* Source */
.source {
    font-size: 13px;
    color: var(--text-ghost);
    border-top: 1px solid var(--border-faint);
    padding-top: 32px;
    margin-top: 64px;
}

/* Footer */
footer {
    padding: 48px 64px;
    background: var(--bg-footer);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
footer span {
    font-size: 12px;
    color: var(--text-ghost);
}

/* Responsive */
@media (max-width: 768px) {
    nav { padding: 24px 32px; }
    h1 { font-size: 30px; }
    .stats { grid-template-columns: 1fr; }
    footer { padding: 32px; flex-direction: column; gap: 12px; }
}
