/* =========================================================
   番茄酱官网 · 设计令牌
   改颜色 / 圆角 / 字体，优先只动 :root
   ========================================================= */
:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #6b7280;
  --muted-2: #9aa1ad;
  --line: #ececef;
  --line-strong: #dcdee3;
  --accent: #ff4d4d;
  --accent-soft: rgba(255, 77, 77, 0.12);
  --ok: #16a34a;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 10, 10, 0.08), 0 2px 6px rgba(10, 10, 10, 0.04);
  --shadow-btn: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 26px rgba(255, 77, 77, 0.28);
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 36px);
  --nav-h: 64px;
  --radius-btn: 10px;
  --radius-card: 14px;
  --hero-shot-w: 254px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC",
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 16% 0%, rgba(245, 98, 110, 0.08), transparent 70%),
    radial-gradient(50% 40% at 92% 10%, rgba(255, 168, 90, 0.06), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--ink);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--font-mono);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   顶栏
   ========================================================= */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.top.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.04);
}

.top-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img,
.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(245, 98, 110, 0.28);
}

.top-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

/* =========================================================
   按钮
   ========================================================= */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s, border-color 0.2s, color 0.2s;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #f03d3d;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-meta {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.btn.is-hidden {
  display: none;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h));
  padding: 48px 0 32px;
}

.hero-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.hero-heading .display {
  min-width: 0;
  flex: 1 1 auto;
  padding-bottom: 8px;
}

.hero-shot {
  flex: 0 0 var(--hero-shot-w);
  width: var(--hero-shot-w);
  margin: 0 0 -1px;
}

.hero-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-meta .bar {
  width: 28px;
  height: 1px;
  background: var(--ink);
}

.display {
  font-size: clamp(48px, 9vw, 92px);
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.display .row-1 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.display .dot {
  width: 0.22em;
  height: 0.22em;
  margin-top: 0.18em;
  border-radius: 50%;
  background: var(--accent);
}

.display .row-2 {
  display: block;
  color: #b8bcc4;
}

.lead {
  max-width: 38rem;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.scroll-hint {
  display: none;
  margin-top: 48px;
  color: var(--muted-2);
  font-size: 13px;
}

.specs {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 24px;
}

.spec {
  min-width: 0;
}

.spec-k {
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spec-v {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 550;
}

/* =========================================================
   Capabilities
   ========================================================= */
.block {
  position: relative;
  z-index: 1;
  padding: 96px 0 40px;
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.section-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  max-width: 16em;
  margin-bottom: 40px;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.section-title em {
  font-style: normal;
  color: var(--accent);
}

.ds {
  border-top: 1px solid var(--line);
}

.ds-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.ds-label {
  padding-top: 6px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ds-body h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.ds-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ds-values span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
}

.ds-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  color: var(--ok);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

/* =========================================================
   Closing
   ========================================================= */
.closing {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  text-align: left;
}

.closing .display {
  max-width: 12em;
}

.closing p {
  max-width: 28rem;
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
}

.closing .hero-cta {
  margin-top: 32px;
}

/* =========================================================
   内页
   ========================================================= */
.page {
  position: relative;
  z-index: 1;
  padding: 48px 0 96px;
}

.page h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.04em;
}

.page-lead {
  margin-bottom: 36px;
  color: var(--muted);
}

.version-list {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.version-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
}

.version-card h2 {
  font-size: 16px;
}

.version-card .btn {
  flex-shrink: 0;
}

.legal {
  max-width: 42rem;
  color: var(--ink-2);
}

.legal h2 {
  margin: 32px 0 10px;
  font-size: 18px;
}

.legal p,
.legal li {
  margin-bottom: 8px;
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2em;
}

/* =========================================================
   Footer
   ========================================================= */
.foot {
  position: relative;
  z-index: 1;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.foot-links {
  display: flex;
  gap: 16px;
}

.foot-links a:hover {
  color: var(--ink);
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 860px) {
  .hero {
    min-height: 0;
    padding: 32px 0 16px;
  }

  .hero-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-heading .display {
    padding-bottom: 0;
  }

  .hero-shot {
    align-self: center;
    flex: 0 0 auto;
  }
}

@media (max-width: 800px) {
  .specs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ds-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .learn-more {
    display: none;
  }

  .scroll-hint {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .version-card,
  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .display {
    font-size: 48px;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }
}
