:root {
  --ink: #1f2429;
  --ink-soft: #4c5653;
  --ink-mute: #7d8783;
  --teal: #2f6b5e;
  --teal-deep: #245448;
  --teal-wash: #e7efeb;
  --green: #3d8b6c;
  --amber: #c08a2e;
  --red: #c0503c;
  --paper: #f4f1e9;
  --card: #fffdf8;
  --line: #e6e1d7;
  --shadow: 0 18px 44px rgba(31, 36, 41, 0.08);
  --radius: 18px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(47, 107, 94, 0.1), transparent 62%),
    radial-gradient(900px 480px at 92% 4%, rgba(192, 138, 46, 0.1), transparent 58%),
    var(--paper);
  color: var(--ink);
  font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure,
ol,
ul {
  margin: 0;
  padding: 0;
}

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

a {
  color: var(--teal-deep);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 12px 24px;
  background: rgba(244, 241, 233, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 225, 215, 0.7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(47, 107, 94, 0.22);
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.badge {
  padding: 2px 9px;
  border: 1px solid rgba(192, 138, 46, 0.45);
  border-radius: 999px;
  background: rgba(192, 138, 46, 0.1);
  color: #96681f;
  font-size: 12px;
  line-height: 1.6;
}

.nav-download {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--teal);
  color: #fdfbf5;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-download:hover {
  background: var(--teal-deep);
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 64px 0 56px;
}

.eyebrow {
  color: var(--teal);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.lead {
  max-width: 34em;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.85;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn.primary {
  background: var(--teal);
  color: #fdfbf5;
  box-shadow: 0 14px 28px rgba(47, 107, 94, 0.24);
}

.btn.primary:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
}

.btn.ghost:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.btn:focus-visible,
.nav-download:focus-visible,
.brand:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(47, 107, 94, 0.35);
  outline-offset: 3px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  list-style: none;
}

.facts li {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.facts small {
  display: block;
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 400;
}

.phones {
  position: relative;
  min-height: 600px;
}

.phone {
  position: absolute;
  width: 252px;
  padding: 7px;
  border-radius: 34px;
  background: #232a2e;
  box-shadow: 0 28px 60px rgba(31, 36, 41, 0.24);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 27px;
}

.phone-a {
  top: 8px;
  right: 150px;
  transform: rotate(-3.5deg);
  z-index: 2;
}

.phone-b {
  top: 92px;
  right: 0;
  transform: rotate(3deg);
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 8px 0 0;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
}

.strip strong {
  display: block;
  font-size: 15px;
}

.strip span {
  display: block;
  margin-top: 4px;
  color: var(--ink-mute);
  font-size: 13.5px;
  line-height: 1.7;
}

.section {
  padding: 72px 0 0;
}

.section-head {
  max-width: 720px;
}

.section-head h2,
.rules h2,
.final h2 {
  margin-top: 10px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.35;
}

.section-head > p:last-child {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card .num {
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.card h3 {
  margin-top: 8px;
  font-size: 17px;
}

.card p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
  margin-top: 30px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 20px 22px 20px 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal-wash);
  color: var(--teal-deep);
  font-size: 14px;
  font-weight: 600;
}

.steps strong {
  font-size: 15.5px;
}

.steps p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.callout {
  margin-top: 22px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.8);
}

.callout strong {
  display: block;
  font-size: 15.5px;
}

.callout p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.85;
}

.callout.warn {
  border-color: rgba(192, 138, 46, 0.4);
  background: #fbf5e9;
}

.callout.warn strong {
  color: #8a5d14;
}

.rules {
  padding: 32px 30px;
  border: 1px solid rgba(192, 138, 46, 0.34);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  background: #fffaf0;
}

.rules ul {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
}

.rules li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.85;
}

.rules li::before {
  content: '';
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.rules strong {
  color: var(--ink);
}

.faq {
  max-width: 820px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  padding: 18px 30px 18px 0;
  position: relative;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: 22px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: '–';
}

.faq p {
  padding: 0 30px 20px 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.9;
}

.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 72px 0 0;
  padding: 44px 28px;
  border-radius: 24px;
  background:
    radial-gradient(680px 300px at 50% -10%, rgba(47, 107, 94, 0.12), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
  text-align: center;
}

.final img {
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(47, 107, 94, 0.2);
}

.final p {
  max-width: 36em;
  color: var(--ink-soft);
  font-size: 15px;
}

.final .btn {
  margin-top: 6px;
  min-width: 220px;
}

.file-meta {
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.9;
}

.file-meta code {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 11.5px;
  word-break: break-all;
  color: var(--ink-soft);
}

footer {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 40px 24px 56px;
  color: var(--ink-mute);
  font-size: 13px;
  text-align: center;
}

footer p + p {
  margin-top: 4px;
}

.foot-small {
  margin-top: 12px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 44px 0 32px;
  }

  .phones {
    min-height: 0;
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
  }

  .phone {
    position: static;
    width: min(270px, 72vw);
    transform: none;
  }

  .phone-b {
    display: none;
  }

  .strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 22px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 56px;
  }

  .rules {
    padding: 26px 20px;
  }

  .final {
    margin-top: 56px;
    padding: 34px 20px;
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 10px 16px;
  }

  main {
    padding: 0 16px;
  }

  .nav-download {
    padding: 7px 13px;
    font-size: 13px;
  }

  .badge {
    display: none;
  }

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

  .lead {
    font-size: 15.5px;
  }

  .cta .btn {
    width: 100%;
  }

  .facts {
    gap: 12px 20px;
  }

  .callout,
  .rules {
    padding: 20px 18px;
  }

  .faq summary {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

/* ---------- 闭环：问卷 / 留言 / 分享 ---------- */

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--teal-deep);
}

.share-status {
  margin-top: 14px;
  color: var(--teal-deep);
  font-size: 13.5px;
  line-height: 1.7;
}

.share-status:empty {
  display: none;
}

.install-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: start;
  gap: 28px;
}

.phone-inline {
  position: static;
  width: min(260px, 100%);
  margin: 0 auto;
  transform: rotate(2.5deg);
}

.form-card {
  max-width: 860px;
  margin-top: 26px;
  padding: 28px 26px;
}

.form-loading {
  color: var(--ink-mute);
  font-size: 14px;
}

.survey-form,
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.survey-question {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.survey-question legend {
  padding: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.survey-question legend em {
  margin-left: 6px;
  color: var(--red);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.survey-optional {
  margin-left: 6px;
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 400;
}

.survey-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 9px;
  margin-top: 11px;
}

.survey-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.survey-option input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

.survey-option:hover {
  border-color: rgba(47, 107, 94, 0.4);
}

.survey-option:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-wash);
  color: var(--ink);
}

.survey-option input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.field > span {
  color: var(--ink);
  font-weight: 500;
}

.field em {
  margin-left: 6px;
  color: var(--red);
  font-size: 12px;
  font-style: normal;
}

.field select,
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.field textarea {
  min-height: 140px;
  line-height: 1.65;
  resize: vertical;
}

.field select:focus,
.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px var(--teal-wash);
}

.form-note {
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.75;
}

.form-status {
  color: var(--teal-deep);
  font-size: 13.5px;
  line-height: 1.7;
}

.form-error {
  padding: 11px 14px;
  border: 1px solid #e8c9c1;
  border-radius: 12px;
  background: #fbeeea;
  color: var(--red);
  font-size: 13.5px;
  line-height: 1.65;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.form-actions .btn {
  min-height: 46px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
}

.form-actions .btn.primary {
  border: 0;
  min-width: 160px;
}

.form-done {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-done strong {
  color: var(--ink);
  font-size: 18px;
}

.form-done p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.85;
}

@media (max-width: 900px) {
  .install-grid {
    grid-template-columns: 1fr;
  }

  .phone-inline {
    transform: none;
    display: none;
  }

  .survey-options {
    grid-template-columns: 1fr 1fr;
  }

  .form-card {
    padding: 22px 18px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .nav-link {
    display: none;
  }
}

@media (max-width: 339px) {
  .survey-options {
    grid-template-columns: 1fr;
  }
}

.page-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 14px;
  color: var(--ink-mute);
  font-size: 13px;
}

.page-stats[hidden] {
  display: none;
}

.page-stats strong {
  color: var(--teal-deep);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.page-stats .stats-dot {
  color: var(--line);
}

.final-stats {
  justify-content: center;
  margin: 18px 0 2px;
}
