/* home 页自己的样式。共用的 token、按钮、徽章、卡片在 base.css；这里的类名都带 home- 前缀。
   视觉照 aibao.fun（aibao_nerve/site/public/style.css）：首屏 = 大标题 + 波纹插图，区块白 / 浅灰交替，
   白卡片放在浅灰底上、浅灰卡片放在白底上。
   区块底色：首屏 白 → 三步 灰 → 图例 白 → 全部组件 灰 → 推荐搭配 白 → 问题 灰 → 收尾 白 → 页脚 灰。
   CSP：没有 style="…"；插图里每块小图的方向由 home.js 用 CSSOM 设 --cos / --sin。 */

/* ---------------------------------------------------------------- 首屏 */
.home-hero{
  padding:72px 0 72px;text-align:center;
  background:linear-gradient(180deg,#fff 0%,var(--page-bg) 100%);
}
.home-hero-inner{max-width:920px}
.home-eyebrow{font-size:17px;color:var(--gray-3);margin-bottom:10px;letter-spacing:.01em;line-height:1.45}
.home-title{
  font-size:clamp(40px,7vw,72px);font-weight:700;
  line-height:1.08;letter-spacing:-.03em;margin-bottom:20px;text-wrap:balance;
}
.home-tagline{
  font-size:clamp(18px,2.4vw,22px);color:var(--gray-2);line-height:1.45;
  max-width:720px;margin:0 auto 36px;letter-spacing:-.01em;text-wrap:balance;
}
.home-ctas{display:flex;gap:14px;justify-content:center;align-items:center;flex-wrap:wrap}
.home-ctas .btn-primary,.home-ctas .btn-secondary{min-width:150px;padding:13px 28px}
/* 「还不卖」：安静的一行，但就在按钮下面 */
.home-hero-note{font-size:14px;color:var(--gray-3);margin:18px auto 52px;max-width:560px;line-height:1.55;text-wrap:balance}
/* 区块副标题：两行时上下差不多长，别剩一两个字挂在第二行 */
.home .section-sub{text-wrap:balance}
/* 中文里不该被拆开的半句用 base.css 的 .keep 包住（模板里 <span class="keep">） */

/* ---------------------------------------------------------------- 首屏插图：七块板子绕着「你」
   --rx / --ry：轨道的横、竖半径（占插图框宽 / 高的百分比）；--tile：小图直径（占框宽）；--center：中间圆的直径。
   手机上框改成正方形、小图放大，下面 @media 里改这几个变量就行。 */
.home-orbit-wrap{max-width:720px;margin:0 auto}
.home-orbit{
  --rx:38.5%;--ry:35%;--tile:15.5%;--center:19%;
  position:relative;aspect-ratio:3/2;border-radius:28px;overflow:hidden;
  background:
    radial-gradient(ellipse at 50% 50%,rgba(255,122,26,.12) 0%,transparent 60%),
    linear-gradient(135deg,#f5f5f7,#e8e8ed);
}
.home-orbit-path{
  position:absolute;left:calc(50% - var(--rx));top:calc(50% - var(--ry));
  width:calc(2 * var(--rx));height:calc(2 * var(--ry));
  border:1.5px dashed rgba(29,29,31,.12);border-radius:50%;
}
.home-orbit-center{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;
  width:var(--center);aspect-ratio:1;border-radius:50%;
  background:linear-gradient(145deg,#fff,#e8e8ed);
  box-shadow:0 24px 50px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.9);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
}
.home-orbit-center::after{
  content:"";position:absolute;inset:4px;border-radius:50%;
  border:1.5px solid var(--accent);opacity:.4;
}
.home-orbit-person{width:36%;height:auto;color:var(--accent)}
.home-orbit-label{font-size:13px;color:var(--gray-2);font-weight:600;line-height:1.2}

/* 波纹（同 aibao.fun 的 .ring）：从中间圆的边缘起步，向外扩散淡出，错开 1.2 秒 */
.home-ring{
  position:absolute;top:50%;left:50%;
  width:var(--center);aspect-ratio:1;border-radius:50%;
  border:2px solid rgba(255,122,26,.55);
  box-shadow:0 0 16px rgba(255,122,26,.24),inset 0 0 16px rgba(255,122,26,.12);
  transform:translate(-50%,-50%);opacity:0;
  animation:home-ripple 3.6s cubic-bezier(.2,.6,.3,1) infinite;
}
.home-ring2{animation-delay:1.2s}
.home-ring3{animation-delay:2.4s}
@keyframes home-ripple{
  0%{opacity:.9;transform:translate(-50%,-50%) scale(1)}
  60%{opacity:.3}
  100%{opacity:0;transform:translate(-50%,-50%) scale(3.6)}
}

.home-orbit-tile{
  position:absolute;z-index:3;
  left:calc(50% + var(--cos,0) * var(--rx));top:calc(50% + var(--sin,0) * var(--ry));
  width:var(--tile);aspect-ratio:1;border-radius:50%;
  background:#fff;box-shadow:0 10px 26px rgba(0,0,0,.09),0 1px 0 rgba(0,0,0,.03);
  display:flex;align-items:center;justify-content:center;
  transform:translate(-50%,-50%);
  animation:home-bob 7s ease-in-out infinite;animation-delay:var(--delay,0s);
}
.home-orbit-tile img{width:108%;max-width:none;height:auto;margin-top:-8%}
.home-orbit-icon{
  position:absolute;right:-4%;top:-4%;width:34%;aspect-ratio:1;border-radius:50%;
  background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.10);
  display:flex;align-items:center;justify-content:center;
  font-size:clamp(11px,1.5vw,17px);line-height:1;
}
@keyframes home-bob{
  0%,100%{transform:translate(-50%,-50%)}
  50%{transform:translate(-50%,calc(-50% - 5px))}
}
/* 「示意图」小字：插图下面、组件卡片的图角上都有 */
.home-illus-caption{font-size:12px;color:var(--gray-3);margin-top:12px;letter-spacing:.01em}

/* ---------------------------------------------------------------- 三步 */
.home-steps{background:var(--gray-6)}
.home-step-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.home-step{
  position:relative;background:#fff;border-radius:var(--radius-card);
  padding:92px 28px 30px;box-shadow:var(--shadow-card);
  display:flex;flex-direction:column;align-items:flex-start;gap:10px;
}
.home-step-num{
  position:absolute;top:22px;left:26px;
  font-size:60px;font-weight:700;line-height:1;letter-spacing:-.04em;
  color:rgba(255,122,26,.28);font-variant-numeric:tabular-nums;
}
/* 右上角的小标签：这一步做到了哪儿。「都是真板子」用实测的绿；「设想」「设计目标」用虚线框灰字（同 base.css 还没实测那一档的样子） */
.home-step-tag{
  position:absolute;top:30px;right:24px;max-width:calc(100% - 130px);
  font-size:11.5px;font-weight:600;letter-spacing:.02em;line-height:1.35;text-align:right;
  padding:3px 10px;border-radius:var(--radius-pill);border:1px solid transparent;
}
.home-step-tag-ok{background:var(--ok-tint);color:var(--ok)}
.home-step-tag-goal{color:var(--gray-2);border:1px dashed var(--gray-3)}
.home-step-title{font-size:21px;font-weight:600;letter-spacing:-.01em}
.home-step-text{font-size:15px;color:var(--gray-2);line-height:1.6}
.home-step-extra:empty{display:none}
.home-step-extra{display:grid;gap:8px;width:100%}
.home-step-small{font-size:13px;color:var(--gray-3)}
.home-badge-row{display:flex;flex-wrap:wrap;gap:6px}
.home-badge-count{font-weight:500;opacity:.85;font-variant-numeric:tabular-nums}
.home-zone-chip{background:var(--gray-6)}
.home-zone-n{color:var(--gray-3);font-weight:400}
.home-wired-chip{background:var(--gray-6);transition:background .2s,color .2s}
.home-wired-chip:hover{background:var(--accent-tint);color:var(--accent-dark)}
.home-idea-status{
  font-size:13px;color:var(--gray-2);line-height:1.45;
  display:flex;gap:8px;align-items:baseline;
}
/* 和「还没实测」同一个记号：虚线空心点 */
.home-idea-status::before{
  content:"";flex-shrink:0;width:8px;height:8px;border-radius:50%;
  border:1.5px dashed var(--gray-3);transform:translateY(1px);
}
.home-step-goal{margin-top:4px;color:var(--gray-1)}
.home-step-goal .cap-tag{margin-right:4px}
.home-step-link{margin-top:auto;padding-top:6px;font-size:14px}

/* ---------------------------------------------------------------- 怎么看标签 */
.home-legend{background:#fff}
.home-legend-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px}
.home-legend-card{background:var(--gray-6);box-shadow:none;padding:30px 30px 26px;display:flex;flex-direction:column}
.home-legend-head{font-size:13px;font-weight:600;color:var(--gray-3);letter-spacing:.04em;margin-bottom:18px}
.home-legend-list{display:grid;gap:18px;margin-bottom:22px}
.home-legend-row{display:grid;gap:6px}
.home-legend-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.home-legend-text{font-size:15px;color:var(--gray-1);line-height:1.55}
.home-legend-count{font-size:13px;color:var(--gray-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.home-legend-count.is-zero{color:var(--gray-3)}
.home-legend-foot{
  margin-top:auto;padding-top:16px;border-top:1px solid var(--gray-4);
  font-size:13px;color:var(--gray-2);line-height:1.55;
}
.home-legend-foot:empty{display:none}
/* 举个例子：一条实测过 + 一条设计目标，和详情页同一个样子 */
.home-legend-example{margin:-4px 0 22px;padding:16px 18px 18px;background:#fff;border-radius:var(--radius-inner)}
.home-legend-ex-head{font-size:13px;color:var(--gray-3);line-height:1.5;margin-bottom:10px}
.home-legend-ex-link{color:var(--gray-1);font-weight:600;border-bottom:1px solid var(--gray-4);transition:color .2s,border-color .2s}
.home-legend-ex-link:hover{color:var(--accent-dark);border-bottom-color:currentColor}
.home-legend-ex-list .cap{font-size:14px}
.home-legend-ex-list .cap-tag{margin-left:4px}
/* 「示意图」标签：和图上那块小字同一个样子 */
.home-illus-tag{
  display:inline-flex;align-items:center;font-size:11px;font-weight:600;letter-spacing:.02em;line-height:1.4;
  padding:1px 8px;border-radius:var(--radius-pill);background:#fff;color:var(--gray-2);
  box-shadow:inset 0 0 0 1px var(--gray-4);
}

/* ---------------------------------------------------------------- 全部组件 */
.home-modules{background:var(--gray-6)}
.home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.home-card{
  background:#fff;border-radius:var(--radius-card);box-shadow:var(--shadow-card);
  display:flex;flex-direction:column;min-width:0;
  transition:transform .35s ease,box-shadow .35s ease;
}
.home-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lift)}
.home-card-media{
  position:relative;margin:12px 12px 0;
  background:linear-gradient(180deg,#f7f7f9 0%,#ededf1 100%);
}
.home-card-media img{width:100%;height:100%;object-fit:contain;padding:6% 8% 4%;transition:transform .5s ease}
.home-card-media.is-photo img{padding:0;object-fit:cover}
.home-card:hover .home-card-media img{transform:scale(1.03)}
.home-media-empty{font-size:56px;line-height:1}
.home-illus-note{
  position:absolute;right:10px;bottom:10px;
  font-size:11px;font-weight:500;color:var(--gray-2);letter-spacing:.02em;line-height:1.4;
  padding:1px 8px;border-radius:var(--radius-pill);background:rgba(255,255,255,.78);
}
.home-card-body{flex:1;display:flex;flex-direction:column;gap:10px;padding:18px 24px 24px}
.home-card-roles{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}
.home-role{font-size:12px;padding:3px 10px;gap:5px}
.home-role-main{background:var(--accent-tint);color:var(--accent-dark)}
.home-role-sub{background:transparent;color:var(--gray-2);padding:3px 4px}
.home-role-icon{font-size:13px;line-height:1}
.home-card-title{font-size:20px;font-weight:600;letter-spacing:-.01em;line-height:1.3;margin-top:2px}
.home-card-text{font-size:15px;color:var(--gray-2);line-height:1.55}
/* 状态 + 实测条数：推到卡片底部，同一排卡片的这一行对齐 */
.home-card-status{margin-top:auto;padding-top:6px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.home-caps{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--gray-2)}
.home-caps-text{font-variant-numeric:tabular-nums;white-space:nowrap}
.home-caps-bar{display:inline-flex;gap:3px}
/* 一格一条能力：绿 = 实测过，浅灰 = 还没实测（设计目标）。8px 的虚线框画出来像破格子，这里用实心浅灰；
   意思由旁边的「实测 5 / 共 7 项能力」说清楚，不只靠颜色。 */
.home-caps-bar i{width:10px;height:6px;border-radius:3px;background:var(--gray-5)}
.home-caps-bar i.is-on{background:var(--ok)}
.home-card-needs{font-size:13px;color:var(--warn)}
.home-card-foot{
  display:grid;gap:12px;margin-top:6px;padding-top:16px;border-top:1px solid var(--gray-5);
}
.home-card-foot .price{font-size:15px}
.home-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.home-card-btn{width:100%;padding:9px 12px}
.home-incart-check{font-weight:700}
.home-incart-qty{font-variant-numeric:tabular-nums}

/* 最后一张：去搭配器。它补满最后一排 —— 三列时按它是第几张跨 1 / 2 / 3 列，两列时跨 1 / 2 列，
   一列时本来就是整行（组件多一件少一件都对得上，不用改这里）。
   里面怎么排看卡片自己的宽度（容器查询）：够宽 → 左边字、右边身体图；窄 → 图在上、字在下。 */
.home-card-cta{
  padding:28px;container-type:inline-size;overflow:hidden;
  background:linear-gradient(135deg,#fff3e6 0%,#ffe0cc 100%);box-shadow:none;
}
.home-card-cta:hover{transform:none;box-shadow:none}
@media (min-width:961px){
  .home-card-cta:nth-child(3n+1){grid-column:1/-1}
  .home-card-cta:nth-child(3n+2){grid-column:span 2}
}
@media (min-width:641px) and (max-width:960px){
  .home-card-cta:nth-child(2n+1){grid-column:1/-1}
}
.home-cta-inner{height:100%;display:flex;flex-direction:column;gap:18px}
.home-cta-body{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.home-card-cta .home-card-title{font-size:22px}
.home-card-cta .home-card-text{color:var(--gray-1)}
.home-cta-zones .home-zone-chip{background:rgba(255,255,255,.7)}
.home-cta-btn{margin-top:6px}
/* 身体示意图：白色剪影 + 身上那几个位置的橙点（点的外圈一圈圈往外淡，同首屏波纹的意思） */
.home-cta-fig{
  order:-1;flex:1 1 auto;position:relative;display:flex;align-items:center;justify-content:center;
  padding:8px 0 18px;
  background:radial-gradient(closest-side,rgba(255,255,255,.75),rgba(255,255,255,0));
}
.home-cta-body-svg{height:210px;width:auto;overflow:visible;filter:drop-shadow(0 12px 20px rgba(232,101,10,.16))}
/* 人形是 store.js 的 AC.bodyOutline()（和搭配器同一份）；这里只改颜色 */
.home-cta-body-svg .body-shape{fill:#fff}
.home-cta-body-svg .body-floor{fill:rgba(232,101,10,.16)}
.home-cta-spot-dot{fill:var(--accent);stroke:#fff;stroke-width:1.2}
.home-cta-spot-halo{
  fill:var(--accent);opacity:0;transform-box:fill-box;transform-origin:center;
  animation:home-spot 2.8s ease-out infinite;animation-delay:var(--delay,0s);
}
@keyframes home-spot{
  0%{opacity:.4;transform:scale(.45)}
  100%{opacity:0;transform:scale(1.5)}
}
.home-cta-fig-note{
  position:absolute;right:0;bottom:0;
  font-size:11px;font-weight:500;color:var(--gray-2);letter-spacing:.02em;line-height:1.4;
  padding:1px 8px;border-radius:var(--radius-pill);background:rgba(255,255,255,.78);
}
@container (min-width:520px){
  .home-cta-inner{flex-direction:row;align-items:stretch;gap:32px}
  .home-cta-body{flex:1 1 0;min-width:0;justify-content:center;padding:8px 0 8px 8px}
  .home-cta-fig{order:0;flex:0 0 38%;padding:12px 0 26px}
  .home-cta-body-svg{height:min(100%,420px);max-height:420px}
  .home-card-cta .home-card-title{font-size:28px;letter-spacing:-.02em}
  .home-card-cta .home-card-text{font-size:16px;max-width:400px}
}
.home-card-empty{padding:28px;grid-column:1/-1}
.home-noscript{margin-top:20px}

/* ---------------------------------------------------------------- 推荐搭配 */
.home-sets{background:#fff}
.home-set-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.home-set{
  background:var(--gray-6);box-shadow:none;padding:30px;
  display:flex;flex-direction:column;gap:12px;min-width:0;
}
.home-set-title{font-size:21px;font-weight:600;letter-spacing:-.01em}
.home-set-desc{font-size:15px;color:var(--gray-2);line-height:1.6}
.home-set-members{display:grid;gap:8px;margin-top:4px}
.home-set-member{
  display:grid;grid-template-columns:60px minmax(0,1fr) auto;grid-template-areas:"thumb who badge";
  align-items:center;gap:4px 14px;background:#fff;border-radius:var(--radius-inner);padding:8px 14px 8px 8px;
}
.home-set-thumb{
  grid-area:thumb;width:60px;aspect-ratio:4/3;border-radius:10px;background:var(--gray-6);
  display:flex;align-items:center;justify-content:center;font-size:24px;overflow:hidden;
}
.home-set-thumb img{width:100%;height:100%;object-fit:contain;padding:4%}
.home-set-who{grid-area:who;display:grid;min-width:0}
.home-set-name{font-size:15px;font-weight:600;line-height:1.35;transition:color .2s}
.home-set-name:hover{color:var(--accent-dark)}
.home-set-slot{font-size:13px;color:var(--gray-3);line-height:1.4}
.home-set-member > .status{grid-area:badge;justify-self:end}
.home-set-foot{margin-top:auto;padding-top:10px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.home-set-illus{font-size:12px;color:var(--gray-3)}

/* ---------------------------------------------------------------- 问题（FAQ 折叠）
   展开 / 收起用 grid-template-rows 0fr ↔ 1fr 做动画（不用 max-height，长答案不会被截）；
   收起时 visibility:hidden，读屏和 Tab 都跳过里面的链接。is-ready 之前不开过渡，加载时不播收起动画。 */
.home-faq{background:var(--gray-6)}
.home-faq-list{
  max-width:820px;background:#fff;border-radius:var(--radius-card);
  padding:6px 30px;box-shadow:var(--shadow-card);
}
.home-faq-item + .home-faq-item{border-top:1px solid var(--gray-5)}
.home-faq-h{font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit}
.home-faq-q{
  width:100%;text-align:left;padding:20px 0;gap:16px;
  display:flex;align-items:center;justify-content:space-between;
  font-weight:500;font-size:17px;letter-spacing:-.01em;line-height:1.4;
}
.home-faq-q:hover{color:var(--accent-dark)}
.home-faq-icon{
  position:relative;width:28px;height:28px;border-radius:50%;flex-shrink:0;
  background:var(--gray-6);color:var(--gray-2);transition:transform .25s,background .25s,color .25s;
}
.home-faq-icon::before,.home-faq-icon::after{
  content:"";position:absolute;left:50%;top:50%;width:11px;height:1.5px;border-radius:1px;
  background:currentColor;transform:translate(-50%,-50%);
}
.home-faq-icon::after{transform:translate(-50%,-50%) rotate(90deg)}
.home-faq-item.is-open .home-faq-icon{background:var(--accent);color:#fff;transform:rotate(45deg)}
.home-faq-a{display:grid;grid-template-rows:1fr}
.home-faq-item:not(.is-open) .home-faq-a{grid-template-rows:0fr;visibility:hidden}
.home-faq-list.is-ready .home-faq-a{transition:grid-template-rows .35s ease,visibility .35s}
.home-faq-a-inner{overflow:hidden;min-height:0}
.home-faq-a-inner p{padding:0 44px 22px 0;color:var(--gray-2);font-size:15px;line-height:1.7}
.home-faq-a-inner b{color:var(--gray-1);font-weight:600}

/* ---------------------------------------------------------------- 收尾 */
.home-end{padding:96px 0 64px;text-align:center;background:linear-gradient(180deg,#fff 0%,var(--page-bg) 100%)}
.home-end-title{
  font-size:clamp(32px,4.5vw,52px);font-weight:700;letter-spacing:-.02em;line-height:1.12;
  margin-bottom:16px;text-wrap:balance;
}
.home-end-text{font-size:19px;color:var(--gray-2);max-width:520px;margin:0 auto 32px;line-height:1.5;letter-spacing:-.01em}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width:960px){
  .home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:834px){
  .home-step-list{grid-template-columns:1fr}
  .home-step{padding-top:84px}
  .home-legend-grid{grid-template-columns:1fr}
  .home-set-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .home-hero{padding:44px 0 48px}
  .home-eyebrow{font-size:15px}
  .home-title{font-size:min(38px,8.6vw)}
  .home-tagline{font-size:17px;margin-bottom:28px}
  .home-ctas{gap:10px}
  .home-ctas .btn-primary,.home-ctas .btn-secondary{min-width:0;flex:1 1 0;padding:13px 14px}
  .home-hero-note{font-size:13px;margin-bottom:36px}
  .home-orbit{--rx:36%;--ry:36%;--tile:21%;--center:25%;aspect-ratio:1;border-radius:22px}
  .home-orbit-label{font-size:12px}

  .home-step{padding:72px 22px 24px}
  .home-step-num{font-size:46px;top:20px;left:22px}
  .home-step-tag{top:26px;right:18px}
  .home-legend-card{padding:24px 22px 20px}

  .home-grid{grid-template-columns:1fr;gap:16px}
  .home-card-media{aspect-ratio:16/10}
  .home-card-body{padding:16px 20px 22px}
  .home-card-cta{padding:24px 22px}

  .home-set{padding:22px}
  .home-set-member{grid-template-columns:52px minmax(0,1fr);grid-template-areas:"thumb who" "thumb badge";padding:8px 12px 8px 8px}
  .home-set-thumb{width:52px}
  .home-set-member > .status{justify-self:start}

  .home-faq-list{padding:2px 20px}
  .home-faq-q{font-size:16px;padding:18px 0}
  .home-faq-a-inner p{padding-right:0}

  .home-end{padding:64px 0 48px}
  .home-end-text{font-size:17px}
}

@media (prefers-reduced-motion:reduce){
  .home-ring{animation:none;opacity:.28}
  .home-ring1{transform:translate(-50%,-50%) scale(1.6)}
  .home-ring2{transform:translate(-50%,-50%) scale(2.3)}
  .home-ring3{transform:translate(-50%,-50%) scale(3)}
  .home-orbit-tile{animation:none}
  .home-cta-spot-halo{opacity:.2;transform:none}
}
