        @import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,600;9..144,700;9..144,900&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Noto+Serif+SC:wght@400;500;700&display=swap');

        :root {
            --bg: #f4f2ed;
            --surface: #ffffff;
            --surface-warm: #fbfaf6;
            --surface-tint: #f0ede5;
            --ink: #141414;
            --ink-soft: #4a4a4a;
            --ink-light: #8a8a8a;
            --ink-faint: #c0bdb6;
            --accent: #2c4a6b;
            --accent-deep: #1d3550;
            --accent-warm: #9a6b3f;
            --accent-soft: rgba(44, 74, 107, 0.06);
            --accent-warm-soft: rgba(154, 107, 63, 0.08);
            --border: #ddd9d2;
            --border-light: #ebe8e1;
            --code-bg: #efede8;
        }

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

        body {
            font-family: 'Manrope', 'Noto Serif SC', sans-serif;
            background: var(--bg);
            color: var(--ink);
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
            font-size: 15px;
        }

        /* ============ LAYOUT ============ */
        .resume {
            max-width: 1120px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 360px 1fr;
            gap: 56px;
            padding: 64px 40px;
        }

        /* ============ LEFT COLUMN ============ */
        .col-left {
            position: sticky;
            top: 64px;
            align-self: start;
            max-height: calc(100vh - 128px);
            overflow-y: auto;
            padding-right: 8px;
        }

        .col-left::-webkit-scrollbar { width: 0; }

        .sidebar-section {
            margin-bottom: 24px;
        }

        /* --- Profile --- */
        .profile h1 {
            font-family: 'Fraunces', 'Noto Serif SC', serif;
            font-size: 38px;
            font-weight: 700;
            letter-spacing: -1px;
            line-height: 1.05;
            margin-bottom: 6px;
        }

        .profile .title {
            font-size: 13px;
            color: var(--ink-soft);
            font-weight: 500;
            margin-bottom: 12px;
        }

        .profile .contact {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 18px;
            margin-bottom: 14px;
        }

        .profile .contact a {
            display: flex;
            align-items: center;
            gap: 5px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            color: var(--ink-soft);
            text-decoration: none;
            transition: color 0.2s;
        }

        .profile .contact a:hover { color: var(--accent); }

        .profile .contact svg {
            width: 13px;
            height: 13px;
            flex-shrink: 0;
            opacity: 0.45;
        }

        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .tag {
            font-size: 11.5px;
            font-weight: 600;
            padding: 3px 10px;
            border-radius: 20px;
            background: var(--code-bg);
            color: var(--ink-soft);
        }

        /* --- Section Headers (Left) --- */
        .left-h2 {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--ink-light);
            margin-bottom: 10px;
            padding-bottom: 6px;
            border-bottom: 1px solid var(--border-light);
        }

        /* --- Education --- */
        .edu-item {
            font-size: 13px;
            line-height: 1.5;
        }
        .edu-item .school {
            font-weight: 700;
            color: var(--ink);
        }
        .edu-item .sep {
            color: var(--ink-faint);
            margin: 0 4px;
        }
        .edu-item .meta {
            color: var(--ink-light);
            font-size: 12px;
        }

        /* --- Tech Puzzle (华容道) --- */
        .puzzle {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            grid-auto-rows: 34px;
            grid-auto-flow: dense;
            gap: 4px;
        }

        .puzzle-item {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-size: 11.5px;
            font-weight: 600;
            padding: 2px 4px;
            background: var(--surface);
            border: 1px solid var(--border-light);
            border-radius: 6px;
            color: var(--ink-soft);
            transition: all 0.25s;
        }

        .puzzle-item:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .puzzle-item.wide {
            grid-column: span 2;
        }

        .puzzle-item.lg {
            grid-column: span 2;
            grid-row: span 2;
            font-family: 'Fraunces', serif;
            font-size: 15px;
            font-weight: 700;
            color: var(--ink);
            background: var(--accent-soft);
            border-color: var(--accent);
        }

        .puzzle-item.xlg {
            grid-column: span 2;
            grid-row: span 3;
            font-family: 'Fraunces', serif;
            font-size: 16px;
            font-weight: 700;
            color: var(--ink);
            background: var(--accent-soft);
            border-color: var(--accent);
        }

        .puzzle-item.lg:hover,
        .puzzle-item.xlg:hover {
            background: rgba(44, 74, 107, 0.12);
        }

        /* --- Timeline --- */
        .timeline-item {
            position: relative;
            padding-left: 20px;
            padding-bottom: 20px;
            border-left: 1.5px solid var(--border);
        }

        .timeline-item:last-child {
            padding-bottom: 0;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -5.5px;
            top: 4px;
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: var(--bg);
            border: 2px solid var(--ink-light);
        }

        .timeline-item.major::before {
            border-color: var(--accent);
            background: var(--accent);
        }

        .timeline-item .tl-date {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            color: var(--ink-light);
            margin-bottom: 2px;
        }

        .timeline-item .tl-company {
            font-size: 14px;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 2px;
        }

        .timeline-item .tl-desc {
            font-size: 12.5px;
            color: var(--ink-soft);
            line-height: 1.65;
        }

        .timeline-item .tl-desc strong {
            color: var(--ink);
            font-weight: 600;
        }

        .timeline-item .tl-segment {
            margin-top: 10px;
            font-size: 12.5px;
            color: var(--ink-soft);
            line-height: 1.65;
        }

        .timeline-item .tl-segment:first-of-type {
            margin-top: 6px;
        }

        .timeline-item .tl-segment .phase {
            font-weight: 700;
            color: var(--accent-warm);
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            display: block;
            margin-bottom: 2px;
        }

        .timeline-item .tl-segment strong {
            color: var(--ink);
            font-weight: 600;
        }

        .tl-points {
            list-style: none;
            padding: 0;
            margin: 10px 0 0;
        }

        .tl-points li {
            font-size: 14px;
            color: var(--ink-soft);
            line-height: 1.7;
            margin-bottom: 4px;
            padding-left: 18px;
            position: relative;
        }

        .tl-points li::before {
            content: '';
            position: absolute;
            left: 2px;
            top: 10px;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--accent);
        }

        /* ============ RIGHT COLUMN ============ */
        .col-right {
            min-width: 0;
        }

        .right-intro {
            margin-bottom: 56px;
        }

        .right-intro .eyebrow {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 3px;
            color: var(--accent);
            margin-bottom: 16px;
        }

        .right-intro h2 {
            font-family: 'Fraunces', 'Noto Serif SC', serif;
            font-size: 48px;
            font-weight: 700;
            letter-spacing: -1.5px;
            line-height: 1.1;
            margin-bottom: 20px;
        }

        .right-intro .lead {
            font-family: 'Fraunces', serif;
            font-size: 18px;
            font-weight: 400;
            color: var(--ink-soft);
            line-height: 1.6;
            max-width: 580px;
        }

        .right-intro .lead + .lead {
            margin-top: 20px;
        }

        /* --- Section Blocks --- */
        .block {
            margin-bottom: 48px;
        }

        .block-title {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--ink-light);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .block-title::before {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 2px;
            background: var(--accent);
            flex-shrink: 0;
        }

        .block-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
        }

        /* --- Comparison Table --- */
        .compare-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13.5px;
        }

        .compare-table th {
            text-align: left;
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--ink-light);
            padding: 10px 16px 10px 0;
            border-bottom: 2px solid var(--ink);
        }


        .compare-table td {
            padding: 12px 16px 12px 0;
            border-bottom: 1px solid var(--border-light);
            vertical-align: top;
            color: var(--ink-soft);
            line-height: 1.6;
            transition: background 0.2s;
        }

        .compare-table tbody tr:hover td {
            background: var(--surface-tint);
        }

        .compare-table td.dim {
            font-weight: 600;
            color: var(--ink);
            white-space: normal;
            width: 26%;
        }
        .compare-table .dim-sub {
            font-size: 11px;
            font-weight: 400;
            color: var(--ink-light);
            font-family: 'JetBrains Mono', monospace;
        }

        /* --- Approach Lead (transition text) --- */
        .approach-lead {
            font-family: 'Fraunces', serif;
            font-size: 16px;
            font-weight: 400;
            color: var(--ink-soft);
            line-height: 1.6;
            margin-bottom: 24px;
        }

        /* --- Design Philosophy --- */
        .philosophy .lead {
            font-family: 'Fraunces', 'Noto Serif SC', serif;
            font-size: 19px;
            font-weight: 400;
            color: var(--ink);
            line-height: 1.6;
            position: relative;
        }

        .philosophy .lead + .lead {
            margin-top: 20px;
        }

        /* --- Architecture Layers --- */
        .arch-stack {
            display: flex;
            flex-direction: column;
            gap: 2px;
            margin-bottom: 40px;
        }

        .arch-layer-bar {
            display: grid;
            grid-template-columns: 48px 1fr;
            gap: 20px;
            align-items: center;
            background: var(--surface);
            border: 1px solid var(--border-light);
            border-radius: 8px;
            padding: 16px 20px;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .arch-layer-bar::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--border);
            transition: background 0.3s;
        }

        .arch-layer-bar:hover::before {
            background: var(--accent);
        }

        .arch-layer-bar:hover {
            border-color: var(--accent);
            box-shadow: 0 2px 12px rgba(44,74,107,0.08);
        }

        .arch-layer-bar .layer-badge {
            font-family: 'Fraunces', serif;
            font-size: 28px;
            font-weight: 900;
            color: var(--ink-faint);
            text-align: center;
            line-height: 1;
        }

        .arch-layer-bar:hover .layer-badge {
            color: var(--accent);
        }

        .arch-layer-bar .layer-name {
            font-size: 15px;
            font-weight: 700;
            color: var(--ink);
        }

        .arch-layer-bar .layer-sub {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            color: var(--ink-light);
            margin-top: 2px;
        }

        /* --- Layer Detail Card --- */
        .layer-card {
            background: var(--surface);
            border: 1px solid var(--border-light);
            border-radius: 12px;
            padding: 32px;
            margin-bottom: 24px;
        }

        .layer-card .layer-num {
            font-family: 'Fraunces', serif;
            font-size: 14px;
            font-weight: 600;
            color: var(--accent);
            letter-spacing: 1px;
            margin-bottom: 4px;
        }

        .layer-card h3 {
            font-family: 'Fraunces', 'Noto Serif SC', serif;
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .layer-card .layer-tag {
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            color: var(--ink-light);
            margin-bottom: 20px;
        }

        .layer-card p {
            font-size: 14.5px;
            color: var(--ink-soft);
            line-height: 1.8;
            margin-bottom: 12px;
        }

        .layer-card p strong {
            color: var(--ink);
            font-weight: 600;
        }

        .layer-card .key-point {
            background: var(--accent-warm-soft);
            padding: 14px 18px;
            border-radius: 8px;
            margin: 16px 0;
            font-size: 14px;
            color: var(--ink);
            font-style: italic;
            font-family: 'Fraunces', serif;
            font-weight: 500;
        }

        .layer-card .code-inline {
            font-family: 'JetBrains Mono', monospace;
            font-size: 12.5px;
            background: var(--code-bg);
            padding: 2px 7px;
            border-radius: 4px;
            color: var(--accent);
        }

        .layer-card .layer-points {
            list-style: none;
            padding: 0;
            margin: 0 0 16px 0;
        }

        .layer-card .layer-points li {
            font-size: 14.5px;
            color: var(--ink-soft);
            line-height: 1.8;
            margin-bottom: 14px;
            padding-left: 22px;
            position: relative;
        }

        .layer-card .layer-points li::before {
            content: '';
            position: absolute;
            left: 2px;
            top: 11px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent);
        }

        .layer-svg {
            margin: 20px 0;
            text-align: center;
        }

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

        .layer-svg-caption {
            font-size: 12px;
            color: var(--ink-light);
            text-align: center;
            margin-top: 8px;
            font-family: 'JetBrains Mono', monospace;
        }

        /* --- SmartAgency Image --- */
        .smartagency-img-wrap {
            margin: 24px 0;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border);
            cursor: pointer;
            position: relative;
            transition: box-shadow 0.3s;
        }

        .smartagency-img-wrap:hover {
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
        }

        .smartagency-img-wrap::after {
            content: '点击放大';
            position: absolute;
            bottom: 12px;
            right: 12px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            color: var(--surface);
            background: rgba(0, 0, 0, 0.55);
            padding: 4px 10px;
            border-radius: 6px;
            opacity: 0;
            transition: opacity 0.25s;
        }

        .smartagency-img-wrap:hover::after {
            opacity: 1;
        }

        .smartagency-img {
            width: 100%;
            display: block;
        }

        /* --- Lightbox --- */
        .lightbox {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(10, 10, 10, 0.92);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            cursor: zoom-out;
            padding: 40px;
        }

        .lightbox.active {
            display: flex;
            animation: fadeIn 0.2s ease;
        }

        .lightbox img {
            max-width: 95%;
            max-height: 90vh;
            border-radius: 8px;
            box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4);
        }

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

        /* ============ FOOTER ============ */
        .resume-footer {
            text-align: center;
            padding: 48px 0 24px;
            border-top: 1px solid var(--border-light);
            margin-top: 24px;
        }

        .resume-footer p {
            font-family: 'Fraunces', serif;
            font-size: 13px;
            color: var(--ink-light);
            font-style: italic;
        }

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

        .right-intro .eyebrow { animation: fadeUp 0.5s ease forwards; opacity: 0; }
        .right-intro h2 { animation: fadeUp 0.5s 0.1s ease forwards; opacity: 0; }
        .right-intro .lead { animation: fadeUp 0.5s 0.2s ease forwards; opacity: 0; }
        .right-intro .lead + .lead { animation: fadeUp 0.5s 0.35s ease forwards; opacity: 0; }

        /* ============ RESPONSIVE ============ */
        @media (max-width: 900px) {
            .resume {
                grid-template-columns: 1fr;
                gap: 40px;
                padding: 40px 24px;
            }

            .col-left {
                position: static;
                max-height: none;
                overflow-y: visible;
                padding-right: 0;
            }

            .puzzle {
                grid-template-columns: repeat(5, 1fr);
            }

            .right-intro h2 { font-size: 36px; }
        }

        @media (max-width: 600px) {
            .puzzle { grid-template-columns: repeat(3, 1fr); }
            .right-intro h2 { font-size: 28px; }
            .layer-card { padding: 20px; }
            .compare-table { font-size: 12px; }
            .compare-table td, .compare-table th { padding: 8px 8px 8px 0; }
        }

        /* ============ PRINT ============ */
        @media print {
            body { background: white; font-size: 12px; }
            .resume { max-width: 100%; grid-template-columns: 280px 1fr; gap: 32px; padding: 0; }
            .col-left { position: static; max-height: none; overflow: visible; }
            .layer-card, .arch-layer-bar { break-inside: avoid; box-shadow: none; }
            .puzzle-item, .timeline-item { break-inside: avoid; }
        }
