/* =========================================================
   奔跑小番茄 · 官网
   设计系统：深色 · 技术网格 · 番茄红强调
   ========================================================= */

:root {
  --bg: #07090e;
  --bg-soft: #0a0d14;
  --text: #f4f6f9;
  --text-2: #8c94a3;
  --text-3: #5c6473;
  --text-4: #3e4553;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #ff4a32;
  --accent-soft: rgba(255, 74, 50, 0.12);
  --teal: #3be0d0;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --maxw: 1280px;
  --pad: 80px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 全页技术网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 120px 120px;
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

.mono { font-family: var(--mono); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 76px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad);
  background: rgba(7, 9, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
  overflow: visible;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Logo 动效：速度线依次亮起，像在往前跑 */
.brand__mark .lg-sp {
  animation: lgSpeed 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.brand__mark .lg-sp2 { animation-delay: 0.18s; }
.brand__mark .lg-sp3 { animation-delay: 0.36s; }

@keyframes lgSpeed {
  0%   { opacity: 0.3; }
  38%  { opacity: 1; }
  72%  { opacity: 0.52; }
  100% { opacity: 0.3; }
}

.brand__mark .lg-ring {
  transform-origin: 20px 18px;
  transition: filter 0.4s ease;
}

/* 悬停：整枚标记前移，速度线加速，圆环透出红光 */
.brand:hover .brand__mark { transform: translateX(2.5px); }
.brand:hover .brand__mark .lg-sp { animation-duration: 1.05s; }
.brand:hover .brand__mark .lg-ring {
  filter: drop-shadow(0 0 4px rgba(255, 74, 50, 0.9));
}
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__cn { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.brand__en {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

.nav.is-scrolled {
  background: rgba(7, 9, 14, 0.94);
  border-bottom-color: var(--line);
}

.nav__right { display: flex; align-items: center; gap: 40px; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 2px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(255, 74, 50, 0);
}
.btn--primary:hover {
  background: #ff5f49;
  box-shadow: 0 8px 30px -8px rgba(255, 74, 50, 0.6);
}
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: #c3cad4;
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--text); }
.btn--sm { padding: 11px 20px; font-size: 13px; }
.btn svg { flex: none; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 76px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 左侧压暗，保证文案可读 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--bg) 0%,
    rgba(7, 9, 14, 0.94) 30%,
    rgba(7, 9, 14, 0.55) 48%,
    rgba(7, 9, 14, 0) 66%);
  pointer-events: none;
  z-index: 1;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 1000px;
  max-height: 1000px;
  background: radial-gradient(circle, rgba(255, 74, 50, 0.16), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 80px 56px;
}

.hero__content { width: min(660px, 52%); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
.eyebrow__bar { width: 2px; height: 12px; background: var(--accent); }
.eyebrow__text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-2);
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero__sub {
  font-size: clamp(16px, 1.7vw, 26px);
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 40px;
  letter-spacing: 0.01em;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #c3cad4;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* 标尺 */
.ruler {
  position: relative;
  z-index: 2;
  height: 26px;
  margin-bottom: 28px;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 64px);
  background-size: 100% 5px;
  background-repeat: repeat-x;
  background-position: 0 0;
  border-top: 1px solid var(--line);
  opacity: 0.9;
}
.ruler-wrap { position: relative; z-index: 2; padding-bottom: 10px; }
.ruler__label {
  position: absolute;
  right: 0;
  bottom: 28px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: #4a5260;
}

/* ---------- 通用板块 ---------- */
.section {
  position: relative;
  padding-block: 104px;
  z-index: 1;
}
.section::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}
.section--biz::before {
  top: -140px;
  right: -160px;
  background: radial-gradient(circle, rgba(255, 74, 50, 0.11), transparent 68%);
}
.section--process::before {
  bottom: -200px;
  left: -220px;
  background: radial-gradient(circle, rgba(59, 224, 208, 0.075), transparent 68%);
}
.section--deliver::before {
  top: -100px;
  right: -180px;
  background: radial-gradient(circle, rgba(255, 74, 50, 0.08), transparent 68%);
}
.section--contact::before {
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(255, 74, 50, 0.14), transparent 68%);
}

.section__num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 22px;
  display: block;
}

.section__head { max-width: 660px; margin-bottom: 52px; }
.section__head h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section__head p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 420px;
}

/* ---------- 01 Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}
.card--wide {
  grid-column: span 2;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card--tall {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card--sm { min-height: 158px; display: flex; flex-direction: column; gap: 10px; }

.card__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-4);
  margin-bottom: 8px;
  display: block;
}
.card__title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
}
.card--sm .card__title { font-size: 18px; margin-bottom: 0; }
.card__desc { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.card--sm .card__desc { font-size: 12px; }

.card__visual { margin-top: 28px; }
.card__visual svg { display: block; width: 100%; height: auto; }

/* ---------- 02 流程 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.step {
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
}
.step:first-child { border-top-color: var(--accent); }
.step__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 14px;
  display: block;
}
.step__title { font-size: 19px; font-weight: 500; margin-bottom: 12px; }
.step__desc { font-size: 13px; color: var(--text-2); line-height: 1.75; margin-bottom: 18px; }
.step__out {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  line-height: 1.7;
}

.terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 32px 36px;
  border: 1px solid rgba(255, 74, 50, 0.16);
  background: rgba(255, 74, 50, 0.045);
  border-radius: 2px;
}
.terms__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.terms__value { font-size: 14px; color: #c3cad4; line-height: 1.75; }

/* ---------- 03 交付 ---------- */
.deliver {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 40px;
}
.item {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(255, 74, 50, 0.85), rgba(255, 255, 255, 0.1) 32%, rgba(255, 255, 255, 0.1)) 1;
  padding-top: 20px;
  position: relative;
}
.item__icon { width: 44px; height: 44px; margin-bottom: 14px; }
.item__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-4);
  display: block;
  margin-bottom: 10px;
}
.item__title { font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.item__desc { font-size: 13px; color: var(--text-2); line-height: 1.75; }

.stack { margin-top: 56px; }
.stack__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-4);
  display: block;
  margin-bottom: 16px;
}
.stack__list { display: flex; flex-wrap: wrap; gap: 8px; }
.stack__item {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  letter-spacing: 0.04em;
  transition: border-color 0.25s, color 0.25s;
}
.stack__item:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--text); }
.stack__item--cn { font-family: var(--sans); font-size: 12px; }

.note-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 2px;
}
.note-bar__bar { width: 2px; height: 16px; background: var(--accent); flex: none; }
.note-bar p { font-size: 13px; color: var(--text-2); line-height: 1.75; }

/* ---------- 04 常见问题 ---------- */
.section--faq::before {
  bottom: -220px;
  right: -240px;
  background: radial-gradient(circle, rgba(59, 224, 208, 0.06), transparent 68%);
}

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

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

.faq__item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 24px 52px 24px 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  transition: color 0.25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { content: ""; }

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.faq__item[open] summary::after {
  transform: translateY(-20%) rotate(-135deg);
  border-color: var(--accent);
}
.faq__item summary:hover { color: #fff; }

.faq__item p {
  padding: 0 52px 26px 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-2);
  max-width: 760px;
}

/* ---------- 05 联系 ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 80px;
}
.contact__text h2 {
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.contact__text p { font-size: 14px; color: var(--text-2); line-height: 1.9; max-width: 420px; }
.qr { text-align: center; }
.qr__box {
  width: 240px;
  height: 240px;
  background: #fff;
  padding: 12px;
  border-radius: 2px;
  box-shadow: 0 0 80px -20px rgba(255, 74, 50, 0.45);
}
.qr__box img { width: 100%; height: 100%; object-fit: cover; }
.qr__label {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-3);
}

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding-top: 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding-block: 56px 60px;
  flex-wrap: wrap;
}
.footer__brand { max-width: 380px; }
.footer__tagline { font-size: 12px; color: var(--text-3); line-height: 1.9; margin-top: 18px; }
.footer__services {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-4);
  line-height: 1.9;
  margin-top: 12px;
  letter-spacing: 0.02em;
}
.footer__nav { display: flex; gap: 76px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #4a5260;
  margin-bottom: 2px;
}
.footer__col a { font-size: 12px; color: var(--text-2); transition: color 0.25s; }
.footer__col a:hover { color: var(--text); }

.footer__giant {
  font-size: clamp(64px, 15vw, 208px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.028);
  text-align: center;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.footer__bottom {
  border-top: 1px solid var(--line-soft);
  padding-block: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__bottom p, .footer__bottom a {
  font-size: 11px;
  color: var(--text-4);
}
.footer__bottom .icp {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-4);
  transition: color 0.25s;
}
.footer__bottom .icp:hover { color: var(--text-2); }

/* ---------- 滚动动效（默认可见，JS 只做增强） ---------- */
.reveal {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-hidden {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.is-hidden.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  :root { --pad: 48px; }
  .hero__content { width: 60%; }
}

@media (max-width: 900px) {
  :root { --pad: 28px; }
  .nav__links { display: none; }
  .hero { min-height: auto; }
  .hero__inner { min-height: auto; padding-block: 64px 48px; }
  .hero__content { width: 100%; }
  .hero__canvas { opacity: 0.55; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; min-height: 300px; }
  .card--tall { min-height: 300px; }
  .card--sm { min-height: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .terms { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .deliver { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .contact { grid-template-columns: 1fr; gap: 48px; text-align: left; }
  .qr { text-align: left; }
  .footer__nav { gap: 48px; }
  .section { padding-block: 72px; }
}

@media (max-width: 620px) {
  :root { --pad: 20px; }
  .hero h1 { font-size: 40px; }
  .hero__sub { font-size: 16px; }
  .bento, .steps, .deliver { grid-template-columns: 1fr; }
  .card--wide, .card--tall { grid-column: span 1; min-height: auto; }
  .chips { gap: 8px; }
  .footer__main { padding-block: 40px; }
  .footer__nav { gap: 36px; flex-wrap: wrap; }
  .terms { padding: 22px; }
  .note-bar { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .brand__mark .lg-sp { animation: none; opacity: 1; }
  .brand__mark { transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
