/* ============================================================
   拓麻相册 · 宣传站样式
   设计令牌完整映射自 DESIGN.md（系统层 + 内容层双层体系）
   ============================================================ */

:root {
  /* System Layer 基线 */
  --neutral: #F7F1DF;
  --surface: #FFFDF5;
  --surface-muted: #F1E8D1;
  --divider: #EAE0C6;
  --text: #3E2F22;
  --text-muted: #6B5944;
  --primary: #2E7B4E;
  --on-primary: #FFFDF5;
  --tab-active: #AE501C;
  --tab-inactive: #78634B;

  /* Content Layer AC 撞色板（仅 squircle 贴纸 / 庆祝卡 / 徽标） */
  --ac-mint: #8FD2B4;
  --ac-leaf: #65AD7C;
  --ac-cream: #F5E5B0;
  --ac-butter: #F5D067;
  --ac-coral: #F4A278;
  --ac-lilac: #C6A5DC;
  --ac-cocoa: #8A6A4A;
  --ac-edge: #A88A6E;    /* 仅容器 hairline，绝不做 SVG 笔触 */
  --ac-outline: #3E2A1F; /* 仅 SVG 内部线稿，绝不做 CSS border */

  /* Tab 身份墨（单色线图标 tint） */
  --ac-coral-ink: #9A3F1A;
  --ac-leaf-ink: #2E6B43;
  --ac-butter-ink: #7A521A;
  --ac-lilac-ink: #6B4A8E;
  --ac-mint-ink: #2A7368;

  /* 圆角 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* 间距 */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 20px;
  --s-xxl: 28px;
  --s-xxxl: 36px;

  /* 阴影（三档，按尺寸分级） */
  --shadow-soft: 0 6px 18px rgba(62, 42, 31, 0.10);          /* 系统层软阴影：大卡片 / CTA */
  --shadow-sticker: 0 3px 1px rgba(138, 106, 74, 0.35);       /* 内容层贴纸偏移阴影：小 squircle */
  --shadow-hover: 0 10px 24px rgba(62, 42, 31, 0.14);

  /* 字体 */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* 点阵纹理（page-root-patterned）：ac-cocoa 7% / 2.5px 点 / 14px 间距 */
  --dot-pattern: radial-gradient(circle, rgba(138, 106, 74, 0.07) 1.25px, transparent 1.25px);
  --dot-size: 14px;

  --maxw: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--neutral);
  background-image: var(--dot-pattern);
  background-size: var(--dot-size) var(--dot-size);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--ac-cream); color: var(--text); }

:focus-visible {
  outline: 3px solid var(--tab-active);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: var(--s-lg);
  top: -48px;
  z-index: 1000;
  background: var(--surface);
  color: var(--text);
  padding: var(--s-sm) var(--s-lg);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  transition: top 200ms ease-out;
}
.skip-link:focus { top: var(--s-lg); }

/* ---------- 排版 ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.015em;
}

.section-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: var(--s-lg) auto 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-muted);
  border: 1px solid var(--ac-edge);
  border-radius: var(--r-pill);
  padding: 6px 14px;
}

/* ---------- 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-xl);
}

section { padding-block: clamp(56px, 9vw, 96px); }

/* ---------- 顶部导航（Hybrid 胶囊） ---------- */
.nav {
  position: sticky;
  top: var(--s-md);
  z-index: 100;
  padding-inline: var(--s-lg);
}

.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
  background: var(--surface);
  border: 1.5px solid var(--ac-edge);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sticker);
  padding: var(--s-md) var(--s-xl);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--ac-leaf);
  border: 1.5px solid var(--ac-edge);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sticker);
  display: grid;
  place-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-xs);
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--tab-inactive);
  padding: var(--s-sm) var(--s-md);
  border-radius: var(--r-pill);
  transition: color 200ms ease-out, background-color 200ms ease-out;
}
.nav-links a:hover { color: var(--tab-active); background: var(--neutral); }

.nav-cta {
  font-size: 15px;
  font-weight: 700;
  color: var(--on-primary);
  background: var(--primary);
  border-radius: var(--r-pill);
  padding: var(--s-sm) var(--s-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, background-color 200ms ease-out;
}
.nav-cta:hover { background: #266a43; transform: translateY(-1px); box-shadow: var(--shadow-hover); }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(40px, 7vw, 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy { max-width: 540px; }

.hero-title {
  font-size: clamp(32px, 8vw, 60px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-top: var(--s-xl);
}

.hero-title .accent {
  color: var(--primary);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  margin-top: var(--s-xl);
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
  margin-top: var(--s-xxl);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  min-height: 52px;
  padding: 0 var(--s-xxl);
  border-radius: var(--r-pill);
  font-size: 17px;
  font-weight: 700;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, background-color 200ms ease-out;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: #266a43; transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--ac-edge);
  box-shadow: var(--shadow-sticker);
}
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-muted); }

.hero-note {
  margin-top: var(--s-lg);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}

/* ---------- Hero 手机样机（纯 CSS 复刻 App 界面） ---------- */
.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
}

/* 漂浮小贴纸 */
.float-sticker {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--ac-edge);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sticker);
  display: grid;
  place-items: center;
  z-index: 2;
}
.float-sticker.coral { background: var(--ac-coral); top: 4%; left: 2%; }
.float-sticker.butter { background: var(--ac-butter); bottom: 10%; left: 0; }
.float-sticker.lilac { background: var(--ac-lilac); top: 14%; right: 0; }
.float-sticker.mint { background: var(--ac-mint); bottom: 2%; right: 6%; }

.phone {
  position: relative;
  width: min(320px, 82vw);
  aspect-ratio: 9 / 19;
  background: var(--surface);
  border: 1.5px solid var(--ac-edge);
  border-radius: 44px;
  box-shadow: var(--shadow-hover);
  padding: 10px;
  z-index: 1;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background-color: var(--neutral);
  background-image: var(--dot-pattern);
  background-size: var(--dot-size) var(--dot-size);
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: var(--surface);
  border: 1.5px solid var(--ac-edge);
  border-radius: var(--r-pill);
  z-index: 3;
}

/* 样机内：nav bar */
.mock-nav {
  padding: 44px 16px 10px;
}
.mock-nav .mock-large-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* 样机内：相册日卡 */
.mock-body {
  flex: 1;
  padding: 6px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.mock-day-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 12px;
}
.mock-day-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}
.mock-day-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 10px;
}
.mock-photo {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* 样机内：悬浮胶囊 tab bar */
.mock-tabbar {
  margin: auto 12px 14px;
  height: 52px;
  background: var(--surface);
  border: 1.5px solid var(--ac-edge);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sticker);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 6px;
}
.mock-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--tab-inactive);
}
.mock-tab .icon-pill {
  width: 40px;
  height: 26px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
}
.mock-tab.active { color: var(--tab-active); }
.mock-tab.active .icon-pill { background: var(--neutral); }
.mock-tab span {
  font-size: 9px;
  font-weight: 600;
  font-family: var(--font-display);
}

/* ---------- 功能卡 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-xl);
  margin-top: clamp(32px, 5vw, 56px);
}

.feature-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
  transition: transform 250ms ease-out, box-shadow 250ms ease-out;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.feature-head {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
}

/* 小 squircle 贴纸（≤80px：1.5px ac-edge hairline + 贴纸偏移阴影） */
.sticker {
  width: 64px;
  height: 64px;
  flex: none;
  border: 1.5px solid var(--ac-edge);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sticker);
  display: grid;
  place-items: center;
}
.sticker.coral { background: var(--ac-coral); }
.sticker.leaf { background: var(--ac-leaf); }
.sticker.lilac { background: var(--ac-lilac); }
.sticker.mint { background: var(--ac-mint); }
.sticker.butter { background: var(--ac-butter); }
.sticker.cream { background: var(--ac-cream); }
.sticker.cocoa { background: var(--ac-cocoa); }

.feature-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
.feature-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.feature-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.feature-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
}

.chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-muted);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}

/* ---------- 特色亮点 ---------- */
.highlights {
  background: var(--surface);
  border-block: 1px solid var(--divider);
}
/* 纹理不进入该区域内部容器，由 DESIGN.md 纹理规则控制 */
.highlights .section-sub { color: var(--text-muted); }

.hl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-xl);
  margin-top: clamp(32px, 5vw, 56px);
}

.hl-card {
  background: var(--neutral);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-md);
}

.hl-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}
.hl-icon svg { width: 44px; height: 44px; }

.hl-title {
  font-size: 18px;
  font-weight: 700;
}
.hl-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- 设计语言 ---------- */
.design-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(32px, 5vw, 56px);
}

.design-copy h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--s-md);
}
.design-copy p {
  color: var(--text-muted);
  font-size: 15px;
}
.design-copy p + h3 { margin-top: var(--s-xxl); }

.swatch-board {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 3vw, 28px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-md);
}

.swatch {
  aspect-ratio: 1;
  border: 1.5px solid var(--ac-edge);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sticker);
  display: grid;
  place-items: center;
}
.swatch span {
  font-size: 11px;
  font-weight: 700;
  color: var(--ac-outline);
  font-family: var(--font-display);
}

/* ---------- 隐私 ---------- */
.privacy-card {
  max-width: 760px;
  margin: clamp(32px, 5vw, 48px) auto 0;
  background: var(--ac-cream);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  gap: var(--s-xl);
  align-items: flex-start;
}

.privacy-card .sticker { width: 56px; height: 56px; }

.privacy-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--s-sm);
}
.privacy-card p {
  font-size: 15px;
  color: var(--text);
}
.privacy-points {
  margin-top: var(--s-md);
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
.privacy-points li {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 14px;
  font-weight: 600;
}
.privacy-points svg { flex: none; }

/* ---------- 下载 CTA ---------- */
.download-inner {
  text-align: center;
}

.download-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-xl);
}

.download-stickers {
  display: flex;
  gap: var(--s-md);
}

.download-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.download-sub {
  color: var(--text-muted);
  max-width: 460px;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--divider);
  background: var(--surface);
  padding: var(--s-xxxl) var(--s-xl) var(--s-xxl);
}

.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-md);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-lg);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--tab-active); }

.footer-beian {
  margin-top: var(--s-sm);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-beian a {
  color: var(--text-muted);
  transition: color 200ms ease-out;
}
.footer-beian a:hover { color: var(--tab-active); text-decoration: underline; }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- 进场动效（尊重 prefers-reduced-motion） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.sticker-pop {
  transition: transform 150ms ease-out;
}
.sticker-pop.is-visible { animation: pop-in 150ms ease-out; }

@keyframes pop-in {
  from { transform: translateY(4px); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sticker-pop.is-visible { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; text-align: center; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .hl-grid { grid-template-columns: 1fr; }
  .design-grid { grid-template-columns: 1fr; }
  .privacy-card { flex-direction: column; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .float-sticker { width: 48px; height: 48px; border-radius: var(--r-md); }
  .swatch-board { grid-template-columns: repeat(4, 1fr); }
}
