/* 向光里官网样式：与 App 一致的品牌色，白底、细描边、柔和阴影 */
:root {
  --brand: #f56614;
  --brand-dark: #d9530a;
  --brand-soft: #fff4ec;
  --brand-line: rgba(245, 102, 20, 0.22);
  --text: #242c27;
  --text-2: #69736c;
  --text-3: #959d97;
  --line: rgba(36, 44, 39, 0.09);
  --line-strong: rgba(36, 44, 39, 0.14);
  --bg-soft: #faf8f5;
  --radius: 20px;
  --radius-sm: 14px;
  --header-h: 64px;
  --shadow-sm: 0 1px 2px rgba(36, 44, 39, 0.04), 0 2px 8px -4px rgba(36, 44, 39, 0.06);
  --shadow-md: 0 1px 2px rgba(36, 44, 39, 0.04), 0 18px 40px -22px rgba(36, 44, 39, 0.22);
  --shadow-brand: 0 1px 1px rgba(217, 83, 10, 0.25), 0 10px 24px -10px rgba(245, 102, 20, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: 0.01em; }
p { margin: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* 顶栏 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(36, 44, 39, 0.35); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--text-2); font-size: 15px; white-space: nowrap; padding: 6px 12px; border-radius: 999px; transition: color 0.2s, background-color 0.2s; }
.nav a:hover { color: var(--text); background: rgba(36, 44, 39, 0.05); text-decoration: none; }

/* 首屏 */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* 顶部淡入，避免光晕在首屏上沿被截出一条直边 */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 160px);
  mask-image: linear-gradient(180deg, transparent 0, #000 160px);
}
/* 极淡的点阵纹理，向四周淡出 */
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(36, 44, 39, 0.10) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 62% 42%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 62% 42%, #000 10%, transparent 72%);
  opacity: 0.55;
}
/* 柔和品牌色光晕（位于小光身后） */
.hero-bg::after {
  content: ""; position: absolute;
  width: 760px; height: 760px; right: -120px; top: -140px;
  background: radial-gradient(closest-side, rgba(245, 102, 20, 0.13), rgba(255, 184, 92, 0.08) 45%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 10px; margin-bottom: 22px;
  border: 1px solid var(--brand-line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-dark); font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(245, 102, 20, 0.14); }
.hero h1 { font-size: 58px; line-height: 1.18; letter-spacing: 0.01em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { margin-top: 22px; font-size: 18px; line-height: 1.8; color: var(--text-2); max-width: 30em; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 18px 16px; }
.hero-actions .dl-option { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hero-actions .dl-note { padding-left: 4px; }
.hero-mobile { margin-top: 24px; padding: 12px 16px; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); max-width: 34em; }

.hero-visual { display: flex; justify-content: center; }
.hero-figure { position: relative; width: 100%; max-width: 440px; }
/* 小光脚下的柔和投影，让形象落地 */
.hero-figure::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: -10px; height: 26px; z-index: -1;
  background: radial-gradient(closest-side, rgba(150, 90, 30, 0.16), rgba(150, 90, 30, 0));
}
.hero-figure img { width: 100%; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* 按钮 */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 212px; padding: 12px 22px 12px 18px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  font-size: 16px; font-weight: 600; line-height: 1.35; text-align: left;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; border-color: var(--brand-line); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-icon { flex: none; width: 22px; height: 22px; color: var(--brand); }
.btn-text { display: flex; flex-direction: column; min-width: 0; }
.dl-btn-state { font-size: 12.5px; font-weight: 500; color: var(--text-2); letter-spacing: 0.02em; }

/* 主按钮：可下载且是推荐项（或没有推荐项时所有可下载项） */
.btn.is-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn.is-primary .btn-icon, .btn.is-primary .dl-btn-state { color: rgba(255, 255, 255, 0.92); }
.btn.is-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: 0 1px 1px rgba(217, 83, 10, 0.3), 0 14px 28px -12px rgba(245, 102, 20, 0.6); }

/* 即将上线：安静的浅灰虚线态，不可点 */
.btn.is-soon {
  cursor: not-allowed; background: rgba(250, 248, 245, 0.85); color: var(--text-2);
  border: 1px dashed rgba(36, 44, 39, 0.2); box-shadow: none;
}
.btn.is-soon:hover { transform: none; box-shadow: none; border-color: rgba(36, 44, 39, 0.2); }
.btn.is-soon .btn-icon { color: var(--text-3); }
.btn.is-soon .dl-btn-state {
  display: inline-flex; align-items: center; gap: 6px; color: var(--brand-dark);
}
.btn.is-soon .dl-btn-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.75; }

.dl-note { font-size: 13px; color: var(--text-3); }
.dl-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 999px; padding: 0 10px; line-height: 22px; }
.dl-badge[hidden] { display: none; }

/* 区块 */
.section { position: relative; padding: 104px 0; }
.hero + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1136px, calc(100% - 64px)); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.section-title { font-size: 36px; letter-spacing: 0.02em; }
.section-lead { margin-top: 14px; color: var(--text-2); font-size: 17px; }
.section-lead strong { color: var(--text); font-weight: 600; }
.sub-title { font-size: 22px; margin: 72px 0 20px; }
.muted { color: var(--text-3); font-size: 14px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

/* 平台介绍 */
.feature-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.feature-icon {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand); background: linear-gradient(180deg, #fff7f1, #ffeee2);
  box-shadow: inset 0 0 0 1px rgba(245, 102, 20, 0.16);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-no { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--text-2); font-size: 15.5px; }
.feature p + p { margin-top: 12px; }
.feature-wide { grid-column: span 2; background: linear-gradient(160deg, #fff 55%, #fff8f3); }
.plain-list { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; display: grid; gap: 8px; }
.plain-list li { position: relative; padding-left: 18px; }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: 0.7; }

/* 下载 */
.notice { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--brand-line); color: var(--brand-dark); font-size: 14px; }
.notice::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.notice[hidden] { display: none; }
.download-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dl-card { display: flex; flex-direction: column; gap: 22px; padding: 32px; }
.dl-card.is-available:hover { box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.dl-card.is-recommended { border-color: var(--brand-line); box-shadow: 0 0 0 3px rgba(245, 102, 20, 0.06), var(--shadow-sm); }
.dl-card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dl-card-icon { width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: #f5f5f3; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.dl-card-icon svg { width: 22px; height: 22px; }
.dl-card.is-available .dl-card-icon { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px rgba(245, 102, 20, 0.16); }
.dl-card h3 { font-size: 21px; }
.spec { margin: 0; display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 10px 14px; font-size: 15px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.spec dt { color: var(--text-3); }
.spec dd { margin: 0; min-width: 0; }
.spec [hidden] { display: none; }
.sha { font-family: ui-monospace, "SF Mono", Consolas, Menlo, monospace; font-size: 12.5px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
.dl-card-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dl-tip { font-size: 13px; line-height: 1.65; color: var(--text-2); padding-left: 12px; border-left: 2px solid var(--brand-line); }
.dl-tip[hidden] { display: none; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 24px; }
.step-no {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--brand); border: 1px solid var(--brand-line);
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(245, 102, 20, 0.06);
}
.step h4 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--text-2); font-size: 15px; }

.mobile-card { margin-top: 20px; display: flex; gap: 18px; align-items: flex-start; }
.mobile-card h3 { font-size: 19px; margin-bottom: 6px; }
.mobile-card p { color: var(--text-2); }

/* 关于我们 */
.about-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.about-logo { width: 220px; margin: 24px 0 22px; }
.about-text > p { color: var(--text-2); }
.about-text > p + p { margin-top: 12px; }
.values { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.values li { font-size: 15px; display: flex; gap: 12px; align-items: baseline; }
.values span { flex: none; min-width: 6.5em; color: var(--brand-dark); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }
.contact { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 8px 14px; font-size: 15px; }
.contact dt { color: var(--text-3); }
.contact dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.about-visual { position: relative; }
.about-visual::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: 0;
  border-radius: calc(var(--radius) + 4px); border: 1px solid var(--brand-line);
  background: radial-gradient(closest-side at 80% 80%, rgba(245, 102, 20, 0.08), transparent);
}
.about-visual img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 40px 0 44px; font-size: 14px; color: var(--text-3); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; margin-bottom: 4px; }
.footer-brand:hover { text-decoration: none; }
.footer-brand img { width: 24px; height: 24px; border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer-links a, .footer-legal a { color: var(--text-2); }
.footer-links a:hover, .footer-legal a:hover { color: var(--brand); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }

/* 入场动效（JS 加 reveal-ready 后才生效；无 JS 或减少动态效果时内容直接显示） */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-ready .feature-grid > [data-reveal]:nth-child(2), .reveal-ready .steps > [data-reveal]:nth-child(2), .reveal-ready .download-grid > [data-reveal]:nth-child(2) { transition-delay: 0.06s; }
.reveal-ready .feature-grid > [data-reveal]:nth-child(3), .reveal-ready .steps > [data-reveal]:nth-child(3) { transition-delay: 0.12s; }
.reveal-ready .feature:hover { transition-delay: 0s; }

.hero-text > *, .hero-figure { animation: rise 0.8s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 0.05s; }
.hero-text > :nth-child(3) { animation-delay: 0.1s; }
.hero-text > :nth-child(4) { animation-delay: 0.15s; }
.hero-figure { animation-delay: 0.1s; animation-duration: 1s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 平板 */
@media (max-width: 1080px) {
  .hero h1 { font-size: 46px; }
}
@media (max-width: 960px) {
  .container { padding: 0 28px; }
  .hero { padding: 56px 0 80px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 340px; }
  .hero-actions .btn { width: 100%; }
  .hero-bg::after { width: 560px; height: 560px; right: -160px; top: -80px; }
  .section { padding: 84px 0; }
  .section-title { font-size: 31px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-wide { grid-column: span 2; order: 1; }
  .dl-card { padding: 26px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { margin-right: 18px; }
}

/* 手机 */
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .container { padding: 0 20px; }
  .nav { gap: 0; margin-right: -8px; }
  .nav a { font-size: 14px; padding: 6px 9px; }
  .brand { font-size: 17px; }
  .hero { padding: 28px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual { order: -1; }
  .hero-figure { max-width: 210px; }
  .hero-bg::after { width: 420px; height: 420px; right: 50%; margin-right: -210px; top: -110px; }
  .hero-bg::before { -webkit-mask-image: radial-gradient(ellipse 80% 40% at 50% 18%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 80% 40% at 50% 18%, #000 10%, transparent 72%); }
  .hero-text { text-align: left; }
  .eyebrow { margin-bottom: 16px; font-size: 13px; }
  .hero h1 { font-size: 32px; line-height: 1.25; }
  .hero-lead { font-size: 16px; margin-top: 16px; }
  .hero-actions { margin-top: 28px; max-width: none; gap: 14px; }
  .hero-actions .dl-option, .hero-actions .btn { width: 100%; }
  .section { padding: 64px 0; }
  .hero + .section::before { width: calc(100% - 40px); }
  .section-title { font-size: 26px; }
  .section-lead { font-size: 16px; }
  .sub-title { font-size: 20px; margin-top: 52px; }
  .feature-grid, .download-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .feature-wide { grid-column: auto; order: 0; }
  .card, .dl-card { padding: 22px; }
  .feature-top { margin-bottom: 16px; }
  .dl-card-foot, .dl-card .btn { align-self: stretch; }
  .dl-card .btn { width: 100%; }
  .notice { display: flex; align-items: flex-start; }
  .notice::before { margin-top: 0.6em; }
  .about-logo { width: 190px; }
  .about-visual::before { inset: 12px -12px -12px 12px; }
  .about-visual { margin-right: 12px; }
  .values li { flex-direction: column; gap: 0; }
}
