        :root {
            --primary: #4f46e5;
            --primary-light: #6366f1;
            --primary-dark: #3730a3;
            --accent: #06b6d4;
            --accent-green: #10b981;
            --text: #1e293b;
            --text-secondary: #475569;
            --text-muted: #64748b;
            --bg: #ffffff;
            --bg-soft: #f8fafc;
            --bg-card: #f1f5f9;
            --border: #e2e8f0;
            --border-light: #f1f5f9;
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
            --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.05);
            --radius-sm: 8px;
            --radius: 14px;
            --radius-lg: 20px;
            --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
        }
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
            color: var(--text);
            background-color: var(--bg);
            line-height: 1.75;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            background-image:
                radial-gradient(ellipse at 15% 5%, rgba(99, 102, 241, 0.03) 0%, transparent 55%),
                radial-gradient(ellipse at 85% 90%, rgba(6, 182, 212, 0.03) 0%, transparent 55%);
            background-attachment: fixed;
        }
        /* 导航栏 (与首页一致) */
        header {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 100;
            transition: box-shadow var(--transition);
        }
        header.scrolled {
            box-shadow: var(--shadow-md);
        }
        .nav-container {
            max-width: 1240px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 24px;
            gap: 16px;
        }
        .logo {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            letter-spacing: -0.02em;
            white-space: nowrap;
            transition: opacity var(--transition);
        }
        .logo:hover {
            opacity: 0.82;
        }
        .logo img {
            height: 34px;
            width: auto;
            display: block;
            flex-shrink: 0;
        }
        .logo-dot {
            display: inline-block;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--accent);
            margin-left: 2px;
            animation: pulse-dot 2.4s ease-in-out infinite;
        }
        @keyframes pulse-dot {
            0%,
            100% {
                opacity: 0.4;
                transform: scale(1);
            }
            50% {
                opacity: 1;
                transform: scale(1.6);
            }
        }
        .nav-links {
            display: flex;
            list-style: none;
            gap: 6px;
            align-items: center;
            flex-wrap: wrap;
        }
        .nav-links a {
            text-decoration: none;
            color: var(--text-secondary);
            font-weight: 500;
            font-size: 0.95rem;
            padding: 8px 16px;
            border-radius: 20px;
            transition: all var(--transition);
            white-space: nowrap;
            position: relative;
        }
        .nav-links a:hover {
            color: var(--primary);
            background: rgba(79, 70, 229, 0.06);
        }
        .nav-links a.active {
            color: var(--primary);
            background: rgba(79, 70, 229, 0.10);
            font-weight: 600;
        }
        .nav-links .nav-badge {
            display: inline-block;
            background: var(--accent-green);
            color: #fff;
            font-size: 0.68rem;
            padding: 2px 7px;
            border-radius: 10px;
            margin-left: 4px;
            font-weight: 600;
            letter-spacing: 0.02em;
        }
        /* 面包屑 */
        .breadcrumb {
            max-width: 1240px;
            margin: 18px auto 0;
            padding: 0 24px;
            font-size: 0.85rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .breadcrumb a {
            color: var(--text-muted);
            text-decoration: none;
            transition: color var(--transition);
        }
        .breadcrumb a:hover {
            color: var(--primary);
        }
        .breadcrumb .sep {
            user-select: none;
            opacity: 0.5;
        }

        /* 主内容区布局 */
        .container {
            max-width: 1240px;
            margin: 0 auto;
            padding: 32px 24px 48px;
            display: grid;
            grid-template-columns: 1fr 280px;
            gap: 32px;
        }
        .main-content {
            min-width: 0;
        }
        .page-header {
            margin-bottom: 32px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-light);
        }
        .page-header h1 {
            font-size: clamp(1.8rem, 4vw, 2.3rem);
            font-weight: 800;
            color: #0f172a;
            letter-spacing: -0.03em;
            margin-bottom: 8px;
            line-height: 1.3;
        }
        .page-header .highlight {
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .page-header .meta {
            font-size: 0.88rem;
            color: var(--text-muted);
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }

        /* 教程内容排版 */
        .guide-article {
            counter-reset: step-counter;
        }
        .guide-article h2 {
            font-size: 1.65rem;
            font-weight: 700;
            margin: 40px 0 16px;
            padding-left: 16px;
            border-left: 4px solid var(--primary);
            color: #0f172a;
            letter-spacing: -0.02em;
        }
        .guide-article h3 {
            font-size: 1.2rem;
            margin: 28px 0 10px;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .guide-article p {
            margin-bottom: 16px;
            text-align: justify;
            color: var(--text-secondary);
            line-height: 1.8;
        }
        .guide-article ol,
        .guide-article ul {
            margin: 0 0 20px 20px;
        }
        .guide-article li {
            margin-bottom: 8px;
            color: var(--text-secondary);
        }
        .guide-article .code-block {
            background: #1e1e2e;
            color: #cdd6f4;
            font-family: var(--font-mono);
            padding: 18px;
            border-radius: var(--radius-sm);
            overflow-x: auto;
            margin-bottom: 20px;
            font-size: 0.88rem;
            line-height: 1.6;
            position: relative;
            border: 1px solid #334155;
        }
        .guide-article .code-block::before {
            content: '📄 配置片段';
            display: block;
            font-size: 0.7rem;
            color: #94a3b8;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 600;
        }
        .badge {
            display: inline-block;
            background: #ede9fe;
            color: var(--primary);
            padding: 2px 10px;
            border-radius: 14px;
            font-size: 0.8rem;
            font-weight: 600;
            font-family: var(--font-mono);
            letter-spacing: 0.02em;
            white-space: nowrap;
        }
        .badge-green {
            background: #d1fae5;
            color: #065f46;
        }
        .badge-blue {
            background: #dbeafe;
            color: #1e40af;
        }
        .note-box {
            background: #fffbeb;
            border-left: 4px solid #f59e0b;
            padding: 14px 16px;
            border-radius: var(--radius-sm);
            margin: 20px 0;
            color: #92400e;
            font-size: 0.93rem;
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }
        .note-box .icon {
            font-size: 1.2rem;
            flex-shrink: 0;
            margin-top: 2px;
        }
        .tip-box {
            background: #ecfdf5;
            border-left: 4px solid var(--accent-green);
            padding: 14px 16px;
            border-radius: var(--radius-sm);
            margin: 20px 0;
            color: #065f46;
            font-size: 0.93rem;
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }
        .tip-box .icon {
            font-size: 1.2rem;
            flex-shrink: 0;
            margin-top: 2px;
        }
        /* 步骤卡片 */
        .step-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
            margin: 24px 0;
        }
        .step-card {
            background: var(--bg-card);
            border-radius: var(--radius);
            padding: 22px 18px;
            border: 1px solid var(--border);
            position: relative;
            transition: all var(--transition);
            counter-increment: step-counter;
        }
        .step-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        .step-card::before {
            content: counter(step-counter);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            background: var(--primary);
            color: #fff;
            border-radius: 50%;
            font-weight: 700;
            font-size: 0.85rem;
            margin-bottom: 10px;
        }
        .step-card h4 {
            font-size: 1.05rem;
            font-weight: 600;
            color: #0f172a;
            margin-bottom: 6px;
        }
        .step-card p {
            font-size: 0.88rem;
            color: var(--text-secondary);
            margin: 0;
            line-height: 1.6;
        }
        /* 图片占位 */
        .image-placeholder {
            background: var(--bg-soft);
            border: 1px dashed var(--border);
            border-radius: var(--radius);
            padding: 24px;
            text-align: center;
            margin: 24px 0;
            color: var(--text-muted);
            font-size: 0.9rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }
        .image-placeholder .icon-large {
            font-size: 2.5rem;
            opacity: 0.5;
        }
        /* 侧边栏 */
        .sidebar {
            background: var(--bg-soft);
            border: 1px solid var(--border-light);
            border-radius: var(--radius);
            padding: 22px 20px;
            position: sticky;
            top: 100px;
            height: fit-content;
            box-shadow: var(--shadow-sm);
        }
        .sidebar h3 {
            font-size: 1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .toc-list {
            list-style: none;
            padding: 0;
        }
        .toc-list li {
            margin-bottom: 6px;
        }
        .toc-list a {
            text-decoration: none;
            color: var(--text-secondary);
            font-size: 0.9rem;
            padding: 6px 10px;
            border-radius: 6px;
            display: block;
            transition: all var(--transition);
            border-left: 3px solid transparent;
        }
        .toc-list a:hover {
            color: var(--primary);
            background: rgba(79, 70, 229, 0.05);
            border-left-color: var(--primary-light);
        }
        .sidebar .quick-actions {
            margin-top: 20px;
            border-top: 1px solid var(--border);
            padding-top: 16px;
        }
        .sidebar .quick-actions a {
            display: block;
            padding: 8px 12px;
            margin-bottom: 6px;
            border-radius: 20px;
            font-weight: 500;
            font-size: 0.85rem;
            text-align: center;
            text-decoration: none;
            background: var(--primary);
            color: #fff;
            transition: all var(--transition);
        }
        .sidebar .quick-actions a:hover {
            background: var(--primary-dark);
        }
        /* 页脚 */
        footer {
            background: var(--bg-soft);
            text-align: center;
            padding: 36px 20px;
            margin-top: 56px;
            border-top: 1px solid var(--border);
            color: var(--text-muted);
            font-size: 0.88rem;
            line-height: 1.8;
        }
        .footer-links {
            display: flex;
            justify-content: center;
            list-style: none;
            gap: 18px;
            margin-bottom: 14px;
            flex-wrap: wrap;
        }
        .footer-links a {
            text-decoration: none;
            color: var(--text-secondary);
            font-weight: 500;
            transition: color var(--transition);
            font-size: 0.9rem;
        }
        .footer-links a:hover {
            color: var(--primary);
        }
        .footer-note {
            font-size: 0.78rem;
            color: #94a3b8;
            margin-top: 6px;
        }
        /* 响应式 */
        @media (max-width: 992px) {
            .container {
                grid-template-columns: 1fr;
            }
            .sidebar {
                display: none;
            }
        }
        @media (max-width: 768px) {
            .nav-container {
                flex-direction: column;
                gap: 10px;
                padding: 12px 16px;
            }
            .nav-links a {
                padding: 7px 11px;
                font-size: 0.85rem;
            }
            .page-header h1 {
                font-size: 1.6rem;
            }
            .guide-article h2 {
                font-size: 1.4rem;
            }
            .footer-links {
                gap: 10px;
            }
            .step-grid {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 420px) {
            .page-header .meta {
                flex-direction: column;
                gap: 4px;
            }
        }