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

        :root {
            --bg-root: #080B12;
            --bg-surface: #0F1219;
            --bg-card: #141820;
            --bg-elevated: #1A1F2A;

            --border: #1E2330;
            --border-hover: #2C3244;

            --text-1: #E8ECF4;
            --text-2: #A0A8BD;
            --text-3: #6B7289;
            --text-4: #454C60;

            --accent: #00D4AA;
            --accent-dim: #00D4AA18;
            --accent-glow: #00D4AA30;

            --font-h: 'Sora', sans-serif;
            --font-b: 'DM Sans', sans-serif;
            --font-c: 'JetBrains Mono', monospace;

            --r-s: 6px;
            --r-m: 10px;
            --r-l: 14px;

            --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
            --dur: 0.3s;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: var(--font-b);
            background: var(--bg-root);
            color: var(--text-1);
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
            min-height: 100vh;
        }

        ::selection {
            background: var(--accent-dim);
            color: var(--accent);
        }

        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

        .container {
            max-width: 1120px;
            margin: 0 auto;
            padding: 0 32px;
        }

        /* ---- Header ---- */
        .header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(8, 11, 18, 0.82);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--border);
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 56px;
            position: relative;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: var(--text-1);
            cursor: pointer;
        }

        .logo-symbol {
            width: 30px;
            height: 30px;
            background: linear-gradient(135deg, var(--accent), #009980);
            border-radius: var(--r-s);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--font-h), var(--font-b), sans-serif;
            font-size: 16px;
            font-weight: 700;
            color: #080B12;
            box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.16), 0 8px 24px rgba(0, 212, 170, 0.12);
        }

        .logo-text {
            font-family: var(--font-h);
            font-size: 15px;
            font-weight: 600;
            letter-spacing: -0.01em;
        }

        .nav-breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-3);
        }

        #nav {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-toggle { display: none; }

        .nav-breadcrumb a {
            color: var(--text-3);
            text-decoration: none;
            transition: color var(--dur) var(--ease);
        }

        .nav-breadcrumb a:hover { color: var(--text-2); }

        .nav-sep {
            color: var(--text-4);
            font-size: 11px;
            user-select: none;
        }

        .nav-current {
            color: var(--text-2);
            max-width: 200px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .nav-jargon {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-3);
            text-decoration: none;
            padding: 5px 12px;
            border: 1px solid var(--border);
            border-radius: 100px;
            transition: all var(--dur) var(--ease);
            white-space: nowrap;
        }
        .nav-jargon:hover {
            color: var(--text-1);
            border-color: var(--border-hover);
            background: var(--bg-elevated);
        }
        .nav-jargon.on {
            color: var(--accent);
            border-color: var(--accent-glow);
            background: var(--accent-dim);
        }

        .back-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 14px;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: var(--r-s);
            color: var(--text-2);
            text-decoration: none;
            font-size: 13px;
            font-family: var(--font-b);
            cursor: pointer;
            transition: all var(--dur) var(--ease);
        }

        .back-btn:hover {
            color: var(--text-1);
            border-color: var(--border-hover);
            background: var(--bg-card);
        }

        /* ---- Hero ---- */
        .hero {
            padding: 72px 0 48px;
        }

        .hero-title {
            font-family: var(--font-h);
            font-size: clamp(36px, 5vw, 52px);
            font-weight: 700;
            letter-spacing: -0.03em;
            line-height: 1.15;
            margin-bottom: 0;
        }

        .hero-title .accent {
            background: linear-gradient(135deg, var(--accent), #00F0C0);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-head {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 16px;
        }

        .hero-stats {
            display: flex;
            gap: 8px;
            margin-top: 0;
            padding-top: 0;
            border-top: none;
        }

        .hero-stats .stat {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 12px;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: 100px;
        }

        .stat-num {
            font-family: var(--font-h);
            font-size: 15px;
            font-weight: 700;
            color: var(--accent);
            line-height: 1;
        }

        .stat-lbl {
            font-size: 12px;
            color: var(--text-3);
            margin-top: 0;
            text-transform: none;
            letter-spacing: 0;
        }

        .hero-sub {
            font-size: 17px;
            color: var(--text-2);
            line-height: 1.7;
        }

        .hero-main {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 40px;
        }

        .hero-left {
            flex: 1;
            min-width: 0;
        }

        .hero-quote {
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
            padding-left: 24px;
            border-left: 2px solid var(--accent-glow);
            transition: opacity 0.3s ease;
        }

        .hero-quote-text {
            font-family: var(--font-h);
            font-size: 15px;
            font-weight: 500;
            color: var(--accent);
            letter-spacing: 0.02em;
            white-space: nowrap;
            cursor: pointer;
            border-bottom: 1px dashed var(--accent-glow);
            transition: all var(--dur) var(--ease);
        }

        .hero-quote-text:hover {
            border-bottom-color: var(--accent);
            text-shadow: 0 0 8px var(--accent-glow);
        }

        .hero-quote-source {
            font-size: 12px;
            color: var(--text-3);
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 5px 14px;
            background: var(--accent-dim);
            border: 1px solid var(--accent-glow);
            border-radius: 100px;
            font-size: 12px;
            font-weight: 500;
            color: var(--accent);
            margin-bottom: 20px;
        }

        .hero-badge-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent);
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        /* ---- Category Filter ---- */
        .cats {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 40px;
        }

        .cat-btn {
            padding: 6px 16px;
            background: transparent;
            border: 1px solid var(--border);
            border-radius: 100px;
            color: var(--text-2);
            font-family: var(--font-b);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all var(--dur) var(--ease);
            white-space: nowrap;
        }

        .cat-btn:hover {
            border-color: var(--border-hover);
            color: var(--text-1);
            background: var(--bg-elevated);
        }

        .cat-btn.on {
            background: var(--accent-dim);
            border-color: var(--accent);
            color: var(--accent);
        }

        .cat-cnt {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            background: var(--border);
            border-radius: 9px;
            font-size: 11px;
            margin-left: 6px;
            transition: all var(--dur) var(--ease);
        }

        .cat-btn.on .cat-cnt {
            background: var(--accent-glow);
        }

        /* ---- View Toggle ---- */
        .cats-bar {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 40px;
        }

        .cats {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            flex: 1;
            margin-bottom: 0;
        }

        .view-toggle {
            display: flex;
            gap: 2px;
            flex-shrink: 0;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 2px;
            margin-top: 2px;
        }

        .view-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 28px;
            background: transparent;
            border: none;
            border-radius: 6px;
            color: var(--text-3);
            cursor: pointer;
            transition: all var(--dur) var(--ease);
        }

        .view-btn:hover { color: var(--text-1); }

        .view-btn.on {
            background: var(--bg-card);
            color: var(--accent);
            box-shadow: 0 1px 3px rgba(0,0,0,0.3);
        }

        .view-btn svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* ---- List View ---- */
        .grid.list-view {
            grid-template-columns: 1fr;
            gap: 8px;
        }

        .list-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 20px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--r-m);
            cursor: pointer;
            transition: all var(--dur) var(--ease);
        }

        .list-item:hover {
            border-color: var(--accent-glow);
            background: var(--bg-elevated);
            transform: translateX(6px);
            box-shadow: 0 4px 16px rgba(0, 212, 170, 0.08), 0 0 0 1px var(--accent-glow);
        }

        .list-item:hover .list-item-title {
            color: var(--accent);
        }

        .list-item-tags {
            display: flex;
            gap: 4px;
            flex-shrink: 0;
        }

        .list-item-tag {
            padding: 3px 10px;
            background: var(--accent-dim);
            border: 1px solid var(--accent-glow);
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            color: var(--accent);
            white-space: nowrap;
        }

        .list-item-title {
            flex: 1;
            font-family: var(--font-h);
            font-size: 15px;
            font-weight: 500;
            color: var(--text-1);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            min-width: 0;
            transition: color var(--dur) var(--ease);
        }

        .list-item-date {
            font-size: 12px;
            color: var(--text-3);
            flex-shrink: 0;
            white-space: nowrap;
        }

        .list-item-arrow {
            font-size: 14px;
            color: var(--text-4);
            flex-shrink: 0;
            transition: all var(--dur) var(--ease);
        }

        .list-item:hover .list-item-arrow {
            color: var(--accent);
            transform: translateX(3px);
        }

        /* ---- Article Grid ---- */
        .grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
        }

        .grid .card,
        .grid .list-item {
            content-visibility: auto;
            contain-intrinsic-size: 180px;
        }

        .load-more-btn {
            grid-column: 1 / -1;
            justify-self: center;
            margin: 12px 0 8px;
            padding: 10px 18px;
            border: 1px solid var(--border-hover);
            border-radius: var(--r-s);
            background: var(--bg-card);
            color: var(--text-2);
            cursor: pointer;
            transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
        }

        .load-more-btn:hover {
            color: var(--accent);
            border-color: var(--accent);
            transform: translateY(-2px);
        }

        .card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--r-l);
            padding: 28px;
            cursor: pointer;
            transition: all var(--dur) var(--ease);
            position: relative;
            overflow: hidden;
        }

        .card:hover {
            border-color: var(--border-hover);
            transform: translateY(-3px);
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px var(--border-hover);
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            opacity: 0;
            transition: opacity var(--dur) var(--ease);
        }

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

        .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 16px;
        }
        .card-tag {
            display: inline-block;
            padding: 3px 10px;
            background: var(--accent-dim);
            border: 1px solid var(--accent-glow);
            border-radius: 100px;
            font-size: 11px;
            font-weight: 500;
            color: var(--accent);
            letter-spacing: 0.02em;
        }

        .card-title {
            font-family: var(--font-h);
            font-size: 17px;
            font-weight: 600;
            color: var(--text-1);
            line-height: 1.4;
            margin-bottom: 10px;
            letter-spacing: -0.01em;
        }

        .card-desc {
            font-size: 14px;
            color: var(--text-3);
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .card-foot {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 12px;
            color: var(--text-4);
        }

        .card-more {
            color: var(--accent);
            font-size: 12px;
            font-weight: 500;
            opacity: 0;
            transform: translateX(-4px);
            transition: all var(--dur) var(--ease);
        }

        .card:hover .card-more {
            opacity: 1;
            transform: translateX(0);
        }

        /* ---- Article View ---- */
        .article-wrap {
            padding: 48px 0 96px;
        }

        .article-head {
            margin-bottom: 40px;
            padding-bottom: 32px;
            border-bottom: 1px solid var(--border);
        }

        .article-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }
        .article-tag {
            display: inline-block;
            padding: 4px 14px;
            background: var(--accent-dim);
            border: 1px solid var(--accent-glow);
            border-radius: 100px;
            font-size: 12px;
            font-weight: 500;
            color: var(--accent);
        }

        .article-title {
            font-family: var(--font-h);
            font-size: clamp(28px, 4vw, 40px);
            font-weight: 700;
            color: var(--text-1);
            line-height: 1.2;
            letter-spacing: -0.02em;
            margin-bottom: 14px;
        }

        .article-meta {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 14px;
            color: var(--text-3);
        }

        .dot {
            width: 3px;
            height: 3px;
            border-radius: 50%;
            background: var(--text-4);
        }

        /* ---- Markdown Content ---- */
        .md {
            font-size: clamp(14px, 2.5vw, 16px);
            line-height: 1.8;
            color: var(--text-2);
            max-width: 780px;
        }

        .md h1, .md h2, .md h3, .md h4, .md h5 {
            font-family: var(--font-h);
            color: var(--text-1);
            margin-top: 2.5em;
            margin-bottom: 0.8em;
            line-height: 1.3;
        }

        .md h1 { font-size: 28px; font-weight: 700; }
        .md h2 {
            font-size: 22px;
            font-weight: 600;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border);
        }
        .md h3 { font-size: 18px; font-weight: 600; }
        .md h4 { font-size: 16px; font-weight: 600; }

        .md h1:first-child,
        .md h2:first-child,
        .md h3:first-child { margin-top: 0; }

        .md p { margin-bottom: 1.2em; }

        .md a {
            color: var(--accent);
            text-decoration: none;
            border-bottom: 1px solid transparent;
            transition: border-color var(--dur) var(--ease);
        }

        .md a:hover { border-bottom-color: var(--accent); }

        .md strong { color: var(--text-1); font-weight: 600; }
        .md em { font-style: italic; }

        .md ul, .md ol {
            margin-bottom: 1.2em;
            padding-left: 1.5em;
        }

        .md li {
            margin-bottom: 0.4em;
            padding-left: 4px;
        }

        .md li::marker { color: var(--text-4); }

        .md blockquote {
            border-left: 3px solid var(--accent);
            margin: 1.5em 0;
            padding: 14px 20px;
            background: var(--accent-dim);
            border-radius: 0 var(--r-s) var(--r-s) 0;
            color: var(--text-2);
            font-style: italic;
        }

        .md blockquote p { margin-bottom: 0.5em; }
        .md blockquote p:last-child { margin-bottom: 0; }

        .md table {
            display: block;
            width: 100%;
            overflow-x: auto;
            white-space: nowrap;
            border-collapse: collapse;
            margin: 1.5em 0;
            font-size: 14px;
        }

        .md thead th {
            background: var(--bg-elevated);
            padding: 11px 16px;
            text-align: left;
            font-weight: 600;
            color: var(--text-1);
            border-bottom: 2px solid var(--border);
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .md tbody td {
            padding: 11px 16px;
            border-bottom: 1px solid var(--border);
            color: var(--text-2);
        }

        .md tbody tr:hover { background: var(--bg-surface); }

        .md code {
            font-family: var(--font-c);
            font-size: 0.88em;
            background: var(--bg-elevated);
            padding: 2px 7px;
            border-radius: 4px;
            color: var(--accent);
        }

        .md pre {
            margin: 1.5em 0;
            border-radius: var(--r-m);
            overflow: hidden;
            position: relative;
            border: 1px solid var(--border);
        }

        .md pre code {
            display: block;
            padding: 20px 24px;
            background: var(--bg-surface);
            overflow-x: auto;
            font-size: 13px;
            line-height: 1.7;
            color: var(--text-2);
        }

        .md pre:hover .copy-btn { opacity: 1; }

        .copy-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 5px 12px;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: var(--r-s);
            color: var(--text-3);
            font-family: var(--font-b);
            font-size: 11px;
            cursor: pointer;
            opacity: 0;
            transition: all var(--dur) var(--ease);
        }

        .copy-btn:hover {
            color: var(--text-1);
            border-color: var(--border-hover);
        }

        .md hr {
            border: none;
            height: 1px;
            background: var(--border);
            margin: 2.5em 0;
        }

        .md img {
            max-width: 100%;
            border-radius: var(--r-m);
            margin: 1em 0;
        }

        .md .mermaid {
            margin: 1.5em 0;
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--r-m);
            padding: 24px;
            text-align: center;
            overflow-x: auto;
        }

        .md .mermaid svg {
            max-width: 100%;
            height: auto;
        }

        .mermaid-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            min-height: 60px;
            color: var(--text-3);
            font-size: 13px;
        }
        .mermaid-spinner {
            flex-shrink: 0;
            animation: mermaid-spin 0.8s linear infinite;
        }
        .mermaid-spinner circle {
            stroke: #4ade80;
            stroke-width: 3;
            fill: none;
            stroke-dasharray: 42;
            stroke-dashoffset: 14;
            stroke-linecap: round;
        }
        @keyframes mermaid-spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* ---- States ---- */
        .loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 96px 0;
            gap: 16px;
        }

        .spinner {
            position: relative;
            width: 56px;
            height: 56px;
        }
        /* 外环：虚线旋转扫描 */
        .spinner::before {
            content: '';
            position: absolute;
            inset: 0;
            border: 2px dashed var(--accent);
            border-radius: 50%;
            opacity: 0.4;
            animation: spin 3s linear infinite;
        }
        /* 中环：弧线快速旋转 */
        .spinner::after {
            content: '';
            position: absolute;
            inset: 6px;
            border: 2px solid transparent;
            border-top-color: var(--accent);
            border-right-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s ease-in-out infinite;
        }
        /* 脉冲核心 */
        .spinner-core {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 10px;
            height: 10px;
            margin: -5px 0 0 -5px;
            background: var(--accent);
            border-radius: 50%;
            box-shadow: 0 0 12px rgba(0, 212, 170, 0.6);
            animation: pulse-core 1.2s ease-in-out infinite;
        }
        /* 轨道粒子 */
        .spinner-orbit {
            position: absolute;
            inset: 0;
            animation: spin 1.5s linear infinite;
        }
        .spinner-orbit i {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--accent);
            border-radius: 50%;
            box-shadow: 0 0 6px var(--accent);
        }
        .spinner-orbit i:nth-child(1) { top: 0; left: 50%; margin-left: -2px; }
        .spinner-orbit i:nth-child(2) { bottom: 0; left: 50%; margin-left: -2px; opacity: 0.5; }

        @keyframes spin { to { transform: rotate(360deg); } }
        @keyframes pulse-core {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.5); opacity: 0.4; }
        }

        .loading-text {
            font-size: 14px;
            color: var(--text-3);
        }

        .empty {
            text-align: center;
            padding: 72px 0;
            color: var(--text-3);
        }

        .empty-icon {
            font-size: 32px;
            margin-bottom: 16px;
            opacity: 0.4;
        }

        /* ---- Footer ---- */
        .footer {
            padding: 40px 0;
            border-top: 1px solid var(--border);
            margin-top: 64px;
        }

        .footer-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 12px;
            color: var(--text-4);
        }

        .footer-line {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .footer-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--accent);
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        /* ---- Progress Bar ---- */
        .progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--accent), #00F0C0, #00B4FF);
            z-index: 200;
            transition: width 80ms linear;
        }

        /* ---- Animations ---- */
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(16px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-up {
            animation: fadeUp 0.5s var(--ease) both;
        }

        .grid .card:nth-child(1) { animation-delay: 0.0s; }
        .grid .card:nth-child(2) { animation-delay: 0.05s; }
        .grid .card:nth-child(3) { animation-delay: 0.1s; }
        .grid .card:nth-child(4) { animation-delay: 0.15s; }
        .grid .card:nth-child(5) { animation-delay: 0.2s; }
        .grid .card:nth-child(6) { animation-delay: 0.25s; }
        .grid .card:nth-child(7) { animation-delay: 0.3s; }
        .grid .card:nth-child(8) { animation-delay: 0.35s; }
        .grid .card:nth-child(9) { animation-delay: 0.4s; }

        /* ---- Search ---- */
        .search-wrap {
            position: relative;
            margin-bottom: 24px;
            max-width: 560px;
        }

        .search-input {
            width: 100%;
            padding: 14px 44px 14px 48px;
            background: var(--bg-card);
            border: 1px solid var(--border-2);
            border-radius: var(--r-l);
            color: var(--text-1);
            font-family: var(--font-b);
            font-size: 15px;
            outline: none;
            transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
        }

        .search-input::placeholder { color: var(--text-3); }

        .search-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 4px var(--accent-dim), 0 0 20px rgba(74, 222, 128, 0.08);
            background: var(--bg-elevated);
        }

        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-3);
            pointer-events: none;
            width: 18px;
            height: 18px;
            transition: color var(--dur) var(--ease);
        }

        .search-wrap:focus-within .search-icon {
            color: var(--accent);
        }

        .search-clear {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: none;
            background: var(--bg-elevated);
            color: var(--text-3);
            font-size: 12px;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            transition: all var(--dur) var(--ease);
            line-height: 1;
        }

        .search-clear:hover { color: var(--text-1); background: var(--border-hover); }
        .search-clear.show { display: flex; }

        /* ---- TOC Sidebar ---- */
        .article-layout {
            display: flex;
            gap: 48px;
            align-items: flex-start;
        }

        .article-layout .article-content {
            flex: 1;
            min-width: 0;
        }

        .toc-sidebar {
            position: sticky;
            top: 80px;
            width: 210px;
            flex-shrink: 0;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
            padding-right: 4px;
        }

        .toc-sidebar::-webkit-scrollbar { width: 3px; }
        .toc-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

        .toc-heading {
            font-family: var(--font-h);
            font-size: 11px;
            font-weight: 600;
            color: var(--text-3);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 14px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border);
        }

        .toc-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .toc-link {
            display: block;
            padding: 5px 0 5px 12px;
            font-size: 13px;
            color: var(--text-3);
            text-decoration: none;
            line-height: 1.5;
            border-left: 2px solid transparent;
            transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .toc-link:hover { color: var(--text-2); }

        .toc-link.active {
            color: var(--accent);
            border-left-color: var(--accent);
        }

        .toc-link.toc-h3 {
            padding-left: 24px;
            font-size: 12px;
        }

        .toc-link.toc-h4 {
            padding-left: 36px;
            font-size: 12px;
        }

        /* ---- Mermaid Zoom ---- */
        .mermaid-wrap {
            position: relative;
        }

        .mermaid-zoom-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 5px 10px;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: var(--r-s);
            color: var(--text-3);
            font-size: 12px;
            font-family: var(--font-b);
            cursor: pointer;
            opacity: 0;
            transition: all var(--dur) var(--ease);
            z-index: 2;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .mermaid-wrap:hover .mermaid-zoom-btn { opacity: 1; }

        .mermaid-zoom-btn:hover {
            color: var(--text-1);
            border-color: var(--border-hover);
        }

        .zoom-overlay {
            position: fixed;
            inset: 0;
            background: rgba(8, 11, 18, 0.92);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 300;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 48px;
            cursor: zoom-out;
            animation: zoomFadeIn 0.25s var(--ease);
        }

        .zoom-overlay .zoom-content {
            width: 92vw;
            max-width: 1200px;
            max-height: 88vh;
            overflow: auto;
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--r-m);
            padding: 40px;
            cursor: default;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .zoom-overlay .zoom-content svg {
            width: 100% !important;
            height: auto !important;
            max-height: 80vh;
        }

        .zoom-close {
            position: fixed;
            top: 20px;
            right: 24px;
            padding: 8px 18px;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: var(--r-s);
            color: var(--text-2);
            font-family: var(--font-b);
            font-size: 13px;
            cursor: pointer;
            transition: all var(--dur) var(--ease);
            z-index: 301;
        }

        .zoom-close:hover {
            color: var(--text-1);
            border-color: var(--accent);
        }

        @keyframes zoomFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* ---- Jargon Translator ---- */
        .jargon-sort {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 20px;
        }
        .sort-label {
            font-size: 13px;
            color: var(--text-3);
        }
        .sort-btn {
            padding: 4px 12px;
            border: 1px solid var(--border);
            border-radius: 100px;
            background: transparent;
            color: var(--text-3);
            font-family: var(--font-b);
            font-size: 12px;
            cursor: pointer;
            transition: all var(--dur) var(--ease);
        }
        .sort-btn:hover { border-color: var(--border-hover); color: var(--text-2); }
        .sort-btn.on {
            border-color: var(--accent-glow);
            color: var(--accent);
            background: var(--accent-dim);
        }

        .jargon-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 16px;
            padding-bottom: 40px;
        }
        .jargon-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--r-m);
            padding: 20px;
            transition: all var(--dur) var(--ease);
            cursor: default;
        }
        .jargon-card:hover {
            border-color: var(--border-hover);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        }
        .jargon-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }
        .jargon-term {
            font-family: var(--font-h);
            font-size: 20px;
            font-weight: 700;
            color: var(--text-1);
        }
        .jargon-cat-badge {
            padding: 3px 10px;
            background: var(--bg-elevated);
            border-radius: 100px;
            font-size: 11px;
            color: var(--text-3);
            font-weight: 500;
        }
        .jargon-translation {
            font-size: 15px;
            color: var(--accent);
            margin-bottom: 10px;
            line-height: 1.5;
        }
        .jargon-scene {
            font-size: 13px;
            color: var(--text-3);
            line-height: 1.6;
            margin-bottom: 12px;
            font-style: italic;
        }
        .jargon-toxicity {
            font-size: 14px;
            letter-spacing: 2px;
        }
        .toxicity-dim {
            opacity: 0.2;
        }

        /* ---- AI Prompts ---- */
        .prompt-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 18px;
            padding-bottom: 40px;
            margin-top: 24px;
        }
        .prompt-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--r-m);
            padding: 22px;
            transition: all var(--dur) var(--ease);
            display: flex;
            flex-direction: column;
            gap: 12px;
            cursor: pointer;
        }
        .prompt-card:hover {
            border-color: var(--border-hover);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        }
        .prompt-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }
        .prompt-title {
            font-family: var(--font-h);
            font-size: 18px;
            font-weight: 600;
            color: var(--text-1);
            line-height: 1.4;
        }
        .prompt-model {
            flex-shrink: 0;
            padding: 3px 10px;
            background: var(--accent-dim);
            color: var(--accent);
            border-radius: 100px;
            font-size: 11px;
            font-weight: 500;
            white-space: nowrap;
        }
        .prompt-scene {
            font-size: 13px;
            color: var(--text-3);
            line-height: 1.6;
            padding-left: 12px;
            border-left: 2px solid var(--border-hover);
        }
        .prompt-preview {
            position: relative;
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--r-s);
            padding: 12px 14px;
            font-family: var(--font-c);
            font-size: 13.5px;
            color: #D0D6E5;
            line-height: 1.7;
            white-space: pre-wrap;
            word-break: break-word;
            max-height: 120px;
            overflow: hidden;
            pointer-events: none;
        }
        .prompt-preview::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 40px;
            background: linear-gradient(to bottom, transparent, var(--bg-surface));
            pointer-events: none;
        }
        .prompt-foot {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-top: auto;
        }
        .prompt-view-hint {
            font-size: 12px;
            color: var(--accent);
            font-weight: 500;
            transition: all var(--dur) var(--ease);
            white-space: nowrap;
        }
        .prompt-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .prompt-tag {
            padding: 3px 12px;
            background: var(--accent-dim);
            border: 1px solid var(--accent-glow);
            border-radius: 100px;
            font-size: 11px;
            color: var(--accent);
            font-weight: 500;
        }
        .prompt-card:hover .prompt-view-hint {
            color: var(--accent);
        }

        /* ---- Prompt Detail Modal ---- */
        .prompt-modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 500;
            background: rgba(4, 6, 10, 0.72);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            align-items: center;
            justify-content: center;
            padding: 24px;
            animation: promptFadeIn 0.2s var(--ease);
        }
        .prompt-modal-overlay.show {
            display: flex;
        }
        @keyframes promptFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes promptSlideUp {
            from { opacity: 0; transform: translateY(16px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .prompt-modal {
            background: var(--bg-card);
            border: 1px solid var(--border-hover);
            border-radius: var(--r-l);
            max-width: 760px;
            width: 100%;
            max-height: calc(100vh - 48px);
            display: flex;
            flex-direction: column;
            box-shadow: 0 24px 64px rgba(0,0,0,0.4);
            animation: promptSlideUp 0.25s var(--ease);
        }
        .prompt-modal-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            padding: 24px 24px 0;
        }
        .prompt-modal-title {
            font-family: var(--font-h);
            font-size: 22px;
            font-weight: 700;
            color: var(--text-1);
            line-height: 1.3;
        }
        .prompt-modal-close {
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: var(--r-s);
            color: var(--text-3);
            cursor: pointer;
            font-size: 16px;
            transition: all var(--dur) var(--ease);
        }
        .prompt-modal-close:hover {
            color: var(--text-1);
            border-color: var(--border-hover);
            background: var(--bg-card);
        }
        .prompt-modal-body {
            padding: 16px 24px 24px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .prompt-modal-scene {
            font-size: 14px;
            color: var(--text-2);
            line-height: 1.6;
            padding-left: 14px;
            border-left: 2px solid var(--accent-glow);
        }
        .prompt-modal-content {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--r-s);
            padding: 18px 20px;
            font-family: var(--font-c);
            font-size: 13.5px;
            color: #CDD3E2;
            line-height: 1.8;
            white-space: pre-wrap;
            word-break: break-word;
        }
        .prompt-modal-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .prompt-copy-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 18px;
            background: var(--accent-dim);
            border: 1px solid var(--accent-glow);
            border-radius: var(--r-s);
            color: var(--accent);
            font-family: var(--font-b);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all var(--dur) var(--ease);
        }
        .prompt-copy-btn:hover {
            background: var(--accent-glow);
            color: var(--text-1);
        }
        .prompt-copy-btn.copied {
            color: var(--accent);
            border-color: var(--accent);
        }

        /* ---- Soups ---- */
        .soup-feature {
            transition: opacity 0.16s var(--ease);
            margin-bottom: 28px;
        }
        .soup-feature-inner {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .soup-feature-toolbar {
            display: flex;
            justify-content: flex-end;
        }
        .soup-feature-card {
            position: relative;
            overflow: hidden;
            min-height: 360px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background:
                radial-gradient(circle at 16% 18%, rgba(0, 212, 170, 0.12), transparent 34%),
                var(--bg-card);
            border: 1px solid var(--border-hover);
            border-radius: var(--r-l);
            padding: clamp(28px, 5vw, 56px);
            box-shadow: 0 18px 60px rgba(0,0,0,0.26);
        }
        .soup-feature-card::before {
            content: '';
            position: absolute;
            inset: 0 auto 0 0;
            width: 4px;
            background: var(--accent);
            opacity: 0.82;
        }
        .soup-feature-card.soup-card-dark {
            background:
                radial-gradient(circle at 16% 18%, rgba(245, 158, 11, 0.13), transparent 34%),
                var(--bg-card);
        }
        .soup-feature-card.soup-card-dark::before {
            background: #F59E0B;
        }
        .soup-feature-content {
            color: var(--text-1);
            font-family: var(--font-h), var(--font-b), sans-serif;
            font-size: clamp(30px, 5.2vw, 58px);
            font-weight: 700;
            line-height: 1.45;
            max-width: 960px;
            margin: 38px 0;
            white-space: pre-wrap;
        }
        .soup-actions {
            display: flex;
            gap: 10px;
            flex-shrink: 0;
        }
        .soup-actions .back-btn {
            color: var(--text-1);
            background: rgba(232, 236, 244, 0.08);
            border-color: rgba(232, 236, 244, 0.18);
        }
        .soup-actions .back-btn:hover {
            background: rgba(232, 236, 244, 0.13);
            border-color: rgba(232, 236, 244, 0.26);
        }
        .soup-actions .back-btn:first-child {
            color: #080B12;
            background: var(--accent);
            border-color: var(--accent);
            font-weight: 700;
        }
        .soup-actions .back-btn:first-child:hover {
            background: #35E6C5;
            border-color: #35E6C5;
        }
        .soup-all {
            padding-top: 12px;
        }
        .soup-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 18px;
            padding-bottom: 40px;
            margin-top: 24px;
        }
        .soup-card {
            position: relative;
            overflow: hidden;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--r-m);
            padding: 24px;
            cursor: pointer;
            transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
        }
        .soup-card::before {
            content: '';
            position: absolute;
            inset: 0 auto 0 0;
            width: 3px;
            background: var(--accent);
            opacity: 0.7;
        }
        .soup-card:hover {
            border-color: var(--accent-glow);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.18);
        }
        .soup-card-dark::before {
            background: #F59E0B;
        }
        .soup-card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
        }
        .soup-type {
            padding: 3px 12px;
            background: var(--accent-dim);
            border: 1px solid var(--accent-glow);
            border-radius: 100px;
            color: var(--accent);
            font-size: 12px;
            font-weight: 600;
        }
        .soup-card-dark .soup-type {
            background: rgba(245, 158, 11, 0.12);
            border-color: rgba(245, 158, 11, 0.28);
            color: #FBBF24;
        }
        .soup-source {
            padding: 3px 10px;
            background: rgba(232, 236, 244, 0.06);
            border: 1px solid rgba(232, 236, 244, 0.12);
            border-radius: 100px;
            color: var(--text-2);
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
        }
        .soup-content {
            color: var(--text-2);
            font-size: 15px;
            line-height: 1.85;
            white-space: pre-wrap;
            margin-bottom: 18px;
        }
        .soup-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .soup-tag {
            padding: 3px 10px;
            background: rgba(0, 212, 170, 0.1);
            border: 1px solid rgba(0, 212, 170, 0.24);
            border-radius: 100px;
            color: #8BEFD9;
            font-size: 11px;
            font-weight: 600;
        }
        .soup-card-dark .soup-tag {
            background: rgba(245, 158, 11, 0.12);
            border-color: rgba(245, 158, 11, 0.3);
            color: #FCD38A;
        }
        .soup-detail-overlay {
            position: fixed;
            inset: 0;
            z-index: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: rgba(4, 6, 10, 0.74);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }
        .soup-detail {
            position: relative;
            width: min(720px, 100%);
            max-height: calc(100vh - 48px);
            overflow-y: auto;
            background: var(--bg-card);
            border: 1px solid var(--border-hover);
            border-radius: var(--r-l);
            padding: 34px;
            box-shadow: 0 24px 72px rgba(0,0,0,0.42);
            animation: promptSlideUp 0.22s var(--ease);
        }
        .soup-detail-close {
            position: absolute;
            top: 14px;
            right: 14px;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: var(--r-s);
            color: var(--text-3);
            cursor: pointer;
            font-size: 18px;
            line-height: 1;
            transition: all var(--dur) var(--ease);
        }
        .soup-detail-close:hover {
            color: var(--text-1);
            border-color: var(--border-hover);
            background: var(--bg-card);
        }
        .soup-detail-content {
            color: var(--text-1);
            font-family: var(--font-h), var(--font-b), sans-serif;
            font-size: clamp(22px, 4vw, 34px);
            font-weight: 600;
            line-height: 1.65;
            white-space: pre-wrap;
            margin: 22px 0 24px;
        }

        @media (max-width: 640px) {
            .prompt-modal-overlay { padding: 12px; }
            .prompt-modal-head { padding: 18px 18px 0; }
            .prompt-modal-body { padding: 14px 18px 18px; }
            .prompt-modal-title { font-size: 18px; }
            .soup-detail-overlay { padding: 12px; }
            .soup-detail { padding: 28px 20px 22px; }
            .soup-detail-content { font-size: 22px; }
            .soup-feature-card { min-height: 320px; }
            .soup-feature-content { font-size: 30px; margin: 28px 0; }
            .soup-feature-toolbar { justify-content: stretch; }
            .soup-actions { width: 100%; }
            .soup-actions .back-btn { flex: 1; justify-content: center; }
        }

        /* ---- Toast ---- */
        .toast {
            position: fixed;
            bottom: 32px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: var(--bg-elevated);
            border: 1px solid var(--accent-glow);
            color: var(--accent);
            padding: 10px 20px;
            border-radius: var(--r-m);
            font-size: 14px;
            font-weight: 500;
            box-shadow: 0 8px 24px rgba(0,0,0,0.3);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
            z-index: 600;
        }
        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* ---- Mobile TOC (hidden on desktop by default) ---- */
        .toc-fab { display: none; }
        .toc-drawer { display: none; }

        /* ---- Responsive ---- */
        @media (max-width: 1024px) {
            .toc-sidebar { display: none; }
            .article-layout { gap: 0; }

            /* Mobile TOC floating button */
            .toc-fab {
                display: flex;
                position: fixed;
                bottom: 80px;
                right: 16px;
                align-items: center;
                justify-content: center;
                height: 40px;
                padding: 0 16px;
                background: var(--accent);
                border: none;
                border-radius: 20px;
                color: #080B12;
                font-size: 13px;
                font-weight: 600;
                cursor: pointer;
                z-index: 99;
                box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
                transition: transform 0.2s ease, box-shadow 0.2s ease;
            }
            .toc-fab:active { transform: scale(0.95); }

            /* Mobile TOC drawer */
            .toc-drawer {
                display: none;
                position: fixed;
                inset: 0;
                z-index: 300;
            }
            .toc-drawer.open { display: flex; }
            .toc-drawer::before {
                content: '';
                position: absolute;
                inset: 0;
                background: rgba(8, 11, 18, 0.7);
            }
            .toc-drawer-header {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 48px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 0 18px;
                background: var(--bg-card);
                border-bottom: 1px solid var(--border);
                font-size: 14px;
                font-weight: 600;
                color: var(--text-1);
                z-index: 1;
            }
            .toc-drawer-close {
                background: none;
                border: none;
                color: var(--text-3);
                font-size: 13px;
                cursor: pointer;
                padding: 4px 8px;
            }
            .toc-drawer-close:hover { color: var(--accent); }
            .toc-drawer-body {
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                max-height: 70vh;
                overflow-y: auto;
                background: var(--bg-card);
                border-top: 1px solid var(--border);
                border-radius: 16px 16px 0 0;
                padding: 60px 18px 24px;
                z-index: 1;
            }
            .toc-drawer-body .toc-list { margin: 0; }
        }

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

        @media (max-width: 640px) {
            .container { padding: 0 18px; }
            .hero { padding: 48px 0 32px; }
            .grid { grid-template-columns: 1fr; gap: 14px; }
            .hero-stats { gap: 6px; }
            .hero-stats .stat { padding: 4px 10px; }
            .stat-num { font-size: 13px; }
            .hero-main { flex-direction: column; align-items: flex-start; gap: 20px; }
            .hero-quote { border-left: none; border-top: 2px solid var(--accent-glow); padding-left: 0; padding-top: 12px; align-items: flex-start; }
            .cats-bar { flex-direction: column; gap: 10px; }
            .view-toggle { align-self: flex-end; }
            .list-item { flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
            .list-item-title { order: 1; flex-basis: 100%; white-space: normal; font-size: 14px; }
            .list-item-tags { order: 2; }
            .list-item-date { order: 3; margin-left: auto; }
            .list-item-arrow { order: 4; }
            .article-wrap { padding: 28px 20px 56px; }
            .footer { margin-top: 40px; }
            .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
            .nav-current { max-width: 120px; }
            .search-wrap { max-width: 100%; }

            /* Mobile nav: hamburger + dropdown */
            .nav-toggle {
                display: flex;
                flex-direction: column;
                justify-content: center;
                gap: 5px;
                width: 32px;
                height: 32px;
                background: none;
                border: 1px solid var(--border);
                border-radius: var(--r-s);
                cursor: pointer;
                padding: 6px;
                align-items: center;
            }
            .nav-toggle span {
                display: block;
                width: 16px;
                height: 1.5px;
                background: var(--text-2);
                border-radius: 1px;
                transition: all 0.25s ease;
            }
            .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
            .nav-toggle.open span:nth-child(2) { opacity: 0; }
            .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

            #nav {
                display: none;
                position: absolute;
                top: 56px;
                right: 0;
                left: 0;
                flex-direction: column;
                background: var(--bg-card);
                border-bottom: 1px solid var(--border);
                padding: 12px 18px;
                gap: 4px;
                z-index: 200;
            }
            #nav.open { display: flex; }
            #nav .nav-jargon, #nav .nav-breadcrumb { padding: 8px 0; }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* ---- Touch Device: disable hover transforms (prevent iOS sticking) ---- */
        @media (hover: none) {
            .card:hover { transform: none; }
            .list-item:hover { transform: none; }
        }

        /* ---- Glossary Term Popover ---- */
        .term-ref {
            color: var(--accent);
            border-bottom: 1px dashed var(--accent-dim);
            cursor: pointer;
            transition: all 0.2s ease;
            border-radius: 2px;
            padding: 0 2px;
            margin: 0 -2px;
        }
        .term-ref:hover {
            background: rgba(74, 222, 128, 0.12);
            border-bottom-color: var(--accent);
            text-shadow: 0 0 8px rgba(74, 222, 128, 0.3);
        }
        .term-ref.term-active {
            background: rgba(74, 222, 128, 0.18);
            border-bottom-style: solid;
            border-bottom-color: var(--accent);
        }

        .term-popover {
            position: fixed;
            z-index: 10000;
            background: linear-gradient(135deg, rgba(22, 27, 34, 0.98), rgba(30, 37, 48, 0.98));
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--border-2);
            border-radius: 12px;
            padding: 16px 20px;
            max-width: 360px;
            min-width: 220px;
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(74, 222, 128, 0.08),
                0 0 24px rgba(74, 222, 128, 0.06);
            opacity: 0;
            transform: translateY(6px) scale(0.97);
            transition: opacity 0.2s ease, transform 0.2s ease;
            pointer-events: none;
        }
        .term-popover.term-show {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }
        .term-popover-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }
        .term-popover-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--accent);
            line-height: 1.5;
            word-break: break-word;
        }
        .term-popover-close {
            background: none;
            border: none;
            color: var(--text-3);
            cursor: pointer;
            font-size: 18px;
            line-height: 1;
            padding: 2px 4px;
            border-radius: 4px;
            flex-shrink: 0;
            transition: color 0.15s, background 0.15s;
        }
        .term-popover-close:hover {
            color: var(--text-1);
            background: rgba(255, 255, 255, 0.08);
        }
        .term-popover-body {
            font-size: 13px;
            color: var(--text-2);
            line-height: 1.7;
        }
        .term-popover-arrow {
            position: absolute;
            width: 14px;
            height: 14px;
            background: rgba(22, 27, 34, 0.98);
            border: 1px solid var(--border-2);
            transform: rotate(45deg);
            left: 50%;
            margin-left: -7px;
        }
        .term-popover-arrow.arrow-bottom {
            bottom: -8px;
            border-top: none;
            border-left: none;
        }
        .term-popover-arrow.arrow-top {
            top: -8px;
            border-bottom: none;
            border-right: none;
        }
        @media (max-width: 640px) {
            .term-popover {
                max-width: calc(100vw - 40px);
                min-width: 180px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.001ms !important;
                animation-iteration-count: 1 !important;
                scroll-behavior: auto !important;
                transition-duration: 0.001ms !important;
            }
        }

