/* 图漾官网样式。颜色、圆角与 App 浅色版一致（见 design/README.md「设计规范速查」） */

@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --bg-soft: #F3F4F7;
  --fill: #E9EBF0;
  --line: #E4E7ED;
  --line-strong: #D3D7E0;
  --text: #14161C;
  --text-2: #535868;
  --text-3: #6B7080;
  --brand: #2F5BFF;
  --brand-hover: #2549E6;
  --brand-soft: #E8EDFF;
  --brand-ink: #2447D6;
  --brand-ink-hover: #1A36A8;
  --name-blue: #4A5F8C;
  --footer-bg: #14161C;
  --footer-text: #C9CCD6;
  --footer-muted: #9AA0AE;
  --footer-line: #2E3038;
  --shadow-card: 0 1px 2px rgba(20, 24, 40, .04), 0 8px 24px rgba(20, 24, 40, .06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand-ink-hover); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: #FFFFFF;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav .nav-link {
  padding: 10px 0;
  color: var(--text-2);
  font-size: 15px;
}
.site-nav .nav-link:hover { color: var(--text); }

@media (max-width: 760px) {
  .site-nav .nav-link { display: none; }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-primary,
.btn-primary:hover { color: #FFFFFF; }
.btn-primary {
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(47, 91, 255, .28);
}
.btn-primary:hover { background: var(--brand-hover); }

.btn-outline,
.btn-outline:hover { color: var(--text); }
.btn-outline {
  border: 1.5px solid var(--line-strong);
  font-weight: 600;
}
.btn-outline:hover { border-color: var(--text-3); }

.btn-white,
.btn-white:hover { color: var(--brand-ink); }
.btn-white { background: #FFFFFF; }
.btn-white:hover { background: var(--brand-soft); }

.btn-ghost-white,
.btn-ghost-white:hover { color: #FFFFFF; }
.btn-ghost-white { border: 1.5px solid rgba(255, 255, 255, .7); font-weight: 600; }
.btn-ghost-white:hover { border-color: #FFFFFF; }

.btn-sm { height: 44px; padding: 0 22px; border-radius: 22px; font-size: 15px; }

.btn[aria-disabled="true"] { cursor: default; }

/* ---------- 首屏 ---------- */

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 96px;
}

.hero-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 8.5vw, 62px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.lead {
  margin: 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-2);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.meta { font-size: 13px; color: var(--text-3); }

.hero-art {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 500 / 560;
}

.stage-bg {
  position: absolute;
  inset: 10% 6% 2% 6%;
  border-radius: 48px;
  background: var(--brand-soft);
}

/* ---------- 手机示意（内部尺寸按手机宽度的百分比 cqw 缩放） ---------- */

.phone { container-type: inline-size; }
.stage .phone { position: absolute; }
.phone--back { left: 3%; top: 7%; width: 46%; transform: rotate(-6deg); }
.phone--front { right: 3%; top: 0; width: 50%; transform: rotate(4deg); }

.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border: 2.4cqw solid #14161C;
  border-radius: 13cqw;
  overflow: hidden;
  background: #14161C;
  box-shadow: 0 30px 60px rgba(20, 24, 40, .24);
}

.screen-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lock-time {
  position: absolute;
  left: 0;
  right: 0;
  top: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFFFFF;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}
.lock-date { font-size: 5.6cqw; font-weight: 500; }
.lock-clock {
  font-family: "Sora", var(--font);
  font-weight: 200;
  font-size: 24cqw;
  line-height: 1;
  letter-spacing: -.8cqw;
}

.lock-seg {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 5%;
  padding: 2cqw;
  border-radius: 8cqw;
  background: rgba(255, 255, 255, .92);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2cqw;
}
.lock-seg span {
  height: 11cqw;
  border-radius: 6cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.6cqw;
  color: var(--text-2);
}
.lock-seg .on { background: var(--brand); color: #FFFFFF; font-weight: 600; }

.lock-notice {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 52%;
  padding: 3cqw 4cqw;
  border-radius: 6cqw;
  background: rgba(255, 255, 255, .72);
  display: flex;
  align-items: center;
  gap: 3cqw;
}
.lock-notice .dot { width: 9cqw; height: 9cqw; border-radius: 2.5cqw; background: var(--brand); flex: none; }
.lock-notice .lines { flex: 1; display: flex; flex-direction: column; gap: 1.5cqw; }
.lock-notice .lines span { height: 2.4cqw; border-radius: 1.2cqw; background: var(--text); }
.lock-notice .lines span:first-child { width: 50%; opacity: .7; }
.lock-notice .lines span:last-child { width: 80%; opacity: .35; }

.app-screen {
  position: absolute;
  inset: 0;
  padding: 11cqw 5cqw 0;
  background: var(--bg-soft);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4cqw;
}
.app-brand { display: flex; align-items: center; gap: 2.5cqw; font-size: 7cqw; font-weight: 700; }
.app-brand img { width: 9cqw; height: 9cqw; border-radius: 2.2cqw; }
.app-search { height: 10cqw; border-radius: 5cqw; background: #FFFFFF; }
.app-tabs { display: flex; align-items: flex-end; gap: 5cqw; white-space: nowrap; font-size: 5cqw; color: var(--text-2); }
.app-tabs b { font-size: 6.4cqw; color: var(--text); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; align-items: start; }
.app-grid > div { display: flex; flex-direction: column; gap: 3cqw; }
.app-grid img { width: 100%; object-fit: cover; border-radius: 4cqw; }

/* ---------- 通用区块 ---------- */

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  text-align: center;
}
.eyebrow { font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.25;
}
.section-head p {
  margin: 0;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

h3 { margin: 0; }

/* ---------- 三种图 ---------- */

.type-card {
  border-radius: 28px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
}
.type-art {
  height: 240px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.type-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 8px; }
.type-body h3 { font-size: 20px; }
.type-body p, .demo-text p, .feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.art-walls { gap: 12px; }
.art-walls img { width: 84px; height: 168px; object-fit: cover; border-radius: 16px; border: 3px solid #FFFFFF; }
.art-walls img:first-child { transform: rotate(-6deg) translateY(10px); object-position: center 40%; }
.art-walls img:nth-child(2) { width: 96px; height: 190px; border-radius: 18px; box-shadow: 0 12px 24px rgba(36, 71, 214, .2); }
.art-walls img:last-child { transform: rotate(6deg) translateY(10px); object-position: center 70%; }

.art-avatars { gap: 12px; flex-wrap: wrap; padding: 0 20px; }
.art-avatars img { width: 64px; height: 64px; box-shadow: 0 0 0 4px #FFFFFF; }
.art-avatars .r-circle { border-radius: 50%; }
.art-avatars .r-round { border-radius: 17px; }
.art-avatars .r-square { border-radius: 6px; }

.art-cover { padding: 0 28px; }
.art-cover .frame { position: relative; width: 100%; max-width: 300px; }
.art-cover .cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 60%; border-radius: 18px; border: 3px solid #FFFFFF; }
.art-cover .avatar { position: absolute; right: 14px; bottom: -18px; width: 52px; height: 52px; border-radius: 10px; box-shadow: 0 0 0 3px #FFFFFF; }

/* ---------- 仿真预览 ---------- */

.demo { display: flex; flex-direction: column; gap: 20px; }
.demo-art {
  height: 340px;
  border-radius: 28px;
  background: var(--bg-soft);
  overflow: hidden;
}
.demo-art--phone { display: flex; justify-content: center; padding-top: 32px; }
.demo-art--phone .phone { width: 160px; }
.demo-art--stack { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.demo-text { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.demo-text h3 { font-size: 19px; }

.mock-card { border-radius: 20px; background: #FFFFFF; }
.chat { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.chat-row--me { justify-content: flex-end; }
.chat-row img { width: 34px; height: 34px; }
.chat-row .friend { border-radius: 8px; }
.chat-row .me { border-radius: 50%; }
.bubble { padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: var(--bg-soft); }
.chat-row--me .bubble { border-radius: 14px 4px 14px 14px; background: var(--brand); color: #FFFFFF; }

.profile { padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.profile img { width: 48px; height: 48px; border-radius: 50%; }
.profile b { display: block; font-size: 15px; }
.profile small { font-size: 12px; color: var(--text-3); }

.mini-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 18px;
  background: var(--fill);
}
.mini-seg span {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-2);
}
.mini-seg .on { border-radius: 14px; background: #FFFFFF; color: var(--text); font-weight: 600; }

.moments { overflow: hidden; }
.moments-cover { position: relative; height: 150px; }
.moments-cover > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.moments-cover .name {
  position: absolute;
  right: 78px;
  bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.moments-cover .avatar { position: absolute; right: 14px; bottom: -22px; width: 54px; height: 54px; border-radius: 8px; }
.moments-post { padding: 32px 14px 14px; display: flex; gap: 10px; font-size: 13px; }
.moments-post img { width: 32px; height: 32px; border-radius: 6px; flex: none; }
.moments-post b { display: block; font-weight: 600; color: var(--name-blue); }

/* ---------- 功能 ---------- */

.features-grid { gap: 20px; }
.feature {
  padding: 28px;
  border-radius: 24px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; }

/* ---------- 下载 ---------- */

.download { padding: 96px 0 48px; }
.download-panel {
  padding: clamp(32px, 5vw, 64px);
  border-radius: 40px;
  background: var(--brand);
  color: #FFFFFF;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.download-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.download-copy .app-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }
.download-copy h2 { margin: 0; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; }
.download-copy p, .download-note, .qr-caption { margin: 0; color: var(--brand-soft); }
.download-copy p { font-size: 16px; line-height: 1.75; }
.download-note, .qr-caption { font-size: 14px; }

.qr { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-box {
  width: 176px;
  height: 176px;
  padding: 14px;
  border-radius: 24px;
  background: #FFFFFF;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-placeholder {
  width: 100%;
  height: 100%;
  border: 2px dashed var(--footer-muted);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 13px;
}

/* ---------- 常见问题 ---------- */

.faq-section { padding: 48px 0 96px; }
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  min-height: 64px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 17px; font-weight: 600; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--text-2); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p {
  margin: 0 0 20px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

/* ---------- 页脚 ---------- */

.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 64px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand, .footer-brand .brand:hover { color: #FFFFFF; }
.footer-brand p { margin: 0; max-width: 300px; font-size: 14px; line-height: 1.75; }
.footer-col { flex: 0 0 170px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col .title { font-weight: 600; color: #FFFFFF; }
.footer-col a { color: var(--footer-text); }
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--footer-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--footer-muted);
}
.footer-bottom a { color: var(--footer-muted); }
.footer-bottom a:hover { color: #FFFFFF; }

/* ---------- 协议与清单页 ---------- */

.doc { max-width: 800px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 36px); line-height: 1.3; }
.doc .doc-meta { margin: 0 0 24px; font-size: 14px; color: var(--text-3); }
.doc .doc-intro { margin: 0 0 32px; font-size: 16px; line-height: 1.8; color: var(--text-2); }
.doc-toc {
  margin: 0 0 40px;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--bg-soft);
}
.doc-toc .title { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.doc-toc ol { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.doc-toc a { display: inline-block; padding: 4px 0; color: var(--text); }
.doc-toc a:hover { color: var(--brand-ink); }
.doc section { margin-bottom: 32px; }
.doc h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.4; }
.doc p { margin: 0 0 12px; font-size: 16px; line-height: 1.8; color: var(--text-2); }
.placeholder { color: var(--text-3); }

.info-list { display: flex; flex-direction: column; gap: 16px; }
.info-card { padding: 20px 24px; border-radius: 20px; background: var(--bg-soft); }
.info-card h2 { margin: 0 0 12px; font-size: 18px; }
.info-card dl { margin: 0; display: grid; grid-template-columns: 7em 1fr; gap: 8px 16px; font-size: 15px; line-height: 1.7; }
.info-card dt { color: var(--text-3); }
.info-card dd { margin: 0; color: var(--text); }

@media (max-width: 520px) {
  .info-card dl { grid-template-columns: 1fr; gap: 2px; }
  .info-card dd { margin-bottom: 8px; }
}
