/* ========================================
   DNS 管家 — 官网样式
   极简暗色主题，强调内容层次与留白
   ======================================== */

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

:root {
    /* 颜色系统 */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #161616;
    --bg-hover: #1e1e1e;

    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-tertiary: #666;
    --text-faint: #444;

    --accent: #07C160;
    --accent-hover: #06AD56;
    --accent-dim: rgba(7, 193, 96, 0.15);
    --accent-glow: rgba(7, 193, 96, 0.25);

    --border: #2a2a2a;
    --border-light: #1e1e1e;

    /* 尺寸 */
    --nav-height: 64px;
    --max-width: 1080px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* 动画 */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.3s;

    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, 'HarmonyOS Sans', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', Menlo, Monaco, Consolas, monospace;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ======== 导航栏 ======== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.nav-inner {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.3px;
}

.nav-logo-icon {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color var(--duration) var(--ease);
    position: relative;
}

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

.nav-cta {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--duration) var(--ease);
}

.nav-cta:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ======== Hero ======== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 40px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(7, 193, 96, 0.12), transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(7, 193, 96, 0.04), transparent 60%);
    pointer-events: none;
}

/* 网格背景 */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent 70%);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroIn 0.8s var(--ease-out) 0.2s forwards;
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.02);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #4ade80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 40px;
}

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

/* ======== 按钮 ======== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

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

/* ======== Hero 滚动提示 ======== */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-faint);
    opacity: 0;
    animation: fadeIn 1s var(--ease) 1.5s forwards;
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
    fill: var(--text-faint);
    animation: bounce 2s ease-in-out infinite;
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ======== 通用 Section ======== */
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
    padding: 0 24px;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ======== 特性区 ======== */
.features {
    padding: 96px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-card {
    padding: 32px 28px;
    background: var(--bg-primary);
    transition: background var(--duration) var(--ease);
}

.feature-card:hover {
    background: var(--bg-card);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--bg-tertiary);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--accent);
    stroke: var(--accent);
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ======== 功能模块区 ======== */
.modules {
    padding: 96px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.modules-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.module-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 28px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--duration) var(--ease);
    background: var(--bg-secondary);
    -webkit-tap-highlight-color: transparent;
}

.module-row:hover {
    border-color: var(--border);
    background: var(--bg-card);
    transform: translateY(-2px);
}

.module-row:active {
    transform: translateY(0);
}

.module-row-num {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-faint);
    font-family: var(--font-mono);
    flex-shrink: 0;
    width: 32px;
}

.module-row-body {
    flex: 1;
    min-width: 0;
}

.module-row-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.module-row-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.module-row-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
    stroke: var(--accent);
}

.module-row-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.module-row-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.module-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--bg-tertiary);
}

.module-row-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: all var(--duration) var(--ease);
}

.module-row:hover .module-row-arrow {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.module-row-arrow svg {
    width: 18px;
    height: 18px;
    fill: var(--text-tertiary);
    transition: fill var(--duration) var(--ease);
}

.module-row:hover .module-row-arrow svg {
    fill: var(--accent);
}

/* ======== 技术架构区 ======== */
.architecture {
    padding: 96px 24px;
    max-width: 720px;
    margin: 0 auto;
}

.arch-layers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.arch-layer {
    width: 100%;
    max-width: 560px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    transition: border-color var(--duration) var(--ease);
}

.arch-layer:hover {
    border-color: var(--border);
}

.arch-layer-highlight {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.arch-layer-label {
    font-size: 0.72rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    flex-shrink: 0;
    width: 56px;
    text-align: right;
}

.arch-layer-body {
    flex: 1;
}

.arch-layer-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.arch-layer-desc {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.arch-arrow {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.arch-arrow svg {
    width: 20px;
    height: 20px;
    fill: var(--text-faint);
}

.arch-arrow-split {
    width: 100%;
    max-width: 560px;
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

.arch-arrow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.arch-arrow-branch svg {
    width: 16px;
    height: 16px;
    fill: var(--text-faint);
}

.arch-arrow-branch span {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.arch-sub-layers {
    width: 100%;
    max-width: 560px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.arch-sub-layer {
    padding: 16px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    text-align: center;
    transition: border-color var(--duration) var(--ease);
}

.arch-sub-layer:hover {
    border-color: var(--border);
}

.arch-sub-layer-name {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: var(--font-mono);
    color: var(--accent);
}

.arch-sub-layer-desc {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* ======== 下载区 ======== */
.download {
    padding: 96px 24px;
    text-align: center;
}

.download-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 64px 40px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(ellipse 60% 60% at 50% 0%, rgba(7, 193, 96, 0.08), transparent 70%),
        var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.download-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.download-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.download-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.download-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.download-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.download-meta-label {
    font-size: 0.72rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-meta-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.footer-logo svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-col-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    transition: color var(--duration) var(--ease);
}

.footer-link:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-faint);
}

/* ======== 滚动入场动画 ======== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* ======== 响应式 — 平板 ======== */
@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .arch-sub-layers {
        gap: 12px;
    }
}

/* ======== 响应式 — PC ======== */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .feature-card {
        padding: 36px 32px;
    }

    .module-row {
        padding: 36px 32px;
    }

    .download-inner {
        padding: 80px 56px;
    }
}

/* ======== 响应式 — 移动端 ======== */
@media (max-width: 767px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-light);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--duration) var(--ease);
    }

    .nav-links.open {
        max-height: 300px;
    }

    .nav-link {
        width: 100%;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-cta {
        border: none;
        border-radius: 0;
        padding: 16px 24px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 60px 20px 40px;
    }

    .features {
        padding: 64px 20px;
    }

    .modules {
        padding: 64px 20px;
    }

    .module-row {
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
    }

    .module-row-num {
        width: auto;
    }

    .module-row-arrow {
        align-self: flex-end;
    }

    .architecture {
        padding: 64px 20px;
    }

    .arch-sub-layers {
        grid-template-columns: 1fr;
    }

    .download {
        padding: 64px 20px;
    }

    .download-inner {
        padding: 48px 24px;
    }

    .download-meta {
        gap: 24px;
    }

    .footer {
        padding: 48px 20px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 32px;
    }
}

/* ======== 子页面 ======== */

/* 子页面导航 — 复用首页导航栏，子页面默认 scrolled 状态 */
.nav.subpage {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

/* 子页面 Hero — 紧凑型，不需要全屏 */
.sub-hero {
    position: relative;
    padding: 120px 24px 56px;
    text-align: center;
    overflow: hidden;
}

.sub-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(7, 193, 96, 0.08), transparent 60%);
    pointer-events: none;
}

.sub-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.sub-hero-icon {
    width: 56px;
    height: 56px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.sub-hero-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--accent);
}

.sub-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 10px;
}

.sub-hero p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 子页面文章内容 — 全宽，与首页一致 */
.article {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 96px;
}

.article-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    margin-bottom: 32px;
}

.article-meta svg {
    width: 14px;
    height: 14px;
    fill: var(--accent);
    flex-shrink: 0;
}

.article-meta span {
    color: var(--text-primary);
    font-weight: 500;
}

.article p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.85;
    text-align: justify;
}

.article h2 {
    color: var(--text-primary);
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.4px;
    margin: 48px 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.article h2::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.article h2:first-of-type {
    margin-top: 0;
}

.article h3 {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 28px 0 12px;
}

.article ul {
    margin: 12px 0 20px 4px;
    list-style: none;
}

.article li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
    padding-left: 20px;
    position: relative;
}

.article li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.article strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
    word-break: break-all;
}

.article pre {
    background: var(--bg-secondary);
    color: #cdd6f4;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow-x: auto;
    margin: 16px 0 20px;
    font-size: 0.82rem;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
}

.article pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    word-break: normal;
}

/* 子页面页脚 — 与首页一致 */
.sub-footer {
    border-top: 1px solid var(--border-light);
    padding: 64px 24px 32px;
    background: var(--bg-secondary);
}

.sub-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.sub-footer-links {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.sub-footer-brand {
    max-width: 280px;
}

.sub-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.sub-footer-logo svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

.sub-footer-tagline {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.sub-footer-cols {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.sub-footer-col-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.sub-footer-link {
    display: block;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    transition: color var(--duration) var(--ease);
}

.sub-footer-link:hover {
    color: var(--accent);
}

.sub-footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-faint);
}

/* 子页面响应式 */
@media (max-width: 767px) {
    .sub-hero {
        padding: 100px 20px 40px;
    }

    .article {
        padding: 0 20px 64px;
    }

    .article h2 {
        font-size: 1.15rem;
    }

    .article h3 {
        font-size: 0.95rem;
    }

    .article p {
        font-size: 0.9rem;
    }

    .article li {
        font-size: 0.88rem;
    }

    .article pre {
        padding: 14px;
        font-size: 0.78rem;
    }

    .sub-footer {
        padding: 48px 20px 24px;
    }

    .sub-footer-links {
        flex-direction: column;
        gap: 40px;
    }

    .sub-footer-cols {
        gap: 32px;
    }
}

@media (min-width: 768px) {
    .article pre {
        padding: 24px;
        font-size: 0.85rem;
    }
}
