/* ===== 练痕 官网 共享样式 ===== */
:root {
  --ink: #0E1525;
  --ink-2: #18233A;
  --bg: #FBFBFD;
  --bg-soft: #F4F6FA;
  --card: #FFFFFF;
  --text: #11151C;
  --muted: #5C6675;
  --faint: #8A93A3;
  --accent: #FF6A2B;
  --accent-2: #FF8C52;
  --accent-soft: #FFF1E9;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 40px rgba(14, 21, 37, .07);
  --shadow-lg: 0 26px 70px rgba(14, 21, 37, .14);
  --maxw: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.nav-inner {
  height: 66px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand .en { color: var(--faint); font-weight: 600; font-size: 12px; letter-spacing: 2px; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: none;
  padding: 12px 22px; border-radius: 999px; transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(255, 106, 43, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 106, 43, .42); }
.btn-ghost { background: var(--bg-soft); color: var(--text); }
.btn-ghost:hover { background: #ECEFF5; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 42px; height: 42px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(255, 106, 43, .22), transparent 60%),
    radial-gradient(900px 600px at 8% 8%, rgba(56, 92, 178, .18), transparent 55%),
    linear-gradient(180deg, #0E1525 0%, #131E33 100%);
  color: #fff;
  padding: 72px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .08); color: #cdd6e6;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; font-weight: 850; margin: 20px 0 8px; letter-spacing: 1px; }
.hero h1 .accent { color: var(--accent-2); }
.hero .tag { font-size: clamp(17px, 2.4vw, 21px); color: #aeb9cd; font-weight: 500; }
.hero p.lead { color: #c5cddd; margin: 20px 0 30px; font-size: 16px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 22px;
  background: rgba(255, 255, 255, .06); padding: 9px 15px; border-radius: 999px;
  font-size: 13px; color: #c7d0e0;
}
.chip b { color: #fff; font-weight: 700; }

/* 手机展示 */
.phone-stage { display: flex; justify-content: center; align-items: center; position: relative; min-height: 520px; }
.phone {
  width: 270px; height: 552px; border-radius: 42px; background: #060A12;
  padding: 12px; box-shadow: 0 40px 90px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .06);
  position: relative; z-index: 2;
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #0E1525;
  position: relative;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; background: #fff; color: var(--text); border-radius: 16px;
  padding: 14px 16px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; z-index: 3;
}
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); font-size: 18px; }
.float-card.fc1 { top: 40px; left: -12px; animation: floaty 5s ease-in-out infinite; }
.float-card.fc2 { bottom: 56px; right: -12px; animation: floaty 5s ease-in-out infinite .8s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 820; margin: 12px 0 14px; letter-spacing: .5px; }
.sec-head p { color: var(--muted); font-size: 16px; }

/* 数据条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -54px; position: relative; z-index: 5; }
.stat {
  background: var(--card); border-radius: var(--radius); padding: 26px 22px; text-align: center;
  box-shadow: var(--shadow);
}
.stat .num { font-size: 30px; font-weight: 850; color: var(--ink); letter-spacing: .5px; }
.stat .num span { color: var(--accent); }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* 功能网格 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature .fic {
  width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
}
.feature h3 { font-size: 18px; font-weight: 750; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* 截图 */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: #d6dce6; border-radius: 8px; }
.shot { flex: 0 0 auto; width: 248px; scroll-snap-align: center; }
.shot .frame {
  width: 248px; height: 506px; border-radius: 36px; background: #060A12; padding: 11px;
  box-shadow: var(--shadow-lg);
}
.shot .frame img { width: 100%; height: 100%; border-radius: 27px; object-fit: cover; }
.shot .cap { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; font-weight: 600; }
.shots-hint { text-align: center; color: var(--faint); font-size: 13px; margin-top: 4px; }

/* 下载 */
.dl-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.dl-card {
  background: var(--ink); color: #fff; border-radius: 28px; padding: 40px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.dl-card::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255, 106, 43, .35), transparent 70%); border-radius: 50%;
}
.dl-card .row { display: flex; align-items: center; gap: 16px; position: relative; z-index: 2; }
.dl-card img { width: 64px; height: 64px; border-radius: 16px; }
.dl-card h3 { font-size: 24px; font-weight: 800; }
.dl-card .sub { color: #aeb9cd; font-size: 14px; margin-top: 2px; }
.dl-meta { display: flex; gap: 26px; margin: 26px 0; position: relative; z-index: 2; flex-wrap: wrap; }
.dl-meta div .k { color: #8b96ab; font-size: 12px; }
.dl-meta div .v { font-size: 17px; font-weight: 700; margin-top: 2px; }
.dl-actions { display: flex; gap: 14px; position: relative; z-index: 2; flex-wrap: wrap; }
.dl-note { color: #8b96ab; font-size: 12.5px; margin-top: 18px; position: relative; z-index: 2; }
.dl-side { text-align: center; }
.dl-side .qr {
  width: 188px; height: 188px; margin: 0 auto 14px; border-radius: 20px; background: #fff;
  display: grid; place-items: center; color: var(--faint); font-size: 13px; box-shadow: var(--shadow);
}
.dl-side h4 { font-size: 17px; font-weight: 750; }
.dl-side p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.req { background: var(--card); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); margin-top: 26px; }
.req h4 { font-size: 15px; font-weight: 750; margin-bottom: 10px; }
.req ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.req li { color: var(--muted); font-size: 14px; padding-left: 20px; position: relative; }
.req li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* 页脚 */
.footer { background: var(--ink); color: #aeb9cd; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer .brand { color: #fff; }
.footer h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: #aeb9cd; font-size: 14px; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .desc { font-size: 14px; margin: 16px 0; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 38px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #7c879b; }

/* 内页（隐私/协议） */
.doc { padding: 70px 0 90px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: 32px; font-weight: 820; margin-bottom: 6px; }
.doc .updated { color: var(--faint); font-size: 13px; margin-bottom: 30px; }
.doc h2 { font-size: 20px; font-weight: 750; margin: 34px 0 12px; }
.doc p, .doc li { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc strong { color: var(--text); }
.doc .back { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; margin-bottom: 24px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .3s var(--ease); z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-stage { min-height: 480px; margin-top: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-card { display: none; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column;
    gap: 0; padding: 8px 0; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 22px; width: 100%; }
  .nav-links .btn { margin: 10px 22px; }
  .nav-toggle { display: block; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .req ul { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
