/* style.css — 33 产品介绍页布局与动效（design-taste 基线：非对称 / 流体 CSS / 疏朗）。
   全文件只引用 tokens.css 的 var()；只动 transform/opacity；无 emoji。 */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* —— 入场级联 reveal（IntersectionObserver 挂 .in）—— */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--p-dur-slow) var(--p-ease-out), transform var(--p-dur-slow) var(--p-ease-out); transition-delay: calc(var(--i, 0) * var(--reveal-delay)); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .breath::before, .marquee-track { animation: none !important; }
}

/* —— 顶部导航（sticky 毛玻璃）—— */
.nav {
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    background: rgba(15, 15, 15, 0.72);
    border-bottom: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--fg-muted); font-size: 14px; transition: color var(--p-dur-fast) var(--p-ease-out); }
.nav-links a:hover { color: var(--fg); }
.nav-cta { margin-left: 8px; }

/* —— 按钮 —— */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--btn-radius);
    font-weight: 600; font-size: 15px; cursor: pointer;
    transition: transform var(--p-dur-fast) var(--p-ease-out), opacity var(--p-dur-fast) var(--p-ease-out), background var(--p-dur-fast) var(--p-ease-out);
}
.btn:active { transform: translateY(-1px) scale(0.98); }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { background: var(--accent-soft); color: var(--fg); border: 1px solid var(--glass-border); }
.btn-ghost:hover { background: var(--surface-strong); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* —— Hero（非对称分屏 55/45）—— */
.hero { display: grid; grid-template-columns: 11fr 9fr; gap: 48px; align-items: center; padding: 88px 0 96px; min-height: min(720px, 100dvh); }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.hero .sub { color: var(--fg-muted); font-size: 17px; max-width: 65ch; margin: 20px 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-muted); font-size: 13px; }
.trust svg { flex: none; }

/* Hero 右侧：品牌 token 手绘工作台示意（真机截图就位后替换） */
.hero-visual { position: relative; }
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); box-shadow: var(--shadow-diffusion); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-body { display: grid; grid-template-columns: 96px 1fr; min-height: 300px; }
.mock-side { border-right: 1px solid var(--border); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-side i { height: 8px; border-radius: 4px; background: var(--surface-strong); }
.mock-side i:first-child { background: var(--accent-soft); }
.mock-canvas { position: relative; padding: 22px; }
.mock-node { position: absolute; border: 1px solid var(--border-strong); border-radius: var(--p-radius); background: var(--surface-strong); padding: 10px 12px; font-size: 12px; color: var(--fg-muted); display: flex; align-items: center; gap: 8px; }
.mock-node b { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.n-img b { background: oklch(0.75 0.15 75); } .n-vid b { background: oklch(0.65 0.22 350); }
.n-txt b { background: oklch(0.55 0.04 250); } .n-aud b { background: oklch(0.7 0.13 220); }
.breath::before { content: ""; position: absolute; top: -4px; right: -4px; width: 8px; height: 8px; border-radius: 50%; background: #33d17a; animation: breath 2.4s var(--p-ease-out) infinite; }
@keyframes breath { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }

/* —— 区块通用 —— */
section.block { padding: var(--section-gap) 0 0; }
.head { margin-bottom: 40px; }
.head .kicker { color: var(--fg-muted); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.head h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.01em; font-weight: 700; margin-top: 8px; }

/* —— Bento 能力网格（非对称，标签在卡下）—— */
.bento-row { display: grid; gap: 16px; margin-bottom: 16px; }
.bento-row.r1 { grid-template-columns: 2fr 1fr; }
.bento-row.r2 { grid-template-columns: 1fr 1fr 2fr; }
.bento-cell .tile { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--card-radius); box-shadow: var(--shadow-diffusion); min-height: 220px; padding: 28px; overflow: hidden; position: relative; }
.bento-cell figcaption { margin-top: 14px; }
.bento-cell h3 { font-size: 16px; font-weight: 700; }
.bento-cell p { color: var(--fg-muted); font-size: 14px; margin-top: 4px; }
.tile .icon { width: 40px; height: 40px; border-radius: var(--p-radius-2xl); background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: auto; }
.tile { display: flex; flex-direction: column; }

/* marquee（模型服务卡） */
.marquee { margin-top: 20px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 18s linear infinite; }
.marquee-track span { border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 14px; font-size: 12px; color: var(--fg-muted); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 云备份卡：状态点列 */
.sync-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--fg-muted); }
.sync-list i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #33d17a; margin-right: 8px; animation: breath 2.4s var(--p-ease-out) infinite; }
.sync-list div:nth-child(2) i { animation-delay: 0.4s; }
.sync-list div:nth-child(3) i { animation-delay: 0.8s; }

/* —— 工作流三步 —— */
.flow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; position: relative; }
.flow-step .num { font-family: var(--font-mono); font-size: 44px; font-weight: 700; color: var(--border-strong); line-height: 1; }
.flow-step h3 { font-size: 17px; margin: 12px 0 6px; }
.flow-step p { color: var(--fg-muted); font-size: 14px; }
.flow-step svg.line { width: 100%; height: 24px; margin-top: 18px; }
.flow-step svg.line path { stroke: var(--border-strong); stroke-width: 2; fill: none; stroke-dasharray: 240; stroke-dashoffset: 240; transition: stroke-dashoffset var(--p-dur-emphasize) var(--p-ease-out); }
.flow-step.in svg.line path { stroke-dashoffset: 0; }

/* —— 桌面端价值（divide-y 分隔行，禁卡片堆叠）—— */
.value-rows { border-top: 1px solid var(--border); }
.value-row { display: grid; grid-template-columns: 240px 1fr auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--border); }
.value-row h3 { font-size: 16px; display: flex; align-items: center; gap: 12px; }
.value-row p { color: var(--fg-muted); font-size: 14px; }
.value-row .mini { color: var(--fg-muted); font-size: 12px; font-family: var(--font-mono); }

/* —— 下载区 —— */
.download-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--card-radius); box-shadow: var(--shadow-diffusion); padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.download-card .ver { font-family: var(--font-mono); font-size: 15px; color: var(--fg-muted); }
.download-card h2 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 10px; letter-spacing: -0.01em; }
.download-card .req { color: var(--fg-muted); font-size: 13px; margin-top: 14px; }
.dl-meta { text-align: right; color: var(--fg-muted); font-size: 13px; margin-top: 12px; }
.dl-meta.error { color: #ff4d4d; }
.skeleton { display: inline-block; width: 72px; height: 15px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-strong) 25%, var(--border-strong) 50%, var(--surface-strong) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* —— FAQ —— */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform var(--p-dur-base) var(--p-ease-out); color: var(--fg-muted); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { color: var(--fg-muted); font-size: 15px; padding: 0 0 22px; max-width: 65ch; }

/* —— Footer —— */
footer.site { margin-top: var(--section-gap); border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--fg-muted); font-size: 13px; }
.foot-inner { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-inner .spacer { margin-left: auto; }
.foot-inner a { transition: color var(--p-dur-fast) var(--p-ease-out); }
.foot-inner a:hover { color: var(--fg); }
.icp { font-family: var(--font-mono); }

/* —— 移动端塌缩（<768px 单列）—— */
@media (max-width: 767px) {
    .hero { grid-template-columns: 1fr; padding: 56px 0 64px; gap: 32px; }
    .bento-row.r1, .bento-row.r2 { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr; gap: 24px; }
    .value-row { grid-template-columns: 1fr; gap: 8px; }
    .download-card { grid-template-columns: 1fr; padding: 28px; }
    .dl-meta { text-align: left; }
    .nav-links { display: none; }
}
