:root {
            --bg-body: #09090b;
            --bg-sidebar: rgba(15, 15, 18, 0.85);
            --bg-card: rgba(24, 24, 27, 0.5);
            --bg-alert: rgba(239, 68, 68, 0.1);
            --border: rgba(255, 255, 255, 0.08);
            --border-hover: rgba(255, 255, 255, 0.2);
            --border-alert: rgba(239, 68, 68, 0.3);
            
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --text-alert: #fca5a5;
            
            --accent: #38bdf8;
            --accent-glow: rgba(56, 189, 248, 0.15);
            --radius-md: 12px;
            --radius-lg: 16px;
            
            --sidebar-width: 280px;
        }

        * { box-sizing: border-box; }
        
        html { 
            scroll-behavior: smooth; 
            scroll-padding-top: 80px;
        }

        body {
            margin: 0;
            color: var(--text-main);
            background-color: var(--bg-body);
            font-family: 'Inter', 'Noto Sans SC', sans-serif;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        /* 背景发光层 */
        body::before {
            content: "";
            position: fixed;
            inset: 0;
            z-index: -1;
            background: 
                radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
            pointer-events: none;
        }

        /* 顶部导航 */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 64px;
            background: rgba(9, 9, 11, 0.8);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            z-index: 100;
            display: flex;
            align-items: center;
            padding: 0 24px;
        }

        .brand-logo {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: linear-gradient(135deg, #38bdf8, #8b5cf6);
            display: grid;
            place-items: center;
            font-weight: 800;
            color: #fff;
            box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
            margin-right: 12px;
        }

        .header h1 {
            font-size: 1.1rem;
            margin: 0;
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        /* 页面布局 */
        .layout-wrapper {
            display: flex;
            max-width: 1380px;
            margin: 64px auto 0;
            min-height: calc(100vh - 64px);
        }

        /* 左侧边栏 */
        .sidebar {
            width: var(--sidebar-width);
            flex-shrink: 0;
            height: calc(100vh - 64px);
            position: sticky;
            top: 64px;
            overflow-y: auto;
            border-right: 1px solid var(--border);
            padding: 32px 24px;
            background: var(--bg-sidebar);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }

        .sidebar-title {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            font-weight: 700;
            margin: 0 0 12px 12px;
        }

        .nav-list {
            list-style: none;
            padding: 0;
            margin: 0 0 32px 0;
        }

        .nav-list li a {
            display: block;
            padding: 8px 12px;
            color: var(--text-muted);
            text-decoration: none;
            border-radius: 8px;
            font-size: 0.95rem;
            transition: all 0.2s ease;
            margin-bottom: 2px;
        }

        .nav-list li a:hover {
            color: var(--text-main);
            background: rgba(255, 255, 255, 0.05);
        }

        .nav-list li a.active {
            color: var(--accent);
            background: var(--accent-glow);
            font-weight: 600;
        }

        /* 右侧正文区 */
        .main-content {
            flex-grow: 1;
            padding: 48px 64px;
            min-width: 0; /* 阻止内连长单词撑破 */
        }

        .hero-banner {
            margin-bottom: 56px;
        }

        .hero-banner h2 {
            font-size: 2.8rem;
            margin: 0 0 16px;
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        .hero-banner p {
            font-size: 1.1rem;
            color: var(--text-muted);
            max-width: 680px;
            margin: 0;
        }

        .section-block {
            margin-bottom: 64px;
        }

        .section-block h3 {
            font-size: 1.8rem;
            margin: 0 0 24px;
            font-weight: 700;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border);
        }

        .card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 32px;
            margin-bottom: 24px;
        }

        /* 保姆级 UI 模拟表单 */
        .ui-mockup {
            background: #121214;
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            margin: 24px 0;
            overflow: hidden;
        }
        
        .ui-header {
            background: #18181b;
            padding: 10px 16px;
            border-bottom: 1px solid var(--border);
            font-size: 0.85rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
        }

        .ui-header::before {
            content: "";
            display: inline-block;
            width: 10px; height: 10px;
            border-radius: 50%;
            background: #ef4444;
            box-shadow: 16px 0 0 #f59e0b, 32px 0 0 #10b981;
            margin-right: 48px;
        }

        .ui-body {
            padding: 24px;
            display: grid;
            gap: 16px;
        }

        .ui-row {
            display: grid;
            grid-template-columns: 140px 1fr auto;
            align-items: center;
            gap: 16px;
        }

        .ui-label {
            font-size: 0.9rem;
            font-weight: 500;
            color: #cbd5e1;
        }

        .ui-input {
            background: #000;
            border: 1px solid rgba(255,255,255,0.1);
            color: var(--accent);
            padding: 10px 14px;
            border-radius: 6px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .copy-btn {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-muted);
            padding: 8px 14px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.85rem;
            transition: all 0.2s;
            font-weight: 500;
        }

        .copy-btn:hover {
            color: #fff;
            border-color: rgba(255,255,255,0.3);
            background: rgba(255,255,255,0.05);
        }

        /* 警告提示框 */
        .alert {
            display: flex;
            gap: 12px;
            background: var(--bg-alert);
            border: 1px solid var(--border-alert);
            padding: 16px 20px;
            border-radius: var(--radius-md);
            margin: 20px 0;
            align-items: flex-start;
        }

        .alert-icon {
            color: #ef4444;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .alert-content p {
            margin: 0;
            color: var(--text-alert);
            font-size: 0.95rem;
        }
        
        .alert-content strong {
            color: #fff;
        }

        /* 普通提示框 */
        .tip {
            background: rgba(56, 189, 248, 0.05);
            border: 1px solid rgba(56, 189, 248, 0.2);
            border-left: 4px solid var(--accent);
            padding: 16px 20px;
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
            margin: 20px 0;
        }
        .tip p {
            margin: 0;
            color: var(--text-main);
            font-size: 0.95rem;
        }

        /* 步骤列表排版 */
        .step-list {
            counter-reset: step-counter;
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .step-item {
            position: relative;
            padding-left: 48px;
            margin-bottom: 28px;
        }

        .step-item::before {
            counter-increment: step-counter;
            content: counter(step-counter);
            position: absolute;
            left: 0;
            top: 0;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9rem;
        }

        .step-item h4 {
            margin: 4px 0 8px;
            font-size: 1.1rem;
            color: #fff;
        }

        .step-item p {
            margin: 0;
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.6;
        }

        /* 代码块基础 */
        pre {
            background: #000;
            border: 1px solid var(--border);
            padding: 16px;
            border-radius: var(--radius-md);
            overflow-x: auto;
            color: #e2e8f0;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9rem;
            line-height: 1.5;
            margin: 16px 0;
        }
        
        code {
            font-family: 'JetBrains Mono', monospace;
            background: rgba(255,255,255,0.1);
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.85em;
        }
        
        pre code {
            background: none;
            padding: 0;
        }

        /* 响应式 */
        @media (max-width: 1024px) {
            .sidebar { width: 220px; }
            .main-content { padding: 32px 40px; }
            .ui-row { grid-template-columns: 1fr; gap: 8px; }
            .ui-input { display: flex; justify-content: space-between; align-items: center; }
        }

        @media (max-width: 768px) {
            .layout-wrapper { flex-direction: column; }
            .sidebar { 
                width: 100%; 
                height: auto; 
                position: relative; 
                top: 0;
                padding: 20px;
                border-right: none;
                border-bottom: 1px solid var(--border);
            }
            .main-content { padding: 32px 20px; }
            .hero-banner h2 { font-size: 2.2rem; }
        }
