/* 畅信官网 · 样式 */
:root {
  --green: #07c160;
  --green-dark: #06ad56;
  --green-soft: #e9f9ef;
  --ink: #101418;
  --ink-2: #4b5563;
  --ink-3: #8b929c;
  --line: #eaedf0;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 20, 24, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: 0.2px; }
.brand svg { width: 34px; height: 34px; }
.topnav { display: flex; gap: 22px; margin-left: 8px; color: var(--ink-2); font-size: 14px; }
.topnav a { padding: 6px 2px; border-radius: 6px; }
.topnav a:hover { color: var(--ink); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(7, 193, 96, 0.24); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #d7dbe0; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.menu-toggle { display: none; }

/* HERO */
.hero { padding: 64px 0 40px; background:
  radial-gradient(1200px 420px at 78% -10%, #eaf9f0 0%, rgba(234, 249, 240, 0) 62%),
  linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.badge-line { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--green-soft); color: #067a43; font-size: 13px; font-weight: 600; }
.hero h1 { font-size: 46px; line-height: 1.18; margin: 18px 0 14px; letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 26px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; color: var(--ink-3); font-size: 13px; }
.hero-meta b { color: var(--ink-2); font-weight: 600; }
.download-note { margin-top: 11px; font-size: 12.5px; color: var(--ink-3); }

.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  width: 300px; aspect-ratio: 390 / 844; border-radius: 42px; background: #0b0d10;
  padding: 10px; box-shadow: 0 30px 70px rgba(16, 20, 24, 0.22), inset 0 0 0 2px #22262b;
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 106px; height: 24px; background: #0b0d10; border-radius: 0 0 16px 16px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; position: relative; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 14px; font-size: 13px; color: var(--ink-2); border: 1px solid var(--line);
}
.float-card b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.float-card.c1 { left: -18px; top: 84px; }
.float-card.c2 { right: -22px; bottom: 92px; }
.float-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 7px; }

/* 数据条 */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px 0; }
.stat { text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 24px; letter-spacing: -0.3px; }
.stat span { font-size: 13px; color: var(--ink-3); }

/* 区块 */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: 32px; margin: 0 0 10px; letter-spacing: -0.4px; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--green-soft); color: #067a43;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* 截图 */
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-thumb { background: #dfe3e7; border-radius: 3px; }
.shot { flex: 0 0 auto; width: 232px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: #fff; box-shadow: 0 10px 24px rgba(16,20,24,.06); scroll-snap-align: start; }
.shot img { width: 100%; height: auto; }
.shot-cap { padding: 10px 14px 12px; font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; }
.shot-cap b { color: var(--ink); }

/* 安装步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step-num { width: 30px; height: 30px; border-radius: 9px; background: var(--green); color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* 下载区 */
.download-card { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: linear-gradient(135deg, #0d1a13 0%, #10331f 60%, #0b3d23 100%); color: #fff;
  border-radius: 22px; padding: 40px; position: relative; overflow: hidden; }
.download-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(7, 193, 96, 0.25); filter: blur(10px); }
.download-card h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.3px; }
.download-card p { margin: 0 0 20px; color: rgba(255,255,255,.78); font-size: 14.5px; }
.download-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qr-card { background: #fff; border-radius: 14px; padding: 10px; text-align: center; width: 148px; }
.qr-card img { border-radius: 8px; }
.qr-card span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 15px; display: flex;
  justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; }

/* 页脚 */
.footer { border-top: 1px solid var(--line); padding: 34px 0 44px; background: #fff; }
.footer-inner { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--ink); }

/* 移动端 */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: 34px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .phone-stage { margin-top: 8px; }
  .float-card.c1 { left: -6px; }
  .float-card.c2 { right: -6px; }
  .download-card { grid-template-columns: 1fr; padding: 28px; }
  .qr-card { margin: 0 auto; }
}
@media (max-width: 620px) {
  .topnav { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar-inner { gap: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .stat:nth-child(2) { border-right: 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .hero h1 { font-size: 30px; }
  .phone { width: 252px; }
  .float-card { display: none; }
  .shot { width: 200px; }
}

/* 移动端菜单 */
.mobile-menu { display: none; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.mobile-menu a:last-child { border-bottom: 0; }

/* 全站首推：邀请活动横幅 */
.invite-banner { background: linear-gradient(120deg, #ff7a3d, #ff4d4f 55%, #e93b8b); color: #fff; }
.invite-banner-inner { max-width: 1080px; margin: 0 auto; padding: 26px 20px; text-align: center; }
.invite-banner-tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 10px;
  background: rgba(255,255,255,.22); letter-spacing: 1px; }
.invite-banner-title { font-size: 26px; font-weight: 700; margin: 10px 0 6px; }
.invite-banner-title em { font-style: normal; font-size: 34px; color: #fff3b0; }
.invite-banner-sub { font-size: 13px; opacity: .92; line-height: 1.7; }
.invite-banner-actions { margin-top: 16px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.invite-banner-actions .btn { background: #fff; color: #e93b3b; border: 0; }
.invite-banner-actions .btn-ghost { background: rgba(255,255,255,.16); color: #fff; }


/* iOS 安装入口 */
.ios-entry { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); }
.ios-entry .btn { width: 100%; justify-content: center; }
.ios-note { margin: 10px 0 0; font-size: 12.5px; color: rgba(255,255,255,.65); line-height: 1.7; }

.footer-icp { font-size: 12.5px; color: #9aa0a6; margin-top: 6px; }
.footer-icp a { color: #9aa0a6; text-decoration: none; }
.footer-icp a:hover { color: #07c160; }
