/* ========== TomClaw · 简约现代风 ==========
   主色:  TomClaw Red #D9261C
   辅色:  Ink #0E0E10 · Muted #6B6B72
   背景:  Snow #FAFAF7 / Mist #F2F1ED
   强调:  细微红色 + 大量留白
========================================= */

:root {
  --red: #d9261c;
  --red-soft: #f3d6d3;
  --red-tint: #fdeceb;
  --ink: #0e0e10;
  --ink-2: #1a1a1d;
  --muted: #6b6b72;
  --line: #e7e5df;
  --snow: #fafaf7;
  --mist: #f2f1ed;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 14, 16, 0.04), 0 2px 8px rgba(14, 14, 16, 0.04);
  --shadow-md: 0 4px 16px rgba(14, 14, 16, 0.06), 0 12px 40px rgba(14, 14, 16, 0.06);
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--snow);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 28px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  width: 22px;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--red); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  font-weight: 600;
}
.hero-title {
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  padding: 30px 0;
  font-weight: 700;
}
.hero-title .accent { color: var(--red); }
.hero-sub {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 760px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.hero-stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-stats strong {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-stats span { font-size: 13px; color: var(--muted); }

.hero-glow {
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 480px;
  background: radial-gradient(closest-side, rgba(217, 38, 28, 0.10), transparent 70%);
  z-index: 0;
  filter: blur(20px);
  pointer-events: none;
}

/* ---------- 通用 section ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--mist); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.01em;
  margin: 8px 0 12px;
  font-weight: 700;
}
.section-head p { color: var(--muted); margin: 0; }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- 卡片（特性） ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red-tint);
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- 场景 ---------- */
.scene {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.scene h3 { margin: 0 0 14px; font-size: 20px; }
.scene ul { margin: 0; padding-left: 18px; color: var(--muted); }
.scene li { margin-bottom: 6px; }

/* ---------- 适用人群 ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .audience { grid-template-columns: 1fr; } }

.audience-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.audience-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.audience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--red-tint);
  border-radius: 50%;
  font-size: 24px;
  margin-bottom: 12px;
}
.audience-item h3 { margin: 0 0 6px; font-size: 17px; }
.audience-item p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- 常见问题 ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.open { border-color: var(--red-soft); box-shadow: var(--shadow-sm); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-q:hover { color: var(--red); }

.faq-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
}
.faq-q-text { flex: 1; }

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--muted);
  border-radius: 1px;
  transition: background .2s ease, transform .2s ease;
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-q:hover .faq-icon::before,
.faq-q:hover .faq-icon::after { background: var(--red); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); background: var(--red); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14.5px;
}
.faq-a .faq-tag {
  background: var(--ink);
  margin-top: 2px;
}

/* ---------- 步骤 ---------- */
.steps {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .08em;
}
.steps h3 { margin: 8px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

.install-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.install-hint { color: var(--muted); font-size: 13px; }

/* ---------- 关于 ---------- */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

.about h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.01em;
  margin: 8px 0 16px;
}
.about p { color: var(--muted); }

.about-card {
  background: var(--ink);
  color: #f4f4f5;
  border-radius: var(--radius);
  padding: 28px;
}
.about-card h3 { margin: 0 0 14px; color: #fff; }
.about-card ul { list-style: none; margin: 0; padding: 0; }
.about-card li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #d4d4d8;
  font-size: 14.5px;
}
.about-card li:first-child { border-top: 0; }
.about-card li span { color: var(--red); font-weight: 700; }

/* ---------- CTA ---------- */
.cta {
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}
.cta-inner { text-align: center; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 10px; }
.cta p { color: var(--muted); margin: 0 0 24px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--snow); padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand img { height: 32px; margin-bottom: 10px; }
.footer-brand p { color: var(--muted); max-width: 280px; margin: 0; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 600px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }

.footer-cols h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
  transition: color .15s ease;
}
.footer-cols a:hover { color: var(--red); }

/* 联系列：前缀文字与链接统一在同一行、字号一致 */
.footer-cols .contact-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--muted);
}
.footer-cols .contact-row a {
  display: inline;
  padding: 0;
  color: var(--muted);
}
.footer-cols .contact-row a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 16, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: modalFade .2s ease;
}
.modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: modalPop .25s ease;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.modal-close:hover { color: var(--ink); background: var(--mist); }
.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-tint);
  border-radius: 50%;
  font-size: 28px;
}
.modal-card h3 { margin: 0 0 10px; font-size: 20px; }
.modal-card p { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; }
.modal-card p strong { color: var(--ink); }

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 移动端导航 ---------- */
@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px;
    margin: 0;
    gap: 14px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 72px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* 入场动画（轻量） */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
