/* ============================================================
   内页通用组件（platform.html / hardware.html 等）
   依赖 tokens.css + system.css
   ============================================================ */

/* 内页 Hero（紧凑版，深色圆角卡） */
.phero-shell { padding: 10px 10px 0; }
.phero {
  position: relative; overflow: hidden; border-radius: 38px;
  background: radial-gradient(120% 100% at 50% -20%, #3a1e7a 0%, #1d1830 48%, #131118 100%);
  padding: 118px 0 64px;
  isolation: isolate;
}
.phero--light {
  background: linear-gradient(168deg, #fbfaff 0%, #f4f1ff 46%, #eef4ff 100%);
  border: 1px solid var(--line);
}
.phero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(46% 40% at 50% 6%, rgba(178, 90, 255, 0.6) 0%, rgba(87, 36, 255, 0.28) 46%, transparent 76%),
    radial-gradient(34% 26% at 84% 22%, rgba(0, 170, 255, 0.22) 0%, transparent 70%);
}
.phero--light::before {
  background:
    radial-gradient(40% 40% at 18% 10%, rgba(255, 126, 160, 0.18) 0%, transparent 70%),
    radial-gradient(40% 40% at 82% 18%, rgba(116, 185, 255, 0.2) 0%, transparent 70%);
}
.phero .vbars { z-index: 1; opacity: 0.55; }
.phero__in { position: relative; z-index: 3; }
.phero__crumb { display: flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: rgba(255, 255, 255, 0.42); }
.phero__crumb a:hover { color: #fff; }
.phero__crumb i { font-style: normal; opacity: 0.4; }
.phero__eyebrow { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 15px 0 11px; margin-top: 22px;
  border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.07);
  font-size: var(--t-xs); color: rgba(255, 255, 255, 0.78); letter-spacing: 0.5px; }
.phero__eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px rgba(94, 234, 212, 0.9); }
.phero__title { margin-top: 24px; font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 54px); font-weight: 300; line-height: 1.26; letter-spacing: 0.4px; color: #fff; }
.phero__title em { font-style: normal; background: var(--g-text-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phero__sub { margin-top: 18px; max-width: 680px; font-size: 16.5px; line-height: 1.85; color: rgba(255, 255, 255, 0.62); }
.phero__cta { margin-top: 30px; }
.phero__stats { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.1); border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); }
.phero__stat { background: rgba(255, 255, 255, 0.03); padding: 22px 24px; }
.phero__stat b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 300; color: #fff; line-height: 1.1; letter-spacing: -0.5px; }
.phero__stat span { display: block; margin-top: 6px; font-size: var(--t-xs); color: rgba(255, 255, 255, 0.46); }

/* 浅色内页 hero */
.phero--light .phero__crumb { color: var(--ink-3); }
.phero--light .phero__crumb a:hover { color: var(--ink); }
.phero--light .phero__eyebrow { border-color: var(--line); background: rgba(255, 255, 255, 0.7); color: var(--ink-2); }
.phero--light .phero__eyebrow i { background: var(--violet); box-shadow: 0 0 10px rgba(87, 36, 255, 0.5); }
.phero--light .phero__title { color: var(--ink); }
.phero--light .phero__title em { background: var(--g-text-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phero--light .phero__sub { color: var(--ink-2); }
.phero--light .phero__stats { background: #fff; border-color: var(--line); }
.phero--light .phero__stat { background: #fff; }
.phero--light .phero__stat b { color: var(--ink); }
.phero--light .phero__stat span { color: var(--ink-3); }

/* 套餐三档 */
.plans { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff;
  padding: 30px 28px 28px; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.plan--hi { border-color: rgba(87, 36, 255, 0.26); background: linear-gradient(170deg, #f8f4ff 0%, #fff 58%); box-shadow: 0 16px 48px -22px rgba(87, 36, 255, 0.34); }
.plan__tag { align-self: flex-start; margin-bottom: 12px; }
.plan__name { font-family: var(--font-display); font-size: 25px; font-weight: 400; letter-spacing: -0.2px; }
.plan__desc { margin-top: 8px; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.7; min-height: 40px; }
.plan__price { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font-family: var(--font-display); font-size: 32px; font-weight: 300; letter-spacing: -0.5px; }
.plan__price small { font-size: var(--t-xs); color: var(--ink-3); }
.plan__list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan__list li { display: flex; gap: 9px; font-size: var(--t-xs); color: var(--ink-2); line-height: 1.7; }
.plan__list li i { flex: none; color: var(--violet); font-style: normal; font-size: 11px; margin-top: 3px; }
.plan .btn { margin-top: 24px; }

/* 模型清单表 */
.mtab { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.mtab__group { display: flex; align-items: center; gap: 12px; padding: 16px 22px; background: var(--paper-soft); border-bottom: 1px solid var(--line); }
.mtab__gname { font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.2px; }
.mtab__gcount { font-size: var(--t-2xs); color: var(--ink-2); padding: 2px 8px; border-radius: 6px; background: rgba(87, 36, 255, 0.08); color: #4b21c9; }
.mtab table { width: 100%; border-collapse: collapse; }
.mtab td, .mtab th { padding: 13px 22px; border-bottom: 1px solid var(--line); font-size: var(--t-sm); text-align: left; vertical-align: middle; }
.mtab th { font-size: var(--t-2xs); color: var(--ink-3); font-weight: 500; letter-spacing: 0.5px; }
.mtab tbody tr:last-child td { border-bottom: 0; }
.mtab tbody tr:hover { background: rgba(0, 0, 0, 0.015); }
.mtab__name { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.mtab__use { color: var(--ink-2); font-size: var(--t-xs); }
.mtab__badge { font-size: 10.5px; padding: 2px 7px; border-radius: 5px; background: var(--info-bg); color: #1440cc; }

/* 步骤条 */
.steps { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: st; }
.step { position: relative; padding-top: 30px; }
.step::before {
  content: ""; position: absolute; top: 4px; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--line) 70%, transparent);
}
.step::after {
  content: ""; position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--line-strong);
}
.step:first-child::after { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(87, 36, 255, 0.12); }
.step__no { font-family: var(--font-mono); font-size: var(--t-2xs); color: var(--ink-3); }
.step__t { margin-top: 8px; font-size: 15px; font-weight: 600; }
.step__d { margin-top: 8px; font-size: var(--t-xs); color: var(--ink-2); line-height: 1.75; }
.step__code { margin-top: 12px; }
.steps--5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* FAQ 折叠 */
.faq2 { margin-top: 40px; border-top: 1px solid var(--line); }
.faq2 details { border-bottom: 1px solid var(--line); }
.faq2 summary { list-style: none; cursor: pointer; padding: 20px 2px; display: flex; align-items: center; gap: 14px; font-size: 15.5px; color: var(--ink); }
.faq2 summary::-webkit-details-marker { display: none; }
.faq2 summary::after { content: "+"; margin-left: auto; color: var(--ink-3); font-size: 16px; transition: transform var(--dur) var(--ease); }
.faq2 details[open] summary::after { content: "−"; }
.faq2 .a { padding: 0 2px 22px; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.85; max-width: 860px; }

/* 底部 CTA 带 */
.ctaband { position: relative; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(140deg, #131118 0%, #0a0a0c 62%, #14101c 100%); color: var(--on-dark); padding: 60px 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border: 1px solid rgba(255, 255, 255, 0.08); }
.ctaband .glow { width: 460px; height: 460px; }
.ctaband .glow--violet { left: -120px; top: -200px; opacity: 0.65; }
.ctaband .glow--cyan { right: -100px; bottom: -220px; opacity: 0.4; }
.ctaband__t { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 34px); font-weight: 300; line-height: 1.36; color: #fff; }
.ctaband__d { margin-top: 12px; font-size: var(--t-sm); color: rgba(255, 255, 255, 0.56); }
.ctaband > div:not(.glow) { position: relative; z-index: 2; }

/* 两栏内容 + 右侧粘性说明 */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.two-col > * { min-width: 0; }
.hw-spec, .steps, .mtab, .plan, .faq2, .sticky-card { min-width: 0; }
.sticky-card { position: sticky; top: 100px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper-soft); padding: 26px 26px 24px; }
.sticky-card__t { font-size: 15px; font-weight: 600; }
.sticky-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.sticky-card li { font-size: var(--t-xs); color: var(--ink-2); line-height: 1.7; padding-left: 14px; position: relative; }
.sticky-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--violet); opacity: 0.6; }

/* 深色区里的表格微调 */
.section--dark .mtab, .section--dark .plan { background: #101014; border-color: rgba(255, 255, 255, 0.1); color: var(--on-dark); }

@media (max-width: 700px) {
  .mtab { overflow-x: auto; }
  .mtab table { min-width: 520px; }
  .mtab td, .mtab th { white-space: nowrap; }
  .steps--5 { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .phero { padding-top: 96px; border-radius: 26px; }
  .phero__stats { grid-template-columns: 1fr; }
  .ctaband { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .sticky-card { position: static; }
  .mtab table { font-size: 12px; }
  .mtab td, .mtab th { padding: 11px 14px; }
}
