/* 公开站的基础色板，以及职业照原型和补充内容所用的页面样式。 */
:root {
  --ink:#17181a;
  --muted:#616366;
  --paper:#f5f7f9;
  --surface:#fff;
  --surface-muted:#f7f8ff;
  --panel:#eef1f6;
  --line:#dfe4ed;
  --line-strong:#a7b3d0;
  --accent:#0a5bd6;
  --accent-soft:#e5f2ff;
  --violet:#693bb8;
  --violet-soft:#edefff;
  --action:var(--accent);
  --action-hover:#0349ac;
  --shadow-rgb:24 30 46;
  color-scheme:light;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
  line-height:1.7;
}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-underline-offset:5px}a:hover{color:var(--accent)}a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:5px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2.35rem,4.4vw,4.6rem);letter-spacing:-.045em;line-height:1.12;max-width:19ch;margin-bottom:1.5rem}h2{font-size:clamp(1.6rem,2.5vw,2.3rem);line-height:1.25;letter-spacing:-.025em}h3{font-size:1.25rem;line-height:1.4}p{max-width:72ch}img{max-width:100%;height:auto;display:block}.site-header{max-width:1320px;margin:auto;padding:25px 40px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}nav{display:flex;align-items:center;gap:24px;flex-wrap:wrap}nav a{text-decoration:none;font-size:.92rem}.brand{text-decoration:none;font-weight:750;font-size:1.3rem;letter-spacing:-.04em;display:inline-flex;align-items:center;gap:10px}.mark{background:var(--ink);color:var(--paper);padding:0 8px;border-radius:9px;letter-spacing:-.1em}.button{display:inline-block;border-radius:9px;background:var(--action);color:white!important;padding:13px 23px;text-decoration:none;font-weight:650;line-height:1.5}.button:hover{background:var(--action-hover)}.small{font-size:.85rem;padding:10px 17px}main>section,main>.reading,main>.cta{max-width:1220px;margin:0 auto;padding:70px 40px}main>.hero{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:60px;padding-top:90px;padding-bottom:90px}.eyebrow{display:block;text-transform:uppercase;letter-spacing:.12em;font-size:.73rem;font-weight:700;color:var(--muted);margin-bottom:22px}.lead{font-size:1.18rem;color:var(--muted);line-height:1.85}.muted,figcaption,small,.byline{color:var(--muted);font-size:.82rem}.muted{margin-top:18px}.hero figure{margin:0}.hero img{aspect-ratio:6/5;border-radius:24px;background:var(--panel)}figcaption{margin-top:12px;text-align:center}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.cards article{padding:30px;border:1px solid var(--line);border-radius:15px;background:var(--surface)}.cards article h2{font-size:1.35rem;line-height:1.45}.cards article p{font-size:.98rem;color:var(--muted)}.cards .eyebrow{margin-bottom:12px}.cards.two{grid-template-columns:1fr 1fr}.split{display:grid;grid-template-columns:1fr 1fr;gap:45px}.note,.cta{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:30px}.note p:last-child{margin-bottom:0}.checklist{padding-left:24px;margin-top:0}.checklist li{padding:0 0 16px 10px}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;padding-left:24px}.steps li{padding-left:6px}details{border-bottom:1px solid var(--line);padding:20px 0}details p{padding-top:16px;margin:0;color:var(--muted)}summary{cursor:pointer;font-weight:650}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:24px}.page-intro{padding-bottom:15px!important}.categories{gap:15px;margin-top:25px}.categories a{padding:8px 15px;border:1px solid var(--line);border-radius:25px}.reading{max-width:850px!important}.reading h1{font-size:clamp(2.2rem,4vw,3.6rem);max-width:none}.breadcrumbs{margin-bottom:35px;color:var(--muted);display:block}.breadcrumbs a{font-size:.83rem}.byline{line-height:1.9}.toc{display:block;background:var(--panel);padding:25px 30px;border-radius:12px;margin:30px 0 45px}.toc ol{margin:12px 0 0;padding-left:20px}.toc a{font-size:.97rem}.article-body h2{font-size:1.8rem;margin:45px 0 20px;scroll-margin-top:20px}.article-body h3{margin-top:30px}.article-body li{margin-bottom:12px}.article-body table{border-collapse:collapse;width:100%;font-size:.9rem}.article-body td,.article-body th{padding:12px;border:1px solid var(--line)}.reading>.note{font-size:.9rem;margin-top:35px}main>.cta{max-width:1140px;margin:35px auto 80px;padding:45px}.cta h2{max-width:25ch}.cta p{color:var(--muted)}footer{max-width:1220px;margin:auto;border-top:1px solid var(--line);padding:40px;color:var(--muted)}footer p{margin-top:20px;font-size:.9rem}footer nav{margin:20px 0}.skip{position:absolute;left:10px;top:-80px;background:white;padding:10px;z-index:2}.skip:focus{top:10px}@media(max-width:950px){.site-header{padding:22px}.site-header nav{gap:14px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}main>.hero{gap:30px}.steps{grid-template-columns:1fr 1fr}}@media(max-width:650px){.site-header{display:block}.site-header nav{margin-top:20px;gap:14px}.site-header nav a{font-size:.8rem}.small{padding:8px 12px}main>section,main>.reading{padding:42px 22px}main>.hero{grid-template-columns:1fr;padding:50px 22px;gap:35px}.hero img{max-width:460px;margin:auto}.cards,.cards.two,.split,.steps{grid-template-columns:1fr}.cards article{padding:25px}.split{gap:15px}.steps{gap:18px}.section-heading{display:block}.section-heading>a{display:block;margin-bottom:24px}main>.cta{margin:20px 22px 45px;padding:28px}footer{padding:30px 22px}.toc{padding:22px}.article-body table{display:block;overflow:auto}.reading .lead{font-size:1.08rem}}
/* 职业照首屏：上传是唯一输入；移动端维持顺序、触控尺寸与可见键盘焦点。 */
/* 文件控件仅视觉隐藏，保留标签点击与键盘选图；加号随悬停、拖入或键盘聚焦提亮。 */
.photo-drop input[type="file"]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.photo-prompt{display:flex;flex-direction:column;align-items:center;gap:14px;color:var(--muted);font-size:.9rem}
.photo-prompt[hidden]{display:none}
.photo-add{display:grid;place-items:center;width:56px;height:56px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--muted);font-size:34px;font-weight:300;line-height:1;transition:color .18s,background .18s,border-color .18s,box-shadow .18s}
.photo-drop:hover .photo-add,.photo-drop.drag-active .photo-add,.photo-drop:has(input:focus-visible) .photo-add{color:var(--accent);background:var(--panel);border-color:var(--line-strong);box-shadow:0 0 0 5px var(--accent-soft)}
/* 鼠标点击后不遗留粗焦点框；键盘导航保留明确的焦点提示。 */
.photo-drop:focus-within:not(:has(input:focus-visible)){outline:none}
@media(prefers-reduced-motion:reduce){.photo-add{transition:none}}
.landing-upload{min-width:0;padding:30px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:0 15px 45px rgb(var(--shadow-rgb) / .03)}.landing-upload h2{font-size:1.5rem}.photo-drop{position:relative;display:flex;min-height:210px;border:1.5px dashed var(--line-strong);border-radius:14px;background:var(--paper);align-items:center;justify-content:center;flex-direction:column;padding:24px;gap:20px;text-align:center;cursor:pointer}.photo-drop.drag-active{background:var(--accent-soft);border-color:var(--accent)}.photo-drop:focus-within{outline:3px solid var(--accent);outline-offset:4px}.photo-drop input{font:inherit;font-size:.85rem;max-width:100%}.hero .photo-drop img{max-height:220px;max-width:100%;width:auto;object-fit:contain;aspect-ratio:auto;border-radius:8px}.photo-drop img[hidden]{display:none}.photo-rules{font-size:.87rem;color:var(--muted);line-height:1.75;margin:18px 0 10px}.photo-status{font-size:.87rem;min-height:3.5em;line-height:1.6;margin-bottom:18px}.landing-upload button{font:inherit;cursor:pointer;border:0;width:100%}.landing-upload button:disabled{opacity:.5;cursor:not-allowed}.landing-upload button:focus-visible{outline:3px solid var(--accent);outline-offset:4px}@media(max-width:650px){.landing-upload{padding:24px}.photo-drop{min-height:185px}}
/* 固定博客模板的可选封面与受签名保护的预览提示；无封面不改变原有正文结构。 */
.blog-cover{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:12px;margin:20px 0 28px;background:var(--panel)}.cards .card-cover{margin:0 0 22px}.preview-banner{max-width:1140px;margin:25px auto 0;padding:14px 22px;background:var(--panel);border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:13px}

/* 网格子项允许缩小，避免手机首屏插图的固有宽度把标题和页面撑出视口。 */
.hero>*{min-width:0}

@media(max-width:650px){.hero img{max-width:min(100%,460px)}}
/* 分页锚点可直接抓取；手机导航收紧首屏占用，仍保持可点击尺寸。 */
.pagination{display:flex;justify-content:center;align-items:center;gap:24px;margin:35px 0;flex-wrap:wrap}.pagination a{padding:10px 12px}.pagination span{color:var(--muted);font-size:.9rem}
@media(max-width:650px){.site-header{gap:18px;padding-top:20px;padding-bottom:20px}.site-header nav{gap:14px}.site-header nav .button{padding:10px 14px}.hero{padding-top:34px}}
/* 正文图片保留附件真实比例，移动端不溢出；不复用封面的裁切比例。 */
.article-body figure{margin:28px 0}.article-body img{display:block;max-width:100%;height:auto;border-radius:12px}.article-body figcaption{margin-top:10px;font-size:14px;color:var(--muted)}

/* 全站导航保留原入口，职业照主体使用原型的背景和尺寸。 */
.home-page .site-header,
.home-page footer { max-width: 1120px; }
.home-page main { background: #f4f3ec; }
.site-icon { width:1.1em; height:1.1em; vertical-align:-.19em; flex:none; }
.photo-add .site-icon { width:28px; height:28px; }
.home-upload-icon { display: block; color: var(--accent); }
.home-upload-icon .site-icon { width: 34px; height: 34px; }
.site-header nav > a[aria-current="page"] { color:var(--accent); text-decoration:underline; }
.home-landing {
  --home-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --ink: #1e2018;
  --muted: #686758;
  --surface-muted: #f7f8f1;
  --line: #e3e1d3;
  --home-rule-subtle: #ece9db;
  --line-strong: #c9cdb4;
  --accent: #6e804c;
  --accent-ink: #4f5e36;
  --accent-soft: #e6e9d4;
  --panel: #ecefe0;
  --action: #2b321d;
  --action-hover: #374026;
  --shadow-rgb: 30 32 24;
  color: var(--ink);
  --home-shadow: 0 1px 2px rgb(var(--shadow-rgb) / .04), 0 8px 24px rgb(var(--shadow-rgb) / .05);
  max-width: 1120px;
  margin-inline: auto;
  padding: 48px 40px 80px;
  font-size: 15px;
  line-height: 1.6;
}
.home-landing [hidden] { display: none; }
.home-prototype { padding-bottom: 0; }
.home-supplement { padding-top: 0; }
.home-intro { margin-bottom: 36px; }
.home-intro-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.home-intro-top .home-kicker { margin: 0; }
.home-my-photos, .home-reselect {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 18px;
  font-size: 13px;
  text-decoration: none;
}
.home-my-photos:hover, .home-upload .photo-drop:hover .home-reselect { background: var(--panel); border-color: var(--accent); }
.home-kicker {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-intro h1,
.home-photo-tips h2,
.home-gallery h2,
.home-upload .photo-prompt strong {
  font-family: var(--home-serif);
  letter-spacing: normal;
}
.home-intro h1 { max-width: none; margin-bottom: 14px; font-size: 54px; line-height: 1.18; }
.home-intro > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 16px; }
.home-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.home-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.home-steps b,
.home-photo-tips b {
  flex: none;
  min-width: 26px;
  text-align: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--panel);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 600;
}
.home-steps [aria-current="step"] { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.home-steps [aria-current="step"] b { background: var(--accent); color: #fff; }
.home-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  padding: 12px 18px;
  margin: 0 0 20px;
  border: 1px solid var(--accent-soft);
  border-radius: 10px;
  background: var(--panel);
  color: var(--accent-ink);
  font-size: 13px;
}
.home-photo-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  gap: 32px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--home-rule-subtle);
  border-radius: 18px;
  box-shadow: var(--home-shadow);
}
.home-upload.landing-upload { display: flex; flex-direction: column; padding: 0; border: 0; box-shadow: none; }
.home-upload .photo-drop {
  flex: 1;
  min-height: 380px;
  padding: 48px 28px;
  border: 2px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--surface-muted);
}
.home-upload .photo-drop:hover { border-color: var(--accent); background: #f3f5e9; }
.home-upload .photo-drop.drag-active { border-color: var(--accent); background: var(--panel); }
/* 原型的选片态显示本地缩略图、文件信息和重新选择入口。 */
.home-upload .photo-drop:has([data-preview-details]:not([hidden])) { min-height: 0; padding-block: 20px; }
.home-upload-preview { display: grid; justify-items: center; gap: 8px; width: 100%; }
.home-upload-preview img { width: 150px; height: 150px; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; }
.home-upload-filename { max-width: 100%; overflow-wrap: anywhere; }
.home-upload .photo-prompt { gap: 0; font-size: 14px; }
.home-upload-icon { margin-bottom: 18px; line-height: 1; }
.home-upload .photo-prompt strong { margin-bottom: 8px; font-size: 22px; font-weight: 600; color: var(--ink); }
.home-upload .photo-prompt .button { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 11px 22px; font-weight: 500; }
.home-upload .photo-prompt .button .site-icon { width: 14px; height: 14px; }
.home-upload .photo-prompt small { margin-top: 16px; font-size: 12px; }
.home-upload .photo-rules { display: none; }
.home-upload .photo-status { min-height: 0; margin: 9px 0 0; color: var(--muted); }
.home-upload .photo-status:empty { margin: 0; }
.home-upload [data-generate] { margin-top: 12px; }
.home-upload:not(:has([data-photo-preview]:not([hidden]))) [data-generate] { display: none; }

.home-photo-tips { min-width: 0; padding: 16px 4px; }
.home-photo-tips .home-kicker { margin-bottom: 10px; color: var(--accent-ink); font-weight: 600; letter-spacing: .06em; }
.home-photo-tips h2 { margin-bottom: 24px; font-size: 26px; line-height: 1.3; }
.home-photo-tips ul { padding: 0; margin: 0; list-style: none; }
.home-photo-tips li {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--home-rule-subtle);
  font-size: 14px;
}
.home-photo-tips li:last-child { border-bottom: 0; }
.home-photo-tips b { height: 22px; line-height: 18px; margin-top: 2px; }
.home-photo-tips strong { font-weight: 600; }
.home-photo-tips li p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.home-gallery,
.home-guides, .home-scenes { margin-top: 60px; }
/* 专题正文控制阅读行宽，链接延续站内强调色。 */
.landing-editorial { max-width:72ch; margin-top:42px; }
.landing-editorial a { color:var(--accent); }
/* 专题目录和内链卡片复用同一表面、链接与边框。长标题可以安全换行。 */
main > .landing-directory-intro, main > .landing-directory { max-width:1120px; }
main > .landing-directory { padding-top:24px; }
.home-scenes .section-heading > a, .scene-cards a { color:var(--accent); }
.scene-cards article:hover, .scene-cards article:focus-within { border-color:var(--line-strong); }
.scene-cards article :is(h2, h3), #topic-recommendations .cards h3 {
  font-size: 1.35rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.home-gallery-head { margin-bottom: 22px; }
.home-gallery-head .home-kicker { margin-bottom: 8px; }
.home-gallery h2 { margin: 0; font-size: 32px; }
.home-examples-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.home-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.home-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.home-filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.home-filters button:is(:hover, [aria-pressed="true"]) {
  border-color: var(--accent);
  background: var(--panel);
  color: var(--accent);
}
.home-filters button[aria-pressed="true"] { font-weight: 650; }
.home-filters button[aria-pressed="false"] svg { display: none; }
.home-filters button:focus-visible,
.home-example-dialog button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.home-example-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.home-example-card { position: relative; margin: 0; min-width: 0; transition: transform .2s; }
.home-example {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--home-shadow);
  transition: box-shadow .2s;
}
.home-example-card:hover { transform: translateY(-4px); }
.home-example-card:hover .home-example { box-shadow: 0 12px 28px rgb(var(--shadow-rgb) / .14); }
.home-example img { width: 100%; height: 100%; object-fit: cover; }
.home-example:not([href]) { display: grid; place-items: center; background: var(--panel); }
.home-example > .note { margin: 0; padding: 12px; border: 0; font-size: 13px; }
.home-example-card figcaption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  margin: 0;
  padding: 4px 9px;
  border-radius: 6px;
  max-width: calc(100% - 20px);
  text-align: left;
  overflow-wrap: anywhere;
  background: rgb(var(--shadow-rgb) / .86);
  color: #fff;
  font-size: 11px;
  pointer-events: none;
}
.home-example-dialog {
  position: fixed;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 42px 54px 14px;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 20px 60px rgb(var(--shadow-rgb) / .4);
}
.home-example-dialog::backdrop { background: rgb(var(--shadow-rgb) / .81); }
.home-example-dialog figure { margin: 0; text-align: center; }
.home-example-dialog figure .button { margin-top: 14px; }
.home-example-dialog img { margin: auto; width: auto; max-height: calc(100dvh - 200px); border-radius: 10px; }
.home-example-dialog button {
  position: absolute;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font: 24px/1 system-ui, sans-serif;
  cursor: pointer;
}
.home-example-dialog button:hover { background: var(--panel); }
.home-example-dialog [data-example-move] { top: 50%; transform: translateY(-50%); }
.home-example-dialog [data-example-move="-1"] { left: 8px; }
.home-example-dialog [data-example-move="1"],
.home-example-dialog [type="submit"] { right: 8px; }
.home-example-dialog [type="submit"] { top: 6px; }
@media (max-width: 860px) {
  .home-landing { padding-inline: 20px; }
  .home-prototype { padding-top: 32px; }
  .home-intro h1 { font-size: 38px; }
  .home-steps li { justify-content: center; }
  .home-step-label { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .home-example-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .home-photo-card { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 24px; }
  .home-upload .photo-drop { min-height: 300px; padding: 36px 20px; }
  .home-gallery h2 { font-size: 24px; }
}
@media (max-width: 520px) {
  .home-example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .home-example-card, .home-example { transition: none; } }

/* 首页展示模块沿用现有米白与橄榄色，并用深色区块区分套餐。 */
.home-module {
  margin-top: clamp(54px, 8vw, 100px);
  scroll-margin-top: 24px;
}
.home-module h2 {
  margin-bottom: 10px;
  font-family: var(--home-serif);
  font-size: clamp(26px, 3.6vw, 42px);
  letter-spacing: -.015em;
}
.home-module-intro { margin-bottom: 24px; }
.home-module-intro p { margin-bottom: 0; color: var(--muted); }
.home-comparison {
  padding: clamp(16px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-muted);
}
.home-comparison .home-module-intro { text-align: center; }
.home-comparison .home-module-intro p { margin-inline: auto; }
/* 分界线与原片裁切共用同一个百分比，播放时同步移动。 */
@property --compare-position {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}
@keyframes home-compare-sweep {
  0%, 100% { --compare-position: 50%; }
  27% { --compare-position: 100%; }
  36% { --compare-position: 100%; }
  72% { --compare-position: 0%; }
  81% { --compare-position: 0%; }
}
.home-compare-stage[data-compare-playing] { animation: home-compare-sweep 4.5s ease-in-out; }
/* 小卡同一扫动进度，各自裁切同一人物的两张图，窄屏自动换行。 */
.home-compare-stage {
  --compare-position: 50%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 138px), 1fr));
  justify-items: center;
  gap: 8px;
}
.home-compare-pair {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 165px);
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: var(--line);
}
.home-compare-pair img { width: 100%; height: 100%; object-fit: cover; }
.home-compare-after { height: 100%; }
.home-compare-before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--line);
  clip-path: inset(0 calc(100% - var(--compare-position)) 0 0);
}
.home-compare-divider {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--compare-position);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}
.home-compare-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 1030px;
  margin: 0 auto 8px;
  color: var(--muted);
  font-size: 12px;
}
.home-compare-labels span { padding: 2px 9px; background: var(--panel); border-radius: 5px; }
.home-compare-pair .note { border: 0; margin: 0; padding: 8px; font-size: 12px; }
/* 减少动态效果时，成对纵向显示两张完整照片。 */
@media (prefers-reduced-motion: reduce) {
  .home-compare-stage[data-compare-playing] { animation: none; }
  .home-compare-pair { aspect-ratio: auto; }
  .home-compare-before { position: relative; clip-path: none; margin-bottom: 4px; }
  .home-compare-pair img { height: auto; }
  .home-compare-after { height: auto; }
  .home-compare-divider { display: none; }
}
.home-tutorial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.home-tutorial-visual {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
  width: 100%;
  aspect-ratio: 5 / 4;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-muted);
}
.home-tutorial-visual img { height: 85%; width: auto; max-width: 48%; object-fit: cover; border-radius: 7px; }
.home-tutorial-visual[data-tutorial-step="1"] img { outline: 1px dashed var(--accent); outline-offset: 5px; }
.home-tutorial-visual[data-tutorial-step="2"] { background: repeating-linear-gradient(0deg, var(--surface-muted) 0 19px, var(--line) 19px 20px); }
.home-tutorial-visual[data-tutorial-step="3"] { background: var(--violet-soft); }
.home-tutorial-visual[data-tutorial-step="3"] span { color:var(--violet); }
.home-tutorial-visual span {
  position: absolute;
  display: grid;
  place-items: center;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  box-shadow: var(--home-shadow);
  font-size: 18px;
}
.home-tutorial-grid h3 { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; font-size: 1rem; }
.home-tutorial-grid h3 b { color: var(--accent); font-size: 12px; }
.home-tutorial-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.home-plans {
  padding: clamp(20px, 4vw, 42px);
  border:1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  color: var(--ink);
}
.home-plans .home-module-intro p { color: var(--muted); }
.home-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.home-plan-plus { border-color: var(--line-strong); background: var(--violet-soft); }
.home-plan h3 { margin-bottom: 6px; }
.home-plan p { color: var(--muted); font-size: 13px; }
.home-plan-price strong { color: var(--ink); font-size: clamp(24px, 3.5vw, 36px); line-height: 1.2; }
.home-plan-price span { white-space: nowrap; }
.home-plan-allowance strong { color: var(--ink); }
.home-plan-features {
  align-self: stretch;
  display: grid;
  gap: 7px;
  margin: 0 0 20px;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  list-style: none;
  font-size: 13px;
}
.home-plan-features li { display: flex; align-items: baseline; gap: 8px; }
.home-plan-features li::before {
  content: "";
  flex: 0 0 7px;
  height: 4px;
  border: solid var(--accent);
  border-width: 0 0 2px 2px;
  transform: translateY(-2px) rotate(-45deg);
}
.home-plan a {
  display: inline-block;
  margin-top: auto;
  padding: 7px 13px;
  border-radius: 6px;
  background: var(--action);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.home-plan a:hover { background: var(--action-hover); color: #fff; }
/* 承诺区以同一底板承载政策入口与说明，各说明之间用细线分隔。 */
.home-commitments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(30px, 6vw, 76px);
  padding: clamp(24px, 5vw, 64px);
  border-radius: 22px;
  background: var(--panel);
}
.home-commitments .home-module-intro { margin: 0; }
.home-commitments .home-module-intro h2 {
  margin-bottom: 18px;
  font-family: inherit;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 750;
  line-height: 1.15;
}
.home-commitments .home-module-intro h2 span { display: block; color: var(--accent); }
.home-commitments .home-module-intro p { max-width: 34ch; color: var(--muted); font-size: 1rem; }
.home-commitments a {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent);
  font-weight: 650;
  text-decoration-thickness: 1px;
}
.home-privacy-controls article { padding-block: 21px; }
.home-privacy-controls article + article { border-top: 1px solid var(--line); }
.home-privacy-controls article:first-child { padding-top: 0; }
.home-privacy-controls article:last-child { padding-bottom: 0; }
.home-privacy-controls h3 {
  margin-bottom: 8px;
  font-size: clamp(17px, 1.65vw, 22px);
}
.home-privacy-controls p { margin: 0; color: var(--muted); font-size: .96rem; }
.home-faq-head { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.home-faq-search { display: grid; flex: 0 1 280px; gap: 4px; color: var(--muted); font-size: 13px; }
.home-faq-field { position:relative; }
.home-faq-field .site-icon { position:absolute; top:50%; left:11px; transform:translateY(-50%); pointer-events:none; }
.home-faq-search input {
  width: 100%;
  min-height: 40px;
  padding: 8px 14px 8px 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.home-faq-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.home-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.home-faq-list details { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.home-faq-list summary { padding: 4px 0; }
.home-faq-list p { font-size: .92rem; }

@media (max-width: 860px) {
  .home-tutorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .home-plan-grid, .home-commitments, .home-faq-list { grid-template-columns: 1fr; }
  .home-commitments, .home-faq-head { gap: 16px; }
  .home-faq-head { display: block; }
  .home-faq-search { margin-bottom: 16px; }
  .home-tutorial-grid { gap: 20px 12px; }
}
