/* ==============================================================
   D5tour · 官网主页样式
   主色沿用漫游查看器 #00E2FF
   纯静态 · 零外部请求（不引 CDN / 字体 / 图标库）
   ============================================================== */

:root {
  --brand: #00E2FF;
  --brand-ink: #04202a;
  --brand-dim: rgba(0, 226, 255, 0.14);
  --brand-line: rgba(0, 226, 255, 0.28);

  --bg: #0a0d12;
  --bg-alt: #0e1319;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #e8edf2;
  --text-dim: #97a3b0;
  --text-mute: #66717d;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --pad: 24px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Microsoft YaHei", "Noto Sans CJK SC", "Hiragino Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

/* ⚠️ 必须 !important。坑（本项目已踩 5 次，其中 4 次是补一个组件漏一个组件）：
   `.grid{display:grid}` / `.d5-btn{display:inline-flex}` 这类【作者样式里的 display】
   会盖掉浏览器默认的 [hidden]{display:none}（作者样式 > UA 样式），
   于是 el.hidden = true 写着"隐藏"，画面上照样显示。
   2026-10-01 用无头浏览器在本页实测：10 个带 hidden 属性的元素里
   `div#caseGrid.grid.grid--cases` 被 `.grid{display:grid}` 击穿（display=grid，应为 none）。
   当时高度 0 所以肉眼看不出来，但往网格里放内容 / 加 min-height 就会显形 —— 定时炸弹。
   本页只引 styles.css，不引 assets/css/d5ui.css（那边有同款兜底），所以这里必须自带一份。 */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* 首屏防白闪：即使 CSS/JS 延迟也保持深色底 */
  background: var(--bg);
  /* 固定导航的高度补偿，锚点跳转不被挡住 */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: #cfe9f2;
  word-break: break-all;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ================= 导航 ================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}
.nav--scrolled {
  background: rgba(10, 13, 18, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav__logo { width: 26px; height: 26px; color: var(--brand); display: inline-flex; flex-shrink: 0; }
.nav__logo svg { width: 100%; height: 100%; }
.nav__name { font-size: 15px; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav__menu a { transition: color 0.2s; white-space: nowrap; }
.nav__menu a:hover { color: var(--brand); }

.nav__account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-ink);
  background: var(--brand);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.nav__account:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,226,255,.28); }

.nav__cta {
  padding: 8px 16px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  color: var(--brand) !important;
  background: var(--brand-dim);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav__cta:hover { background: var(--brand); color: var(--brand-ink) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ================= Hero ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px var(--pad) 90px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 78%);
}

.hero__glow {
  position: absolute;
  top: 12%; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw);
  height: 620px;
  background: radial-gradient(circle, rgba(0,226,255,0.16) 0%, rgba(0,226,255,0.05) 42%, transparent 70%);
  filter: blur(30px);
}

.hero__inner { position: relative; max-width: var(--maxw); margin: 0 auto; width: 100%; }

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 14px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(30px, 5.4vw, 60px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.hero__title em { font-style: normal; color: var(--brand); }

.hero__desc {
  margin: 0 0 40px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.85;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.22s;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.btn--primary:hover {
  background: #4cecff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 226, 255, 0.28);
}
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand-line); font-weight: 600; }
.btn--outline:hover { background: var(--brand-dim); color: var(--brand); transform: translateY(-2px); }
.btn--lg { padding: 15px 34px; font-size: 15.5px; }

/* 行内输入 + 按钮（找回密码的「发送验证码」） */
.d5-inline { display: flex; gap: 10px; align-items: stretch; }
.d5-inline .d5-input { flex: 1 1 auto; min-width: 0; }
.d5-inline .d5-btn { flex: 0 0 auto; white-space: nowrap; }

/* 卡片底部文字链接（忘记密码 / 返回登录） */
.d5-formfoot { margin: 14px 0 0; text-align: right; font-size: 13px; }
.d5-link { color: var(--brand); text-decoration: none; border-bottom: 1px solid transparent; }
.d5-link:hover { border-bottom-color: currentColor; }

.hero__stats {
  display: flex;
  gap: 52px;
  margin: 66px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.hero__stats strong {
  font-size: 30px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}
.hero__stats .unit { font-size: 16px; margin-left: 2px; }
.hero__stats span { font-size: 13px; color: var(--text-mute); }

.hero__scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 34px;
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 12px;
}
.hero__scroll span {
  position: absolute;
  top: 7px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 7px;
  background: var(--brand);
  border-radius: 2px;
  animation: scrolldot 1.9s ease-in-out infinite;
}
@keyframes scrolldot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  45%      { opacity: 1; transform: translate(-50%, 10px); }
  70%      { opacity: 0; transform: translate(-50%, 13px); }
}

/* ================= 通用 Section ================= */
.section { max-width: var(--maxw); margin: 0 auto; padding: 110px var(--pad); }

.section--alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* 交替底色的区块内容仍需保持容器宽度 */
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section--alt > .grid { max-width: var(--maxw); }

.section__head { margin-bottom: 56px; max-width: 680px; }

.section__eyebrow {
  margin: 0 0 16px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-weight: 600;
}

.section__title {
  margin: 0 0 16px;
  font-size: clamp(25px, 3.4vw, 40px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section__desc { margin: 0; font-size: 16px; color: var(--text-dim); line-height: 1.85; }
.section__desc strong { color: var(--text); font-weight: 600; }

/* ================= ① 产品特点 ================= */
.feat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat-card {
  position: relative;
  padding: 30px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-line);
  background: var(--panel-hover);
}

.feat-card--hero {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(0,226,255,0.10) 0%, rgba(0,226,255,0.02) 60%, transparent 100%);
  border-color: var(--brand-line);
}

.feat-card__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
  opacity: 0.75;
  margin-bottom: 14px;
}

.feat-card h3 { margin: 0 0 12px; font-size: 19px; font-weight: 600; }
.feat-card p { margin: 0; font-size: 14.5px; color: var(--text-dim); line-height: 1.8; }
.feat-card p strong { color: var(--text); font-weight: 600; }

.feat-card__note {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
}

.feat-none {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-mute);
}
.feat-none li { display: flex; align-items: center; gap: 8px; }
.feat-none span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px; height: 17px;
  font-size: 10px;
  border-radius: 50%;
  color: var(--text-mute);
  border: 1px solid var(--line-strong);
}

/* ================= ② ③ 案例栅格 =================
   用户硬要求：桌面端每排 4 个，手机端每排 2 个
   ============================================== */
.grid { display: grid; }

.grid--cases {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ind-card {
  --accent: var(--brand);
  --accent-soft: var(--brand-dim);
  --accent-line: var(--brand-line);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.ind-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  background: var(--panel-hover);
}

.ind-card__cover {
  position: relative;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(130% 95% at 50% 0%, var(--accent-soft) 0%, transparent 62%),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255,255,255,.045) 34px 35px),
    repeating-linear-gradient(0deg,  transparent 0 34px, rgba(255,255,255,.045) 34px 35px),
    linear-gradient(165deg, #152029 0%, #0c1218 100%);
}
/* 真实封面图槽位：数据里给了 cover 就显示，样式已就位 */
.ind-card__cover img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ind-card:hover .ind-card__cover img { transform: scale(1.05); }

.ind-card__glyph {
  width: 62px; height: 62px;
  color: var(--accent);
  opacity: 0.85;
  transition: transform 0.35s, opacity 0.35s;
}
.ind-card:hover .ind-card__glyph { transform: scale(1.08) translateY(-2px); opacity: 1; }

.ind-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-ink);
  background: var(--accent);
  border-radius: 999px;
}

.ind-card__body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.ind-card__body h3 { margin: 0; font-size: 17px; font-weight: 600; }
.ind-card__body p { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.72; }

/* 客户案例卡的元信息行（客户名 · 上线月份）
   选择器刻意比 `.ind-card__body p` 多一级，避免用 !important */
.ind-card__body .ind-card__meta {
  font-size: 12.5px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

.ind-card__more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
}

/* ---- 卡片脚注：热度（左） + 进入漫游（右） ----
   ⚠️ 与上面 `.ind-card__more` 不同：那个是"单独一行、自己顶到底部"的老写法，
      现在 `.ind-card__more` 被放进 `.ind-card__foot` 里当右侧元素，
      所以这里要把它的 `margin-top:auto` 中和掉，否则会把同一行撑成两行。
      （`.ind-card__foot .ind-card__more` 比 `.ind-card__more` 多一级 → 优先级够，
       不需要 !important。） */
.ind-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.ind-card__foot .ind-card__more { margin-top: 0; padding-top: 0; }
.ind-card__views {
  font-size: 12.5px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ind-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 12px 0 0;
  list-style: none;
}
.ind-card__chips li {
  padding: 3px 9px;
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  white-space: nowrap;
}

/* ================= 客户案例：状态卡 ================= */
.state-card {
  grid-column: 1 / -1;
  padding: 46px 32px;
  text-align: center;
  background: var(--panel);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.state-card__icon {
  display: inline-flex;
  width: 40px; height: 40px;
  margin-bottom: 16px;
  color: var(--text-mute);
}
.state-card__icon svg { width: 100%; height: 100%; }
.state-card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.state-card p {
  margin: 0 auto 24px;
  max-width: 560px;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.85;
}

.cases-note {
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--text-mute);
  text-align: center;
}

/* 「显示更多」/「查看全部项目」按钮行（主页与 /projects/ 共用） */
.cases-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 0;
}
/* ⚠️ 按钮被 [hidden] 藏起来时必须真的消失 —— 全局 `[hidden]{display:none!important}`
   兜底能盖住这里，但按钮本身有 display，写这行是让意图显式可见。 */
.cases-actions .btn[hidden] { display: none !important; }

/* 「共 N 个项目」计数（列表页用，主页只在超过一屏时出现） */
.cases-count {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

/* ================= 客户评价（一屏 4 个 · 左右点击滚动） =================
   用户要求（2026-10-05）：
     (a) 每个客户配一个图像，下面是他的评价；
     (b) 一屏只放 4 个，其余靠左右按钮滚动看。
   ★ 单一真相源：`--per-view` 决定「一屏几个」。
     布局用它算 flex-basis，app.js 也读它来算「一次滚几张」——
     改列数只需改这一个变量，绝不会出现「CSS 改了列数、JS 还按老数量滚」的错位。
   ⚠️ 翻页按钮放在标题行右侧，**不覆盖在卡片上**：
     浮层按钮要么遮住卡片，要么得给视口加左右留白（那样卡片就变窄），
     一屏 4 个本来就紧，不能再被吃掉宽度。
   ============================================================== */
.tst__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
/* 行容器自己管下边距，避免与 .section__head 的 56px 叠加成 112px */
.tst__head .section__head { margin-bottom: 0; }

.tst__nav { display: flex; flex: 0 0 auto; gap: 10px; padding-bottom: 4px; }

.tst__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  padding: 0;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, opacity .25s;
}
.tst__btn svg { width: 20px; height: 20px; }
.tst__btn:hover:not(:disabled) {
  color: var(--brand-ink);
  background: var(--brand);
  border-color: var(--brand);
}
.tst__btn:disabled { opacity: .3; cursor: default; }
.tst__btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.tst__viewport {
  --per-view: 4;
  --tst-gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* 旧 Edge */
}
.tst__viewport::-webkit-scrollbar { display: none; }
/* 视口带 tabindex=0：键盘用户可直接用方向键滚。
   但「能聚焦却看不出焦点」等于没做，所以补一个可见焦点框。 */
.tst__viewport:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 6px;
  border-radius: var(--radius);
}

.tst__track {
  display: flex;
  align-items: stretch;
  gap: var(--tst-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tst-card {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--tst-gap)) / var(--per-view));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s, border-color .3s, background .3s;
}
.tst-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-line);
  background: var(--panel-hover);
}

.tst-card__head { display: flex; align-items: center; gap: 12px; }

.tst-card__avatar {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-dim);
  border: 1px solid var(--line-strong);
}
.tst-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
/* 头像缺失（avatar 留空 / 图 404）时的兜底：姓名首字 */
.tst-card__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
}

.tst-card__who { min-width: 0; }
.tst-card__name { font-size: 15px; font-weight: 600; }
.tst-card__role {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 评价正文：左侧一条青色细线代替引号 —— 不依赖任何字体或图标 */
.tst-card__quote {
  margin: 0;
  padding-left: 13px;
  border-left: 2px solid var(--brand-line);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-dim);
}

.tst-card__project {
  margin: auto 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: .02em;
}

/* 进度线：滚动条被隐藏了，用它告诉访客「右边还有」 */
.tst__progress {
  margin-top: 22px;
  height: 2px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.tst__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width .28s ease;
}

/* ================= ④ 操作说明 ================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 28px 24px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--brand-line);
  background: var(--panel-hover);
}
/* 步骤之间的连接线（桌面端） */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 42px; right: -20px;
  width: 20px; height: 1px;
  background: var(--line-strong);
}

.step__num {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
  opacity: 0.8;
}
.step h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.step p { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.78; }

.levels {
  margin-top: 44px;
  padding: 30px 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.levels__title { margin: 0 0 20px; font-size: 16px; font-weight: 600; }
.levels__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.levels__list li {
  display: grid;
  grid-template-columns: 46px 100px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.levels__list li:last-child { border-bottom: none; }
.levels__list b { color: var(--brand); font-weight: 600; letter-spacing: 0.04em; }
.levels__list span { color: var(--text); font-weight: 500; }
.levels__list em { font-style: normal; color: var(--text-dim); font-size: 13.5px; line-height: 1.7; }

/* ================= ④ 常见问题（手风琴） ================= */
.faq { display: grid; gap: 12px; }

.faq__item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.faq__item:hover { border-color: var(--line-strong); }
.faq__item.is-open { border-color: var(--brand-line); background: var(--panel-hover); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  transition: color 0.2s;
}
.faq__q:hover { color: var(--brand); }
.faq__q::after {
  content: '+';
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--brand);
  transition: transform 0.25s;
}
.faq__q[aria-expanded="true"] { color: var(--brand); }
.faq__q[aria-expanded="true"]::after { content: '−'; }

.faq__a-inner {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.85;
  max-width: 900px;
}
.faq__a-inner strong { color: var(--text); font-weight: 600; }

/* ================= CTA ================= */
.cta {
  padding: 110px var(--pad);
  text-align: center;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(0,226,255,0.10) 0%, transparent 70%);
}
.cta__inner { max-width: 620px; margin: 0 auto; }
.cta h2 { margin: 0 0 16px; font-size: clamp(24px, 3.2vw, 36px); font-weight: 700; line-height: 1.3; }
.cta p { margin: 0 0 34px; font-size: 16px; color: var(--text-dim); }

/* ================= Footer ================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--pad) 28px;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.footer__brand .nav__logo { width: 22px; height: 22px; }
.footer__slogan { margin: 12px 0 0; font-size: 13px; color: var(--text-mute); max-width: 340px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13.5px; color: var(--text-dim); }
.footer__links a:hover { color: var(--brand); }
.footer__copy {
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-mute);
}

/* ==============================================================
   滚动入场动画
   ⚠️ 只有 JS 就绪时才隐藏元素（<html class="js">），
      保证 JS 失效 / 禁用时内容依然可见
   ============================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==============================================================
   响应式
   ============================================================== */

/* ---------- 平板：案例栅格 → 2 列 ---------- */
@media (max-width: 1023px) {
  .grid--cases { grid-template-columns: repeat(2, 1fr); }

  .feat { grid-template-columns: repeat(2, 1fr); }
  .feat-card--hero { grid-column: span 2; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  /* 2 列布局下连接线会指到隔壁卡片，去掉 */
  .step:not(:last-child)::after { display: none; }

  /* 客户评价：一屏 4 个在这个宽度开始挤，降到 3 个 */
  .tst__viewport { --per-view: 3; }
}

/* ---------- 移动端导航 ---------- */
@media (max-width: 900px) {
  .nav__menu {
    position: fixed;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 13, 18, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 6px var(--pad) 18px;
    font-size: 15px;
    transform: translateY(-115%);
    transition: transform 0.32s cubic-bezier(0.3, 0.8, 0.3, 1);
    visibility: hidden;
  }
  .nav__menu--open { transform: translateY(0); visibility: visible; }

  .nav__menu a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav__cta {
    margin-top: 14px;
    padding: 13px 16px;
    text-align: center;
    border-bottom: none !important;
  }

  .nav__toggle { display: flex; }
  .nav__toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle--open span:nth-child(2) { opacity: 0; }
  .nav__toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 客户评价：降到一屏 2 个 */
  .tst__viewport { --per-view: 2; --tst-gap: 14px; }
}

/* ---------- 手机 ---------- */
@media (max-width: 640px) {
  :root { --pad: 18px; }
  html { scroll-padding-top: 72px; }

  .nav__inner { padding: 12px var(--pad); }
  .nav__menu { top: 54px; }

  .hero { min-height: auto; padding: 100px var(--pad) 72px; }
  /* 四项数据在窄屏挤成一行会把「渲染流程改动」截断 → 改 2×2 */
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    margin-top: 44px;
  }
  .hero__stats strong { font-size: 24px; }
  .hero__stats .unit { font-size: 13px; }
  .hero__stats span { font-size: 12.5px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__scroll { display: none; }

  .section { padding: 72px var(--pad); }
  .section__head { margin-bottom: 38px; }

  /* 用户硬要求：手机端案例保持 2 列 */
  .grid--cases { gap: 12px; }
  .ind-card__body { padding: 14px 14px 16px; gap: 6px; }
  .ind-card__body h3 { font-size: 15px; }
  .ind-card__body p { font-size: 12.5px; line-height: 1.68; }
  .ind-card__glyph { width: 46px; height: 46px; }
  .ind-card__tag { top: 9px; left: 9px; padding: 3px 9px; font-size: 11px; }
  .ind-card__chips { padding-top: 10px; gap: 5px; }
  .ind-card__chips li { font-size: 10.5px; padding: 2px 7px; }

  .feat { grid-template-columns: 1fr; gap: 14px; }
  .feat-card--hero { grid-column: span 1; }
  .feat-card { padding: 24px 20px; }
  .feat-none { gap: 10px 22px; margin-top: 30px; font-size: 13px; }

  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step { padding: 24px 20px; }

  .levels { padding: 24px 20px; }
  .levels__list li { grid-template-columns: 40px 1fr; row-gap: 3px; }
  .levels__list em { grid-column: 2 / -1; }

  .faq__q { padding: 17px 18px; font-size: 14.5px; }
  .faq__a-inner { padding: 0 18px 18px; font-size: 13.5px; }

  .state-card { padding: 34px 20px; }

  .cta { padding: 76px var(--pad); }
  .footer { padding: 34px var(--pad) 24px; }
  .footer__inner { flex-direction: column; gap: 22px; }

  /* 客户评价：一屏 1 个；标题与按钮改上下排，按钮贴左与标题对齐 */
  .tst__viewport { --per-view: 1; }
  .tst__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
  }
  .tst__nav { padding-bottom: 0; }
  .tst-card { padding: 20px 18px; }
}

/* ==============================================================
   关于我们 / 联系我们（/about/）
   参考 panone.top/picture_contact/ 的结构：联系方式 + 社交媒体 + 在线留言。
   ⚠️ 沿用本页已有令牌，不硬编码颜色 —— 换主色时这里跟着走。
   ============================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
}

.about-prose p {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.9;
}
.about-prose p:last-child { margin-bottom: 0; }
.about-prose strong { color: var(--text); font-weight: 600; }

.about-facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.about-facts li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  color: var(--text-dim);
}
.about-facts li::before {
  content: '';
  width: 6px; height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-2px);
}
.about-facts b { color: var(--text); font-weight: 600; }

/* ---- 联系方式 ---- */
.about-card {
  padding: 28px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.about-card__title {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 600;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.contact-item { display: flex; gap: 13px; align-items: flex-start; }
.contact-item__ico {
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: var(--brand-dim);
  color: var(--brand);
}
.contact-item__ico svg { width: 19px; height: 19px; }
.contact-item__k {
  font-size: 12.5px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  margin: 0 0 2px;
}
.contact-item__v {
  font-size: 15px;
  color: var(--text);
  margin: 0;
  word-break: break-all;
}
.contact-item__v a { color: var(--brand); }
.contact-item__v a:hover { text-decoration: underline; }

.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.socials a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.socials a:hover {
  border-color: var(--brand-line);
  color: var(--brand);
  transform: translateY(-2px);
}

/* ---- 在线留言表单 ---- */
.form { display: grid; gap: 18px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__label { font-size: 13px; font-weight: 600; }
.form__label span { color: var(--text-mute); font-weight: 400; }

.form__input,
.form__textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--text-mute); }
.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}
.form__input[aria-invalid='true'],
.form__textarea[aria-invalid='true'] { border-color: #ff7b72; }

.form__textarea { min-height: 148px; resize: vertical; line-height: 1.75; }

.form__msg {
  margin: 0;
  min-height: 17px;
  font-size: 12.5px;
  color: #ff7b72;
}

.form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form__state { font-size: 13px; color: var(--text-dim); }
.form__state.is-ok { color: #3fb950; }
.form__state.is-err { color: #ff7b72; }

/* 留言成功后的收尾态：表单整体让位给一句确认 */
.form-done {
  padding: 30px 24px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  background: var(--brand-dim);
  text-align: center;
}
.form-done h3 { margin: 0 0 8px; font-size: 17px; }
.form-done p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* 蜜罐字段：真人看不见，机器人会填 —— 命中直接丢弃 */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ==============================================================
   无障碍：尊重「减弱动效」偏好
   ============================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
