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

        :root {
            --bg: #fafaf9;
            --surface: #ffffff;
            --text: #1c1917;
            --text-secondary: #57534e;
            --text-muted: #a8a29e;
            --primary: #4f46e5;
            --primary-hover: #4338ca;
            --accent: #d97706;
            --border: #e7e5e4;
            --radius: 10px;
            --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
            --shadow-md: 0 4px 16px rgba(0,0,0,.08);
            --shadow-lg: 0 8px 32px rgba(0,0,0,.1);
            --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
            --font-mono: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
        }

        html { font-size: 16px; scroll-behavior: smooth; }

        body {
            font-family: var(--font-sans);
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ── Hero Search ── */
        .hero {
            padding: 72px 20px 56px;
            text-align: center;
            position: relative;
        }
        .hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: var(--primary);
            border-radius: 2px;
        }
        .hero-brand {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            text-decoration: none;
            color: var(--text);
        }
        .hero-mark {
            width: 44px;
            height: 44px;
            background: var(--primary);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 20px;
            border-radius: 10px;
            font-family: var(--font-mono);
        }
        .hero-title {
            font-size: 1.6rem;
            font-weight: 800;
            letter-spacing: -.03em;
        }
        .hero-sub {
            font-size: .95rem;
            color: var(--text-muted);
            margin-bottom: 32px;
        }
        .search-bar {
            max-width: 680px;
            margin: 0 auto;
            display: flex;
            background: var(--surface);
            border: 1.5px solid var(--border);
            border-radius: 14px;
            overflow: hidden;
            box-shadow: var(--shadow-md);
            transition: border-color .2s, box-shadow .2s;
        }
        .search-bar:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(79,70,229,.1), var(--shadow-md);
        }
        .search-input {
            flex: 1;
            border: none;
            padding: 16px 20px;
            font-size: 1.05rem;
            outline: none;
            background: transparent;
            color: var(--text);
            font-family: var(--font-sans);
        }
        .search-input::placeholder { color: var(--text-muted); }
        .search-btn {
            background: var(--primary);
            color: #fff;
            border: none;
            padding: 16px 28px;
            font-size: .95rem;
            font-weight: 600;
            cursor: pointer;
            transition: background .15s;
            font-family: var(--font-sans);
            white-space: nowrap;
        }
        .search-btn:hover { background: var(--primary-hover); }
        .search-hint {
            font-size: .8rem;
            color: var(--text-muted);
            margin-top: 14px;
            font-family: var(--font-mono);
        }

        /* ── Nav Pills (inline, no header bar) ── */
        .nav-row {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: flex-end;
            gap: 8px;
        }
        .nav-pill {
            display: inline-flex;
            align-items: center;
            padding: 6px 16px;
            font-size: .82rem;
            font-weight: 500;
            color: var(--text-secondary);
            text-decoration: none;
            border-radius: 20px;
            border: 1px solid var(--border);
            transition: all .15s ease;
            font-family: var(--font-mono);
        }
        .nav-pill:hover {
            color: var(--primary);
            border-color: var(--primary);
            background: rgba(79,70,229,.04);
        }

        /* ── Main ── */
        .main {
            max-width: 1200px;
            margin: 0 auto;
            padding: 28px 20px 40px;
            flex: 1;
            width: 100%;
        }

        /* ── Stats ── */
        .stats-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            margin-bottom: 16px;
            border-bottom: 1px solid var(--border);
            font-size: .8rem;
            color: var(--text-muted);
            font-family: var(--font-mono);
        }
        .stats-bar strong { color: var(--text-secondary); font-weight: 600; }

        /* ── Document List ── */
        .doc-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
        .doc-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 18px 22px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all .2s ease;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
        }
        .doc-card:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-md);
            transform: translateY(-1px);
        }
        .doc-card-body { flex: 1; min-width: 0; }
        .doc-title {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color .15s;
        }
        .doc-card:hover .doc-title { color: var(--primary); }
        .doc-meta {
            display: flex;
            gap: 12px;
            font-size: .78rem;
            color: var(--text-muted);
            font-family: var(--font-mono);
            flex-wrap: wrap;
        }
        .doc-chevron {
            color: var(--text-muted);
            font-size: 1.2rem;
            margin-left: 16px;
            flex-shrink: 0;
            transition: color .15s, transform .15s;
        }
        .doc-card:hover .doc-chevron {
            color: var(--primary);
            transform: translateX(3px);
        }

        /* ── Empty State ── */
        .empty-state {
            text-align: center;
            padding: 64px 20px;
        }
        .empty-icon {
            width: 64px;
            height: 64px;
            margin: 0 auto 16px;
            border: 2px dashed var(--border);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-family: var(--font-mono);
            font-size: 1.4rem;
        }
        .empty-state p { color: var(--text-secondary); font-size: .95rem; }
        .empty-state .sub { margin-top: 6px; font-size: .82rem; color: var(--text-muted); }

        /* ── FAB ── */
        .fab {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 52px;
            height: 52px;
            background: var(--primary);
            color: #fff;
            border: none;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            font-weight: 300;
            text-decoration: none;
            transition: all .2s ease;
            box-shadow: 0 4px 16px rgba(79,70,229,.3);
            z-index: 50;
        }
        .fab:hover {
            background: var(--primary-hover);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 6px 20px rgba(79,70,229,.35);
        }

        /* ── Footer ── */
        .site-footer {
            text-align: center;
            padding: 22px 20px;
            font-size: .78rem;
            color: var(--text-muted);
            border-top: 1px solid var(--border);
            font-family: var(--font-mono);
            margin-top: auto;
        }
        .footer-meta {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 6px 16px;
            line-height: 1.8;
        }
        .site-footer a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color .15s;
        }
        .site-footer a:hover { color: var(--primary); }

        /* ── Responsive ── */
        @media (max-width: 640px) {
            html { font-size: 15px; }
            .hero { padding: 48px 16px 40px; }
            .hero-mark { width: 38px; height: 38px; font-size: 17px; }
            .hero-title { font-size: 1.3rem; }
            .hero-sub { font-size: .92rem; margin-bottom: 24px; }
            .search-bar { border-radius: 12px; }
            .search-input { padding: 14px 16px; font-size: 1rem; }
            .search-btn { padding: 14px 20px; font-size: .95rem; }
            .search-hint { font-size: .85rem; }
            .nav-row { padding: 0 16px; }
            .nav-pill { font-size: .88rem; }
            .main { padding: 20px 16px 32px; }
            .stats-bar { font-size: .85rem; flex-direction: column; gap: 4px; align-items: flex-start; }
            .doc-card { padding: 16px; }
            .doc-title { font-size: 1.05rem; }
            .doc-meta { gap: 8px; font-size: .82rem; }
            .doc-chevron { display: none; }
            .fab { width: 48px; height: 48px; bottom: 20px; right: 20px; border-radius: 12px; }
        }

        @media print {
            .hero, .fab, .nav-row, .site-footer { display: none; }
            .main { max-width: 100%; padding: 0; }
            .doc-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
        }

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