@charset "UTF-8";

/* ============================================================
   枪神先知2.0 · 直装工具 / 深胡桃 + 卡片版式
   ============================================================ */

:root {
  --brand: #6B3B3B;
  --brand-2: #8A5252;
  --walnut: #2A1B1B;
  --walnut-2: #1E1414;
  --cream: #F6F1EC;
  --card: #FFFFFF;
  --ink: #241A1A;
  --ink-2: #3E2E2E;
  --muted: #7B6A66;
  --line: #E6DCD5;
  --line-dark: #CBB9AE;
  --ok: #3F7D5B;
  --shell: 1140px;
  --hdr: 72px;
  --r: 10px;
  --shadow: 0 14px 30px rgba(36, 26, 26, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

img { display: block; max-width: 100%; }

a, button { -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-decoration: none; }

button { color: inherit; font: inherit; }

button:focus-visible,
a:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

.page-shell {
  width: min(calc(100% - 52px), var(--shell));
  margin: 0 auto;
}

/* ---------- 图标 ---------- */
.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.icon::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: center / contain no-repeat;
}

.icon-download::before { background-image: url("../icons/download.svg"); }
.icon-menu::before { background-image: url("../icons/menu.svg"); }
.icon-close::before { background-image: url("../icons/close.svg"); }
.icon-arrow::before { background-image: url("../icons/arrow.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }
.icon-bolt::before { background-image: url("../icons/bolt.svg"); }
.icon-shield::before { background-image: url("../icons/shield.svg"); }
.icon-route::before { background-image: url("../icons/route.svg"); }
.icon-book::before { background-image: url("../icons/book.svg"); }

/* ---------- 头部：深胡桃 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--walnut);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 52px), var(--shell));
  min-height: var(--hdr);
  margin: 0 auto;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 10px;
  color: #F7EFE8;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
  background: #fff;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: clamp(18px, 2.6vw, 34px);
}

.primary-nav a {
  display: inline-block;
  padding: 5px 0;
  color: #D2C1B9;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible { color: #fff; }

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.nav-download {
  min-width: 130px;
  padding: 0 18px;
  background: #F1E4DA;
  color: var(--walnut);
}

.nav-download:hover { background: #fff; transform: translateY(-1px); }

.nav-download .icon,
.button-primary .icon { filter: invert(16%) sepia(12%) saturate(1200%) hue-rotate(318deg) brightness(94%) contrast(92%); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: transparent;
  color: #F1E4DA;
  cursor: pointer;
}

.menu-toggle .icon { width: 20px; height: 20px; filter: brightness(0) invert(1); }

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  padding: 64px 0 68px;
  overflow: hidden;
  color: #F6EEE7;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 16px),
    radial-gradient(circle at 82% 18%, #3E2A2A 0%, #2A1B1B 58%, #1E1414 100%);
  scroll-margin-top: calc(var(--hdr) + 14px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  align-items: center;
  gap: 52px;
}

.hero-copy { max-width: 520px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #C79C9C; }

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 15px 0 16px;
  color: #EFDCD0;
  font-size: clamp(23px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.34;
}

.hero-summary {
  max-width: 480px;
  margin: 0 0 28px;
  color: #BFA9A2;
  font-size: 15px;
  line-height: 1.85;
}

.button { min-width: 160px; padding: 0 24px; }

.button-primary {
  background: #F1E4DA;
  color: var(--walnut);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}

.button-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.34);
}

/* ---------- 英雄组件：直装卡片 ---------- */
.hero-install {
  border: 1px solid #4B3535;
  border-radius: 14px;
  background: #FBF5EF;
  color: var(--ink);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.hi-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #F3E9E0;
}

.hi-head img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 2px 6px rgba(36, 26, 26, 0.12);
}

.hi-name { min-width: 0; }

.hi-name b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hi-name small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.hi-tag {
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hi-progress { padding: 18px 18px 12px; }

.hi-bar {
  height: 8px;
  border-radius: 999px;
  background: #EADFD5;
  overflow: hidden;
}

.hi-bar i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
}

.hi-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
}

.hi-meta b {
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hi-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 18px 14px;
  margin: 0;
  list-style: none;
  gap: 8px;
}

.hi-steps li {
  padding: 8px 6px;
  border: 1px dashed var(--line-dark);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.hi-steps li.done {
  border-style: solid;
  border-color: #C9DCCF;
  color: var(--ok);
  background: #F2F8F4;
}

.hi-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.hi-btn {
  min-width: 112px;
  padding: 9px 20px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
}

.hi-note {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

/* ---------- 通用标题 ---------- */
.section-heading {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3.1vw, 38px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.22;
}

.section-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- 核心特色：四步卡片 ---------- */
.routes {
  padding: 74px 0 72px;
  background: var(--cream);
  scroll-margin-top: calc(var(--hdr) + 14px);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.four {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: var(--card);
}

.four::after {
  position: absolute;
  top: 34px;
  right: -12px;
  width: 6px;
  height: 2px;
  background: var(--line-dark);
  content: "";
}

.four:last-child::after { display: none; }

.four .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--walnut);
  color: #F1E4DA;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.four h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.four p {
  margin: 0;
  color: var(--muted);
  font-size: 13.4px;
  line-height: 1.85;
}

/* ---------- 界面展示：手机样张 ---------- */
.screens {
  padding: 74px 0 78px;
  background: #EFE6DF;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--hdr) + 14px);
}

.phone-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.phone-row figure {
  min-width: 0;
  margin: 0;
  padding: 8px 8px 0;
  border-radius: 22px;
  background: var(--walnut);
  box-shadow: 0 12px 24px rgba(36, 26, 26, 0.16);
}

.phone-row img {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 15px 15px 4px 4px;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}

.phone-row figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 6px 12px;
}

.phone-row figcaption b {
  color: #F4E9E0;
  font-size: 12.5px;
  font-weight: 700;
}

.phone-row figcaption small {
  color: #A98F84;
  font-size: 10.5px;
  white-space: nowrap;
}

/* ---------- FAQ：单列大行 ---------- */
.faq {
  padding: 78px 0 18px;
  background: var(--card);
  scroll-margin-top: calc(var(--hdr) + 14px);
}

.faq-list {
  border-top: 1px solid var(--line-dark);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px 4px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-align: left;
}

.faq-item summary .icon {
  width: 26px;
  height: 26px;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: transform 180ms ease, background-color 180ms ease;
  filter: invert(27%) sepia(16%) saturate(1200%) hue-rotate(320deg) brightness(92%) contrast(90%);
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
  background: #F3E9E0;
}

.faq-item[open] summary h3 { color: var(--brand); }

.faq-answer {
  padding: 0 46px 20px 4px;
}

.faq-answer p {
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--line-dark);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

/* ---------- 官方入口 ---------- */
.official {
  padding: 28px 0 78px;
  background: var(--card);
}

.official .section-heading { margin-bottom: 22px; }

.official-fold {
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: var(--cream);
  overflow: hidden;
}

.official-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px;
  color: var(--brand);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  list-style: none;
}

.official-fold summary::-webkit-details-marker { display: none; }

.official-fold summary::after {
  margin-left: auto;
  color: var(--brand);
  content: "+";
  font-size: 18px;
}

.official-fold[open] summary::after { content: "−"; }

.official-link {
  padding: 4px 20px 18px;
  border-top: 1px solid var(--line);
}

.official-link p { margin: 13px 0 0; color: var(--muted); font-size: 13.5px; }

.official-link a {
  color: var(--brand);
  font-weight: 800;
  word-break: break-all;
}

/* ---------- 用户评价：三列 ---------- */
.reviews {
  padding: 74px 0 80px;
  background: var(--cream);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--hdr) + 14px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  display: flex;
  min-height: 214px;
  flex-direction: column;
  padding: 18px 18px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: var(--card);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.review-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.review-card header .who b {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 800;
}

.review-card time {
  color: #A39289;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.review-card > p {
  margin: 11px 0 10px;
  color: #54443F;
  font-size: 13.2px;
  line-height: 1.88;
}

.rv-site {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  word-break: break-all;
}

/* ---------- 下载区：深底描边 ---------- */
.download-cta {
  padding: 60px 0 56px;
  color: #F6EEE7;
  background: var(--walnut);
  scroll-margin-top: calc(var(--hdr) + 14px);
}

.download-cta .page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 40px;
  row-gap: 18px;
  padding: 34px 38px;
  border: 1px solid #4B3535;
  border-radius: 14px;
  background: linear-gradient(120deg, #332121, #241717);
}

.download-cta .eyebrow { color: #C79C9C; }

.download-cta .section-heading {
  margin: 0;
  max-width: 560px;
}

.download-cta .section-heading h2 { color: #FFF7F0; font-size: clamp(24px, 2.6vw, 32px); }

.download-cta .section-heading > p:last-child { color: #B79F97; margin-top: 8px; }

.download-cta .button-primary {
  min-width: 200px;
  background: #F1E4DA;
  color: var(--walnut);
  box-shadow: none;
}

.download-cta .button-primary:hover { background: #fff; transform: translateY(-2px); }

.disclaimer {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #4B3535;
  color: #9C857D;
  font-size: 12px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 32px 0 18px;
  color: #B09A91;
  background: var(--walnut-2);
  text-align: center;
}

.site-footer p { margin: 0 0 8px; font-size: 12.5px; }

.site-footer a { color: #DCC7BB; }

.site-footer a:hover { color: #fff; }

.icp { padding-top: 6px; }

.icp a { font-size: 12px; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 150px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #4B3535;
  border-radius: 10px;
  background: var(--brand);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.to-top::before {
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(45deg) translate(1px, 1px);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top:hover { background: var(--brand-2); }

/* ---------- 平板 ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 410px); gap: 34px; }

  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .four:nth-child(2n)::after { display: none; }

  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }

  .hero-copy { max-width: 620px; }

  .hero-install { max-width: 480px; }

  .download-cta .page-shell {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .download-cta .button-primary { width: 100%; }
}

@media (max-width: 780px) and (min-width: 701px) {
  .nav-shell { gap: 14px; }

  .brand { gap: 8px; font-size: 16px; }

  .brand img { width: 30px; height: 30px; }

  .primary-nav ul { gap: 12px; }

  .primary-nav a { font-size: 12px; }

  .nav-download { min-width: auto; padding: 0 12px; font-size: 12px; }
}

/* ---------- 手机 ---------- */
@media (max-width: 700px) {
  :root { --hdr: 62px; }

  body { padding-top: var(--hdr); }

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    background: var(--walnut);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
  }

  .page-shell,
  .nav-shell { width: min(calc(100% - 32px), var(--shell)); }

  .nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: var(--hdr);
    min-height: var(--hdr);
    column-gap: 9px;
  }

  .brand {
    grid-row: 1;
    grid-column: 1;
    gap: 7px;
    font-size: 14.5px;
  }

  .brand img { width: 29px; height: 29px; border-radius: 8px; }

  .primary-nav {
    display: none;
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0 -16px;
    padding: 0 16px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--walnut);
  }

  .primary-nav.is-open { display: block; }

  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 12px;
  }

  .primary-nav a {
    display: block;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 12.5px;
    text-align: center;
  }

  .nav-download {
    grid-row: 1;
    grid-column: 3;
    min-width: auto;
    min-height: 33px;
    padding: 0 11px;
    font-size: 11.5px;
  }

  .nav-download .icon { width: 13px; height: 13px; }

  .menu-toggle {
    display: inline-flex;
    grid-row: 1;
    grid-column: 4;
    width: 33px;
    height: 33px;
  }

  .hero { padding: 40px 0 44px; }

  .hero h1 { font-size: 36px; }

  .hero-title { font-size: 22px; }

  .hero-summary { font-size: 13.5px; }

  .hi-head { padding: 13px 14px; }

  .hi-progress { padding: 15px 14px 10px; }

  .hi-steps { padding: 0 14px 12px; }

  .hi-actions { padding: 11px 14px 14px; }

  .hi-btn { min-width: 96px; padding: 8px 16px; }

  .routes,
  .screens,
  .reviews { padding: 50px 0; }

  .section-heading { margin-bottom: 24px; }

  .section-heading h2 { font-size: 25px; }

  .step-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .four::after { display: none; }

  .phone-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

  .phone-row figure { border-radius: 18px; padding: 7px 7px 0; }

  .phone-row img { border-radius: 12px 12px 4px 4px; }

  .faq { padding: 50px 0 16px; }

  .faq-item summary { min-height: 58px; }

  .faq-item summary h3 { font-size: 15.5px; }

  .faq-answer { padding: 0 30px 16px 0; }

  .official { padding: 22px 0 50px; }

  .card-grid { grid-template-columns: minmax(0, 1fr); }

  .review-card { min-height: auto; }

  .download-cta { padding: 44px 0 40px; }

  .download-cta .page-shell { padding: 22px 18px; row-gap: 14px; }

  .to-top { right: 16px; bottom: 138px; width: 38px; height: 38px; }
}

@media (max-width: 380px) {
  .brand span { font-size: 13px; }

  .nav-download span { display: none; }

  .nav-download { width: 33px; padding: 0; justify-content: center; }

  .hero h1 { font-size: 31px; }

  .primary-nav ul { grid-template-columns: 1fr; }

  .phone-row { grid-template-columns: 1fr; }
}
