        :root {
            --accent: #6c5ce7;
            --accent-glow: #a29bfe;
            --accent-deep: #4a3db5;
            --surface: #ffffff;
            --surface-alt: #f9fafb;
            --card-bg: #f8f7ff;
            --text-primary: #1a1a2e;
            --text-secondary: #52526b;
            --text-muted: #7c7c96;
            --border: #e8e8f0;
            --radius-sm: 10px;
            --radius: 16px;
            --radius-lg: 24px;
            --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
            --proxy-color: #e056a0;
            --direct-color: #10b981;
            --block-color: #ef4444;
        }

        *,
        *::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', 'Inter', 'Noto Sans SC', system-ui, sans-serif;
            color: var(--text-primary);
            background: var(--surface);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        /* 导航 */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.7rem clamp(1.5rem, 5vw, 6rem);
            background: rgba(255, 255, 255, 0.82);
            backdrop-filter: blur(16px) saturate(140%);
            -webkit-backdrop-filter: blur(16px) saturate(140%);
            border-bottom: 1px solid rgba(108, 92, 231, 0.08);
            position: sticky;
            top: 0;
            z-index: 1000;
            transition: box-shadow var(--transition);
        }
        header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
        .logo-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            transition: transform var(--transition);
            flex-shrink: 0;
        }
        .logo-wrap:hover { transform: scale(1.04); }
        .logo-wrap img { height: 38px; width: auto; border-radius: 8px; }
        .logo-wrap .logo-text {
            font-weight: 800;
            font-size: 1.35rem;
            letter-spacing: -0.03em;
            background: linear-gradient(135deg, var(--accent) 0%, #e056a0 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        nav { display: flex; gap: 1.8rem; align-items: center; }
        nav a {
            text-decoration: none;
            color: var(--text-secondary);
            font-weight: 600;
            font-size: 0.9rem;
            position: relative;
            padding: 6px 2px;
            transition: color var(--transition);
            white-space: nowrap;
        }
        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2.5px;
            background: var(--accent);
            border-radius: 2px;
            transition: all var(--transition);
            transform: translateX(-50%);
        }
        nav a:hover, nav a.active { color: var(--accent); }
        nav a:hover::after, nav a.active::after { width: 80%; }
        .menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--text-primary); font-size: 1.5rem; }

        /* 页面标题 */
        .page-hero {
            padding: 4rem clamp(1.5rem, 5vw, 6rem) 2rem;
            text-align: center;
            background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(108, 92, 231, 0.05) 0%, transparent 60%);
        }
        .page-hero h1 {
            font-size: clamp(2rem, 4.5vw, 3.2rem);
            letter-spacing: -0.04em;
            margin-bottom: 1rem;
            font-weight: 800;
            animation: fadeInUp 0.8s ease-out;
        }
        .page-hero .subtitle {
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto;
            font-size: 1.05rem;
            animation: fadeInUp 1s ease-out;
        }
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 内容区 */
        .content-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem clamp(1.5rem, 5vw, 6rem) 4rem;
        }
        .section-header {
            text-align: center;
            margin-bottom: 3rem;
        }
        .section-header h2 {
            font-size: clamp(1.8rem, 3vw, 2.2rem);
            font-weight: 800;
            letter-spacing: -0.02em;
            margin-bottom: 0.5rem;
        }
        .section-divider {
            width: 50px;
            height: 4px;
            background: var(--accent);
            border-radius: 2px;
            margin: 0.8rem auto 0;
            opacity: 0.7;
        }

        /* 分流引擎动画（创意可视化） */
        .engine-visual {
            background: #1a1a2e;
            border-radius: var(--radius-lg);
            padding: 2.5rem;
            margin-bottom: 3rem;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }
        .engine-visual::before {
            content: 'RULES ENGINE';
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 4rem;
            font-weight: 900;
            color: rgba(255,255,255,0.03);
            letter-spacing: 0.2em;
        }
        .engine-flow {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin: 1.5rem 0;
            position: relative;
            z-index: 1;
        }
        .flow-box {
            background: #252538;
            border: 2px solid #33334d;
            border-radius: var(--radius-sm);
            padding: 1rem 1.5rem;
            text-align: center;
            color: #d0d0e8;
            font-weight: 700;
            font-size: 0.9rem;
            transition: all var(--transition);
            min-width: 100px;
        }
        .flow-box.entry { border-color: var(--accent-glow); color: #fff; }
        .flow-box.proxy { border-color: var(--proxy-color); }
        .flow-box.direct { border-color: var(--direct-color); }
        .flow-box.block { border-color: var(--block-color); }
        .flow-arrow {
            color: #8888a0;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
        }
        .packet-animation {
            display: flex;
            gap: 4px;
            justify-content: center;
            margin-top: 0.8rem;
        }
        .packet {
            width: 10px;
            height: 10px;
            border-radius: 2px;
            background: var(--accent-glow);
            animation: packetMove 2s ease-in-out infinite;
        }
        .packet:nth-child(2) { animation-delay: 0.3s; }
        .packet:nth-child(3) { animation-delay: 0.6s; }
        @keyframes packetMove {
            0%, 100% { opacity: 0.2; transform: translateX(0); }
            50% { opacity: 1; transform: translateX(20px); }
        }

        /* 规则类型卡片 */
        .grid-4 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }
        .rule-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.8rem;
            text-align: center;
            transition: all var(--transition);
            box-shadow: 0 2px 8px rgba(0,0,0,0.03);
            position: relative;
            overflow: hidden;
        }
        .rule-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: var(--accent);
            transform: scaleX(0);
            transition: transform var(--transition);
        }
        .rule-card:hover::before { transform: scaleX(1); }
        .rule-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(108, 92, 231, 0.1);
            border-color: rgba(108, 92, 231, 0.3);
        }
        .rule-icon {
            font-size: 2.2rem;
            color: var(--accent);
            margin-bottom: 1rem;
            display: block;
        }
        .rule-card h3 {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            font-weight: 700;
        }
        .rule-card p {
            color: var(--text-muted);
            font-size: 0.85rem;
            line-height: 1.5;
        }
        .rule-card code {
            background: #f5f3ff;
            padding: 2px 8px;
            border-radius: 4px;
            font-family: var(--font-mono);
            font-size: 0.8rem;
            color: var(--accent-deep);
            display: inline-block;
            margin-top: 0.5rem;
        }

        /* 策略组展示 */
        .strategy-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.8rem;
            margin-top: 2rem;
        }
        .strategy-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 1.8rem;
            border: 1px solid var(--border);
            transition: all var(--transition);
        }
        .strategy-card:hover {
            background: #fff;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
            border-color: var(--accent-glow);
        }
        .strategy-card h4 {
            font-size: 1.2rem;
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .strategy-card h4 i { color: var(--accent); }
        .strategy-card p {
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.6;
        }

        /* 配置示例 */
        .code-showcase {
            background: #0f172a;
            border-radius: var(--radius);
            padding: 1.8rem;
            margin-top: 2rem;
            color: #e2e8f0;
            font-family: var(--font-mono);
            font-size: 0.88rem;
            overflow-x: auto;
            border-left: 4px solid var(--accent-glow);
            position: relative;
        }
        .code-showcase::before {
            content: 'config.yaml';
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 0.7rem;
            color: #8888a0;
            letter-spacing: 0.05em;
        }

        /* 页脚 */
        footer {
            background: #111122;
            color: #a0a0b8;
            padding: 4rem clamp(1.5rem, 5vw, 6rem) 2rem;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 3rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        .footer-brand h4 { color: #fff; margin-bottom: 0.8rem; font-size: 1.2rem; }
        .footer-brand p { font-size: 0.9rem; opacity: 0.8; line-height: 1.65; }
        .footer-social { display: flex; gap: 1rem; margin-top: 1.2rem; font-size: 1.2rem; }
        .footer-social a { color: #a0a0b8; text-decoration: none; transition: color var(--transition); }
        .footer-social a:hover { color: var(--accent-glow); }
        .footer-links h4 { color: #fff; margin-bottom: 1rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; }
        .footer-links a {
            display: block;
            color: #a0a0b8;
            text-decoration: none;
            margin-bottom: 0.65rem;
            font-size: 0.9rem;
            transition: color var(--transition);
            padding-left: 14px;
            position: relative;
        }
        .footer-links a::before {
            content: '→';
            position: absolute;
            left: 0;
            opacity: 0;
            transition: all var(--transition);
            color: var(--accent-glow);
        }
        .footer-links a:hover { color: #fff; padding-left: 18px; }
        .footer-links a:hover::before { opacity: 1; }
        .footer-bottom {
            border-top: 1px solid #1e1e38;
            margin-top: 3rem;
            padding-top: 1.8rem;
            text-align: center;
            font-size: 0.82rem;
            max-width: 1200px;
            margin-inline: auto;
            opacity: 0.7;
        }

        /* 响应式 */
        @media (max-width: 768px) {
            header { flex-wrap: wrap; padding: 0.8rem 1.2rem; gap: 0.6rem; }
            nav { gap: 0.8rem; flex-wrap: wrap; justify-content: center; width: 100%; order: 3; padding-top: 0.3rem; }
            nav a { font-size: 0.82rem; }
            .menu-toggle { display: block; order: 2; }
            .logo-wrap { order: 1; }
            .footer-grid { grid-template-columns: 1fr; }
            .engine-flow { flex-direction: column; }
            .flow-arrow { transform: rotate(90deg); }
        }