/*
 * aquora.cn — 大陆站公共样式(首页 / 隐私政策 / 用户协议 / 支持页共用)。
 * 人格落地页 /p/ 仍用 archetype.css(黑色 letterbox 是设计裁定,勿改),
 * 只在 cn 模式下由 _layouts/archetype.html 内联一份 .footer-icp 规则。
 *
 * 设计系统沿用站点既有令牌,不另起炉灶:
 *   底 --aquora-navy #1D4354 / --aquora-navy-light #285569
 *   主文字与强调 --aquora-green #61A88A
 *   大标题 --aquora-cream #F8F4EC
 *   卡片 rgba(255,255,255,.06) 与 .10
 * 字体:正文中文系统栈;h1/h2 与页眉字标走 cn-fonts.css 的自托管显示字体
 *      (--font-display 宋体 500 / --font-latin Cormorant 意大利体),零境外资源(不引 Google Fonts / CDN)。
 * 版式:单栏 720px 居中,大留白,节之间用空间而非分割线;正文行宽 ≤ 36 汉字。
 * 声线由文案负责;样式只负责温柔——低对比的次级文字、大圆角、慢过渡。
 */

/* ============================================================
 * 重置与令牌
 * ============================================================ */

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

:root {
  /* 品牌 */
  --aquora-green: #61A88A;
  --aquora-green-light: #6EB99E;
  --aquora-navy: #1D4354;
  --aquora-navy-light: #285569;
  --aquora-cream: #F8F4EC;

  /* 语义 */
  --bg-base: var(--aquora-navy);
  --bg-light: var(--aquora-navy-light);
  --text-main: var(--aquora-green);
  --text-secondary: rgba(97, 168, 138, 0.72);
  --text-faint: rgba(97, 168, 138, 0.45);
  --text-title: var(--aquora-cream);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-bg-strong: rgba(255, 255, 255, 0.10);
  --card-border: rgba(97, 168, 138, 0.14);
  --card-border-rgb: 97, 168, 138;

  /* 字体:中文系统栈 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC",
               "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* 版式 */
  --page-max: 720px;        /* 单栏 */
  --prose-max: 40rem;       /* 正文行宽 ≤ 36 汉字 */
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --gutter: 24px;
  --section-gap: 88px;      /* 节之间用空间,不用分割线 */

  /* 动效 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.35s;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  overflow-x: clip; /* hero 辉光伪元素比视口宽，在 body 层裁掉横向溢出而不硬切辉光边缘 */
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--text-main);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 70% 42% at 50% 0%,
      rgba(97, 168, 138, 0.16) 0%, transparent 70%),
    linear-gradient(165deg, var(--bg-base) 0%, var(--bg-base) 55%, var(--bg-light) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}

/* 微信分享取图:保留在 DOM,折叠为 0 高 */
.wx-share {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}
.wx-share img { display: block; width: 300px; height: 300px; max-width: none; } /* 真实 300×300 元素，仅容器裁切；微信按图片尺寸取图，不可 display:none */

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
a:hover { color: var(--aquora-green-light); }
a:focus-visible {
  outline: 2px solid var(--aquora-green-light);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(97, 168, 138, 0.32);
  color: var(--aquora-cream);
}

/* ============================================================
 * 排版
 * ============================================================ */

h1, h2, h3, h4 {
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
/* 显示层:h1/h2 用自托管宋体 500(cn-fonts.css 未加载时退回系统宋体,再退无衬线) */
h1, h2 {
  font-family: var(--font-display, "Songti SC", "Noto Serif SC", serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

h1 {
  font-size: clamp(30px, 6vw, 44px);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: 16px;
}

h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

p,
li {
  max-width: var(--prose-max);
  text-wrap: pretty;
}

p + p { margin-top: 1em; }

ul, ol { padding-left: 1.4em; }
li + li { margin-top: 0.4em; }

strong { color: var(--text-title); font-weight: 600; }
em { font-style: normal; color: var(--aquora-green-light); }

small,
.muted {
  color: var(--text-secondary);
  font-size: 0.9em;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.num,
.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--card-bg);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

hr {
  border: 0;
  height: 1px;
  background: var(--card-border);
  margin: 40px 0;
}

/* ============================================================
 * 页面骨架:单栏 720px 居中
 * ============================================================ */

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 64px;
}

.section {
  margin-top: var(--section-gap);
}
.section:first-child { margin-top: 0; }

.section-narrow > p,
.section-narrow > ul,
.section-narrow > ol {
  max-width: var(--prose-max);
}

/* 页眉(品牌行,首页与内页共用) */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.02em;
}
/* 字标「Aquora沐汐」:拉丁走 Cormorant 意大利体,汉字按字回落到宋体;
 * font-synthesis: none 让没有意大利体的宋体保持正体,不被合成斜体。 */
.brand > span {
  font-family: "Aquora Cormorant", "Aquora Serif SC", "Cormorant Garamond", "Songti SC", "Noto Serif SC", Georgia, serif;
  font-style: italic;
  font-synthesis: none;
  line-height: 1;
}
.brand:hover { opacity: 0.82; color: var(--text-main); }
.brand-icon { flex-shrink: 0; width: 28px; height: 28px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text-main); }

/* ============================================================
 * Hero
 * ============================================================ */

.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.hero .eyebrow { margin-bottom: 18px; }

.hero h1 {
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.15;
  margin: 0 auto 22px;
  max-width: 14em;
}

.hero-sub {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 24em;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 36px;
}

.hero-fineprint {
  margin: 20px auto 0;
  font-size: 13px;
  color: var(--text-faint);
  max-width: 28em;
}

/* 品牌徽标舞台(可选,首页用):柔和光晕 */
.emoji-stage {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
}
.emoji-stage::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--aquora-green);
  filter: blur(30px);
  opacity: 0.32;
}
.emoji-stage > * { position: relative; }

/* ============================================================
 * 卡片
 * ============================================================ */

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card + .card { margin-top: 16px; }
.card--strong { background: var(--card-bg-strong); }
.card > :last-child { margin-bottom: 0; }

.card-eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.card h3 { margin-bottom: 8px; }

/* 引言(温柔的一句话) */
.quote {
  font-size: clamp(18px, 2.6vw, 21px);
  line-height: 1.7;
  color: var(--text-title);
  text-align: center;
  max-width: 22em;
  margin: 0 auto;
  text-wrap: balance;
}
.quote::before { content: "「"; color: var(--text-faint); }
.quote::after  { content: "」"; color: var(--text-faint); }

/* ============================================================
 * 16 型网格
 * ============================================================ */

.grid-16 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.grid-16 li { max-width: none; margin: 0; }

.grid-16 a,
.grid-16 .cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 118px;
  padding: 16px 10px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.grid-16 a:hover,
.grid-16 a:focus-visible {
  transform: translateY(-2px);
  background: var(--card-bg-strong);
  border-color: rgba(var(--card-border-rgb), 0.32);
  color: var(--text-main);
}

.grid-16 .emoji {
  font-size: 28px;
  line-height: 1;
}

.grid-16 .name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-title);
}

.grid-16 .code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

/* 四轴说明(两两一组) */
.axes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}
.axes li {
  max-width: none;
  padding: 16px 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.6;
}
.axes .axis-name {
  display: block;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 4px;
}

/* ============================================================
 * 按钮
 * ============================================================ */

.btn,
.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

/* 主按钮:「前往 App Store」——全站唯一的商店入口,只是链接,不带任何价格语义 */
.btn-store {
  background: var(--aquora-green);
  color: var(--aquora-navy);
  box-shadow: 0 8px 24px rgba(97, 168, 138, 0.22);
}
.btn-store:hover,
.btn-store:focus-visible {
  background: var(--aquora-green-light);
  color: var(--aquora-navy);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(97, 168, 138, 0.30);
}
.btn-store:active { transform: translateY(0); }
.btn-store svg { width: 18px; height: 18px; }

/* 次级按钮:描边 */
.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(var(--card-border-rgb), 0.35);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--card-bg);
  border-color: rgba(var(--card-border-rgb), 0.6);
  color: var(--text-main);
}

/* CTA 面板(内页尾部) */
.cta {
  position: relative;
  text-align: center;
  margin-top: var(--section-gap);
  padding: 44px 28px 36px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 60%;
  background: radial-gradient(ellipse 50% 60% at 50% 100%,
    rgba(97, 168, 138, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { margin-bottom: 10px; }
.cta p { margin: 0 auto; }
.cta .btn-store { margin-top: 26px; }
.cta-fineprint {
  margin-top: 18px !important;
  font-size: 13px;
  color: var(--text-faint);
}

/* ============================================================
 * 法律页 / 支持页:长文排版
 * ============================================================ */

.legal {
  --prose-max: 40rem;
}
.legal h1 { margin-bottom: 8px; }
.legal .updated {
  display: block;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 48px;
}
.legal h2 {
  margin-top: 48px;
  padding-top: 8px;
  font-size: 21px;
}
.legal h3 {
  margin-top: 28px;
  font-size: 17px;
  color: var(--aquora-green-light);
}
.legal p,
.legal li { font-size: 16px; line-height: 1.85; }
.legal ul,
.legal ol { margin: 10px 0 16px; }
.legal a { text-decoration: underline; text-decoration-color: var(--text-faint); }
.legal a:hover { text-decoration-color: currentColor; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 16px 0 24px;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--card-border);
}
.legal th { color: var(--text-title); font-weight: 600; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 目录(可选) */
.toc {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  font-size: 14.5px;
  columns: 2;
  column-gap: 24px;
}
.toc li { break-inside: avoid; margin: 0; padding: 4px 0; max-width: none; }
.toc a { color: var(--text-secondary); }
.toc a:hover { color: var(--text-main); }

/* 常见问题(支持页) */
.faq details {
  border-top: 1px solid var(--card-border);
  padding: 18px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--card-border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text-title);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--text-faint);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--text-secondary); font-size: 15.5px; }

/* 联系方式块 */
.contact {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}
.contact .label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.contact a { color: var(--text-title); font-weight: 600; }

/* ============================================================
 * 页脚:备案区,细字居中
 * (人格页在 cn 模式下由 archetype.html 内联同名规则;两处请同步改)
 * ============================================================ */

.footer-icp {
  margin-top: var(--section-gap);
  padding-top: 28px;
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
  /* 备案号要能读清:比 --text-faint 略亮 */
  color: rgba(97, 168, 138, 0.62);
}

.footer-icp-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-icp-nav a { color: var(--text-secondary); }
.footer-icp-nav a:hover { color: var(--text-main); }
.footer-icp-nav span { color: var(--text-faint); }

.footer-icp-brand {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  max-width: none;
}

.footer-icp-line {
  max-width: none;
  margin: 0;
}
.footer-icp-line a { color: inherit; }
.footer-icp-line a:hover { color: var(--text-secondary); }

.footer-icp-psb a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer-icp-psb img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-icp-contact { margin-top: 6px; }

/* ============================================================
 * 响应式:600px 断点
 * ============================================================ */

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --section-gap: 64px;
    --radius: 18px;
  }

  body { font-size: 16px; line-height: 1.75; }

  .page { padding: 28px var(--gutter) 48px; }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 44px;
  }

  .hero { padding-top: 8px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn,
  .hero-actions .btn-store { width: 100%; }

  .card { padding: 22px 18px; }

  .grid-16 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid-16 a,
  .grid-16 .cell { min-height: 104px; }

  .axes { grid-template-columns: 1fr; }

  .cta { padding: 36px 20px 30px; }

  .toc { columns: 1; }

  .legal table { font-size: 13.5px; }
}

/* ============================================================
 * 减少动效
 * ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .grid-16 a:hover,
  .btn-store:hover { transform: none; }
}
