:root {
            --bg: #f5f5f7;
            --bg-card: #ffffff;
            --bg-elevated: #ffffff;
            --text: #1d1d1f;
            --text-secondary: #6e6e73;
            --text-muted: #aeaeb2;
            --accent: #0071e3;
            --accent-hover: #0077ed;
            --accent-light: rgba(0,113,227,0.08);
            --border: rgba(0,0,0,0.06);
            --border-strong: rgba(0,0,0,0.1);
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
            --shadow: 0 2px 12px rgba(0,0,0,0.06);
            --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
            --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
            --radius: 16px;
            --radius-sm: 10px;
            --radius-xs: 6px;
            --max-width: 1440px;
            --nav-height: 52px;
            --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-blue: linear-gradient(135deg, #0071e3 0%, #00c6fb 100%);
            --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --gradient-green: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }
        [data-theme="dark"] {
            --bg: #000000;
            --bg-card: #1c1c1e;
            --bg-elevated: #2c2c2e;
            --text: #f5f5f7;
            --text-secondary: #98989d;
            --text-muted: #636366;
            --accent: #2997ff;
            --accent-hover: #40a9ff;
            --accent-light: rgba(41,151,255,0.12);
            --border: rgba(255,255,255,0.06);
            --border-strong: rgba(255,255,255,0.1);
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
            --shadow: 0 2px 12px rgba(0,0,0,0.3);
            --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
            --shadow-xl: 0 20px 60px rgba(0,0,0,0.5);
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg); color: var(--text); line-height: 1.6;
            -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
        }
        a { color: var(--accent); text-decoration: none; transition: all 0.25s ease; }
        a:hover { color: var(--accent-hover); }
        img { max-width: 100%; }

        /* ===== NAVBAR ===== */
        .navbar {
            position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
            height: var(--nav-height);
            background: rgba(255,255,255,0.72);
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            border-bottom: 1px solid var(--border);
            transition: background 0.3s;
        }
        [data-theme="dark"] .navbar {
            background: rgba(0,0,0,0.72);
        }
        .navbar-inner {
            max-width: var(--max-width); margin: 0 auto;
            height: 100%; padding: 0 24px;
            display: flex; align-items: center; justify-content: space-between;
        }
        .nav-brand {
            font-size: 1.15rem; font-weight: 800; color: var(--text);
            letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px;
        }
        .nav-brand .dot {
            width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
            display: inline-block;
        }
        .nav-links { display: flex; align-items: center; gap: 2px; }
        .nav-links a {
            padding: 6px 14px; border-radius: 8px; font-size: 0.82rem;
            color: var(--text-secondary); font-weight: 500; transition: all 0.2s;
            letter-spacing: -0.1px;
        }
        .nav-links a:hover { background: var(--accent-light); color: var(--accent); }
        .nav-links a.active { color: var(--accent); background: var(--accent-light); }
        .nav-right { display: flex; align-items: center; gap: 6px; }
        .hamburger { display: none; }
        .nav-search {
            position: relative; display: flex; align-items: center;
        }
        .nav-search input {
            width: 0; padding: 0; border: none; background: transparent;
            font-size: 0.85rem; color: var(--text); outline: none;
            transition: all 0.3s ease; font-family: inherit;
        }
        .nav-search.active input {
            width: 180px; padding: 7px 12px 7px 34px;
            background: var(--bg-card); border: 1px solid var(--border-strong);
            border-radius: 10px;
        }
        .nav-search .search-btn {
            width: 34px; height: 34px; border-radius: 10px; border: none;
            background: transparent; color: var(--text-secondary);
            cursor: pointer; font-size: 0.85rem; display: flex;
            align-items: center; justify-content: center; transition: all 0.2s;
        }
        .nav-search .search-btn:hover { background: var(--accent-light); color: var(--accent); }
        .nav-search.active .search-btn { position: absolute; left: 4px; z-index: 1; }
        .search-history {
            position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px;
            background: var(--bg-card); border: 1px solid var(--border-strong);
            border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 100;
            max-height: 280px; overflow-y: auto; display: none;
        }
        .search-history.show { display: block; }
        .search-history-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 8px 12px; border-bottom: 1px solid var(--border);
        }
        .search-history-header span {
            font-size: 0.75rem; color: var(--text-muted); font-weight: 500;
        }
        .search-history-header button {
            font-size: 0.72rem; color: var(--accent); background: none; border: none;
            cursor: pointer; font-family: inherit; padding: 2px 4px;
        }
        .search-history-header button:hover { text-decoration: underline; }
        .search-history-item {
            display: flex; align-items: center; justify-content: space-between;
            padding: 8px 12px; cursor: pointer; transition: background 0.15s;
        }
        .search-history-item:hover { background: var(--accent-light); }
        .search-history-item span {
            font-size: 0.82rem; color: var(--text-secondary); flex: 1;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .search-history-item .delete-btn {
            font-size: 0.7rem; color: var(--text-muted); background: none;
            border: none; cursor: pointer; padding: 2px 6px; border-radius: 4px;
            opacity: 0; transition: all 0.15s; flex-shrink: 0;
        }
        .search-history-item:hover .delete-btn { opacity: 1; }
        .search-history-item .delete-btn:hover { color: #ef4444; background: rgba(239,68,68,0.1); }
        .theme-btn {
            width: 34px; height: 34px; border-radius: 10px; border: none;
            background: transparent; color: var(--text-secondary);
            cursor: pointer; font-size: 0.9rem; display: flex;
            align-items: center; justify-content: center; transition: all 0.2s;
        }
        .theme-btn:hover { background: var(--accent-light); color: var(--accent); }

        /* ===== LAYOUT ===== */
        .page-wrapper { padding-top: var(--nav-height); min-height: 100vh; }
        .container { max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }
        .container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

        /* ===== HERO ===== */
        .hero {
            padding: 80px 0 60px; text-align: center;
            position: relative; overflow: hidden;
        }
        .hero::before {
            content: ''; position: absolute; top: -200px; left: 50%;
            transform: translateX(-50%); width: 800px; height: 400px;
            background: radial-gradient(ellipse, rgba(0,113,227,0.08) 0%, transparent 70%);
            pointer-events: none;
        }
        [data-theme="dark"] .hero::before {
            background: radial-gradient(ellipse, rgba(41,151,255,0.06) 0%, transparent 70%);
        }
        .hero-badge {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 6px 14px; border-radius: 20px; font-size: 0.78rem;
            background: var(--accent-light); color: var(--accent);
            font-weight: 600; margin-bottom: 20px; letter-spacing: -0.1px;
        }
        .hero h1 {
            font-size: 3rem; font-weight: 800; letter-spacing: -1.5px;
            line-height: 1.15; margin-bottom: 16px;
            background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .hero p {
            font-size: 1.15rem; color: var(--text-secondary); max-width: 520px;
            margin: 0 auto; line-height: 1.7; font-weight: 400;
        }
        .hero-actions {
            display: flex; gap: 12px; justify-content: center; margin-top: 28px;
        }
        .hero-btn {
            padding: 10px 24px; border-radius: 10px; font-size: 0.88rem;
            font-weight: 600; cursor: pointer; border: none; transition: all 0.25s;
            font-family: inherit; display: inline-flex; align-items: center; gap: 8px;
        }
        .hero-btn-primary { background: var(--accent); color: #fff; }
        .hero-btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
        .hero-btn-secondary {
            background: var(--bg-card); color: var(--text); border: 1px solid var(--border-strong);
        }
        .hero-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

        /* ===== SECTION ===== */
        .section { padding: 48px 0; }
        .section-header {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 28px;
        }
        .section-title {
            font-size: 1.3rem; font-weight: 700; letter-spacing: -0.5px;
        }
        .section-more {
            font-size: 0.85rem; color: var(--accent); font-weight: 500;
            display: flex; align-items: center; gap: 4px;
        }
        .section-more:hover { gap: 8px; }

        /* ===== CARDS ===== */
        .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
        .card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
        .post-card {
            background: var(--bg-card); border-radius: var(--radius); padding: 24px;
            border: 1px solid var(--border); transition: all 0.3s ease;
            display: flex; flex-direction: column; cursor: pointer; text-decoration: none; color: inherit;
            overflow: hidden;
        }
        .card-cover {
            width: calc(100% + 48px); margin: -24px -24px 16px -24px; height: 160px;
            background-size: cover; background-position: center;
            border-bottom: 1px solid var(--border);
        }
        .post-card:hover {
            border-color: var(--border-strong); box-shadow: var(--shadow-lg);
            transform: translateY(-2px); color: inherit;
        }
        .post-card .card-tag {
            display: inline-flex; padding: 3px 10px; border-radius: 6px;
            font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3px;
            margin-bottom: 14px; width: fit-content;
        }
        .tag-tech { background: rgba(0,113,227,0.1); color: #0071e3; }
        .tag-think { background: rgba(168,85,247,0.1); color: #a855f7; }
        .tag-life { background: rgba(34,197,94,0.1); color: #22c55e; }
        .tag-note { background: rgba(249,115,22,0.1); color: #f97316; }
        .tag-news { background: rgba(239,68,68,0.1); color: #ef4444; }
        .card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
        .card-tags .card-tag { margin-bottom: 0; }
        [data-theme="dark"] .tag-tech { background: rgba(41,151,255,0.15); color: #40a9ff; }
        [data-theme="dark"] .tag-think { background: rgba(168,85,247,0.15); color: #c084fc; }
        [data-theme="dark"] .tag-life { background: rgba(34,197,94,0.15); color: #4ade80; }
        [data-theme="dark"] .tag-note { background: rgba(249,115,22,0.15); color: #fb923c; }
        [data-theme="dark"] .tag-news { background: rgba(239,68,68,0.15); color: #f87171; }
        .post-card .card-title {
            font-size: 1.05rem; font-weight: 650; line-height: 1.4;
            margin-bottom: 8px; letter-spacing: -0.3px; color: var(--text);
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        }
        .post-card .card-summary {
            font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6;
            flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        }
        .post-card .card-footer {
            display: flex; align-items: center; justify-content: space-between;
            margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
            font-size: 0.78rem; color: var(--text-muted);
        }
        .post-card .card-footer .views { display: flex; align-items: center; gap: 4px; }

        /* ===== FEATURED CARD ===== */
        .featured-card {
            background: var(--bg-card); border-radius: var(--radius); padding: 32px;
            border: 1px solid var(--border); transition: all 0.3s ease;
            display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
            align-items: center; cursor: pointer; text-decoration: none; color: inherit;
        }
        .featured-card:hover {
            box-shadow: var(--shadow-xl); transform: translateY(-3px); color: inherit;
        }
        .featured-card .featured-visual {
            height: 220px; border-radius: var(--radius-sm); overflow: hidden;
            background: var(--gradient); display: flex; align-items: center; justify-content: center;
            color: #fff; font-size: 3rem;
        }
        .featured-card .card-tag { margin-bottom: 12px; }
        .featured-card .card-title {
            font-size: 1.4rem; font-weight: 700; line-height: 1.35;
            margin-bottom: 10px; letter-spacing: -0.5px;
        }
        .featured-card .card-summary {
            font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7;
            display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
        }

        /* ===== NEWS LIST ===== */
        .news-list { display: flex; flex-direction: column; }
        .news-item {
            display: flex; gap: 20px; padding: 20px 0;
            border-bottom: 1px solid var(--border); transition: all 0.2s;
            text-decoration: none; color: inherit;
        }
        .news-item:hover { color: inherit; }
        .news-item:hover .news-title { color: var(--accent); }
        .news-item .news-number {
            font-size: 1.6rem; font-weight: 800; color: var(--border-strong);
            min-width: 40px; line-height: 1;
        }
        .news-item .news-content { flex: 1; }
        .news-item .news-title {
            font-size: 1rem; font-weight: 600; margin-bottom: 4px;
            letter-spacing: -0.2px; transition: color 0.2s;
        }
        .news-item .news-meta {
            font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 12px;
        }

        /* ===== TOOL CARDS ===== */
        .tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
        .tool-card {
            background: var(--bg-card); border-radius: var(--radius); padding: 28px;
            border: 1px solid var(--border); transition: all 0.3s ease;
            text-decoration: none; color: inherit; text-align: center;
        }
        .tool-card:hover {
            border-color: var(--accent); box-shadow: var(--shadow-lg);
            transform: translateY(-3px); color: inherit;
        }
        .tool-icon {
            width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.3rem; color: #fff;
        }
        .tool-card .tool-name { font-size: 1rem; font-weight: 650; margin-bottom: 6px; }
        .tool-card .tool-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

        /* ===== BREADCRUMB ===== */
        .breadcrumb {
            display: flex; align-items: center; gap: 8px;
            padding: 16px 0 0; font-size: 0.82rem; color: var(--text-muted);
        }
        .breadcrumb a {
            color: var(--accent); text-decoration: none; font-weight: 500;
            transition: color 0.2s;
        }
        .breadcrumb a:hover { color: var(--accent-hover); text-decoration: underline; }
        .breadcrumb-sep { font-size: 0.65rem; color: var(--text-muted); opacity: 0.5; }
        .breadcrumb-current {
            color: var(--text-secondary); font-weight: 500;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
            max-width: 500px;
        }
        @media (max-width: 768px) {
            .breadcrumb { padding: 12px 0 0; font-size: 0.78rem; }
            .breadcrumb-current { max-width: 200px; }
        }

        /* ===== POST DETAIL ===== */
        .post-header { padding: 60px 0 24px; }
        .post-header .post-meta {
            display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
            font-size: 0.82rem; color: var(--text-muted);
        }
        .post-header h1 {
            font-size: 2.2rem; font-weight: 800; line-height: 1.25;
            letter-spacing: -1px; margin-bottom: 8px;
        }
        .post-header .post-sub {
            font-size: 1.05rem; color: var(--text-secondary);
        }
        .post-body {
            padding: 32px 0; font-size: 1rem; line-height: 1.9; color: var(--text);
            overflow-x: hidden; min-width: 0;
        }
        .post-body h2 { font-size: 1.35rem; font-weight: 700; margin: 36px 0 16px; letter-spacing: -0.3px; }
        .post-body h3 { font-size: 1.12rem; font-weight: 650; margin: 28px 0 12px; }
        .post-body p { margin-bottom: 18px; }
        .post-body ul, .post-body ol { margin: 14px 0; padding-left: 24px; }
        .post-body li { margin-bottom: 8px; }
        .post-body code {
            background: var(--accent-light); padding: 2px 7px; border-radius: 5px;
            font-family: 'JetBrains Mono', monospace; font-size: 0.86em; color: var(--accent);
        }
        .post-body pre {
            background: #1e1e2e; color: #cdd6f4; padding: 22px; border-radius: var(--radius-sm);
            overflow-x: auto; margin: 20px 0; font-size: 0.86rem; line-height: 1.65;
        }
        .post-body pre code { background: none; color: inherit; padding: 0; font-size: 1rem; }
        .post-body table { width: 100%; border-collapse: collapse; margin: 0; max-width: 100%; }
        .post-body table th, .post-body table td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
        .post-body table th { background: var(--accent-light); font-weight: 650; }
        .table-wrap { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }

        /* Code Block Copy Button */
        .code-block {
            margin: 20px 0; border-radius: var(--radius-sm); overflow: hidden;
            background: #1e1e2e; border: 1px solid rgba(255,255,255,0.06);
        }
        .code-block-header {
            padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
            display: flex; align-items: center;
        }
        .code-lang-label {
            font-size: 0.68rem; color: #6c7086; font-family: 'JetBrains Mono', monospace;
            text-transform: uppercase; letter-spacing: 0.5px;
        }
        .code-line-row {
            display: flex; align-items: center; padding: 0 14px;
            border-bottom: 1px solid rgba(255,255,255,0.03);
            transition: background 0.15s;
        }
        .code-line-row:last-of-type { border-bottom: none; }
        .code-line-row:hover { background: rgba(255,255,255,0.04); }
        .code-line-content {
            flex: 1; padding: 7px 0; font-family: 'JetBrains Mono', monospace;
            font-size: 0.84rem; line-height: 1.6; color: #cdd6f4;
            white-space: pre-wrap; word-break: break-all; overflow-wrap: break-word;
        }
        .code-copy-btn {
            flex-shrink: 0; padding: 4px 8px; border-radius: 5px; border: none;
            background: transparent; color: #45475a; font-size: 0.72rem;
            cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: all 0.2s; font-family: inherit; margin-left: 8px;
        }
        .code-copy-btn:hover { background: rgba(255,255,255,0.1); color: #bac2de; }
        .code-copy-btn.copied { color: #a6e3a1; }
        .code-copy-all {
            padding: 8px 14px; border-top: 1px solid rgba(255,255,255,0.06);
            display: flex; align-items: center; gap: 6px; cursor: pointer;
            font-size: 0.72rem; color: #6c7086; font-family: 'JetBrains Mono', monospace;
            transition: all 0.2s;
        }
        .code-copy-all:hover { background: rgba(255,255,255,0.06); color: #bac2de; }
        .code-copy-all.copied { color: #a6e3a1; }
        .code-comment-text {
            font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7;
            margin: 6px 0; padding: 0 2px;
        }

        .code-line-comment {
            font-size: 0.75rem; color: #6c7086; padding: 4px 14px 0;
            font-family: 'JetBrains Mono', monospace;
        }
        .code-inline-comment {
            padding: 4px 14px 4px 20px; font-size: 0.78rem;
            color: #6c7086; font-family: 'JetBrains Mono', monospace;
            background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.03);
        }

        .post-body blockquote {
            border-left: 3px solid var(--accent); padding: 14px 20px; margin: 20px 0;
            background: var(--accent-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
            color: var(--text-secondary); font-style: italic;
        }
        .post-body strong { font-weight: 650; }

        /* Post Nav */
        .post-nav {
            display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
            padding: 32px 0; border-top: 1px solid var(--border); margin-top: 40px;
        }
        .post-nav a {
            padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--border);
            transition: all 0.2s; text-decoration: none; color: inherit;
        }
        .post-nav a:hover { border-color: var(--accent); box-shadow: var(--shadow); color: inherit; }
        .post-nav .nav-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; }
        .post-nav .nav-title { font-size: 0.92rem; font-weight: 600; }
        .post-nav .next { text-align: right; }

        /* ===== ABOUT ===== */
        .about-hero {
            padding: 60px 0; display: flex; gap: 40px; align-items: center;
        }
        .about-avatar {
            width: 100px; height: 100px; border-radius: 28px; flex-shrink: 0;
            background: var(--gradient); display: flex; align-items: center; justify-content: center;
            color: #fff; font-size: 2.5rem; font-weight: 800;
        }
        .about-info h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 6px; }
        .about-info .role { font-size: 1rem; color: var(--text-secondary); margin-bottom: 16px; }
        .about-info .bio { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; }
        .about-section { padding: 40px 0; }
        .about-section h2 {
            font-size: 1.2rem; font-weight: 700; margin-bottom: 20px;
            padding-bottom: 12px; border-bottom: 1px solid var(--border);
        }
        .skill-tags { display: flex; gap: 8px; flex-wrap: wrap; }
        .skill-tag {
            padding: 8px 18px; border-radius: 10px; font-size: 0.85rem; font-weight: 500;
            background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
            transition: all 0.2s;
        }
        .skill-tag:hover { border-color: var(--accent); color: var(--accent); }
        .contact-links { display: flex; gap: 12px; flex-wrap: wrap; }
        .contact-link {
            display: flex; align-items: center; gap: 10px; padding: 14px 20px;
            background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
            color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
            transition: all 0.2s; text-decoration: none;
        }
        .contact-link:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow); }
        .contact-link i { font-size: 1.1rem; }

        /* ===== CATEGORY FILTER ===== */
        .cat-filter {
            display: flex; gap: 6px; margin-bottom: 32px; flex-wrap: wrap;
        }
        .cat-filter a {
            padding: 7px 18px; border-radius: 20px; font-size: 0.82rem;
            color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border);
            font-weight: 500; transition: all 0.2s; text-decoration: none;
        }
        .cat-filter a:hover, .cat-filter a.active {
            background: var(--accent); color: #fff; border-color: var(--accent);
        }

        /* ===== SEARCH ===== */
        .search-result-title {
            font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px;
        }

        /* ===== EMPTY ===== */
        .empty-state {
            text-align: center; padding: 80px 0; color: var(--text-muted);
        }
        .empty-state i { font-size: 2.5rem; margin-bottom: 16px; display: block; opacity: 0.4; }
        .empty-state p { font-size: 0.95rem; }

        /* ===== FOOTER ===== */
        .footer {
            padding: 40px 24px; margin-top: 80px;
            border-top: 1px solid var(--border);
        }
        .footer-inner {
            max-width: var(--max-width); margin: 0 auto;
            display: flex; justify-content: center; align-items: center;
        }
        .footer-text { font-size: 0.82rem; color: var(--text-muted); }

        /* ===== BACK TO TOP ===== */
        .back-to-top {
            position: fixed; bottom: 24px; right: 24px; z-index: 999;
            width: 44px; height: 44px; border-radius: 12px; border: none;
            background: var(--bg-card); color: var(--text-secondary);
            box-shadow: var(--shadow-lg); cursor: pointer; font-size: 1rem;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.3s ease; opacity: 0; pointer-events: none;
            border: 1px solid var(--border);
        }
        .back-to-top.show { opacity: 1; pointer-events: auto; }
        .back-to-top:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

        /* ===== FLASH ===== */
        .flash {
            padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 24px;
            font-size: 0.88rem; font-weight: 500;
        }
        .flash.success { background: #dcfce7; color: #166534; }
        .flash.error { background: #fef2f2; color: #991b1b; }
        .flash.warning { background: #fefce8; color: #854d0e; }

        /* ===== TAGS ===== */
        .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
        .tag {
            font-size: 0.72rem; color: var(--text-muted); background: var(--bg);
            padding: 3px 10px; border-radius: 5px; font-weight: 500;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .hero h1 { font-size: 2rem; }
            .hero p { font-size: 1rem; }
            .hero-actions { flex-direction: column; align-items: center; }
            .card-grid { grid-template-columns: 1fr; gap: 12px; }
            .card-grid-2 { grid-template-columns: 1fr; }
            .tool-grid { grid-template-columns: 1fr; gap: 12px; }
            .featured-card { grid-template-columns: 1fr; }
            .featured-card .featured-visual { height: 160px; }
            .about-hero { flex-direction: column; text-align: center; }
            .navbar { background: rgba(255,255,255,0.95); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
            [data-theme="dark"] .navbar { background: rgba(0,0,0,0.95); }
            .nav-links {
                display: none;
                position: fixed;
                top: var(--nav-height);
                left: 0;
                right: 0;
                background: var(--bg-card);
                flex-direction: column;
                padding: 12px;
                border-bottom: 1px solid var(--border);
                box-shadow: var(--shadow-lg);
                z-index: 999;
            }
            .nav-links.active { display: flex; }
            .nav-links a {
                width: 100%;
                padding: 12px 16px;
                border-radius: 8px;
                font-size: 0.95rem;
            }
            .nav-links a:hover { background: var(--accent-light); }
            .nav-right {
                display: flex;
                align-items: center;
                gap: 4px;
            }
            .nav-search { display: none; }
            .nav-search.active {
                display: block;
                position: fixed;
                top: var(--nav-height);
                left: 0;
                right: 0;
                background: var(--bg-card);
                padding: 16px;
                border-bottom: 1px solid var(--border);
                box-shadow: var(--shadow-lg);
                z-index: 998;
            }
            .nav-search.active input {
                width: 100%;
                padding: 12px 16px;
                border-radius: 8px;
                font-size: 1rem;
                border: 1px solid var(--border);
            }
            .nav-search .search-history {
                position: static;
                margin-top: 8px;
                border: 1px solid var(--border);
            }
            .hamburger {
                display: flex;
                flex-direction: column;
                gap: 5px;
                cursor: pointer;
                padding: 8px;
                background: none;
                border: none;
                z-index: 1001;
            }
            .hamburger span {
                width: 22px;
                height: 2px;
                background: var(--text);
                transition: all 0.3s;
            }
            .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
            .hamburger.active span:nth-child(2) { opacity: 0; }
            .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
            .footer-inner { flex-direction: column; gap: 12px; }
            .post-header h1 { font-size: 1.6rem; }
            .post-header { padding: 40px 0 16px; }
            .post-nav { grid-template-columns: 1fr; }
            .post-nav .next { text-align: left; }
            .container { padding: 0 16px; }
            .section { padding: 32px 0; }
            .card-grid .post-card { padding: 18px; }
            .card-grid .post-card .card-cover { height: 120px; }
            .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
            .page-header { padding: 32px 0 16px; }
            .page-header h1 { font-size: 1.5rem; }

            /* === 文章内容移动端适配 === */
            .post-body { padding: 16px 0; font-size: 1.15rem; line-height: 1.85; overflow-x: hidden; min-width: 0; }
            .post-body h2 { font-size: 1.5rem; margin: 28px 0 12px; }
            .post-body h3 { font-size: 1.2rem; margin: 22px 0 10px; }
            .post-body p { margin-bottom: 14px; }
            .post-body ul, .post-body ol { padding-left: 20px; }
            .post-body li { margin-bottom: 6px; }
            .post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
            .post-body a { word-break: break-all; }
            .post-body code {
                padding: 2px 6px;
                max-width: 100%; overflow-wrap: break-word; word-break: break-all;
            }
            .post-body pre {
                padding: 16px; margin: 14px 0;
                border-radius: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
            }
            .code-block { margin: 14px 0; border-radius: 8px; font-size: 0.9rem; max-width: 100%; overflow-x: auto; }
            .code-block-header { padding: 6px 10px; }
            .code-lang-label { font-size: 0.7rem; }
            .code-line-row { padding: 0 10px; }
            .code-line-content { padding: 5px 0; font-size: 0.88rem; min-width: 0; }
            .code-copy-btn { padding: 3px 8px; margin-left: 4px; font-size: 0.7rem; }
            .code-copy-all { padding: 8px 12px; font-size: 0.7rem; }
            .post-body blockquote { padding: 12px 16px; margin: 14px 0; font-size: 0.95rem; }
            .post-body blockquote p { margin-bottom: 6px; }
            .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
            .post-body table { font-size: 0.9rem; }
            .post-body table th, .post-body table td { padding: 8px 10px; }
            .tags { margin-top: 20px; gap: 8px; }
            .tags .tag { padding: 4px 10px; font-size: 0.8rem; }
            .post-nav a { padding: 14px; }
            .post-nav .nav-title { font-size: 0.88rem; }

            /* 评论区移动端 */
            .comment-item { padding: 14px; }
            .comment-avatar { width: 32px; height: 32px; font-size: 0.8rem; }
            .comment-body { padding-left: 42px; font-size: 0.88rem; }

            /* 文章元信息移动端 */
            .post-header .post-meta { flex-wrap: wrap; gap: 6px; font-size: 0.78rem; }
            .post-header .post-sub { font-size: 0.95rem; }
            .post-header { padding: 36px 0 12px; }

            /* 关于页移动端 */
            .about-hero { gap: 24px; padding: 36px 0; }
            .about-hero .about-text h2 { font-size: 1.4rem; }

            /* 页头移动端 */
            .section-header { flex-direction: column; gap: 12px; }
            .section-header .section-action { align-self: flex-start; }
        }

/* === about.html === */
.focus-grid {
        display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    }
    .focus-card {
        background: var(--bg-card); border: 1px solid var(--border);
        border-radius: var(--radius-sm); padding: 20px; text-align: center;
        transition: all 0.3s;
    }
    .focus-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
    .focus-icon {
        width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 12px;
        display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    }
    .focus-card h4 { font-size: 0.95rem; font-weight: 650; margin-bottom: 4px; }
    .focus-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
    .timeline { position: relative; padding: 8px 0 8px 32px; }
    .timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--border-strong); }
    .timeline-item { position: relative; margin-bottom: 32px; }
    .timeline-item:last-child { margin-bottom: 0; }
    .timeline-dot {
        position: absolute; left: -32px; top: 6px; width: 16px; height: 16px;
        border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); z-index: 1;
    }
    .timeline-item:hover .timeline-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-light); }
    .timeline-date { font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
    .timeline-card {
        background: var(--bg-card); border: 1px solid var(--border);
        border-radius: var(--radius-sm); padding: 20px; transition: all 0.3s;
    }
    .timeline-item:hover .timeline-card { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateX(4px); }
    .timeline-card h3 { font-size: 1rem; font-weight: 650; margin-bottom: 6px; }
    .timeline-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
    @media (max-width: 768px) {
        .focus-grid { grid-template-columns: repeat(2, 1fr); }
    }
/* === blog.html === */
@media screen and (max-width: 768px) {
        .post-card:active {
            transform: scale(0.98);
            opacity: 0.8;
            transition: all 0.1s;
        }
        .post-card {
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
    }
/* === index.html === */
/* Banner Carousel */
    .banner-carousel {
        position: relative; width: 100%; border-radius: var(--radius); overflow: hidden;
        margin-top: 20px; height: 200px;
    }
    .banner-slide {
        position: absolute; inset: 0;
        background: linear-gradient(135deg, #0071e3, #5856d6, #a855f7);
        display: flex; align-items: center; justify-content: center;
        opacity: 0; transition: opacity 0.6s ease; z-index: 0;
    }
    .banner-slide.active { opacity: 1; z-index: 1; }
    .banner-content { text-align: center; color: #fff; padding: 24px; z-index: 2; }
    .banner-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
    .banner-subtitle { font-size: 0.95rem; opacity: 0.9; margin-bottom: 16px; }
    .banner-link {
        display: inline-flex; align-items: center; gap: 6px; color: #fff;
        font-size: 0.85rem; font-weight: 600; padding: 8px 20px;
        background: rgba(255,255,255,0.2); border-radius: 20px;
        backdrop-filter: blur(10px); transition: all 0.25s; text-decoration: none;
    }
    .banner-link:hover { background: rgba(255,255,255,0.35); color: #fff; }
    .banner-dots {
        position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
        display: flex; gap: 8px; z-index: 3;
    }
    .banner-dot {
        width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5);
        cursor: pointer; transition: all 0.3s;
    }
    .banner-dot.active { background: #fff; width: 20px; border-radius: 4px; }
    .banner-arrow {
        position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
        width: 36px; height: 36px; border-radius: 50%; border: none;
        background: rgba(255,255,255,0.2); color: #fff; font-size: 0.8rem;
        cursor: pointer; backdrop-filter: blur(10px); transition: all 0.25s;
        display: flex; align-items: center; justify-content: center;
    }
    .banner-arrow:hover { background: rgba(255,255,255,0.4); }
    .banner-prev { left: 14px; }
    .banner-next { right: 14px; }

    /* Links Section */
    .links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
    .link-card {
        background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
        padding: 18px; text-align: center; text-decoration: none; color: inherit;
        transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; gap: 10px;
    }
    .link-card:hover {
        border-color: var(--border-strong); box-shadow: var(--shadow-lg);
        transform: translateY(-2px); color: inherit;
    }
    .link-icon {
        width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center;
        justify-content: center; font-size: 1.1rem; color: #fff;
        background: var(--gradient);
    }
    .link-name { font-size: 0.88rem; font-weight: 600; }

    /* Hero */
    .hero-section {
        display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
        padding: 60px 0 50px; align-items: center; position: relative;
    }
    .hero-glow {
        position: absolute; top: -100px; left: -200px;
        width: 600px; height: 400px; border-radius: 50%;
        background: radial-gradient(ellipse, rgba(0,113,227,0.06) 0%, transparent 70%);
        pointer-events: none; z-index: 0;
    }
    [data-theme="dark"] .hero-glow {
        background: radial-gradient(ellipse, rgba(41,151,255,0.04) 0%, transparent 70%);
    }
    .hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
    .hero-status {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 6px 14px; border-radius: 20px; font-size: 0.8rem;
        background: rgba(34,197,94,0.08); color: #22c55e; font-weight: 500;
        margin-bottom: 24px;
    }
    .status-dot {
        width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
        animation: pulse 2s infinite;
    }
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.4; }
    }
    .hero-title {
        font-size: 2.8rem; font-weight: 800; line-height: 1.2;
        letter-spacing: -1.5px; margin-bottom: 16px; color: var(--text);
    }
    .hero-name {
        background: linear-gradient(135deg, var(--accent) 0%, #a855f7 50%, #f5576c 100%);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .hero-subtitle {
        font-size: 1rem; color: var(--accent); margin-bottom: 12px;
        font-weight: 500; letter-spacing: 0.5px;
    }
    .hero-desc {
        font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 28px;
        max-width: 420px; line-height: 1.6;
    }
    .hero-actions { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; justify-content: flex-start; }
    .hero-actions .btn-primary {
        padding: 12px 28px; background: var(--accent); color: #fff;
        border-radius: 12px; font-size: 0.9rem; font-weight: 600;
        display: inline-flex; align-items: center; gap: 8px;
        transition: all 0.25s; border: none; cursor: pointer; font-family: inherit;
    }
    .hero-actions .btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,113,227,0.25); }
    .hero-actions .btn-ghost {
        padding: 12px 28px; background: var(--bg-card); color: var(--text);
        border: 1px solid var(--border-strong); border-radius: 12px;
        font-size: 0.9rem; font-weight: 600; display: inline-flex;
        align-items: center; gap: 8px; transition: all 0.25s; cursor: pointer;
        font-family: inherit; text-decoration: none;
    }
    .hero-actions .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
    .hero-stats {
        display: flex; align-items: center; gap: 24px;
        padding: 20px 24px; background: var(--bg-card); border-radius: 14px;
        border: 1px solid var(--border); box-shadow: var(--shadow-sm);
        justify-content: flex-start; width: 100%;
    }
    .stat { text-align: center; }
    .stat-num { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
    .stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
    .stat-divider { width: 1px; height: 32px; background: var(--border); }

    /* Code Window */
    .hero-visual { position: relative; z-index: 1; }
    .code-window {
        background: #1e1e2e; border-radius: 14px; overflow: hidden;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        border: 1px solid rgba(255,255,255,0.05);
    }
    .code-bar {
        display: flex; align-items: center; gap: 6px; padding: 12px 16px;
        background: #181825; border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .code-dot { width: 10px; height: 10px; border-radius: 50%; }
    .code-dot.red { background: #f38ba8; }
    .code-dot.yellow { background: #f9e2af; }
    .code-dot.green { background: #a6e3a1; }
    .code-title { margin-left: auto; font-size: 0.75rem; color: #6c7086; font-family: 'JetBrains Mono', monospace; }
    .code-body { padding: 20px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; line-height: 1.8; }
    .code-line { color: #cdd6f4; white-space: pre; }
    .kw { color: #cba6f7; }
    .fn { color: #89b4fa; }
    .str { color: #a6e3a1; }
    .cls { color: #f9e2af; }
    .cm { color: #6c7086; }

    /* Featured Card */
    .featured-card {
        display: grid; grid-template-columns: 1fr 1.3fr; gap: 0;
        background: var(--bg-card); border: 1px solid var(--border);
        border-radius: var(--radius); overflow: hidden;
        transition: all 0.35s ease; text-decoration: none; color: inherit;
    }
    .featured-card:hover {
        box-shadow: var(--shadow-xl); transform: translateY(-4px); color: inherit;
    }
    .featured-visual {
        background: linear-gradient(135deg, #0071e3, #5856d6, #a855f7);
        position: relative; display: flex; align-items: center; justify-content: center;
        min-height: 240px; overflow: hidden;
    }
    .featured-icon { font-size: 3rem; color: rgba(255,255,255,0.9); z-index: 2; position: relative; }
    .featured-decoration { position: absolute; inset: 0; }
    .deco-circle {
        position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,0.1);
    }
    .deco-circle.c1 { width: 200px; height: 200px; top: -40px; right: -40px; }
    .deco-circle.c2 { width: 140px; height: 140px; bottom: -20px; left: -20px; }
    .deco-circle.c3 { width: 80px; height: 80px; top: 30%; left: 20%; background: rgba(255,255,255,0.05); }
    .featured-info { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
    .featured-title {
        font-size: 1.4rem; font-weight: 700; letter-spacing: -0.5px;
        margin: 12px 0 10px; line-height: 1.35;
    }
    .featured-desc {
        font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7;
        flex: 1;
    }
    .featured-footer {
        display: flex; align-items: center; gap: 16px; margin-top: 20px;
        padding-top: 16px; border-top: 1px solid var(--border);
        font-size: 0.82rem; color: var(--text-muted);
    }
    .read-more {
        margin-left: auto; color: var(--accent); font-weight: 500;
        display: flex; align-items: center; gap: 6px; transition: gap 0.2s;
    }
    .featured-card:hover .read-more { gap: 10px; }

    /* Post Cards */
    .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .post-card {
        background: var(--bg-card); border: 1px solid var(--border);
        border-radius: var(--radius); padding: 24px;
        display: flex; flex-direction: column; transition: all 0.3s ease;
        text-decoration: none; color: inherit;
    }
    .post-card:hover {
        border-color: var(--border-strong); box-shadow: var(--shadow-lg);
        transform: translateY(-3px); color: inherit;
    }
    .post-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
    .post-card-title {
        font-size: 1.05rem; font-weight: 650; line-height: 1.4;
        margin-bottom: 8px; letter-spacing: -0.2px; color: var(--text);
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .post-card-summary {
        font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6;
        flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .post-card-footer {
        display: flex; align-items: center; justify-content: space-between;
        margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
        font-size: 0.8rem; color: var(--text-muted);
    }
    .read-link { color: var(--accent); font-weight: 500; display: flex; align-items: center; gap: 4px; transition: gap 0.2s; }
    .post-card:hover .read-link { gap: 8px; }
    .post-views-sm { font-size: 0.78rem; color: var(--text-muted); }

    /* List Items */
    .list-grid { display: flex; flex-direction: column; }
    .list-item {
        display: flex; align-items: center; gap: 20px;
        padding: 18px 20px; border-bottom: 1px solid var(--border);
        text-decoration: none; color: inherit; transition: all 0.2s;
    }
    .list-item:first-child { border-top: 1px solid var(--border); }
    .list-item:hover { background: var(--accent-light); color: inherit; }
    .list-num {
        font-size: 1.4rem; font-weight: 800; color: var(--border-strong);
        min-width: 36px; transition: color 0.2s;
    }
    .list-item:hover .list-num { color: var(--accent); }
    .list-content { flex: 1; }
    .list-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
    .list-meta { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--text-muted); }
    .list-arrow { color: var(--text-muted); font-size: 0.8rem; transition: all 0.2s; }
    .list-item:hover .list-arrow { color: var(--accent); transform: translateX(4px); }

    /* Nav Cards */
    .nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .nav-card {
        background: var(--bg-card); border: 1px solid var(--border);
        border-radius: var(--radius); padding: 28px 20px; text-align: center;
        transition: all 0.3s ease; text-decoration: none; color: inherit;
    }
    .nav-card:hover {
        border-color: var(--border-strong); box-shadow: var(--shadow-lg);
        transform: translateY(-3px); color: inherit;
    }
    .nav-icon {
        width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.3rem; color: #fff;
    }
    .nav-card h4 { font-size: 1rem; font-weight: 650; margin-bottom: 4px; }
    .nav-card p { font-size: 0.82rem; color: var(--text-secondary); }

    /* Section */
    .section { padding: 48px 0; }
    .section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
    .section-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.5px; }
    .section-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
    .section-more {
        font-size: 0.85rem; color: var(--accent); font-weight: 500;
        display: flex; align-items: center; gap: 6px; white-space: nowrap;
    }
    .section-more:hover { gap: 10px; }

    /* Tags */
    .card-tag {
        display: inline-flex; padding: 3px 10px; border-radius: 6px;
        font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3px;
    }
    .tag-tech { background: rgba(0,113,227,0.1); color: #0071e3; }
    .tag-think { background: rgba(168,85,247,0.1); color: #a855f7; }
    .tag-life { background: rgba(34,197,94,0.1); color: #22c55e; }
    .tag-note { background: rgba(249,115,22,0.1); color: #f97316; }
    [data-theme="dark"] .tag-tech { background: rgba(41,151,255,0.15); color: #40a9ff; }
    [data-theme="dark"] .tag-think { background: rgba(168,85,247,0.15); color: #c084fc; }
    [data-theme="dark"] .tag-life { background: rgba(34,197,94,0.15); color: #4ade80; }
    [data-theme="dark"] .tag-note { background: rgba(249,115,22,0.15); color: #fb923c; }
    .post-date i { margin-right: 4px; }
    .post-views i { margin-right: 4px; }
/* === index.html === */
/* ===== MOBILE - 必须单独写确保覆盖 ===== */
    @media screen and (max-width: 768px) {
        .hero-section {
            display: block !important;
            padding: 32px 0 24px !important;
        }
        .banner-carousel { height: 160px !important; margin-top: 12px !important; }
        .banner-title { font-size: 1.15rem !important; }
        .banner-subtitle { font-size: 0.82rem !important; }
        .banner-arrow { display: none !important; }
        .links-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
        .link-card { padding: 14px !important; }
        .hero-content {
            display: block !important;
            width: 100% !important;
            text-align: center !important;
        }
        .hero-visual {
            display: none !important;
        }
        .hero-title {
            font-size: 1.8rem !important;
            line-height: 1.25 !important;
        }
        .hero-status {
            justify-content: center !important;
        }
        .hero-desc {
            font-size: 0.95rem !important;
            margin: 0 auto 16px !important;
            text-align: center !important;
            max-width: 100% !important;
        }
        .hero-actions {
            display: flex !important;
            gap: 10px !important;
            margin-bottom: 20px !important;
            justify-content: center !important;
        }
        .hero-actions .btn-primary,
        .hero-actions .btn-ghost {
            padding: 10px 20px !important;
            font-size: 0.85rem !important;
        }
        .hero-stats {
            display: flex !important;
            gap: 12px !important;
            padding: 14px 16px !important;
            width: 100% !important;
            justify-content: space-around !important;
        }
        .stat-num { font-size: 1.2rem !important; }
        .stat-label { font-size: 0.7rem !important; }

        /* Cards */
        .card-grid {
            grid-template-columns: 1fr !important;
            gap: 12px !important;
        }
        .post-card { padding: 16px !important; }

        /* Featured */
        .featured-card {
            grid-template-columns: 1fr !important;
        }
        .featured-visual { min-height: 140px !important; }
        .featured-info { padding: 20px !important; }
        .featured-title { font-size: 1.1rem !important; }
        .featured-footer { flex-wrap: wrap !important; gap: 8px !important; }

        /* Nav */
        .nav-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 10px !important;
        }
        .nav-card { padding: 20px 12px !important; }
        .nav-icon { width: 48px !important; height: 48px !important; font-size: 1.1rem !important; }

        /* Section */
        .section { padding: 28px 0 !important; }
        .section-header { margin-bottom: 16px !important; flex-wrap: nowrap !important; justify-content: flex-start !important; align-items: flex-start !important; }
        .section-title { font-size: 1.1rem !important; text-align: left !important; }
        .section-sub { display: none !important; }

        /* List */
        .list-item { padding: 12px 14px !important; gap: 12px !important; }
        .list-num { font-size: 1rem !important; min-width: 24px !important; }
        .list-title { font-size: 0.9rem !important; }
    }

    @media screen and (min-width: 769px) and (max-width: 1024px) {
        .hero-section { gap: 32px; }
        .hero-title { font-size: 2.4rem; }
        .card-grid { grid-template-columns: repeat(2, 1fr); }
    }

    /* Mobile touch feedback */
    @media screen and (max-width: 768px) {
        .featured-card:active,
        .post-card:active,
        .list-item:active {
            transform: scale(0.98);
            opacity: 0.8;
            transition: all 0.1s;
        }
        .featured-card,
        .post-card,
        .list-item {
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
    }
/* === models.html === */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .tool-card {
        background: var(--bg-card); border-radius: var(--radius); padding: 28px;
        border: 1px solid var(--border); transition: all 0.3s ease;
        text-decoration: none; color: inherit; text-align: center;
    }
    .tool-card:hover {
        border-color: var(--accent); box-shadow: var(--shadow-lg);
        transform: translateY(-3px); color: inherit;
    }
    .tool-icon {
        width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.3rem; color: #fff;
    }
    .tool-card .tool-name { font-size: 1rem; font-weight: 650; margin-bottom: 6px; }
    .tool-card .tool-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
    .tool-link { font-size: 0.78rem; color: var(--accent); display: flex; align-items: center; justify-content: center; gap: 4px; }
    .section { padding: 32px 0; }
    .section-header { margin-bottom: 20px; }
    .section-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.3px; }

    /* 场景推荐 */
    .scenario-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .scenario-card {
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 22px;
        border: 1px solid var(--border);
        transition: all 0.3s ease;
    }
    .scenario-card:hover {
        border-color: var(--accent);
        box-shadow: var(--shadow-md);
    }
    .scenario-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    .scenario-title {
        font-size: 0.95rem;
        font-weight: 650;
        margin-bottom: 8px;
    }
    .scenario-desc {
        font-size: 0.82rem;
        color: var(--text-secondary);
        line-height: 1.6;
    }

    @media (max-width: 768px) {
        .tool-grid { grid-template-columns: 1fr; }
        .scenario-grid { grid-template-columns: 1fr; }
    }
    @media (min-width: 769px) and (max-width: 1024px) {
        .tool-grid { grid-template-columns: repeat(2, 1fr); }
        .scenario-grid { grid-template-columns: repeat(2, 1fr); }
    }
/* === news.html === */
/* 列表样式 */
    .news-list { display: flex; flex-direction: column; gap: 1px; }
    .news-row {
        display: flex; align-items: center; gap: 20px;
        padding: 20px 24px; cursor: pointer;
        background: var(--bg-card); border: 1px solid var(--border);
        border-radius: var(--radius); margin-bottom: 10px;
        transition: all 0.2s ease;
    }
    .news-row:hover {
        border-color: var(--accent); box-shadow: 0 2px 12px rgba(102,126,234,0.08);
        transform: translateX(4px);
    }
    .news-row-left { flex-shrink: 0; }
    .news-row-badge {
        display: inline-block; padding: 4px 12px; border-radius: 6px;
        font-size: 0.75rem; font-weight: 600;
    }
    .badge-ai { background: rgba(168,85,247,0.1); color: #a855f7; }
    .badge-前端 { background: rgba(0,113,227,0.1); color: #0071e3; }
    .badge-后端 { background: rgba(34,197,94,0.1); color: #22c55e; }
    .badge-开源 { background: rgba(249,115,22,0.1); color: #f97316; }
    .badge-综合 { background: rgba(107,114,128,0.1); color: #6b7280; }
    [data-theme="dark"] .badge-ai { background: rgba(168,85,247,0.15); color: #c084fc; }
    [data-theme="dark"] .badge-前端 { background: rgba(41,151,255,0.15); color: #40a9ff; }
    [data-theme="dark"] .badge-后端 { background: rgba(34,197,94,0.15); color: #4ade80; }
    [data-theme="dark"] .badge-开源 { background: rgba(249,115,22,0.15); color: #fb923c; }
    .news-row-center { flex: 1; min-width: 0; }
    .news-row-title {
        font-size: 1.05rem; font-weight: 650; line-height: 1.5;
        margin: 0 0 6px; letter-spacing: -0.2px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .news-row-meta {
        display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-muted);
    }
    .news-row-meta i { margin-right: 4px; font-size: 0.72rem; }
    .news-row-right { flex-shrink: 0; }
    .news-row-arrow {
        color: var(--text-muted); font-size: 0.8rem;
        transition: all 0.2s; opacity: 0.4;
    }
    .news-row:hover .news-row-arrow { opacity: 1; color: var(--accent); transform: translateX(3px); }

    /* Modal */
    .news-modal {
        display: none; position: fixed; inset: 0; z-index: 9999;
        background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
        justify-content: center; align-items: flex-start;
        padding: 40px 20px; overflow-y: auto;
    }
    .news-modal.open { display: flex; }
    .news-modal-inner {
        width: 100%; max-width: 760px;
        background: var(--bg-card); border: 1px solid var(--border);
        border-radius: 16px; padding: 40px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
        animation: modalIn 0.25s ease;
    }
    @keyframes modalIn {
        from { opacity: 0; transform: translateY(20px) scale(0.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .news-modal-header {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 20px;
    }
    .news-modal-meta { display: flex; align-items: center; gap: 12px; }
    .news-modal-badge {
        padding: 4px 12px; border-radius: 6px;
        font-size: 0.75rem; font-weight: 600;
    }
    .news-modal-date, .news-modal-source {
        font-size: 0.82rem; color: var(--text-muted);
    }
    .news-modal-close {
        width: 36px; height: 36px; border-radius: 50%;
        border: 1px solid var(--border); background: var(--bg);
        color: var(--text-secondary); cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: all 0.2s; font-size: 0.9rem;
    }
    .news-modal-close:hover { background: var(--border); color: var(--text); }
    .news-modal-title {
        font-size: 1.6rem; font-weight: 800; line-height: 1.4;
        letter-spacing: -0.5px; margin: 0 0 28px;
    }
    .news-modal-body {
        line-height: 1.9; font-size: 1rem; color: var(--text);
    }
    .news-modal-body h2 {
        font-size: 1.25rem; font-weight: 700; margin: 32px 0 14px;
        padding-bottom: 10px; border-bottom: 1px solid var(--border);
    }
    .news-modal-body h3 {
        font-size: 1.1rem; font-weight: 650; margin: 24px 0 10px;
    }
    .news-modal-body p { margin: 12px 0; }
    .news-modal-body ul, .news-modal-body ol {
        padding-left: 22px; margin: 12px 0;
    }
    .news-modal-body li { margin: 8px 0; line-height: 1.8; }
    .news-modal-body code {
        background: var(--border); padding: 2px 7px; border-radius: 5px;
        font-size: 0.88em; font-family: 'SF Mono', 'Fira Code', monospace;
    }
    .news-modal-body pre {
        background: #0f172a; color: #e2e8f0; padding: 18px 22px;
        border-radius: 12px; overflow-x: auto; margin: 16px 0;
        border: 1px solid #1e293b;
    }
    .news-modal-body pre code { background: none; padding: 0; color: inherit; font-size: 0.88em; }
    .news-modal-body strong { color: var(--accent); font-weight: 650; }
    .news-modal-body hr {
        border: none; border-top: 1px solid var(--border); margin: 28px 0;
    }
    .news-modal-body table {
        width: 100%; border-collapse: collapse; margin: 16px 0;
        font-size: 0.92rem;
    }
    .news-modal-body th, .news-modal-body td {
        padding: 10px 14px; border: 1px solid var(--border);
        text-align: left;
    }
    .news-modal-body th {
        background: var(--border); font-weight: 650;
    }
    .news-modal-body tr:hover { background: rgba(102,126,234,0.03); }
    .news-modal-footer {
        margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
    }
    .news-modal-link {
        display: inline-flex; align-items: center; gap: 6px;
        color: var(--accent); text-decoration: none; font-size: 0.9rem;
        padding: 8px 16px; border-radius: 8px;
        background: rgba(102,126,234,0.08); transition: all 0.2s;
    }
    .news-modal-link:hover { background: rgba(102,126,234,0.15); }

    /* 空状态 */
    .empty-state {
        text-align: center; padding: 80px 0; color: var(--text-muted);
    }
    .empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
    .empty-state p { font-size: 1rem; }

    /* 响应式 */
    @media (max-width: 768px) {
        .news-row { padding: 16px 18px; gap: 14px; }
        .news-row-title { font-size: 0.95rem; }
        .news-modal-inner { padding: 24px; margin: 10px; border-radius: 12px; }
        .news-modal-title { font-size: 1.3rem; }
        .news-modal { padding: 20px 10px; }
        .news-modal-body { font-size: 0.92rem; line-height: 1.8; }
        .news-modal-body pre { padding: 14px; font-size: 0.8rem; border-radius: 8px; }
        .news-modal-body code { font-size: 0.82em; }
        .news-modal-body table { font-size: 0.82rem; }
        .news-modal-body th, .news-modal-body td { padding: 8px 10px; }
        .news-modal-body img { max-width: 100%; height: auto; }
    }
/* === post.html === */
/* TOC layout */
    .post-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
    .post-toc {
        position: sticky; top: 72px; max-height: calc(100vh - 100px);
        overflow-y: auto; padding: 16px 0; width: 200px; box-sizing: border-box;
    }
    .post-toc nav a {
        display: block; padding: 5px 12px; font-size: 0.78rem;
        color: var(--text-muted); text-decoration: none; border-left: 2px solid transparent;
        transition: all 0.2s; line-height: 1.5; border-radius: 0 6px 6px 0;
    }
    .post-toc nav a:hover { color: var(--text); background: var(--accent-light); }
    .post-toc nav a.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-light); font-weight: 500; }
    .post-toc nav a.toc-h3 { padding-left: 24px; font-size: 0.75rem; }
    .post-toc nav { max-height: calc(100vh - 160px); overflow-y: auto; }

    /* Tab content headings - inline style for specificity */
    .tab-content h2[style] { scroll-margin-top: 80px; }
    .tab-content h3[style] { scroll-margin-top: 80px; }

    /* Tags, post-nav, comments: align with content column */
    .tags, .post-nav, .comment-section { width: calc(100% - 224px); margin-left: 224px; box-sizing: border-box; }

    @media (max-width: 1024px) {
        .post-layout { grid-template-columns: 1fr; }
        .tags, .post-nav, .comment-section { width: 100%; margin-left: 0; }
        .post-toc {
            position: relative; top: 0; max-height: none;
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: var(--radius-sm); padding: 16px; margin-bottom: 24px;
        }
        .post-toc nav { display: flex; flex-wrap: wrap; gap: 4px; }
        .post-toc nav a { border-left: none; border-bottom: 2px solid transparent; padding: 4px 10px; border-radius: 6px; }
        .post-toc nav a.active { border-bottom-color: var(--accent); }
    }
    @media (max-width: 768px) {
        .post-toc { display: none; }
        .comment-form-wrap { padding: 16px !important; }
        .comment-form-wrap input,
        .comment-form-wrap textarea { font-size: 16px !important; }
        .comment-submit-btn { width: 100% !important; }
    }

    /* Comments */
    .comment-item {
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 20px;
        border: 1px solid var(--border);
        margin-bottom: 12px;
        animation: fadeIn 0.3s ease;
    }
    .comment-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }
    .comment-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--accent);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        font-weight: 600;
        flex-shrink: 0;
    }
    .comment-nick {
        font-size: 0.9rem;
        font-weight: 600;
    }
    .comment-time {
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-left: auto;
    }
    .comment-body {
        font-size: 0.9rem;
        color: var(--text-secondary);
        line-height: 1.7;
        padding-left: 46px;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Platform tabs */
    .platform-tabs { margin: 24px 0; }
    .tab-header { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 0; }
    .tab-header p { display: contents; margin: 0; }
    .tab-header br { display: none; }
    .tab-btn { padding: 10px 24px; border: none; background: transparent; cursor: pointer; font-size: 0.95rem; font-weight: 500; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; font-family: inherit; }
    .tab-btn:hover { color: var(--text-primary); }
    .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
    .tab-content { display: none; padding: 20px 0 0 0; }
    .tab-content.active { display: block; }
    @media (max-width: 768px) { .tab-btn { padding: 8px 14px; font-size: 0.85rem; } }
/* === tools.html === */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .tool-card {
        background: var(--bg-card); border-radius: var(--radius); padding: 28px;
        border: 1px solid var(--border); transition: all 0.3s ease;
        text-decoration: none; color: inherit; text-align: center;
    }
    .tool-card:hover {
        border-color: var(--accent); box-shadow: var(--shadow-lg);
        transform: translateY(-3px); color: inherit;
    }
    .tool-icon {
        width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.3rem; color: #fff;
    }
    .tool-card .tool-name { font-size: 1rem; font-weight: 650; margin-bottom: 6px; }
    .tool-card .tool-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
    .tool-link { font-size: 0.78rem; color: var(--accent); display: flex; align-items: center; justify-content: center; gap: 4px; }
    .section { padding: 32px 0; }
    .section-header { margin-bottom: 20px; }
    .section-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.3px; }
    @media (max-width: 768px) {
        .tool-grid { grid-template-columns: 1fr; }
    }
    @media (min-width: 769px) and (max-width: 1024px) {
        .tool-grid { grid-template-columns: repeat(2, 1fr); }
    }