/* ============================================================
   Tomaco 官网 — Apple 风浅色主题（LIGHT ONLY）· 番茄品牌色
   Palette: bg #fbfbfd / #f5f5f7 · text #1d1d1f / #6e6e73
            accent 番茄渐变 #FF6B4D → #DB2620
   ============================================================ */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --accent: #db2620;         /* 主番茄红（白底上 ≈4.9:1） */
  --accent-light: #ff6b4d;
  --accent-deep: #b81a15;    /* hover 加深 */
  --link: #db2620;
  --card: #ffffff;
  --hairline: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.1);
  --radius-card: 22px;
  /* 文字/徽章用渐变：偏深端，保证可读性 */
  --grad-accent: linear-gradient(120deg, #ff6b4d 0%, #db2620 62%);
  /* 按钮渐变：文字区域落在深端 */
  --grad-btn: linear-gradient(120deg, #ff6b4d -15%, #db2620 55%);
  --grad-btn-hover: linear-gradient(120deg, #f2552f -15%, #b81a15 55%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 22px;
  height: 52px; display: flex; align-items: center; gap: 26px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink) !important; text-decoration: none !important;
}
.brand svg { display: block; }
.brand img {
  display: block; width: 24px; height: 24px;
  border-radius: 22%;
}
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--ink); opacity: 0.75; transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }
.lang-switch {
  font-size: 13px; font-weight: 600;
  padding: 5px 14px; border-radius: 980px;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--ink) !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lang-switch:hover { border-color: var(--accent); text-decoration: none !important; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 30px; text-align: center; }
/* 极淡番茄暖色 blob（呼应宣传图视觉语言，不压文字） */
.hero::before,
.hero::after {
  content: ""; position: absolute; z-index: -1;
  border-radius: 50%; pointer-events: none;
}
.hero::before {
  width: 620px; height: 620px; left: -220px; top: -140px;
  background: radial-gradient(circle, rgba(255, 107, 77, 0.09) 0%, rgba(255, 107, 77, 0) 65%);
}
.hero::after {
  width: 720px; height: 720px; right: -260px; top: 280px;
  background: radial-gradient(circle, rgba(219, 38, 32, 0.06) 0%, rgba(219, 38, 32, 0) 65%);
}
.hero-eyebrow {
  display: inline-block; font-size: 15px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.06em; margin-bottom: 18px;
}
h1 {
  font-size: clamp(2.5rem, 8vw, 4.6rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.08;
  margin: 0 auto 20px; max-width: 18ch;
}
h1 .grad {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--ink-2); max-width: 40em; margin: 0 auto 26px;
}
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.badge {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: var(--bg-alt); border: 1px solid var(--hairline);
  padding: 7px 16px; border-radius: 980px;
}

/* ---------- Buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16.5px; font-weight: 700; line-height: 1;
  padding: 15px 30px; border-radius: 980px;
  text-decoration: none !important; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--grad-btn); color: #fff !important;
  box-shadow: 0 6px 20px rgba(219, 38, 32, 0.28);
}
.btn-primary:hover { background: var(--grad-btn-hover); box-shadow: 0 8px 26px rgba(219, 38, 32, 0.36); }
.btn-secondary {
  background: var(--card); color: var(--accent) !important;
  border: 1.5px solid var(--accent);
}
.btn-secondary:hover { background: rgba(219, 38, 32, 0.06); border-color: var(--accent-deep); color: var(--accent-deep) !important; }
.cta-note { font-size: 12.5px; color: var(--ink-2); margin-top: 16px; }

/* ---------- 设备 mockup（纯 CSS，浅色屏幕） ---------- */
.mockup-stage {
  position: relative;
  max-width: 640px; margin: 56px auto 0; padding: 0 10px;
}
.iphone {
  position: relative;
  aspect-ratio: 2.05 / 1;
  border-radius: clamp(28px, 6vw, 44px);
  background: #f2f2f4; /* 银色边框机身 */
  border: 1px solid #d8d8dc;
  box-shadow: var(--shadow-lift), inset 0 0 0 3px #fdfdfe;
  padding: clamp(8px, 1.6vw, 12px);
}
.iphone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: clamp(20px, 4.6vw, 34px);
  background: linear-gradient(155deg, #ffefe9 0%, #fffefd 55%, #fff5f0 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
/* 灵动岛（横屏时在左侧） */
.island {
  position: absolute; left: 3.2%; top: 50%;
  transform: translateY(-50%);
  width: 2.6%; height: 22%;
  background: #2c2c2e; border-radius: 980px; z-index: 3;
}
/* 屏内：macOS 菜单栏 */
.mini-menubar {
  position: absolute; top: 0; left: 0; right: 0; height: 9%;
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex; align-items: center; gap: 3.4%;
  padding: 0 6%;
}
.mini-menubar i {
  display: block; height: 26%; border-radius: 980px;
  background: rgba(29, 29, 31, 0.28);
}
.mini-menubar i:nth-child(1) { width: 3.4%; background: rgba(29, 29, 31, 0.5); }
.mini-menubar i:nth-child(2) { width: 9%; }
.mini-menubar i:nth-child(3) { width: 7%; }
.mini-menubar i:nth-child(4) { width: 8%; }
.mini-menubar i:last-child { margin-left: auto; width: 12%; background: rgba(255, 107, 77, 0.55); }
/* 屏内：macOS 窗口 */
.mini-window {
  position: absolute; left: 12%; top: 20%;
  width: 56%; height: 62%;
  background: #ffffff; border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 22px rgba(80, 30, 20, 0.1);
}
.mini-titlebar {
  height: 16%; display: flex; align-items: center; gap: 3.4%;
  padding: 0 5%; border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.dot { width: 5.4%; aspect-ratio: 1; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.mini-lines { padding: 6% 7%; display: flex; flex-direction: column; gap: 9%; height: 84%; }
.mini-lines i { display: block; height: 7%; min-height: 3px; border-radius: 980px; background: #e9e6e4; }
.mini-lines i:nth-child(1) { width: 52%; background: #ddd6d3; }
.mini-lines i:nth-child(2) { width: 86%; }
.mini-lines i:nth-child(3) { width: 74%; }
.mini-lines i:nth-child(4) { width: 90%; }
.mini-lines i:nth-child(5) { width: 40%; background: rgba(255, 107, 77, 0.5); }
/* 屏内：第二个小窗口 */
.mini-window.alt {
  left: 61%; top: 32%; width: 30%; height: 42%; z-index: 2;
  box-shadow: 0 10px 26px rgba(80, 30, 20, 0.14);
}
.mini-window.alt .mini-lines i:nth-child(1) { width: 66%; }
.mini-window.alt .mini-lines i:nth-child(5) { display: none; }
/* 番茄色光标 */
.mini-cursor {
  position: absolute; left: 58%; top: 52%; width: 5.5%; z-index: 4;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  animation: cursor-drift 5.5s ease-in-out infinite alternate;
}
@keyframes cursor-drift {
  0%   { transform: translate(0, 0); }
  45%  { transform: translate(46%, -110%); }
  100% { transform: translate(-70%, 60%); }
}
@media (prefers-reduced-motion: reduce) { .mini-cursor { animation: none; } }
/* 浮动小徽章 */
.float-pill {
  position: absolute; z-index: 5;
  font-size: clamp(11px, 1.9vw, 14px); font-weight: 700;
  background: #fff; color: var(--accent);
  border: 1px solid rgba(219, 38, 32, 0.25);
  border-radius: 980px; padding: 7px 14px;
  box-shadow: var(--shadow-soft);
}
.pill-a { right: -6px; top: -14px; }
.pill-b { left: -8px; bottom: 14%; }

/* ---------- 数据条 ---------- */
.stats { padding: 72px 0 8px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  text-align: center;
}
.stat b {
  display: block; font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.02em;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 13.5px; color: var(--ink-2); }
.protocol-line {
  margin-top: 30px; text-align: center;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.protocol-line b {
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 通用 section ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
h2 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700; letter-spacing: -0.022em; line-height: 1.12;
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-2); font-size: clamp(1rem, 2.2vw, 1.15rem); }

/* ---------- 功能卡片 ---------- */
/* 显式断点定列数：9 张卡在桌面恰好 3×3；平板 2 列时最后一张横跨整行，
   任何宽度下都不出现右下角缺口/孤卡 */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid .feature:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .feature:last-child { grid-column: auto; }
}
.feature {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lift);
  border-color: rgba(219, 38, 32, 0.3);
}
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 107, 77, 0.13); margin-bottom: 16px;
}
.feature h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature h3 .tag {
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--grad-btn); border-radius: 980px;
  padding: 2px 9px; margin-left: 6px; vertical-align: 2px;
}
.feature p { font-size: 14px; color: var(--ink-2); }

/* ---------- 安装步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-btn); color: #fff;
  font-size: 16px; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--ink-2); }
.requirements {
  margin-top: 34px; text-align: center;
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: 22px 26px;
  box-shadow: var(--shadow-soft);
  font-size: 14px; color: var(--ink-2);
}
.requirements b { color: var(--ink); font-weight: 600; }

/* ---------- 隐私横幅 ---------- */
.privacy { text-align: center; padding: 96px 0; }
.privacy .quote {
  font-size: clamp(1.5rem, 4.2vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.25;
  max-width: 22em; margin: 0 auto 16px;
}
.privacy .quote .grad {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.privacy p { color: var(--ink-2); max-width: 44em; margin: 0 auto; font-size: 15px; }

/* ---------- 底部 CTA ---------- */
.final-cta { text-align: center; padding: 92px 0; background: var(--bg-alt); }
.final-cta h2 { margin-bottom: 12px; }
.final-cta > .wrap > p { color: var(--ink-2); margin-bottom: 32px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 34px 0 44px; font-size: 12.5px; color: var(--ink-2);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: center; text-align: center; }
footer a { color: var(--ink-2); }
footer a:hover { color: var(--link); }
.footer-privacy { width: 100%; text-align: center; margin-top: 6px; opacity: 0.85; }

/* ---------- Toast（App Store 占位提示，浅色卡片） ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  background: #ffffff; color: var(--ink);
  font-size: 14px; font-weight: 600;
  padding: 12px 22px; border-radius: 980px;
  border: 1px solid rgba(219, 38, 32, 0.28);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100; max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .nav-links a.nav-anchor { display: none; }
  .hero { padding-top: 52px; }
  .hero::before { width: 420px; height: 420px; left: -180px; top: -100px; }
  .hero::after { width: 460px; height: 460px; right: -200px; top: 380px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .section { padding: 64px 0; }
  .btn { width: 100%; justify-content: center; }
  .cta-row { flex-direction: column; }
  .pill-a { right: 2px; }
  .pill-b { left: 2px; }
}
