/* 我的+ 官网 · 设计 token 与 App 对齐（lib/theme/tokens.dart） */
:root {
  --brand: #2BC56D;
  --brand-deep: #23AF5E;
  --brand100: #E4F5EA;
  --bg: #F6F6F4;
  --card: #FFFFFF;
  --muted: #EFEFEA;
  --t1: #1F1F1F;
  --t2: #8A8A8A;
  --t3: #B5B5B5;
  --line: rgba(31, 31, 31, 0.07);
  --radius-card: 16px;
  --radius-btn: 22px;
  --shadow-soft: 0 10px 40px rgba(31, 31, 31, 0.08);
  --shadow-phone: 0 24px 64px rgba(31, 31, 31, 0.16);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 246, 244, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.topnav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.topnav a {
  font-size: 14px;
  color: var(--t2);
  transition: color 0.2s;
}

.topnav a:hover { color: var(--t1); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.12s;
}

.btn:hover { background: var(--brand-deep); }
.btn:active { transform: scale(0.98); }

.btn-sm {
  height: 36px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-lg {
  height: 54px;
  padding: 0 34px;
  font-size: 16px;
  box-shadow: 0 12px 28px rgba(43, 197, 109, 0.26);
}

/* 首屏 */
.hero { padding: 72px 0 44px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand100);
  color: #1E9E57;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.22;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.lead {
  font-size: 17px;
  color: var(--t2);
  line-height: 1.9;
  margin-bottom: 28px;
  max-width: 31em;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-note {
  font-size: 13px;
  color: var(--t3);
}

.muted-note {
  font-size: 13px;
  color: var(--t3);
  margin-top: 14px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  transform: translateX(-50%);
  width: min(360px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand100);
  filter: blur(56px);
  z-index: 0;
}

/* 手机壳 */
.phone {
  position: relative;
  z-index: 1;
  width: min(320px, 76vw);
  border: 9px solid #1D1D1F;
  border-radius: 46px;
  background: #1D1D1F;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  flex: none;
  margin: 0;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-sm {
  width: min(276px, 70vw);
  border-width: 8px;
  border-radius: 40px;
}

/* 卖点三连 */
.points { padding: 24px 0 12px; }

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

.point {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 26px 24px;
}

.p-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand100);
  color: var(--brand);
  margin-bottom: 16px;
}

.point h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.point p {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.8;
}

/* 功能分区 */
.feature { padding: 52px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-grid .phone { justify-self: center; }
.feature-grid.rev .feature-copy { order: 2; }
.feature-grid.rev .phone { order: 1; }

.tag {
  display: inline-block;
  background: var(--brand100);
  color: #1E9E57;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.feature h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
  margin-bottom: 14px;
  font-weight: 700;
}

.feature-copy > p {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.9;
  margin-bottom: 20px;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.7;
}

.checks svg {
  flex: none;
  color: var(--brand);
  margin-top: 3px;
}

/* 隐私 */
.privacy { padding: 44px 0; }

.privacy-card {
  background: var(--brand100);
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
}

.lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  color: var(--brand);
  margin-bottom: 18px;
}

.privacy-card h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 12px;
}

.privacy-card p {
  max-width: 540px;
  margin: 0 auto;
  font-size: 15px;
  color: rgba(31, 31, 31, 0.62);
  line-height: 1.9;
}

/* 下载 */
.download { padding: 44px 0; }

.download-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 56px 32px 48px;
  text-align: center;
}

.download-card h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 10px;
}

.download-card > .lead {
  margin: 0 auto 26px;
  font-size: 15px;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0;
  text-align: left;
}

.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.65;
}

.step-num {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand100);
  color: #1E9E57;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* 常见问题 */
.faq { padding: 48px 0 80px; }

.faq-wrap { max-width: 760px; }

.faq h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-size: 16px;
  font-weight: 600;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid var(--t3);
  border-bottom: 1.8px solid var(--t3);
  transform: rotate(45deg);
  transition: transform 0.22s;
}

details[open] summary::after { transform: rotate(225deg); }

details p {
  padding: 0 2px 18px;
  font-size: 15px;
  color: var(--t2);
  line-height: 1.9;
}

/* 页脚 */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--t3);
}

.footer-inner a { transition: color 0.2s; }
.footer-inner a:hover { color: var(--t1); }

/* 隐私政策页 */
.doc-page { padding: 40px 0 80px; }

.doc {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 44px 44px 52px;
}

.doc h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.doc .date {
  font-size: 13px;
  color: var(--t3);
  margin-bottom: 30px;
}

.doc h2 {
  font-size: 17px;
  margin: 28px 0 8px;
}

.doc p {
  font-size: 15px;
  color: #4A4A4A;
  line-height: 1.9;
}

.doc ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.doc li {
  font-size: 15px;
  color: #4A4A4A;
  line-height: 1.9;
  margin: 2px 0;
}

/* 响应式 */
@media (max-width: 880px) {
  .topnav { display: none; }
  .hero { padding: 44px 0 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { margin-top: 8px; }
  .point-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature { padding: 36px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 26px; }
  .feature-grid .feature-copy { order: 0; }
  .feature-grid .phone { order: 1; }
  .phone-sm { width: min(300px, 78vw); }
  .privacy-card { padding: 38px 22px; }
  .download-card { padding: 40px 18px 34px; }
  .steps { grid-template-columns: 1fr; }
  .doc { padding: 32px 22px 40px; }
}

@media (max-width: 560px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .cta-note { text-align: center; }
  .cta-row .btn { width: 100%; }
  .download-card .btn-lg { width: 100%; padding: 0 16px; }
}