/*
 * 官网的样式，中英两版共用这一份。
 *
 * 配色跟控制台同一套（AGENTS.md 原则 7）：#f4f7fc 底、白色面板、#2563eb 主色；蓝青紫渐变只用在
 * 标志和门店墙上那一格格新视频上。琥珀色只表示「停更、要管」。不加载任何外部字体或脚本：隐私政策
 * 写着官网不设 Cookie、不从别的网站加载内容，国内也打不开 Google 的字体。tests/test_site.py 钉着这一条。
 */

/*
 * 标题字体 Archivo，自托管，只含拉丁字符。用加宽加粗的字形。中文标题落回系统字体，中文字库动辄
 * 几 MB，不值得随页面下载。
 *
 * Archivo: Copyright 2020 The Archivo Project Authors (https://github.com/Omnibus-Type/Archivo).
 * Licensed under the SIL Open Font License, Version 1.1: https://openfontlicense.org
 */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f4f7fc;
  --panel: #ffffff;
  --line: #e5ebf4;
  --line-strong: #d5deeb;
  --text: #0f172a;
  --muted: #56667d;
  --faint: #94a3b8;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --warn: #b45309;
  --warn-dot: #d97706;
  --warn-bg: #fffbeb;
  --warn-line: #fde8b2;
  --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 52%, #6366f1 100%);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "Archivo", var(--font);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--display);
  font-stretch: 112%;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------------------------------------------------------------- 顶栏与页脚 */

.top {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  min-height: 64px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: 18px;
  font-stretch: 118%;
  font-weight: 800;
}

.brand:hover {
  text-decoration: none;
}

.brand small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--grad);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-left: auto;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.foot {
  background: var(--panel);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.foot a {
  color: var(--muted);
}

.foot a:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------- 按钮 */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding-inline: 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--primary-hover);
}

.button.quiet {
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--text);
}

.button.quiet:hover {
  border-color: var(--faint);
}

.nav .button {
  height: 34px;
  padding-inline: 14px;
  font-size: 14px;
}

/* ---------------------------------------------------------------- 首屏 */

.hero .wrap {
  padding-block: 72px 64px;
}

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 16em;
  margin-top: 14px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-stretch: 118%;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: 22px;
}

.lead {
  max-width: 36em;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/*
 * 门店墙：一格一家店，竖条是这家店最新的一条视频。停更时是虚线空框、琥珀色写着停了多少天；
 * 发了就填上渐变、变成蓝色的「今天已发布」（site.js 一家接一家地翻）。整页只在这里用力。
 */
.wall {
  margin: 48px 0 0;
}

.stores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stores li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  column-gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.thumb {
  position: relative;
  grid-row: span 2;
  width: 36px;
  height: 64px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--grad);
  transition: transform 0.4s ease;
}

/* 竖条中间的播放三角：这一格有一条新视频。 */
.thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #ffffff;
  transform: translate(-40%, -50%);
}

.store {
  align-self: end;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.status {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 6px;
  margin-top: 4px;
  color: var(--primary);
  font-size: 13px;
  line-height: 1.3;
}

.status::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.stores li.quiet {
  background: var(--bg);
  border-color: var(--line-strong);
}

.stores li.quiet .thumb {
  border-color: var(--line-strong);
  border-style: dashed;
  background: transparent;
  transform: scale(0.94);
}

.stores li.quiet .thumb::after {
  display: none;
}

.stores li.quiet .store {
  color: var(--muted);
}

.stores li.quiet .status {
  color: var(--warn);
}

.wall figcaption {
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
}

/* ---------------------------------------------------------------- 分节 */

.section {
  padding-block: 72px;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section .intro {
  max-width: 40em;
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
}

/* 痛点：琥珀色的点和首屏里停更的门店是同一个意思。 */
.pains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin-top: 28px;
}

.pains > div {
  padding-block: 24px;
  border-top: 1px solid var(--line);
}

.pains h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-size: 20px;
  font-stretch: 112%;
}

.pains h3::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn-dot);
  transform: translateY(-2px);
}

.pains p {
  margin-top: 8px;
  color: var(--muted);
}

/*
 * 怎么运作：一行一步，文字旁边一张示意界面，左右交替。界面只画这一步要让人看懂的那一件事，
 * 读屏软件跳过它们（aria-hidden），意思都在旁边的文字里。
 */
.rows {
  display: grid;
  gap: 64px;
  margin-top: 48px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 32px 72px;
}

.row:nth-child(even) .row-text {
  order: 2;
}

.step {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.row-text h3 {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 26px;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}

.row-text p:last-child {
  max-width: 30em;
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
}

.shot {
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -24px rgba(15, 23, 42, 0.28);
  font-size: 14px;
}

.shot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.shot-head span:first-child {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.shot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 第一步：连上来的门店账号。 */
.accounts {
  display: grid;
  gap: 12px;
}

.accounts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.avatar {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--grad);
}

.who {
  font-weight: 600;
  line-height: 1.3;
}

.who small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.accounts .add .avatar {
  border-color: var(--line-strong);
  border-style: dashed;
  background: transparent;
}

.accounts .add .avatar::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 17px;
  line-height: 1;
}

.accounts .add .who {
  color: var(--muted);
  font-weight: 500;
}

/* 第二步：这周交来的竖屏视频。 */
.reel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.reel li {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 9 / 16;
  padding: 8px;
  border-radius: 10px;
  background: linear-gradient(160deg, #2563eb, #06b6d4);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.reel li:nth-child(2) {
  background: linear-gradient(160deg, #6366f1, #2563eb);
}

.reel li:nth-child(3) {
  background: linear-gradient(160deg, #06b6d4, #6366f1);
}

.reel li:nth-child(4) {
  background: linear-gradient(160deg, #1d4ed8, #6366f1);
}

.reel li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.92);
  transform: translate(-40%, -50%);
}

.caption {
  margin-top: 14px;
  font-size: 13.5px;
}

.caption span {
  color: var(--primary);
}

/* 第三步：一周的排期，一行一个地区，蓝格子是发的那天。 */
.week {
  display: grid;
  gap: 8px;
}

.week li {
  display: grid;
  grid-template-columns: 10.5em repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
}

.week li span:first-child {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week li span:not(:first-child) {
  height: 24px;
  border-radius: 6px;
  background: var(--bg);
}

.week li span.on {
  background: var(--grad);
}

.week .days span:not(:first-child) {
  height: auto;
  background: none;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* 之后每天：多少家店是新的，哪几家要帮一把。 */
.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg);
}

.meter span {
  display: block;
  width: 93.5%;
  height: 100%;
  background: var(--grad);
}

.shot .attention {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.attention li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  background: var(--warn-bg);
}

.flag {
  color: var(--warn);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.aside {
  margin-top: 36px;
  color: var(--faint);
  font-size: 13px;
}

/* 适合哪些品牌：几种门店多的行业，一个词一枚标签。 */
.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.kinds li {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  font-weight: 500;
}

/* 常见问题：点开看答案，不用脚本。 */
.faq {
  max-width: 52em;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--primary);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 6px;
}

.faq details p {
  max-width: 44em;
  padding-bottom: 20px;
  color: var(--muted);
}

.contact {
  background: var(--panel);
}

.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
}

.reach {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.email {
  font-family: var(--mono);
  font-size: 16px;
  user-select: all;
}

/* ---------------------------------------------------------------- 条款与政策 */

.doc .wrap {
  max-width: 760px;
  padding-block: 56px 72px;
}

.doc h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.doc .meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.doc .draft {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--warn-line);
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 14px;
}

.doc h2 {
  margin-top: 40px;
  font-size: 20px;
}

.doc p,
.doc ul,
.doc dl {
  margin-top: 12px;
}

.doc dl {
  margin-bottom: 0;
}

.doc dt {
  margin-top: 12px;
  font-weight: 600;
}

.doc dd {
  margin: 2px 0 0;
}

.doc ul {
  padding-left: 1.25em;
}

.doc li + li {
  margin-top: 6px;
}

/* ---------------------------------------------------------------- 中文 */

/* 中文字形本来就方，英文那套收紧字距套上去会挤。 */
:lang(zh) .hero h1,
:lang(zh) .section h2,
:lang(zh) .doc h1 {
  letter-spacing: 0.01em;
}

/* 标题在标点处断行；一段放不下时才在字间断。 */
:lang(zh) h1,
:lang(zh) h2,
:lang(zh) h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 中文里夹着的 TikTok 不转成全大写。 */
:lang(zh) .eyebrow {
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ---------------------------------------------------------------- 动效与窄屏 */

@media (prefers-reduced-motion: reduce) {
  .stores li,
  .thumb,
  .faq summary::after {
    transition: none;
  }
}

@media (max-width: 860px) {
  .contact .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero .wrap {
    padding-block: 48px;
  }

  .wall {
    margin-top: 36px;
  }

  .stores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pains,
  .row {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 竖着排时一律先文字、后示意界面。 */
  .row:nth-child(even) .row-text {
    order: 0;
  }

  .rows {
    gap: 48px;
  }

  .row-text h3 {
    font-size: 22px;
  }

  .reel li {
    font-size: 11px;
  }

  .week li {
    grid-template-columns: 8.5em repeat(7, minmax(0, 1fr));
  }

  .section {
    padding-block: 56px;
  }

  .nav {
    margin-left: 0;
  }
}
