/* BlendCab 官网 —— 参考 Blender 官网与 Blender 界面：深灰面板、Blender 橙、选中蓝、Inter 字体 */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* Blender 界面灰阶 */
  --bg: #1d1d1d;          /* 页面底 */
  --bg-2: #232323;        /* 交替分区 / 编辑器标题栏 */
  --panel: #2b2b2b;       /* 属性面板 */
  --panel-2: #303030;     /* 面板内控件 */
  --widget: #3d3d3d;      /* 输入框、按钮底 */
  --line: #3a3a3a;
  --line-2: #474747;
  --text: #e5e5e5;
  --muted: #a3a3a3;
  /* 品牌色 */
  --orange: #ed8f31;      /* Blender 橙：主按钮、激活 */
  --orange-hi: #ffaa40;   /* 选中描边 */
  --blue: #4772b3;        /* Blender 选中蓝：链接、勾选 */
  --blue-hi: #5680c2;
  --axis-x: #ff3352; --axis-y: #8bdc00; --axis-z: #2890ff;
  /* 板材 */
  --birch: #e2c38f; --birch-mid: #d0ab70; --birch-dark: #b08a52;
  --melamine: #f0ede6; --melamine-mid: #dcd8cf; --melamine-dark: #c2bdb2;

  --sans: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 6px;               /* Blender 控件圆角 */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p a, li a, dd a, td a, .link { color: #7fa6e6; text-decoration: none; }
p a:hover, li a:hover, dd a:hover, td a:hover, .link:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--blue); color: #fff; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--orange); color: #1d1d1d; padding: 6px 12px; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- 顶栏：Blender 官网式深色导航 ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(23, 23, 23, .92); backdrop-filter: blur(10px); border-bottom: 1px solid #2a2a2a; }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 58px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--sans); letter-spacing: -0.01em; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; color: #c8c8c8; font-size: 15px; padding: 6px 12px; border-radius: var(--r); }
.nav a:hover { color: #fff; background: #2e2e2e; }
.nav a[aria-current="page"] { color: #fff; background: #2e2e2e; }
.topbar .login { text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: var(--r); background: var(--blue); color: #fff; }
.topbar .login:hover { background: var(--blue-hi); }
.menu-toggle { display: none; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: var(--r); font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-orange { background: var(--orange); color: #1d1d1d; }
.btn-orange:hover { background: var(--orange-hi); }
.btn-ghost { background: var(--widget); color: var(--text); border-color: #4a4a4a; }
.btn-ghost:hover { background: #474747; }

/* ---------- 首屏全宽轮播 ---------- */
.hero-bleed {
  position: relative;
  min-height: min(70vh, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 50% 0%, #2c2c2c 0%, var(--bg) 70%),
    linear-gradient(160deg, #2a2a2a, #1d1d1d 55%, #151515);
}
.hero-carousel { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, transparent 42%, rgba(18,18,18,.28) 72%, rgba(18,18,18,.72) 100%),
    linear-gradient(90deg, rgba(18,18,18,.42) 0%, rgba(18,18,18,.12) 38%, transparent 62%);
}
.hero-bleed.has-slides {
  min-height: min(70vh, 720px);
}
.hero-bleed.has-slides .hero-veil {
  background:
    linear-gradient(180deg, transparent 0%, transparent 48%, rgba(18,18,18,.22) 78%, rgba(18,18,18,.66) 100%),
    linear-gradient(90deg, rgba(18,18,18,.38) 0%, rgba(18,18,18,.08) 32%, transparent 55%);
}
.hero-overlay {
  position: relative; z-index: 3;
  padding: clamp(36px, 5vh, 64px) var(--gutter);
  max-width: min(640px, 100%);
}
.hero-lead {
  margin: 14px 0 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
}
.hero-bleed:not(.has-slides) .hero-lead { color: var(--muted); }
.hero-brand {
  margin: 0 0 8px;
  font: 700 clamp(26px, 3.4vw, 34px)/1.1 var(--sans);
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-bleed h1 {
  margin: 0;
  font: 800 clamp(28px, 4vw, 44px)/1.14 var(--sans);
  letter-spacing: -0.025em;
  color: #fff;
}
.hero-bleed h1 span { display: block; }
.hero-bleed .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-bleed.has-slides .btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.hero-bleed.has-slides .btn-ghost:hover { background: rgba(255,255,255,.2); }
.how-lead {
  margin: 0 0 8px;
  max-width: 48em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.how-meta {
  margin: 0 0 32px;
  font-size: 13px;
  color: var(--muted);
}
.how-meta .link { color: var(--orange-text, var(--orange)); }
.hero-controls {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 18px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  pointer-events: none;
}
.hero-controls button {
  pointer-events: auto;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(20,20,20,.45);
  color: #fff; cursor: pointer; font-size: 18px; line-height: 1;
}
.hero-dots { display: flex; gap: 8px; pointer-events: auto; }
.hero-dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.35); cursor: pointer;
}
.hero-dots button.is-active { background: var(--orange); }

/* ---------- 仿 Blender 窗口 ---------- */
.bwin {
  margin-top: clamp(32px, 5vw, 56px);
  border-radius: 10px 10px 0 0; overflow: hidden;
  background: #181818; border: 1px solid #333; border-bottom: 0;
  box-shadow: 0 -10px 80px rgba(237, 143, 49, .07), 0 30px 80px rgba(0,0,0,.6);
}
.bwin-top { display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; background: #1f1f1f; border-bottom: 1px solid #111; font-size: 12.5px; color: #bdbdbd; }
.bwin-top .menus { display: flex; gap: 14px; margin-right: 16px; }
.bwin-top .ws { padding: 3px 10px; border-radius: 4px; }
.bwin-top .ws.on { background: #3a3a3a; color: #fff; }
.bwin-top .menus span:first-child { color: var(--orange); font-weight: 600; }
.bwin-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; height: clamp(360px, 48vw, 560px); }
.viewport { position: relative; background: radial-gradient(ellipse at 50% 45%, #474747 0%, #393939 55%, #2f2f2f 100%); overflow: hidden; }
.vp-header { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; gap: 6px; padding: 6px 8px; font-size: 12.5px; color: #d0d0d0; }
.vp-header span { padding: 2px 9px; border-radius: 4px; background: rgba(40,40,40,.85); }
.vp-header .mode { background: rgba(71,114,179,.9); color: #fff; }
.vp-overlay { position: absolute; left: 12px; top: 40px; z-index: 2; font-size: 12px; color: #d8d8d8; line-height: 1.6; text-shadow: 0 1px 2px #000; }
#cab { position: absolute; inset: 0; width: 100%; height: 100%; }
.gizmo { position: absolute; right: 14px; top: 44px; width: 78px; height: 78px; z-index: 2; }
.npanel { background: var(--panel); border-left: 1px solid #1a1a1a; font-size: 12.5px; overflow: hidden; display: flex; }
.npanel .tabs { width: 22px; background: #232323; border-right: 1px solid #1a1a1a; display: flex; flex-direction: column; align-items: center; padding-top: 6px; gap: 2px; }
.npanel .tabs span { writing-mode: vertical-rl; padding: 8px 0; font-size: 11.5px; color: #9a9a9a; border-radius: 3px; }
.npanel .tabs span.on { background: var(--panel); color: #fff; }
.npanel .content { flex: 1; padding: 6px; display: grid; align-content: start; gap: 6px; }
.bpanel { background: #303030; border-radius: 4px; }
.bpanel > h4 { margin: 0; padding: 5px 8px; font-size: 12.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.bpanel > h4::before { content: ""; border: 4px solid transparent; border-top: 5px solid #bdbdbd; margin-top: 4px; }
.bprop { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); align-items: center; gap: 6px; padding: 2px 8px; }
.bprop:last-child { padding-bottom: 8px; }
.bprop label { color: #b5b5b5; text-align: right; }
.bfield { background: var(--widget); border-radius: 4px; padding: 2px 8px; color: #e8e8e8; min-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .3s; }
.bfield.flash { background: #5a4630; }
.bfield.num { text-align: center; }
.bfield.badge { background: rgba(237,143,49,.18); color: var(--orange-hi); }
.bwin-status { display: flex; align-items: center; gap: 16px; height: 26px; padding: 0 10px; background: #1f1f1f; border-top: 1px solid #111; font-size: 12px; color: #a8a8a8; }
.bwin-status .key { display: inline-flex; align-items: center; gap: 6px; }
.bwin-status kbd { min-width: 20px; padding: 0 5px; font-size: 11px; line-height: 16px; border-bottom-width: 2px; }
.bwin-status .now { color: var(--orange-hi); }
.bwin-status .grow { flex: 1; }
.replay-btn { background: none; border: 0; color: #a8a8a8; font: 12px var(--sans); cursor: pointer; padding: 0; }
.replay-btn:hover { color: #fff; }

/* 3D 柜子的面 */
#cab .f-top { fill: var(--birch); } #cab .f-front { fill: var(--birch-mid); } #cab .f-side { fill: var(--birch-dark); }
#cab .white .f-top { fill: var(--melamine); } #cab .white .f-front { fill: var(--melamine-mid); } #cab .white .f-side { fill: var(--melamine-dark); }
#cab .back .f-top, #cab .back .f-front, #cab .back .f-side { fill: #8b8478; }
#cab .edge { fill: none; stroke: rgba(0,0,0,.35); stroke-width: 1; stroke-linejoin: round; }
#cab .active .edge { stroke: var(--orange-hi); stroke-width: 2.4; }
#cab .selected .edge { stroke: #e08a2a; stroke-width: 1.6; }
#cab .gridline { stroke: rgba(255,255,255,.09); stroke-width: 1.4; }
#cab .axis-x { stroke: rgba(255,51,82,.55); stroke-width: 1.5; }
#cab .axis-y { stroke: rgba(139,220,0,.5); stroke-width: 1.5; }
#cab .handle { fill: #6d6d6d; }

/* ---------- 分区 ---------- */
.band { padding-block: clamp(64px, 9vw, 112px); }
.band.alt { background: var(--bg-2); }
.band h2 { margin: 0 0 12px; font: 800 clamp(28px, 3.6vw, 42px)/1.2 var(--sans); letter-spacing: -0.02em; }
.band .intro { margin: 0 0 40px; max-width: 40em; color: var(--muted); font-size: 17px; }
#how .intro { margin-bottom: 12px; }

/* 三步流程：Blender 属性面板式卡片 */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ppanel { background: var(--panel); border-radius: 8px; overflow: hidden; border: 1px solid #333; }
.ppanel > header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #333; font-weight: 600; }
.ppanel > header svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
.ppanel > header .step { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 400; }
.ppanel .body { padding: 18px 18px 20px; }
.ppanel h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.35; }
.ppanel p { margin: 0 0 14px; color: var(--muted); }
.ppanel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ppanel li { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; background: var(--panel-2); border-radius: 4px; font-size: 15px; }
.ppanel li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; transform: translateY(-2px); }

/* 云端排版配图 */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.nesting-photo {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #333;
  background: #2a2a2a;
  min-height: clamp(240px, 36vw, 420px);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.nesting-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 0.7s ease;
}
.nesting-slide.is-active { opacity: 1; z-index: 1; }
.nesting-photo > .nesting-slide:only-child,
.nesting-photo.has-image > .nesting-slide:first-child:last-child {
  position: relative;
}
.nesting-photo img {
  display: block; width: 100%; height: 100%;
  min-height: clamp(240px, 36vw, 420px);
  object-fit: cover;
}
.nesting-photo-fallback {
  min-height: clamp(240px, 36vw, 420px);
  display: grid; place-items: center;
  color: #8a8a8a; font-size: 15px;
  background:
    linear-gradient(145deg, #333 0%, #262626 55%, #1f1f1f 100%);
}
.nesting-controls {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  pointer-events: none;
}
.nesting-controls button {
  pointer-events: auto;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(20,20,20,.45);
  color: #fff; cursor: pointer; font-size: 16px; line-height: 1;
}
.nesting-dots { display: flex; gap: 7px; pointer-events: auto; }
.nesting-dots button {
  width: 7px; height: 7px; padding: 0; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.35); cursor: pointer;
}
.nesting-dots button.is-active { background: var(--orange); }
#sheet { width: 100%; height: auto; overflow: visible; }
#sheet .board { fill: #3a3a3a; stroke: #555; stroke-width: 2; }
#sheet .trim { fill: none; stroke: #5a5a5a; stroke-dasharray: 6 6; stroke-width: 1.5; }
#sheet .part { fill: var(--birch); stroke: var(--birch-dark); stroke-width: 2; }
#sheet .part.white { fill: var(--melamine); stroke: var(--melamine-dark); }
#sheet .hole { fill: #3a3a3a; }
#sheet .path { fill: none; stroke: var(--orange-hi); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
#sheet .dim { font: 600 44px var(--sans); fill: #9a9a9a; }
#sheet .dim.on-part { font-size: 50px; fill: #7d5c2a; }
#sheet .tag { fill: #fff; stroke: #222; stroke-width: 1.5; }
#sheet .qr { fill: #1d1d1d; }
#sheet .head { fill: #fff3e0; } #sheet .head-glow { fill: var(--orange); opacity: .35; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.checks svg { width: 22px; height: 22px; color: var(--orange); margin-top: 3px; }
.checks strong { display: block; }
.checks span { color: var(--muted); font-size: 15px; }

/* ---------- 下载 ---------- */
.download { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.release { background: var(--panel); border: 1px solid #383838; border-radius: 10px; overflow: hidden; }
.release .rhead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 22px 24px 0; }
.release .rhead strong { font: 800 46px/1 var(--sans); letter-spacing: -0.03em; }
.release .rhead span { color: var(--muted); }
.release .rbody { padding: 18px 24px 24px; }
.release dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; margin: 22px 0 0; font-size: 14px; }
.release dt { color: var(--muted); }
.release dd { margin: 0; }
.btn-ver { font-weight: 500; opacity: .8; }
.btn-ver:empty { display: none; }
.changelog { margin-top: 22px; }
.changelog h3 { margin: 0 0 10px; font-size: 18px; }
.changelog h3 .tabular { color: var(--muted); font-weight: 500; }
.changelog ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.changelog li + li { margin-top: 6px; }
.changelog .fold { margin-top: 14px; }
.changelog .fold-body h4 { margin: 16px 0 6px; font-size: 15px; }
.changelog .fold-body h4:first-child { margin-top: 4px; }
.changelog .fold-body h4 span { color: var(--muted); font-weight: 400; margin-left: 8px; }
.hash { font: 500 13px/1.55 ui-monospace, Consolas, monospace; word-break: break-all; color: #ffd2a1; background: #222; padding: 8px 10px; border-radius: 4px; }
.copy { margin-top: 6px; background: var(--widget); border: 0; padding: 4px 12px; border-radius: 4px; color: var(--text); font: 13px var(--sans); cursor: pointer; }
.copy:hover { background: #4a4a4a; }
.notice { margin-top: 20px; padding: 12px 14px; border-radius: 6px; background: rgba(237,143,49,.1); border: 1px solid rgba(237,143,49,.35); font-size: 15px; }
.notice.blue { background: rgba(71,114,179,.12); border-color: rgba(71,114,179,.45); }
code { font: 500 .9em ui-monospace, Consolas, monospace; background: #3a3a3a; padding: 1px 6px; border-radius: 4px; }
kbd { display: inline-block; min-width: 26px; padding: 1px 7px; text-align: center; font: 600 13px/1.6 var(--sans); color: #eee; background: #484848; border: 1px solid #555; border-bottom: 3px solid #2c2c2c; border-radius: 5px; }
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
ol.steps > li { counter-increment: s; position: relative; padding: 0 0 22px 50px; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #1d1d1d; font: 700 15px/1 var(--sans); }
ol.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 36px; bottom: 4px; width: 1px; background: var(--line-2); }
ol.steps strong { display: block; margin-bottom: 2px; }
ol.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.req { margin-top: 22px; width: 100%; border-collapse: collapse; font-size: 14px; }
.req th, .req td { text-align: left; padding: 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.req th { width: 5.5em; color: var(--muted); font-weight: 500; }

/* ---------- 会员表 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; border: 1px solid #383838; }
.plans { width: 100%; min-width: 700px; border-collapse: collapse; background: var(--panel); }
.plans th, .plans td { padding: 15px 14px; text-align: center; border-bottom: 1px solid #383838; }
.plans thead th { background: #333; font-size: 16px; vertical-align: bottom; }
.plans thead th small { display: block; margin-top: 3px; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.plans tbody th { text-align: left; font-weight: 600; }
.plans tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.plans tr:last-child th, .plans tr:last-child td { border-bottom: 0; }
.plans .yes svg, .plans .no svg { width: 20px; height: 20px; margin: auto; }
.plans .yes { color: #7fa6e6; }
.plans .no { color: #4d4d4d; }
.plans .featured { background: rgba(237,143,49,.08); }
.plans thead .featured { background: #3d3226; box-shadow: inset 0 3px 0 var(--orange); }
.plans .price { font-weight: 700; }
.plans .quota { font-size: 13.5px; line-height: 1.45; }
.contact-line { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.contact-line .tel { font: 800 28px/1 var(--sans); color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.fine { margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 40px; color: var(--muted); font-size: 14px; padding: 0; list-style: none; }
.fine li::before { content: "·"; color: var(--orange); margin-right: 8px; font-weight: 700; }

/* ---------- 常见问题：Blender 折叠面板 ---------- */
.faq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.faq-group h3 { margin: 26px 0 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.faq-group h3:first-child { margin-top: 0; }
details.q { background: var(--panel); border-radius: 6px; margin-bottom: 6px; }
details.q summary { list-style: none; cursor: pointer; padding: 11px 14px 11px 34px; position: relative; font-weight: 600; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::before { content: ""; position: absolute; left: 14px; top: 19px; border: 5px solid transparent; border-left: 7px solid #bdbdbd; border-right: 0; transition: transform .15s; }
details.q[open] summary::before { transform: rotate(90deg); }
details.q summary:hover { color: #fff; }
details.q p { margin: 0; padding: 0 16px 14px 34px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.footer { padding-block: 52px 36px; font-size: 14px; color: var(--muted); background: #171717; border-top: 1px solid #2a2a2a; }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer h4 { margin: 0 0 10px; font-size: 14px; color: var(--text); font-weight: 600; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { padding: 3px 0; }
.footer a { text-decoration: none; color: inherit; }
.footer a:hover { color: var(--text); }
.footer .legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid #2a2a2a; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- 教程页 ---------- */
.page-head { padding-block: clamp(44px, 6vw, 76px) 34px; background: radial-gradient(900px 400px at 30% 0%, #2c2c2c, var(--bg) 70%); border-bottom: 1px solid #2a2a2a; }
.page-head h1 { margin: 0; font: 800 clamp(32px, 4.6vw, 52px)/1.15 var(--sans); letter-spacing: -0.02em; }
.page-head p { margin: 14px 0 0; max-width: 42em; color: var(--muted); font-size: 17px; }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: 36px 96px; }
.toc { position: sticky; top: 78px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; font-size: 14px; background: var(--panel); border-radius: 8px; padding: 8px; }
.toc p { margin: 10px 8px 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.toc p:first-child { margin-top: 4px; }
.toc a { display: block; padding: 5px 10px; border-radius: 4px; text-decoration: none; color: #cfcfcf; }
.toc a:hover { background: #383838; color: #fff; }
.toc a.active { background: var(--blue); color: #fff; }
.prose { max-width: 48em; }
.prose section { margin-bottom: 20px; scroll-margin-top: 76px; background: var(--panel); border-radius: 8px; overflow: hidden; }
.prose section > h2 { margin: 0; padding: 12px 18px; background: #333; font: 700 20px/1.4 var(--sans); display: flex; align-items: center; gap: 10px; }
.prose section > h2::before { content: ""; border: 6px solid transparent; border-top: 7px solid #bdbdbd; margin-top: 6px; }
.prose section > .inner { padding: 18px 20px 6px; }
.prose h3 { margin: 24px 0 8px; font-size: 18px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol:not(.steps) { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--orange); }
.prose .entry { color: var(--muted); font-size: 15px; }
.prose .tip { padding: 10px 14px; border-radius: 6px; background: rgba(71,114,179,.14); border: 1px solid rgba(71,114,179,.4); margin: 12px 0 16px; font-size: 15px; }
.prose .warn { background: rgba(237,143,49,.1); border-color: rgba(237,143,49,.35); }
.keys { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.keys td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.keys tr:first-child td { border-top: 0; }
.keys td:first-child { width: 8em; }
.video-slot { margin: 16px 0 18px; }
.guide-figure { margin: 4px 0 20px; }
.guide-figure img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid #383838; background: #1a1a1a; }
.guide-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.prose ol.steps { margin: 0 0 16px; }

/* ---------- 视频 ---------- */
.vgroup { margin-bottom: 52px; }
.vgroup h2 { font: 800 26px/1.3 var(--sans); margin: 0 0 18px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px 22px; }
.video { margin: 0; }
.video .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #2a2a2a; border: 1px solid #383838; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .pending { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #8a8a8a; font-size: 14px; background: radial-gradient(ellipse at 50% 40%, #3d3d3d, #2b2b2b 75%); }
.video .pending svg { width: 42px; height: 42px; margin: 0 auto 8px; color: #6a6a6a; }
.video figcaption { margin-top: 12px; }
.video figcaption strong { display: block; font-size: 17px; }
.video figcaption span { color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

details.fold {
  margin-top: 8px;
  background: var(--panel);
  border-radius: 8px;
}
details.fold summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px 14px 36px;
  position: relative;
  font-weight: 700;
}
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  border: 5px solid transparent;
  border-left: 7px solid #bdbdbd;
  border-right: 0;
}
details.fold[open] summary::before { transform: rotate(90deg); transform-origin: 2px 4px; }
details.fold .fold-body { padding: 0 16px 18px 16px; }
details.fold .fold-line { margin: 0 0 12px; color: var(--muted); }
details.fold .fold-label { margin: 0 0 6px; font-size: 13px; color: var(--muted); }

@media (max-width: 1000px) {
  .hero-bleed,
  .hero-bleed.has-slides { min-height: min(72vh, 640px); }
  .flow, .split, .download, .faq-cols { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; }
  .toc p { width: 100%; }
}
@media (max-width: 720px) {
  .nav, .topbar .login { display: none; }
  .menu-toggle { display: grid; place-items: center; margin-left: auto; width: 40px; height: 40px; background: #2e2e2e; border: 0; border-radius: var(--r); color: var(--text); cursor: pointer; }
  .menu-toggle svg { width: 20px; height: 20px; }
  .topbar.open .nav { display: flex; flex-direction: column; position: absolute; top: 58px; left: 0; right: 0; background: #1b1b1b; border-bottom: 1px solid #2a2a2a; padding: 8px var(--gutter) 16px; }
  .topbar.open .nav a { padding: 12px 8px; font-size: 16px; }
  .fine { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
}

/* ---------- 明暗 / 语言切换 ---------- */
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); border: 0; background: transparent; color: #c8c8c8; cursor: pointer; }
.theme-toggle:hover { background: #2e2e2e; color: #fff; }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
[data-locale-picker] {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid #3a3a3a; border-radius: var(--r); background: #2a2a2a;
}
[data-locale-picker] button {
  min-width: 32px; height: 28px; padding: 0 8px; border: 1px solid transparent;
  border-radius: 4px; background: transparent; color: #c8c8c8;
  font: 600 12px/1 Inter, sans-serif; cursor: pointer;
}
[data-locale-picker] button:hover { background: #3a3a3a; color: #fff; }
[data-locale-picker] button[aria-pressed="true"] {
  background: #3d3d3d; color: #fff; border-color: #555;
}
:root[data-theme="light"] [data-locale-picker] { background: #ececec; border-color: #ddd; }
:root[data-theme="light"] [data-locale-picker] button { color: #444; }
:root[data-theme="light"] [data-locale-picker] button:hover,
:root[data-theme="light"] [data-locale-picker] button[aria-pressed="true"] {
  background: #fff; color: #111; border-color: #ccc;
}
.get-blender { text-decoration: none; color: inherit; display: flex; gap: 12px; align-items: center; margin: 0 0 22px; padding: 12px 14px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; }
.get-blender svg { width: 22px; height: 22px; color: var(--orange); flex: none; }
.get-blender span { color: var(--muted); }

/* =========================================================
   亮色：页面参考 blender.org 亮色，示意窗口用 Blender Light 主题
   ========================================================= */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f4; --bg-2: #eaeaea; --panel: #ffffff; --panel-2: #f1f1f1; --widget: #e4e4e4;
  --line: #dadada; --line-2: #cbcbcb; --text: #1f1f1f; --muted: #5d5d5d;
  --orange-text: #b8620c;
}
:root[data-theme="light"] p a, :root[data-theme="light"] li a, :root[data-theme="light"] dd a, :root[data-theme="light"] td a, :root[data-theme="light"] .link { color: #2f5ea3; }
:root[data-theme="light"] .topbar { background: rgba(255,255,255,.92); border-bottom-color: #e2e2e2; }
:root[data-theme="light"] .nav a, :root[data-theme="light"] .theme-toggle { color: #444; }
:root[data-theme="light"] .nav a:hover, :root[data-theme="light"] .nav a[aria-current="page"], :root[data-theme="light"] .theme-toggle:hover { color: #111; background: #ececec; }
:root[data-theme="light"] .menu-toggle { background: #ececec; }
:root[data-theme="light"] .btn-ghost { background: #fff; color: #1f1f1f; border-color: #cfcfcf; }
:root[data-theme="light"] .btn-ghost:hover { background: #f0f0f0; }
:root[data-theme="light"] .hero-bleed:not(.has-slides) {
  background:
    radial-gradient(1200px 600px at 50% 0%, #ffffff 0%, var(--bg) 70%),
    linear-gradient(160deg, #f0f0f0, #e6e6e6 55%, #ddd);
}
:root[data-theme="light"] .hero-bleed:not(.has-slides) .hero-brand,
:root[data-theme="light"] .hero-bleed:not(.has-slides) h1 { color: var(--text); }
:root[data-theme="light"] .how-meta .link { color: #2f5ea3; }
:root[data-theme="light"] .nesting-photo { border-color: #d6d6d6; background: #ececec; box-shadow: 0 16px 40px rgba(0,0,0,.1); }
:root[data-theme="light"] .nesting-photo-fallback {
  color: #666;
  background: linear-gradient(145deg, #efefef 0%, #e2e2e2 55%, #d8d8d8 100%);
}
:root[data-theme="light"] .page-head { background: radial-gradient(900px 400px at 30% 0%, #ffffff, var(--bg) 70%); border-bottom-color: #e2e2e2; }

/* Blender Light 主题的示意窗口 */
:root[data-theme="light"] .bwin { background: #bdbdbd; border-color: #c9c9c9; box-shadow: 0 30px 70px rgba(0,0,0,.18); }
:root[data-theme="light"] .bwin-top, :root[data-theme="light"] .bwin-status { background: #d9d9d9; border-color: #bcbcbc; color: #2a2a2a; }
:root[data-theme="light"] .bwin-top .ws.on { background: #f0f0f0; color: #111; }
:root[data-theme="light"] .bwin-top .menus span:first-child { color: #b8620c; }
:root[data-theme="light"] .bwin-status .now { color: #b8620c; }
:root[data-theme="light"] .replay-btn { color: #444; }
:root[data-theme="light"] .viewport { background: radial-gradient(ellipse at 50% 45%, #c2c2c2 0%, #b0b0b0 55%, #a3a3a3 100%); }
:root[data-theme="light"] .vp-header { color: #222; }
:root[data-theme="light"] .vp-header span { background: rgba(225,225,225,.92); }
:root[data-theme="light"] .vp-header .mode { background: #4772b3; color: #fff; }
:root[data-theme="light"] .vp-overlay { color: #1a1a1a; text-shadow: none; }
:root[data-theme="light"] .gizmo circle:first-child { fill: rgba(0,0,0,.08); }
:root[data-theme="light"] #cab .gridline { stroke: rgba(0,0,0,.13); }
:root[data-theme="light"] .npanel { background: #c9c9c9; border-left-color: #b3b3b3; color: #1a1a1a; }
:root[data-theme="light"] .npanel .tabs { background: #bdbdbd; border-right-color: #b3b3b3; }
:root[data-theme="light"] .npanel .tabs span { color: #4a4a4a; }
:root[data-theme="light"] .npanel .tabs span.on { background: #c9c9c9; color: #111; }
:root[data-theme="light"] .bpanel { background: #d9d9d9; }
:root[data-theme="light"] .bpanel > h4::before { border-top-color: #444; }
:root[data-theme="light"] .bprop label { color: #3d3d3d; }
:root[data-theme="light"] .bfield { background: #f0f0f0; color: #111; }
:root[data-theme="light"] .bfield.flash { background: #f6d9b4; }
:root[data-theme="light"] .bfield.badge { background: #f6dcc0; color: #8a4a08; }
:root[data-theme="light"] kbd { color: #1f1f1f; background: #f3f3f3; border-color: #c8c8c8; border-bottom-color: #a9a9a9; }

/* 面板、编辑器、表格 */
:root[data-theme="light"] .ppanel, :root[data-theme="light"] .release { border-color: #dedede; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
:root[data-theme="light"] .ppanel > header { background: #ececec; }
:root[data-theme="light"] .editor { background: #e8e8e8; border-color: #d0d0d0; box-shadow: 0 20px 50px rgba(0,0,0,.14); }
:root[data-theme="light"] .editor-head, :root[data-theme="light"] .editor-foot { background: #d9d9d9; border-color: #bcbcbc; color: #2a2a2a; }
:root[data-theme="light"] .editor-head .title { color: #111; }
:root[data-theme="light"] .editor-head .pill { background: #f0f0f0; }
:root[data-theme="light"] .editor-head .pill.on { background: #4772b3; color: #fff; }
:root[data-theme="light"] .editor-body { background: #b9b9b9; }
:root[data-theme="light"] .editor-foot b { color: #b8620c; }
:root[data-theme="light"] #sheet .board { fill: #9a9a9a; stroke: #8a8a8a; }
:root[data-theme="light"] #sheet .hole { fill: #9a9a9a; }
:root[data-theme="light"] #sheet .trim { stroke: #7d7d7d; }
:root[data-theme="light"] #sheet .dim { fill: #3a3a3a; }
:root[data-theme="light"] #sheet .path { stroke: #e3780f; }
:root[data-theme="light"] .hash { background: #f1f1f1; color: #8a4a08; }
:root[data-theme="light"] code { background: #ececec; }
:root[data-theme="light"] .copy { background: #e8e8e8; color: #1f1f1f; }
:root[data-theme="light"] .copy:hover { background: #dcdcdc; }
:root[data-theme="light"] .notice { background: #fff4e8; border-color: #f1c38f; }
:root[data-theme="light"] .notice.blue, :root[data-theme="light"] .prose .tip { background: #eef3fb; border-color: #b7c9e6; }
:root[data-theme="light"] .prose .warn { background: #fff4e8; border-color: #f1c38f; }
:root[data-theme="light"] .table-scroll { border-color: #dedede; }
:root[data-theme="light"] .plans th, :root[data-theme="light"] .plans td { border-bottom-color: #e6e6e6; }
:root[data-theme="light"] .plans thead th { background: #f0f0f0; }
:root[data-theme="light"] .plans thead .featured { background: #fbe9d5; }
:root[data-theme="light"] .plans .featured { background: #fff6ec; }
:root[data-theme="light"] .plans .yes { color: #2f5ea3; }
:root[data-theme="light"] .plans .no { color: #c4c4c4; }
:root[data-theme="light"] details.q { border: 1px solid #e3e3e3; }
:root[data-theme="light"] details.q summary::before { border-left-color: #555; }
:root[data-theme="light"] .prose section > h2 { background: #ececec; }
:root[data-theme="light"] .prose section > h2::before { border-top-color: #555; }
:root[data-theme="light"] .prose section { border: 1px solid #e3e3e3; }
:root[data-theme="light"] .toc { border: 1px solid #e3e3e3; }
:root[data-theme="light"] .toc a { color: #333; }
:root[data-theme="light"] .toc a:hover { background: #ececec; color: #111; }
:root[data-theme="light"] .toc a.active { background: #4772b3; color: #fff; }
:root[data-theme="light"] .guide-figure img { border-color: #d6d6d6; background: #f3f3f3; }
:root[data-theme="light"] .video .frame { background: #e6e6e6; border-color: #d6d6d6; }
:root[data-theme="light"] .video .pending { color: #666; background: radial-gradient(ellipse at 50% 40%, #c7c7c7, #b3b3b3 75%); }
:root[data-theme="light"] .video .pending svg { color: #8a8a8a; }
:root[data-theme="light"] .footer { background: #ebebeb; border-top-color: #dcdcdc; }
:root[data-theme="light"] .footer .legal { border-top-color: #d6d6d6; }
:root[data-theme="light"] .get-blender { border-color: #dedede; }
:root[data-theme="light"] ::selection { background: #4772b3; color: #fff; }

.get-blender:hover { border-color: var(--orange); }
