/* ============================================
   Codex 中文官网 - 共享样式表
   设计风格：深色科技风 / Dark Tech
   主色：深空黑 + 电光青 + 紫色辉光
   ============================================ */

/* ---------- CSS 变量定义 ---------- */
:root {
    /* 背景色 */
    --color-bg-primary: #0A0E14;
    --color-bg-secondary: #11161F;
    --color-bg-tertiary: #161B26;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    --color-bg-card-hover: rgba(255, 255, 255, 0.06);

    /* 边框 */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-border-accent: rgba(0, 229, 255, 0.3);

    /* 文字 */
    --color-text-primary: #E6EDF3;
    --color-text-secondary: #B1BAC4;
    --color-text-tertiary: #8B949E;
    --color-text-muted: #6E7681;

    /* 强调色 */
    --color-accent-cyan: #00E5FF;
    --color-accent-cyan-dim: rgba(0, 229, 255, 0.15);
    --color-accent-purple: #7B61FF;
    --color-accent-purple-dim: rgba(123, 97, 255, 0.15);
    --color-success: #00FF88;
    --color-warning: #FFA500;
    --color-error: #FF4D4D;

    /* 阴影 */
    --shadow-glow-cyan: 0 0 32px rgba(0, 229, 255, 0.25);
    --shadow-glow-purple: 0 0 32px rgba(123, 97, 255, 0.25);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-nav: 0 4px 24px rgba(0, 0, 0, 0.5);

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #00E5FF 0%, #7B61FF 100%);
    --gradient-text: linear-gradient(135deg, #00E5FF 0%, #7B61FF 60%, #FF61D8 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(123, 97, 255, 0.05) 100%);
    --gradient-bg-mesh: radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
                       radial-gradient(circle at 80% 70%, rgba(123, 97, 255, 0.08) 0%, transparent 50%);

    /* 过渡 */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* 字体 */
    --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'SF Mono', Consolas, monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;

    /* 间距 */
    --space-unit: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* 布局 */
    --container-max: 1200px;
    --nav-height: 72px;
}

/* ---------- 重置与基础 ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    background-image: var(--gradient-bg-mesh);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-hover);
}

/* 文字选中 */
::selection {
    background: var(--color-accent-cyan-dim);
    color: var(--color-accent-cyan);
}

/* ---------- 链接 ---------- */
a {
    color: var(--color-accent-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-text-primary);
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- 布局容器 ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section-sm {
    padding: 64px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent-cyan);
    padding: 6px 16px;
    border: 1px solid var(--color-border-accent);
    border-radius: 100px;
    background: var(--color-accent-cyan-dim);
    margin-bottom: 24px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
}

/* ---------- 导航栏 ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(10, 14, 20, 0.6);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 14, 20, 0.85);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-nav);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.nav-brand:hover {
    color: var(--color-text-primary);
}

.nav-brand .logo-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    color: #000;
    font-weight: 800;
    box-shadow: var(--shadow-glow-cyan);
}

.nav-brand .brand-text {
    letter-spacing: -0.02em;
}

.nav-brand .brand-tag {
    font-size: 0.6875rem;
    color: var(--color-accent-cyan);
    padding: 2px 8px;
    border: 1px solid var(--color-border-accent);
    border-radius: 4px;
    margin-left: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-text-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--color-text-primary);
    padding: 8px;
    transition: all var(--transition-fast);
}

.nav-toggle:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card);
}

.nav-toggle svg {
    width: 100%;
    height: 100%;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: var(--shadow-glow-cyan);
}

.btn-primary:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.4), 0 0 80px rgba(123, 97, 255, 0.2);
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    border-color: var(--color-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    color: var(--color-text-primary);
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-card);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

.btn-block {
    width: 100%;
}

/* ---------- Hero 区 ---------- */
.hero {
    position: relative;
    padding: calc(var(--nav-height) + 80px) 0 96px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 229, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(123, 97, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 20% 60%, rgba(255, 97, 216, 0.06) 0%, transparent 60%);
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 80%);
}

.hero-content {
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 12px var(--color-success);
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-install {
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- 终端代码块 ---------- */
.terminal {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    text-align: left;
    position: relative;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--color-border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #FF5F56; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #27C93F; }

.terminal-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
}

.terminal-copy {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-tertiary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.terminal-copy:hover {
    border-color: var(--color-border-accent);
    color: var(--color-accent-cyan);
    background: var(--color-accent-cyan-dim);
}

.terminal-copy.copied {
    border-color: var(--color-success);
    color: var(--color-success);
    background: rgba(0, 255, 136, 0.1);
}

.terminal-body {
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    overflow-x: auto;
}

.terminal-body .prompt {
    color: var(--color-accent-cyan);
    margin-right: 8px;
    user-select: none;
}

.terminal-body .command {
    color: var(--color-text-primary);
}

.terminal-body .output {
    color: var(--color-text-tertiary);
}

.terminal-body .comment {
    color: var(--color-text-muted);
    font-style: italic;
}

.terminal-body .success {
    color: var(--color-success);
}

.terminal-body .cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--color-accent-cyan);
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

/* 代码块 */
.code-block {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    overflow-x: auto;
    position: relative;
}

.code-block .kw { color: #FF7B72; }
.code-block .str { color: #A5D6FF; }
.code-block .com { color: var(--color-text-muted); font-style: italic; }
.code-block .fn { color: #D2A8FF; }
.code-block .var { color: #FFA657; }
.code-block .num { color: #79C0FF; }

/* ---------- 卡片 ---------- */
.card-grid {
    display: grid;
    gap: 24px;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    position: relative;
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--color-accent-cyan-dim);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-md);
    color: var(--color-accent-cyan);
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.card:hover .card-icon {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: var(--shadow-glow-cyan);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.card-feature {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
}

/* ---------- 模型卡片 ---------- */
.model-card {
    padding: 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    text-align: center;
}

.model-card:hover {
    border-color: var(--color-border-accent);
    transform: translateY(-4px);
    background: var(--color-bg-card-hover);
}

.model-card .model-name {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.model-card .model-desc {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    margin-bottom: 16px;
}

.model-card .model-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--color-accent-cyan-dim);
    color: var(--color-accent-cyan);
    border: 1px solid var(--color-border-accent);
}

/* ---------- 步骤 ---------- */
.steps {
    counter-reset: step;
    display: grid;
    gap: 24px;
}

.step {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
}

.step:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
}

.step-number {
    counter-increment: step;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-accent-cyan);
    font-size: 1.125rem;
}

.step-number::before {
    content: counter(step, decimal-leading-zero);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 12px;
}

/* ---------- 标签页 ---------- */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 32px;
    overflow-x: auto;
}

.tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.tab::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.tab:hover {
    color: var(--color-text-primary);
}

.tab.active {
    color: var(--color-text-primary);
}

.tab.active::after {
    width: 100%;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

/* ---------- FAQ 手风琴 ---------- */
.faq-list {
    display: grid;
    gap: 12px;
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

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

.faq-item.open {
    border-color: var(--color-border-accent);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-accent-cyan);
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-text-tertiary);
    transition: transform var(--transition-base);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--color-accent-cyan);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ---------- 表格 ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

th,
td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    color: var(--color-text-secondary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--color-bg-card);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 0 0;
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    list-style: none;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    color: var(--color-text-muted);
    margin-left: 8px;
}

.breadcrumb a {
    color: var(--color-text-tertiary);
}

.breadcrumb a:hover {
    color: var(--color-accent-cyan);
}

.breadcrumb li.current {
    color: var(--color-text-primary);
}

/* ---------- 页头横幅（内页） ---------- */
.page-header {
    padding: calc(var(--nav-height) + 64px) 0 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 229, 255, 0.12) 0%, transparent 60%);
    z-index: -1;
}

.page-header h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- CTA 区 ---------- */
.cta-section {
    padding: 96px 0;
    position: relative;
}

.cta-box {
    position: relative;
    padding: 64px 48px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    text-align: center;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 30% 50%, rgba(0, 229, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 70% 50%, rgba(123, 97, 255, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    margin-bottom: 16px;
}

.cta-box p {
    max-width: 540px;
    margin: 0 auto 32px;
}

/* ---------- 页脚 ---------- */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 64px 0 32px;
    background: var(--color-bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-brand {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    max-width: 320px;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-col a {
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-accent-cyan);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.footer-bottom a {
    color: var(--color-text-muted);
}

.footer-bottom a:hover {
    color: var(--color-accent-cyan);
}

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

.alert-info {
    background: var(--color-accent-cyan-dim);
    border-color: var(--color-border-accent);
}

.alert-warning {
    background: rgba(255, 165, 0, 0.08);
    border-color: rgba(255, 165, 0, 0.3);
}

.alert-success {
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
}

.alert svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.alert-info svg { color: var(--color-accent-cyan); }
.alert-warning svg { color: var(--color-warning); }
.alert-success svg { color: var(--color-success); }

.alert-content {
    flex: 1;
}

.alert-content strong {
    color: var(--color-text-primary);
    display: block;
    margin-bottom: 4px;
}

.alert-content p {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* ---------- 标签 ---------- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    color: var(--color-text-secondary);
}

.tag-cyan {
    background: var(--color-accent-cyan-dim);
    color: var(--color-accent-cyan);
    border-color: var(--color-border-accent);
}

.tag-purple {
    background: var(--color-accent-purple-dim);
    color: var(--color-accent-purple);
    border-color: rgba(123, 97, 255, 0.3);
}

.tag-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--color-success);
    border-color: rgba(0, 255, 136, 0.3);
}

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-accent { color: var(--color-accent-cyan); }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 32px; }
.mt-16 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 32px; }
.mb-16 { margin-bottom: 64px; }

/* ---------- 动画 ---------- */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 滚动触发动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* 加载动画入场 */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .section {
        padding: 64px 0;
    }

    .container {
        padding: 0 20px;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(10, 14, 20, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--color-border);
        padding: 16px 20px;
        transform: translateY(-150%);
        transition: transform var(--transition-base);
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-actions .btn-secondary span,
    .nav-actions .btn-primary span {
        display: none;
    }

    .nav-actions .btn-secondary,
    .nav-actions .btn-primary {
        padding: 10px 14px;
    }

    .card-grid-2,
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: calc(var(--nav-height) + 48px) 0 64px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .step {
        flex-direction: column;
        gap: 16px;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .terminal-body {
        font-size: 0.8125rem;
        padding: 16px;
    }

    .breadcrumb {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-brand .brand-tag {
        display: none;
    }

    .hero-install {
        margin: 0 -20px;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .footer,
    .hero-actions,
    .terminal-copy {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }
}
