/* Famoo 官网 — wizpop.me
 *
 * 单文件样式，首页与三个法务页共用。无构建步骤，nginx 直接托管。
 * 基调：夜色 + 纸墨。故事目录以悬疑为主，所以用暗底 + 暖黄铜点缀，
 * 中文标题走衬线，正文走系统无衬线。
 */

:root {
  --ink: #08080a;
  --ink-raised: #101014;
  --ink-card: rgba(255, 255, 255, 0.028);
  --line: rgba(233, 228, 218, 0.1);
  --line-strong: rgba(233, 228, 218, 0.2);

  --text: #ece7dd;
  --text-dim: #a49d92;
  --text-faint: #6f6960;

  --brass: #c9a227;
  --brass-soft: #e0c579;
  --brass-glow: rgba(201, 162, 39, 0.14);

  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC",
    "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gut: 24px;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 夜色底纹：两团极淡的暖光，避免大面积纯黑显得廉价 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 520px at 12% -8%, rgba(201, 162, 39, 0.07), transparent 62%),
    radial-gradient(ellipse 760px 620px at 92% 6%, rgba(96, 122, 170, 0.07), transparent 60%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--brass-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 20px;
  background: var(--brass);
  color: #14100a;
  font-weight: 600;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------------------------------------------------------------- 顶栏 */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(8, 8, 10, 0.9);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.08em;
  color: var(--text);
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  color: var(--text-dim);
}

.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brass-soft);
  transition: right 0.25s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a:hover::after {
  right: 0;
}

@media (max-width: 780px) {
  .nav__links {
    display: none;
  }
}

/* ---------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: linear-gradient(180deg, var(--brass-soft), var(--brass));
  color: #17120a;
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.22);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(201, 162, 39, 0.3);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: var(--brass-soft);
  color: var(--brass-soft);
  transform: translateY(-2px);
}

/* 应用商店链接就位前的占位态：不可点击，但明确说明原因 */
.btn.is-pending {
  cursor: default;
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(1);
  box-shadow: none;
}

.btn__sub {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.72;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------------------------------------------------------------- 区块 */

.section {
  padding: 108px 0;
  border-top: 1px solid var(--line);
}

.section--tight {
  padding: 84px 0;
}

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 20px;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

.lede {
  max-width: 640px;
  color: var(--text-dim);
  font-size: 16.5px;
  margin: 0 0 52px;
}

/* ---------------------------------------------------------------- 首屏 */

.hero {
  position: relative;
  padding: clamp(72px, 12vw, 132px) 0 clamp(64px, 9vw, 108px);
  overflow: hidden;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--brass-glow);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--brass-soft);
  margin-bottom: 30px;
}

.hero__tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.16);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 6.6vw, 68px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.02em;
  margin: 0 0 26px;
  max-width: 15em;
}

.hero h1 em {
  font-style: normal;
  color: var(--brass-soft);
}

.hero__sub {
  max-width: 30em;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  margin: 0 0 40px;
}

.hero__note {
  margin-top: 30px;
  font-size: 13px;
  color: var(--text-faint);
  max-width: 34em;
  line-height: 1.75;
}

.hero__quote {
  margin: 56px 0 0;
  padding: 22px 0 22px 24px;
  border-left: 2px solid var(--brass);
  font-family: var(--serif);
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--text);
  max-width: 24em;
  line-height: 1.7;
}

.hero__quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------- 不是 / 而是 */

.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 760px) {
  .contrast {
    grid-template-columns: 1fr;
  }
}

.contrast__col {
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-card);
}

.contrast__col--yes {
  border-color: rgba(201, 162, 39, 0.34);
  background: linear-gradient(180deg, var(--brass-glow), rgba(255, 255, 255, 0.015));
}

.contrast__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 16px;
}

.contrast__col--yes .contrast__label {
  color: var(--brass);
}

.contrast__col p {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 15.5px;
}

.contrast__col p:last-child {
  margin-bottom: 0;
}

.contrast__col strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------------------------------------------------------------- 步骤 */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

@media (max-width: 940px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding: 32px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-card);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.step:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.step__n {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--brass);
  margin-bottom: 18px;
}

.step h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.78;
}

/* ---------------------------------------------------------------- 故事 */

.stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 940px) {
  .stories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .stories {
    grid-template-columns: 1fr;
  }
}

.story {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-card);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.story:hover {
  border-color: rgba(201, 162, 39, 0.34);
  background: rgba(201, 162, 39, 0.045);
  transform: translateY(-3px);
}

.story--hero {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 40px 38px;
  border-color: rgba(201, 162, 39, 0.3);
  background: linear-gradient(115deg, var(--brass-glow), rgba(255, 255, 255, 0.015));
}

@media (max-width: 940px) {
  .story--hero {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .story--hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .story--hero {
    grid-column: span 1;
  }
}

.story--hero > div {
  flex: 1;
}

.story__badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  padding: 5px 11px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  margin-bottom: 18px;
}

.story h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.story--hero h3 {
  font-size: clamp(26px, 3.4vw, 34px);
}

.story__hook {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
  flex: 1;
}

.story--hero .story__hook {
  font-family: var(--serif);
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.stories__foot {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--text-faint);
}

/* ------------------------------------------------------------ 为什么 */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 38px 34px;
  background: var(--ink);
  transition: background 0.25s ease;
}

.feature:hover {
  background: var(--ink-raised);
}

.feature h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 0 14px;
}

.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------------------------------------------------------------- 点数 */

.points {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 880px) {
  .points {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow li {
  position: relative;
  padding: 0 0 30px 34px;
  color: var(--text-dim);
  font-size: 15.5px;
}

.flow li:last-child {
  padding-bottom: 0;
}

.flow li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

.flow li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 24px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.4), transparent);
}

.flow li:last-child::after {
  display: none;
}

.flow strong {
  display: block;
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.callout {
  padding: 30px 30px 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink-raised);
}

.callout h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: 0.03em;
}

.callout ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.callout li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.75;
}

.callout li:last-child {
  margin-bottom: 0;
}

.callout li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
}

/* ---------------------------------------------------------------- 安全 */

.safety {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 18px;
}

.safety__item {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-card);
}

.safety__item h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: 0.03em;
  color: var(--text);
}

.safety__item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.78;
}

/* ------------------------------------------------------------ 结尾 CTA */

.cta {
  text-align: center;
  padding: 118px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 720px 300px at 50% 0%, var(--brass-glow), transparent 70%);
}

.cta .h2 {
  margin-bottom: 20px;
}

.cta p {
  max-width: 34em;
  margin: 0 auto 38px;
  color: var(--text-dim);
}

.cta .btn-row {
  justify-content: center;
}

/* ---------------------------------------------------------------- 页脚 */

.foot {
  border-top: 1px solid var(--line);
  background: #060608;
  padding: 72px 0 40px;
}

.foot__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 940px) {
  .foot__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .foot__top {
    grid-template-columns: 1fr;
  }
}

.foot__brand .brand {
  margin-bottom: 18px;
}

.foot__brand p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 26em;
  line-height: 1.8;
}

.foot__brand .en {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.foot h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 18px;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot li {
  margin-bottom: 11px;
  font-size: 14px;
  color: var(--text-dim);
}

.foot li a {
  transition: color 0.2s ease;
}

.foot li a:hover {
  color: var(--brass-soft);
}

.foot__contact li {
  line-height: 1.7;
}

.foot__contact span {
  display: block;
  font-size: 12.5px;
  color: var(--text-faint);
}

.foot__contact a {
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

.foot__bottom {
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  font-size: 13px;
  color: var(--text-faint);
}

.foot__bottom a {
  transition: color 0.2s ease;
}

.foot__bottom a:hover {
  color: var(--brass-soft);
}

.foot__disclaimer {
  width: 100%;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.75;
}

/* ------------------------------------------------------------ 法务页 */

.legal {
  padding: 64px 0 96px;
}

.legal__wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gut);
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 44px;
  transition: color 0.2s ease;
}

.legal__back:hover {
  color: var(--brass-soft);
}

.legal h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin: 0 0 16px;
}

.legal__meta {
  font-size: 13.5px;
  color: var(--text-faint);
  margin: 0 0 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal__meta span + span {
  margin-left: 24px;
}

.legal__intro p {
  color: var(--text-dim);
  font-size: 15.5px;
  margin: 0 0 16px;
}

.legal__intro strong {
  color: var(--text);
  font-weight: 600;
}

.legal h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 52px 0 20px;
  padding-top: 8px;
  color: var(--text);
}

.legal h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 30px 0 12px;
  color: var(--text);
}

.legal p {
  color: var(--text-dim);
  font-size: 15.5px;
  margin: 0 0 16px;
  line-height: 1.9;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal ul,
.legal ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 15.5px;
}

.legal li {
  margin-bottom: 10px;
  line-height: 1.9;
}

.legal__clause {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.9;
}

.legal__clause > b {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}

/* SDK 披露等结构化信息用表格，比段落好核对。窄屏可横向滚动。 */
.legal__table {
  margin: 24px 0 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal__table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.legal__table th,
.legal__table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.legal__table th {
  background: var(--ink-raised);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.legal__table td {
  color: var(--text-dim);
}

.legal__table td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.legal__table tr:last-child th,
.legal__table tr:last-child td {
  border-bottom: none;
}

.legal__box {
  margin: 28px 0;
  padding: 26px 28px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--ink-raised);
}

.legal__box p:last-child,
.legal__box ul:last-child {
  margin-bottom: 0;
}

.legal__contact {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.legal__contact a {
  color: var(--brass-soft);
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
}

.legal__end {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text-faint);
  line-height: 1.85;
}

/* ---------------------------------------------------------- 入场动画 */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
