:root {
  --bg: #f4f2ee;
  --card: #fff;
  --text: #1a1a1a;
  --muted: #4a4a4a;
  --accent: #0d6b4d;
  --accent-hover: #0a5640;
  --border: #e0dcd4;
  --maxw: 880px;
  /* 与 iOS App 图标 mask 圆角比例一致（1024 图标约 22.37%） */
  --app-icon-radius: 22.37%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-hover); }
header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.brand a { color: inherit; text-decoration: none; }
.brand a:hover { color: var(--accent); text-decoration: none; }
.brand span { color: var(--muted); font-weight: 500; font-size: 0.82rem; }
nav { display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: 820px; justify-content: flex-end; }
nav a {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}
nav a:hover { color: var(--accent); text-decoration: none; }
nav a.is-active { color: var(--accent); font-weight: 600; }
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 20px 72px;
}
main.main--wide { max-width: none; padding-left: 0; padding-right: 0; padding-top: 0; }
article.page,
section.page-block {
  margin-bottom: 0;
  padding: 28px 26px 32px;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 28px rgba(0,0,0,.05);
}
h1 {
  font-size: 1.85rem;
  margin: 0 0 14px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.28rem;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  color: #0f3d2e;
}
h3 {
  font-size: 1.05rem;
  margin: 22px 0 10px;
  color: #222;
}
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.06rem; color: var(--muted); }
ul, ol { margin: 0 0 14px; padding-left: 1.35em; }
li { margin-bottom: 8px; }
dl { margin: 0; }
dt {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 14px;
  font-weight: 600;
}
dt:first-child { margin-top: 0; }
dd { margin: 6px 0 0; font-size: 1rem; }
.grid-2 {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
.card-lite {
  padding: 16px 18px;
  background: #f8faf8;
  border-radius: 10px;
  border: 1px solid #e5ebe7;
}
.note {
  margin-top: 18px;
  padding: 14px 16px;
  background: #eef6f2;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  border-left: 4px solid var(--accent);
}
.home-hero {
  text-align: center;
  padding: 48px 24px 40px;
}
.home-hero h1 { font-size: 1.75rem; }
.home-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 520px) {
  .home-links { grid-template-columns: 1fr 1fr; }
}
.home-links a {
  display: block;
  padding: 14px 16px;
  background: #f8faf8;
  border: 1px solid #e5ebe7;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.home-links a:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(13, 107, 77, 0.12);
  color: var(--accent);
  text-decoration: none;
}

/* 首页：全屏 App 下载推荐（浅色） */
body.page-home {
  background: #fff;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--text);
}
.brand__home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}
.brand__logo {
  width: 24px;
  height: 24px;
  aspect-ratio: 1;
  border-radius: var(--app-icon-radius);
  object-fit: cover;
  flex-shrink: 0;
}
body.page-home main.home-main {
  flex: 1 1 auto;
  display: flex;
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 0;
  background: linear-gradient(180deg, #fff 0%, #f7f9f8 55%, #f0f4f2 100%);
}
.download-hero--fullscreen {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(20px, 5vw, 40px) clamp(20px, 5vw, 40px);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.download-hero__logo {
  width: min(45.33vmin, 48vw, 32vh, 267px);
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  margin-bottom: clamp(16px, 3vh, 28px);
  border-radius: var(--app-icon-radius);
  box-shadow: 0 8px 32px rgba(13, 107, 77, 0.1);
}
.download-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
}
.download-hero__app-name {
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.download-hero__tagline {
  font-size: clamp(1rem, 3.2vw, 1.35rem);
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 18px;
}
.download-store-btn {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  background: #1a1a1a;
  color: #fff !important;
  border-radius: 14px;
  font-size: clamp(1rem, 2.8vw, 1.12rem);
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.download-store-btn:hover {
  transform: translateY(-2px);
  background: #000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  color: #fff !important;
  text-decoration: none !important;
}
.download-store-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
body.page-home .download-hero__meta {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
body.page-home .download-hero__meta a {
  color: var(--accent);
  font-weight: 500;
}
body.page-home .download-hero__meta a:hover {
  color: var(--accent-hover);
}
.footer--home.site-bottom {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 12px max(14px, env(safe-area-inset-bottom));
  margin-top: 0;
  flex: 0 0 auto;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.03);
}
.footer-inner--home {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}
.brand--footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.brand--footer .brand__home,
.brand--footer .brand__home:hover {
  color: var(--text);
  text-decoration: none;
}
.brand--footer .brand__text {
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
}
.brand--footer .brand__domain {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.site-bottom__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 0 2px;
  line-height: 1.35;
}
.site-bottom__nav a {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
  text-decoration: none;
  padding: 2px 0;
  border-radius: 4px;
  transition: color 0.15s;
}
.site-bottom__nav a:hover {
  color: var(--accent);
  text-decoration: none;
}
.site-bottom__nav a.is-active {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.footer__copyright {
  margin: 0;
  font-size: 0.7rem;
  color: #888;
  line-height: 1.45;
}
.footer__copyright a {
  color: var(--muted);
}
.footer__copyright a:hover {
  color: var(--accent);
}
.footer-beian-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 8px;
  font-size: 0.68rem;
  line-height: 1.35;
}
.footer-beian-icp {
  color: #888;
  text-decoration: none;
}
.footer-beian-icp:hover {
  color: var(--accent);
  text-decoration: none;
}
.footer-beian-gongan a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #888;
  text-decoration: none;
}
.footer-beian-gongan a:hover {
  color: var(--accent);
  text-decoration: none;
}
.footer-beian-gongan img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}
body.page-home .download-hero--fullscreen {
  min-height: 100%;
}

/* 手机端：压缩底部、主内容区占比更大 */
@media (max-width: 640px) {
  .download-hero--fullscreen {
    padding: 12px 14px 6px;
    justify-content: center;
  }
  .download-hero__logo {
    width: min(42vmin, 44vw, 36vh, 240px);
    margin-bottom: 12px;
  }
  .download-hero__app-name {
    font-size: clamp(1.65rem, 7vw, 2rem);
  }
  .download-hero__tagline {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }
  body.page-home .download-hero__meta {
    margin-top: 14px;
    font-size: 0.78rem;
  }
  .footer--home.site-bottom {
    padding: 8px 6px max(6px, env(safe-area-inset-bottom));
  }
  /* 与主区重复，手机端隐藏底部品牌行 */
  .brand--footer {
    display: none;
  }
  .site-bottom__nav {
    gap: 3px 7px;
    margin-bottom: 5px;
    line-height: 1.25;
  }
  .site-bottom__nav a {
    font-size: 0.62rem;
    padding: 0;
  }
  .footer-beian-row {
    gap: 4px 8px;
    margin-bottom: 4px;
    font-size: 0.58rem;
  }
  .footer-beian-gongan a {
    gap: 4px;
  }
  .footer-beian-gongan img {
    width: 12px;
    height: 12px;
  }
  .footer__copyright {
    font-size: 0.55rem;
    line-height: 1.35;
  }
}

/* 手机内置浏览器：引导在系统浏览器打开 */
.open-browser-guide {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px max(20vh, 100px);
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.open-browser-guide[hidden] {
  display: none !important;
}
/* 右上角弧线：指向微信 ··· 菜单位置，固定较小尺寸避免全屏拉伸过大 */
.open-browser-guide__arrow-layer {
  position: fixed;
  top: max(4px, env(safe-area-inset-top));
  right: max(6px, env(safe-area-inset-right));
  width: min(42vw, 168px);
  height: min(36vh, 200px);
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.open-browser-guide__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}
.open-browser-guide__title {
  margin: 0;
  padding: 16px 20px;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #0a5640 100%);
}
.open-browser-guide__steps {
  margin: 0;
  padding: 18px 20px 20px 36px;
  list-style: none;
  counter-reset: guide-step;
}
.open-browser-guide__steps li {
  position: relative;
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  counter-increment: guide-step;
}
.open-browser-guide__steps li:last-child {
  margin-bottom: 0;
}
.open-browser-guide__steps li::before {
  content: counter(guide-step);
  position: absolute;
  left: -28px;
  top: 2px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}
.open-browser-guide__steps strong {
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

footer {
  padding: 32px 20px 48px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.footer-inner p { margin: 6px 0; }
.footer-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

/* Coverflow carousel */
.hero-coverflow {
  position: relative;
  width: 100%;
  background: linear-gradient(165deg, #fff 0%, #eef2ef 45%, #e8ebe6 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-coverflow__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(18%, 140px);
  z-index: 4;
  pointer-events: none;
}
.hero-coverflow__edge--l {
  left: 0;
  background: linear-gradient(90deg, rgba(244, 242, 238, 1) 0%, rgba(244, 242, 238, 0.92) 35%, transparent 100%);
}
.hero-coverflow__edge--r {
  right: 0;
  background: linear-gradient(270deg, rgba(244, 242, 238, 1) 0%, rgba(244, 242, 238, 0.92) 35%, transparent 100%);
}
.hero-coverflow__stage {
  position: relative;
  width: 100%;
  height: min(72vw, 560px);
  max-height: 78vh;
  margin: 0 auto;
  perspective: 1600px;
  perspective-origin: 50% 42%;
}
@media (min-width: 900px) {
  .hero-coverflow__stage { height: 520px; }
}
.hero-coverflow__slide {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transform-origin: center center;
  will-change: transform, filter, opacity;
  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s ease,
    opacity 0.75s ease;
}
.hero-coverflow__slide img {
  display: block;
  height: min(64vw, 500px);
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: contain;
  border-radius: 18px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}
@media (min-width: 640px) {
  .hero-coverflow__slide img {
    max-width: 300px;
    height: 500px;
  }
}
@media (min-width: 900px) {
  .hero-coverflow__slide img {
    max-width: 320px;
    height: 520px;
  }
}
.hero-coverflow__caption {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 18px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  position: relative;
  z-index: 5;
}
.hero-coverflow__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 22px;
  position: relative;
  z-index: 5;
}
.hero-coverflow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #c5ccc6;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}
.hero-coverflow__dot[aria-current="true"] {
  background: var(--accent);
  transform: scale(1.25);
}
.hero-coverflow__slide:focus-visible,
.hero-coverflow__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-coverflow__slide { transition: none; }
}

/* Privacy policy page */
article.policy {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 26px 22px 32px;
  box-shadow: 0 6px 28px rgba(0,0,0,.05);
}
article.policy .policy-h1 {
  font-size: 1.35rem;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  color: #0f3d2e;
}
article.policy .policy-h2 {
  font-size: 1.15rem;
  margin: 28px 0 14px;
  color: #0f3d2e;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
article.policy .policy-h2:first-of-type { margin-top: 0; }
article.policy .policy-h3 {
  font-size: 1.02rem;
  margin: 20px 0 10px;
  color: #222;
}
article.policy .policy-h4 {
  font-size: 0.98rem;
  margin: 16px 0 8px;
  color: #333;
}
article.policy p {
  margin: 0 0 12px;
  text-align: justify;
  word-break: break-word;
}
main.main--policy { max-width: 800px; }
