:root {
  --pink: #f34f88;
  --pink-ink: #d6336f;
  --pink-deep: #b8285c;
  --blush: #ffe8f0;
  --cream: #fffdf9;
  --ink: #38252a;
  --body: #5b4249;
  --muted: #806873;
  --line: #f0e3df;
  --dash: #ecd9d9;
  --shadow: 0 24px 48px -24px rgba(150, 60, 90, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pink-ink); text-decoration: none; }
a:hover { color: var(--pink-deep); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; }
p, li { text-wrap: pretty; }
h2 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: .01em; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* 顶栏 */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 253, 249, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand strong { display: block; font-size: 17px; line-height: 1.25; }
.brand small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { color: var(--ink); font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: var(--pink-ink); }

/* 通用 */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #a75b76; font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.eyebrow::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, transparent 32%, var(--pink) 36%); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 600; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn-primary { color: #fff; background: var(--pink-ink); box-shadow: 0 12px 24px -12px rgba(214, 51, 111, .9); }
.btn-primary:hover { color: #fff; background: var(--pink-deep); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: #fff; border: 1px solid var(--dash); }
.btn-ghost:hover { color: var(--pink-ink); border-color: #f3bcd0; }
.note { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--muted); font-size: 14px; }
.note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #f5b82e; box-shadow: 0 0 0 4px rgba(245, 184, 46, .2); }
.section { padding: 104px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* 首屏：拼豆板圆点背景 */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background: linear-gradient(180deg, #ffe9f1, var(--cream) 92%); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(214, 51, 111, .14) 1.6px, transparent 2.2px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(#000 20%, transparent 85%); mask-image: linear-gradient(#000 20%, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.hero h1 { margin: 20px 0 22px; font-size: clamp(44px, 6.4vw, 76px); font-weight: 800; line-height: 1.12; letter-spacing: .02em; }
.hero h1 mark { color: inherit; background: linear-gradient(transparent 58%, #ffc2d7 0); }
.lead { max-width: 30em; color: var(--body); font-size: 18px; }
.nowrap { white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-art { position: relative; }
.hero-img { border: 8px solid #fff; border-radius: 34px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.sticker { position: absolute; top: 7%; left: 6%; width: 34%; transform: rotate(-7deg); filter: drop-shadow(0 6px 10px rgba(110, 40, 64, .25)); }
.bead { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, transparent 26%, var(--c) 30%); box-shadow: inset 0 -4px rgba(0, 0, 0, .1); animation: float 6s ease-in-out infinite; }
.b1 { --c: #ffc83d; top: -12px; left: 18%; }
.b2 { --c: #56c08a; left: -14px; bottom: 22%; animation-delay: -2s; }
.b3 { --c: #5cb0ee; top: 24%; right: -12px; width: 24px; height: 24px; animation-delay: -4s; }
.b4 { --c: var(--pink); right: 14%; bottom: -16px; width: 38px; height: 38px; animation-delay: -1s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 16px 36px -28px rgba(150, 60, 90, .5); }
.stats div { display: flex; flex-direction: column-reverse; align-items: center; padding: 22px 12px; text-align: center; }
.stats div + div { border-left: 1px dashed var(--dash); }
.stats dt { color: var(--muted); font-size: 14px; }
.stats dd { color: var(--pink-ink); font-size: 28px; font-weight: 800; line-height: 1.3; }

/* 产品 */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.phones { display: flex; justify-content: center; gap: 24px; padding-bottom: 48px; }
.phone { width: min(248px, 46%); padding: 9px; border-radius: 42px; background: #3a272d; box-shadow: var(--shadow); }
.phone img { border-radius: 33px; }
.phone + .phone { transform: translateY(48px); }
.product-title { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.product-title img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 10px 20px -10px rgba(150, 60, 90, .6); }
.product-title h2 { margin: 0; }
.product-title p { color: var(--muted); font-size: 17px; }
.desc { margin-top: 24px; color: var(--body); font-size: 17px; }
.checks { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 12px; }
.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6336f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* 功能：插画取自 App 的 2×2 透明图集 */
.features { background: #fff; border-block: 1px solid var(--line); }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tool { display: flex; align-items: center; gap: 16px; padding: 28px; border-radius: 28px; background: var(--bg); }
.tool > div { flex: 1; }
.tool h3 { font-size: 22px; font-weight: 800; }
.tool p { margin-top: 8px; color: var(--body); font-size: 15px; }
.art { flex: 0 0 clamp(96px, 32%, 160px); aspect-ratio: 1; background: url(assets/tools.webp) no-repeat 0 0 / 200% 200%; }
.t1 { --bg: #ffe6ee; }
.t2 { --bg: #ffeedd; } .t2 .art { background-position: 100% 0; }
.t3 { --bg: #f1e9ff; } .t3 .art { background-position: 0 100%; }
.t4 { --bg: #fff2d2; } .t4 .art { background-position: 100% 100%; }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0 0; padding: 0; list-style: none; }
.extras li { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--cream); }
.extras svg { width: 48px; height: 48px; padding: 11px; border-radius: 16px; color: var(--pink-ink); background: var(--blush); }
.extras h3 { margin-top: 18px; font-size: 18px; }
.extras p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* 关于 */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px 64px; align-items: center; }
.prose h2 ~ p { margin-top: 16px; color: var(--body); font-size: 17px; }
.values { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.values li { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--muted); font-size: 15px; }
.values strong { display: block; color: var(--ink); font-size: 17px; }
.facts { padding: 10px 28px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 16px 36px -28px rgba(150, 60, 90, .5); }
.facts div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 16px 0; }
.facts div + div { border-top: 1px dashed var(--dash); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }

/* 联系 */
.contact { padding: 0 0 88px; }
.contact-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 56px; align-items: center; padding: 56px; border-radius: 36px; color: #e9d9dc; background: #3a272d; }
.contact-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, .07) 1.6px, transparent 2.2px) 0 0 / 24px 24px; }
.contact-card > * { position: relative; }
.contact-card .eyebrow { color: #ffb0cb; }
.contact-card h2 { color: #fff; }
.contact-card h2 + p { margin-top: 14px; }
.mail { justify-self: start; padding: 14px 26px; border-radius: 999px; color: #fff; background: var(--pink-ink); font-size: clamp(17px, 2.2vw, 24px); font-weight: 800; }
.mail:hover { color: #fff; background: var(--pink-deep); }
.contact-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 12px 0 0; padding: 0; list-style: none; }
.contact-list li { padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; background: rgba(255, 255, 255, .05); font-size: 15px; }
.contact-list strong { display: block; margin-bottom: 4px; color: #fff; font-size: 16px; }

/* 页脚：广东省要求首页底部居中悬挂主体备案号并链接工信部 */
.site-footer { padding: 36px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a, .legal a { color: var(--muted); }
.site-footer nav a:hover, .legal a:hover { color: var(--pink-ink); }
.legal { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--dash); text-align: center; line-height: 2; }

/* 协议页 */
.doc { padding: 56px 0 88px; }
.doc article { max-width: 800px; margin-inline: auto; }
.doc article > * + * { margin-top: 14px; }
.doc article > h2 { margin-top: 48px; font-size: 22px; }
.doc article > h3 { margin-top: 28px; font-size: 17px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.doc-meta { color: var(--muted); font-size: 14px; }
.doc p, .doc li, .doc td { color: #4b353a; }
.doc strong { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.5em; }
.doc li + li { margin-top: 8px; }
.intro { padding: 22px 26px; border: 1px solid #f7d5e1; border-radius: 20px; background: #fff5f8; }
.doc article > .intro { margin-top: 28px; }
.intro p + p { margin-top: 10px; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.doc th, .doc td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { background: #fff6f9; color: var(--ink); white-space: nowrap; }
.doc tr:last-child td { border-bottom: 0; }

@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .hero { padding: 44px 0 56px; }
  .hero-grid, .product-grid, .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { width: 100%; max-width: 600px; margin-inline: auto; }
  .product-copy { order: -1; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-list, .extras, .values { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .site-header .wrap { height: 60px; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 14px; }
  .brand img { width: 36px; height: 36px; border-radius: 10px; }
  .brand strong { font-size: 16px; }
  .lead { font-size: 16px; }
  .btn { flex: 1; padding: 0 18px; }
  .stats { margin-top: 48px; }
  .stats div { padding: 16px 6px; }
  .stats dd { font-size: 19px; }
  .stats dt { font-size: 13px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool { padding: 22px; border-radius: 24px; }
  .tool h3 { font-size: 20px; }
  .extras li { display: grid; grid-template-columns: 48px 1fr; gap: 2px 16px; padding: 22px; }
  .extras svg { grid-row: span 2; }
  .extras h3 { margin-top: 0; }
  .phone { padding: 7px; border-radius: 32px; }
  .phone img { border-radius: 26px; }
  .facts { padding: 6px 20px; }
  .contact-card { padding: 36px 22px; border-radius: 28px; }
  .doc { padding-top: 36px; }
  .intro { padding: 18px 20px; }
  .doc th, .doc td { padding: 10px 12px; }
  .doc a { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bead { animation: none; }
}
