/* ========================================
   非凡工造 - 智能温控模块 产品详情 / 文档样式
   暖色调 · 米色纸感 + 金棕琥珀（参考乐鑫 ESP32-S31）
   柔和温润，仿佛回家
   ======================================== */

/* ========== 暖色调色板（仅作用于产品页，覆盖全局紫色） ========== */
:root {
    --color-accent: #c0892b;        /* 金棕（主强调） */
    --color-accent-d: #9c6f1d;      /* 深金棕 */
    --color-cyan: #e4aa6e;          /* 暖桃 */
    --color-violet: #d6a254;        /* 暖琥珀 */

    --bg-page: #fbf7f0;             /* 暖米白 */
    --bg-soft: #f5edde;             /* 奶油米 */
    --bg-card: #fffdf8;             /* 暖白卡片 */

    --text-primary: #2c2620;        /* 暖近黑 */
    --text-secondary: #6b6154;      /* 暖灰 */
    --text-tertiary: #a89c87;       /* 暖浅灰 */

    --border-light: rgba(74, 58, 30, 0.09);
    --border-soft: rgba(74, 58, 30, 0.15);

    --shadow-sm: 0 1px 2px rgba(80, 56, 20, 0.05), 0 2px 8px rgba(80, 56, 20, 0.05);
    --shadow-md: 0 8px 24px rgba(80, 56, 20, 0.09);
    --shadow-lg: 0 18px 50px rgba(80, 56, 20, 0.13);

    --espresso: #2a2117;            /* 咖啡深色（CTA / 代码块） */
}

/* 柔和纸质颗粒纹理，营造温润的“回家”质感 */
body {
    background-color: var(--bg-page);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* 导航栏：暖白磨砂 */
#navbar.scrolled {
    background: rgba(251, 247, 240, 0.82);
    border-bottom-color: var(--border-light);
}

/* 页脚：换掉冷灰，统一为暖米色 */
footer.bg-gradient-to-b {
    background-image: none !important;
    background: linear-gradient(180deg, #f5edde, #efe5d2) !important;
    color: var(--text-secondary);
}
footer .text-slate-900 { color: var(--text-primary) !important; }
footer .text-slate-500, footer .text-slate-400 { color: var(--text-tertiary) !important; }
footer .border-slate-200\/80 { border-color: var(--border-light) !important; }
footer .via-indigo-300 { --tw-gradient-via: rgba(192, 137, 43, 0.4) !important; }

/* ========== 通用区块 ========== */
.pd-section { padding: 96px 0; position: relative; }
.pd-section-soft { background: var(--bg-soft); }
@media (max-width: 768px) { .pd-section { padding: 64px 0; } }

.pd-section .section-header { margin-bottom: 56px; }

/* ========== 面包屑 ========== */
.pd-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: 13px; color: var(--text-tertiary);
}
.pd-breadcrumb a { color: var(--text-tertiary); text-decoration: none; transition: var(--transition-base); }
.pd-breadcrumb a:hover { color: var(--color-accent); }
.pd-breadcrumb .current { color: var(--text-secondary); font-weight: 500; }
.pd-breadcrumb span { color: var(--border-soft); }

/* ========== Hero ========== */
.pd-hero {
    position: relative;
    padding: 132px 0 72px;
    overflow: hidden;
    background: var(--bg-page);
}
.pd-hero-aurora {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(46% 60% at 22% 6%, rgba(192, 137, 43, 0.18), transparent 60%),
        radial-gradient(40% 52% at 86% 0%, rgba(228, 170, 110, 0.14), transparent 60%),
        radial-gradient(38% 48% at 66% 4%, rgba(214, 162, 84, 0.14), transparent 60%);
}
.pd-hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(74, 58, 30, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 58, 30, 0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 75% 65% at 40% 30%, black 15%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 40% 30%, black 15%, transparent 75%);
}

.pd-badge-row { margin-bottom: 18px; }
.pd-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 15px;
    font-size: 13px; font-weight: 600;
    color: #b45309;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: var(--radius-full);
}
.pd-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    animation: pulse-dot 2s ease-in-out infinite;
}

.pd-eyebrow {
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 500;
    letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}
.pd-hero-title {
    font-size: clamp(36px, 5.4vw, 60px);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
    color: var(--text-primary);
}
.pd-hero-title span { color: var(--color-accent); }
.pd-hero-sub {
    margin-top: 22px;
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-secondary); line-height: 1.75;
    max-width: 540px;
}

.pd-hero-cta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
    margin-top: 36px;
}
.pd-text-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 15px; font-weight: 600;
    color: var(--text-secondary); text-decoration: none;
    transition: var(--transition-base);
}
.pd-text-link:hover { color: var(--color-accent); gap: 10px; }

/* Hero 设备视觉 */
.pd-hero-visual { display: flex; justify-content: center; }
.pd-device-card {
    position: relative;
    width: 100%; max-width: 380px; aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: linear-gradient(155deg, #ffffff, #f4ecdd);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    isolation: isolate;
}
.pd-device-glow {
    position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
    width: 80%; height: 60%;
    background: radial-gradient(circle, rgba(192, 137, 43, 0.22), transparent 70%);
    pointer-events: none;
}
.pd-device-render {
    position: relative;
    z-index: 1;
    width: 112%;
    max-width: none;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(34, 28, 18, 0.2));
}
.pd-device-label {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    padding: 7px 12px;
    white-space: nowrap;
    font-size: 11px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

/* 规格速览条 */
.pd-spec-strip {
    display: grid; grid-template-columns: repeat(5, 1fr);
    margin-top: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.pd-spec-item {
    padding: 26px 18px; text-align: center;
    border-right: 1px solid var(--border-light);
}
.pd-spec-item:last-child { border-right: none; }
.pd-spec-num { display: block; font-size: clamp(20px, 2.4vw, 27px); font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.pd-spec-num small { font-size: 0.55em; color: var(--color-accent); margin-left: 1px; font-weight: 700; }
.pd-spec-label { display: block; margin-top: 7px; font-size: 13px; color: var(--text-tertiary); }
@media (max-width: 860px) {
    .pd-spec-strip { grid-template-columns: repeat(2, 1fr); }
    .pd-spec-item:nth-child(2n) { border-right: none; }
    .pd-spec-item { border-bottom: 1px solid var(--border-light); }
    .pd-spec-item:last-child { border-bottom: none; }
}

/* ========== 页内锚点导航 ========== */
.pd-anchor-nav {
    position: sticky; top: 80px; z-index: 40;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.pd-anchor-track {
    display: flex; gap: 4px; overflow-x: auto;
    scrollbar-width: none;
}
.pd-anchor-track::-webkit-scrollbar { display: none; }
.pd-anchor-link {
    position: relative; flex-shrink: 0;
    padding: 16px 18px;
    font-size: 14px; font-weight: 500;
    color: var(--text-secondary); text-decoration: none;
    white-space: nowrap; transition: var(--transition-base);
}
.pd-anchor-link::after {
    content: ''; position: absolute; bottom: 0; left: 18px; right: 18px;
    height: 2px; background: var(--color-accent);
    transform: scaleX(0); transition: transform 0.3s ease;
}
.pd-anchor-link:hover { color: var(--text-primary); }
.pd-anchor-link.active { color: var(--color-accent); }
.pd-anchor-link.active::after { transform: scaleX(1); }
.pd-anchor-doc { margin-left: auto; color: var(--color-accent); font-weight: 600; }

/* ========== 核心规格卡片 ========== */
.pd-spec-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .pd-spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pd-spec-grid { grid-template-columns: 1fr; } }

.pd-spec-card {
    padding: 30px 26px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.pd-spec-card:hover { transform: translateY(-4px); border-color: rgba(192, 137, 43,0.28); box-shadow: var(--shadow-md); }
.pd-spec-icon {
    width: 54px; height: 54px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(192, 137, 43,0.08); border: 1px solid rgba(192, 137, 43,0.14);
    color: var(--color-accent);
}
.pd-spec-icon svg { width: 26px; height: 26px; }
.pd-spec-card h3 { font-size: 19px; font-weight: 700; color: var(--text-primary); margin-bottom: 9px; }
.pd-spec-card p { font-size: 14.5px; line-height: 1.7; color: var(--text-secondary); }

/* ========== 功能演示 ========== */
.pd-demo-layout {
    display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; align-items: start;
}
@media (max-width: 900px) { .pd-demo-layout { grid-template-columns: 1fr; } }

.pd-demo-tabs { display: flex; flex-direction: column; gap: 12px; }
.pd-demo-tab {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    text-align: left; padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer; transition: var(--transition-base);
    position: relative;
}
.pd-demo-tab:hover { border-color: rgba(192, 137, 43,0.28); }
.pd-demo-tab.active {
    border-color: var(--color-accent);
    background: rgba(192, 137, 43,0.04);
    box-shadow: var(--shadow-sm);
}
.pd-demo-tab-idx { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); font-weight: 600; }
.pd-demo-tab.active .pd-demo-tab-idx { color: var(--color-accent); }
.pd-demo-tab-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.pd-demo-tab-desc { font-size: 13px; color: var(--text-tertiary); line-height: 1.5; }

/* 演示窗口 */
.pd-demo-stage { position: sticky; top: 150px; }
.pd-demo-window {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card);
}
.pd-demo-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 12px 16px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border-light);
}
.pd-dot { width: 11px; height: 11px; border-radius: 50%; }
.pd-dot-r { background: #ff5f57; }
.pd-dot-y { background: #febc2e; }
.pd-dot-g { background: #28c840; }
.pd-demo-url {
    margin-left: 12px; font-family: var(--font-mono);
    font-size: 12px; color: var(--text-tertiary);
}
.pd-demo-screen { min-height: 360px; padding: 28px; }
.pd-demo-screen.has-media {
    min-height: 400px;
    padding: 0;
    background: #211b14;
}

/* 实机测试视频：竖屏以同源模糊画面填充留白，主体始终保持原始比例 */
.demo-video-frame {
    position: relative;
    width: 100%;
    height: clamp(400px, 46vw, 520px);
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 12%, rgba(192, 137, 43, 0.24), transparent 38%),
        linear-gradient(145deg, #30261b, #15120f);
    isolation: isolate;
}
.demo-video {
    pointer-events: none;
    user-select: none;
}
.demo-video-backdrop {
    position: absolute;
    z-index: 0;
    inset: -12%;
    width: 124%;
    height: 124%;
    object-fit: cover;
    filter: blur(28px) saturate(0.85) brightness(0.48);
    transform: scale(1.08);
}
.demo-video-main {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.38));
}
.demo-video-portrait .demo-video-main {
    width: min(62%, 360px);
    height: calc(100% - 28px);
}
.demo-video-landscape .demo-video-main {
    width: calc(100% - 24px);
    height: calc(100% - 24px);
}
.demo-video-shade {
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(13, 10, 8, 0.36), transparent 24%),
        linear-gradient(0deg, rgba(13, 10, 8, 0.68), transparent 34%);
}
.demo-video-badges {
    position: absolute;
    z-index: 4;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.demo-video-badges span {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    background: rgba(23, 19, 15, 0.58);
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(10px);
}
.demo-video-badges .demo-video-status {
    color: #f8d995;
    border-color: rgba(248, 217, 149, 0.28);
}
.demo-video-caption {
    position: absolute;
    z-index: 4;
    left: 20px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.46);
}
.demo-video-caption strong { font-size: 16px; font-weight: 700; }
.demo-video-caption span { font-size: 12px; color: rgba(255, 255, 255, 0.68); }
.demo-video-replay {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-full);
    background: rgba(23, 19, 15, 0.72);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -44%) scale(0.94);
    backdrop-filter: blur(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.demo-video-replay svg { width: 17px; height: 17px; }
.demo-video-frame.is-ended .demo-video-replay {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.demo-video-replay:hover { background: rgba(192, 137, 43, 0.88); }
@media (max-width: 560px) {
    .demo-video-frame { height: 440px; }
    .demo-video-portrait .demo-video-main { width: min(76%, 330px); }
    .demo-video-caption { left: 16px; bottom: 14px; }
}

/* 演示画面内组件 */
.demo-pane { animation: demoFade 0.4s ease; }
@keyframes demoFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.demo-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.demo-head h4 { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.demo-head .demo-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #16a34a; }
.demo-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; animation: pulse-dot 1.5s infinite; }
.demo-big { font-size: 46px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; }
.demo-big small { font-size: 20px; color: var(--color-accent); }
.demo-chart { display: flex; align-items: flex-end; gap: 6px; height: 130px; margin: 22px 0; }
.demo-bar-col { flex: 1; background: linear-gradient(180deg, var(--color-accent), #e7ca8c); border-radius: 5px 5px 0 0; opacity: 0.85; transition: height 0.5s ease; }
.demo-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.demo-meta-item { padding: 12px 14px; background: var(--bg-soft); border-radius: var(--radius-sm); border: 1px solid var(--border-light); }
.demo-meta-item span { display: block; font-size: 12px; color: var(--text-tertiary); }
.demo-meta-item strong { font-size: 18px; color: var(--text-primary); }
.demo-relay-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--bg-soft); border: 1px solid var(--border-light); border-radius: var(--radius-sm); margin-bottom: 10px; }
.demo-relay-row .demo-switch { width: 42px; height: 24px; border-radius: 999px; position: relative; transition: var(--transition-base); }
.demo-switch.on { background: var(--color-accent); }
.demo-switch.off { background: var(--border-soft); }
.demo-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: var(--transition-base); }
.demo-switch.on::after { left: 21px; }
.demo-list-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.demo-list-item:last-child { border-bottom: none; }
.demo-list-item .demo-time { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); flex-shrink: 0; }
.demo-tag-warn { color: #d97706; font-weight: 600; }
.demo-tag-ok { color: #16a34a; font-weight: 600; }
.demo-cloud-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.demo-device-card { padding: 16px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--bg-soft); }
.demo-device-card h5 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.demo-device-card .demo-device-temp { font-size: 24px; font-weight: 800; color: var(--color-accent); }
.demo-device-card .demo-device-status { font-size: 12px; color: var(--text-tertiary); }

/* ========== 快速上手步骤 ========== */
.pd-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    counter-reset: step;
}
@media (max-width: 900px) { .pd-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pd-steps { grid-template-columns: 1fr; } }

.pd-step {
    position: relative; padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}
.pd-step:hover { border-color: rgba(192, 137, 43,0.25); box-shadow: var(--shadow-md); }
.pd-step-num {
    width: 40px; height: 40px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-accent); color: #fff;
    font-weight: 800; font-size: 17px;
    box-shadow: 0 6px 16px rgba(192, 137, 43,0.3);
}
.pd-step h3 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.pd-step p { font-size: 14px; line-height: 1.65; color: var(--text-secondary); }

.pd-quickstart-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    margin-top: 44px; padding: 30px 36px;
    background: linear-gradient(135deg, rgba(192, 137, 43,0.06), rgba(214, 162, 84,0.05));
    border: 1px solid rgba(192, 137, 43,0.18);
    border-radius: var(--radius-lg);
}
.pd-quickstart-cta h4 { font-size: 19px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.pd-quickstart-cta p { font-size: 14.5px; color: var(--text-secondary); }

/* ========== 开发旅程 ========== */
.pd-journey {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 900px) { .pd-journey { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pd-journey { grid-template-columns: 1fr; } }

.pd-journey-stage {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}
.pd-journey-stage:hover { border-color: rgba(192, 137, 43,0.25); box-shadow: var(--shadow-md); }
.pd-journey-step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(192, 137, 43,0.1); color: var(--color-accent);
    font-family: var(--font-mono); font-weight: 700; font-size: 14px;
    border: 1px solid rgba(192, 137, 43,0.2);
}
.pd-journey-stage h3 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.pd-journey-stage p { font-size: 14px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 16px; }
.pd-journey-links { display: flex; flex-direction: column; gap: 8px; }
.pd-journey-links a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 500; color: var(--color-accent); text-decoration: none;
    transition: var(--transition-base);
}
.pd-journey-links a::before { content: '→'; transition: var(--transition-base); }
.pd-journey-links a:hover { color: var(--color-accent-d); }
.pd-journey-links a:hover::before { transform: translateX(3px); }

/* ========== FAQ 手风琴 ========== */
.pd-faq { display: flex; flex-direction: column; gap: 12px; }
.pd-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden; transition: border-color 0.3s ease;
}
.pd-faq-item.open { border-color: rgba(192, 137, 43,0.3); box-shadow: var(--shadow-sm); }
.pd-faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; cursor: pointer;
    background: none; border: none; text-align: left;
    font-size: 16px; font-weight: 600; color: var(--text-primary);
    font-family: inherit;
}
.pd-faq-icon { width: 20px; height: 20px; color: var(--text-tertiary); flex-shrink: 0; transition: transform 0.35s ease, color 0.3s ease; }
.pd-faq-item.open .pd-faq-icon { transform: rotate(180deg); color: var(--color-accent); }
.pd-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1); }
.pd-faq-a p { padding: 0 24px 22px; font-size: 14.5px; line-height: 1.75; color: var(--text-secondary); }

/* ========== CTA ========== */
.pd-cta-section { padding: 0 0 96px; }
@media (max-width: 768px) { .pd-cta-section { padding: 0 0 64px; } }
.pd-cta-card {
    position: relative;
    padding: 56px 48px; text-align: center;
    background:
        radial-gradient(120% 130% at 50% 0%, rgba(255, 255, 255, 0.6), transparent 60%),
        linear-gradient(135deg, #f7efe0, #f1e4cd);
    border: 1px solid rgba(192, 137, 43, 0.22);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    color: var(--text-secondary);
    overflow: hidden;
}
.pd-cta-card h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin: 18px 0 14px; color: var(--text-primary); }
.pd-cta-card p { font-size: 16px; color: var(--text-secondary); max-width: 540px; margin: 0 auto 32px; line-height: 1.7; }
.pd-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pd-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: var(--radius-full);
    font-size: 15px; font-weight: 600; text-decoration: none;
    transition: var(--transition-base);
}
/* 主按钮：金棕实心 */
.pd-cta-btn-light { background: var(--color-accent); color: #fff; box-shadow: 0 6px 18px rgba(192, 137, 43, 0.3); }
.pd-cta-btn-light:hover { background: var(--color-accent-d); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(192, 137, 43, 0.38); }
/* 次按钮：暖白描边 */
.pd-cta-btn-ghost { background: #fffdf8; color: var(--text-primary); border: 1px solid var(--border-soft); }
.pd-cta-btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-2px); }

/* ============================================================
   文档子站
   ============================================================ */
.doc-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: 1480px; margin: 0 auto;
    padding-top: 80px;
}
@media (max-width: 1024px) { .doc-shell { grid-template-columns: 1fr; } }

/* 侧边栏 */
.doc-sidebar {
    position: sticky; top: 80px; align-self: start;
    height: calc(100vh - 80px); overflow-y: auto;
    border-right: 1px solid var(--border-light);
    background: var(--bg-page);
}
.doc-sidebar-inner { padding: 32px 24px; }
.doc-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 700; color: var(--text-primary); text-decoration: none;
    margin-bottom: 22px; transition: var(--transition-base);
}
.doc-back:hover { color: var(--color-accent); }

.doc-search {
    position: relative; margin-bottom: 26px;
}
.doc-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-tertiary); }
.doc-search input {
    width: 100%; padding: 10px 14px 10px 38px;
    font-size: 14px; font-family: inherit; color: var(--text-primary);
    background: var(--bg-soft); border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); outline: none; transition: var(--transition-base);
}
.doc-search input:focus { border-color: var(--color-accent); background: #fff; box-shadow: 0 0 0 3px rgba(192, 137, 43,0.1); }

.doc-nav-group { margin-bottom: 22px; }
.doc-nav-label {
    display: block; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-tertiary); margin-bottom: 8px; padding-left: 12px;
}
.doc-nav-link {
    display: block; padding: 8px 12px; margin-bottom: 2px;
    font-size: 14px; color: var(--text-secondary); text-decoration: none;
    border-radius: var(--radius-sm); border-left: 2px solid transparent;
    transition: var(--transition-base);
}
.doc-nav-link:hover { background: var(--bg-soft); color: var(--text-primary); }
.doc-nav-link.active {
    color: var(--color-accent); font-weight: 600;
    background: rgba(192, 137, 43,0.07); border-left-color: var(--color-accent);
}
.doc-nav-link.dimmed { display: none; }

/* 正文区 */
.doc-main {
    display: grid; grid-template-columns: 1fr 200px; gap: 48px;
    padding: 48px 48px 80px;
    min-width: 0;
}
@media (max-width: 1180px) { .doc-main { grid-template-columns: 1fr; } .doc-toc { display: none; } }
@media (max-width: 768px) { .doc-main { padding: 32px 24px 64px; } }

.doc-content { min-width: 0; max-width: 760px; }
.doc-badge {
    display: inline-block; margin: 16px 0 8px;
    padding: 5px 14px; font-size: 12px; font-weight: 600;
    color: #b45309; background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.22); border-radius: var(--radius-full);
}

.doc-section { padding-top: 28px; scroll-margin-top: 100px; }
.doc-section h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 16px; }
.doc-section h2 { font-size: 25px; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; padding-top: 12px; }
.doc-section h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 26px 0 12px; }
.doc-section p { font-size: 15.5px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 14px; }
.doc-lead { font-size: 17px !important; color: var(--text-secondary); }

.doc-steps { margin: 4px 0 18px; padding-left: 0; list-style: none; counter-reset: dstep; }
.doc-steps li {
    position: relative; padding: 10px 0 10px 42px;
    font-size: 15px; line-height: 1.7; color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}
.doc-steps li:last-child { border-bottom: none; }
.doc-steps li::before {
    counter-increment: dstep; content: counter(dstep);
    position: absolute; left: 0; top: 10px;
    width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    background: rgba(192, 137, 43,0.1); color: var(--color-accent);
    border-radius: 50%; font-size: 13px; font-weight: 700;
}
.doc-steps strong { color: var(--text-primary); }

.doc-callout {
    display: block; padding: 16px 20px; margin: 18px 0;
    border-radius: var(--radius-md); font-size: 14.5px; line-height: 1.7;
    border: 1px solid;
}
.doc-callout strong { display: inline-block; margin-right: 8px; font-weight: 700; }
.doc-callout-info { background: rgba(192, 137, 43,0.06); border-color: rgba(192, 137, 43,0.2); color: var(--text-secondary); }
.doc-callout-info strong { color: var(--color-accent); }
.doc-callout-warn { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25); color: var(--text-secondary); }
.doc-callout-warn strong { color: #b45309; }

.doc-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    padding: 48px; margin: 18px 0;
    background: var(--bg-soft); border: 1px dashed var(--border-soft);
    border-radius: var(--radius-md); color: var(--text-tertiary);
}
.doc-placeholder svg { width: 40px; height: 40px; }
.doc-placeholder span { font-size: 13px; font-family: var(--font-mono); }

.doc-table-wrap { overflow-x: auto; margin: 18px 0; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc-table th, .doc-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-light); }
.doc-table th { background: var(--bg-soft); font-weight: 700; color: var(--text-primary); font-size: 13px; }
.doc-table td { color: var(--text-secondary); }
.doc-table td:first-child { font-family: var(--font-mono); color: var(--color-accent); font-weight: 600; }

.doc-code {
    margin: 18px 0; padding: 20px 22px;
    background: #2a2117; color: #ece3d3;
    border-radius: var(--radius-md); overflow-x: auto;
    font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7;
}
.doc-code code { font-family: inherit; }

.doc-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
@media (max-width: 640px) { .doc-card-grid { grid-template-columns: 1fr; } }
.doc-mini-card { padding: 20px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); transition: var(--transition-base); }
.doc-mini-card:hover { border-color: rgba(192, 137, 43,0.25); box-shadow: var(--shadow-sm); }
.doc-mini-card h4 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.doc-mini-card p { font-size: 13.5px !important; color: var(--text-secondary); margin: 0 !important; }

.doc-support-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }

/* 上一页/下一页 */
.doc-pager { display: flex; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border-light); }
.doc-pager-link {
    flex: 1; display: flex; flex-direction: column; gap: 4px;
    padding: 18px 22px; border: 1px solid var(--border-light); border-radius: var(--radius-md);
    text-decoration: none; transition: var(--transition-base);
}
.doc-pager-next { text-align: right; }
.doc-pager-link:hover { border-color: rgba(192, 137, 43, 0.3); box-shadow: var(--shadow-sm); }
.doc-pager-dir { font-size: 12px; color: var(--text-tertiary); }
.doc-pager-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }

/* 右侧 TOC */
.doc-toc { position: sticky; top: 110px; align-self: start; }
.doc-toc-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 12px; }
.doc-toc-link { display: block; padding: 6px 12px; font-size: 13px; color: var(--text-tertiary); text-decoration: none; border-left: 2px solid var(--border-light); transition: var(--transition-base); }
.doc-toc-link:hover { color: var(--text-primary); }
.doc-toc-link.active { color: var(--color-accent); border-left-color: var(--color-accent); font-weight: 600; }

/* 侧栏开关（移动端） */
.doc-sidebar-toggle {
    display: none; align-items: center; gap: 8px;
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 45; padding: 12px 22px;
    background: var(--color-accent); color: #fff;
    border: none; border-radius: var(--radius-full);
    font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
    box-shadow: 0 8px 24px rgba(192, 137, 43, 0.4);
}
@media (max-width: 1024px) {
    .doc-sidebar-toggle { display: inline-flex; }
    .doc-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; width: 280px;
        z-index: 60; transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
        box-shadow: var(--shadow-lg);
    }
    .doc-sidebar.open { transform: translateX(0); }
    .doc-sidebar-inner { padding-top: 24px; }
}
