/* 超级小D 官网:主色蓝 + 紫色点缀;白底大留白,每屏一个主角插画 */
:root {
  --blue: #2563eb;
  --blue-d: #1d4ed8;
  --purple: #7c3aed;
  --grad: linear-gradient(120deg, #2563eb 0%, #6d4aff 60%, #8b5cf6 100%);
  --ink: #111827;
  --ink-2: #4b5563;
  --line: #e5e7eb;
  --bg: #ffffff;
  --tint-blue: #eef5ff;
  --tint-lilac: #f3efff;
  --tint-pink: #fbf1ff;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 40px); }
.lead { color: var(--ink-2); font-size: 18px; margin: 12px 0 0; }

/* 按钮:蓝紫渐变 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; background: var(--grad); border-radius: 999px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(79, 70, 229, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(79, 70, 229, .36); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-sm { padding: 8px 18px; font-size: 14px; box-shadow: none; }
.btn-lg { padding: 16px 34px; font-size: 18px; }
.cta-note { color: var(--ink-2); font-size: 14px; margin: 12px 0 0; }

/* 顶部导航 */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 50%; }
.links { display: flex; gap: 26px; color: var(--ink-2); font-size: 15px; }
.links a:hover { color: var(--blue); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lang { font-size: 14px; color: var(--ink-2); }
.lang:hover { color: var(--blue); }

/* 1 · 首屏 */
.hero { background: radial-gradient(1200px 600px at 85% 30%, #ece7ff 0%, rgba(236,231,255,0) 60%), radial-gradient(900px 500px at 10% 10%, #e7f0ff 0%, rgba(231,240,255,0) 60%); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 56px 0 40px; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 6px; }
.hero .sub { font-size: clamp(19px, 2vw, 24px); color: var(--ink); margin: 18px 0 34px; }
.hero-art img { width: min(440px, 100%); margin: 0 auto; border-radius: 28px; box-shadow: 0 30px 60px rgba(76, 59, 200, .18); }

/* 2 · 一句话演示 */
.demo { padding: 96px 0 72px; text-align: center; }
.win { margin: 40px auto 0; max-width: 680px; text-align: left; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(17, 24, 39, .08); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbff; font-size: 13px; color: var(--ink-2); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e5e7eb; }
.win-bar span { margin-left: 8px; }
.win-body { padding: 22px 22px 8px; min-height: 290px; }
.msg { margin-bottom: 16px; display: flex; }
.msg.me { justify-content: flex-end; }
.msg.me .typing { background: var(--blue); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 16px; font-size: 15px; min-height: 44px; }
.caret { width: 2px; height: 22px; background: var(--blue); margin: 11px 0 0 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.msg.bot { gap: 10px; align-items: flex-start; opacity: 0; transform: translateY(8px); transition: all .35s ease; }
.msg.bot.show { opacity: 1; transform: none; }
.msg.bot img { border-radius: 50%; flex: none; }
.bot-card { background: #f5f7ff; border: 1px solid #e3e8ff; border-radius: 4px 16px 16px 16px; padding: 12px 16px; font-size: 15px; min-width: 260px; }
.bot-title { font-weight: 600; margin-bottom: 6px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 3px 0 3px 28px; position: relative; opacity: 0; transition: opacity .25s; }
.checks li.on { opacity: 1; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 5px; background: var(--grad); color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
.result { margin-top: 8px; color: #059669; font-weight: 700; opacity: 0; transition: opacity .3s; }
.result.on { opacity: 1; }
.win-input { display: flex; justify-content: space-between; align-items: center; margin: 0 16px 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; color: #9ca3af; font-size: 14px; }
.win-input b { color: var(--purple); }

/* 3–6 · 能力屏 */
.feat { padding: 88px 0; }
.tint-blue { background: var(--tint-blue); }
.tint-lilac { background: var(--tint-lilac); }
.tint-pink { background: var(--tint-pink); }
.tint-dark { background: radial-gradient(900px 500px at 20% 20%, #3b1d8f 0%, rgba(59,29,143,0) 60%), #140f2e; color: #f5f3ff; }
.tint-dark p, .tint-dark .feat-txt p { color: #d6d0f5; }
.feat-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feat-in.rev .feat-art { order: 2; }
.feat-art img { border-radius: var(--radius); box-shadow: 0 24px 50px rgba(17, 24, 39, .12); }
.feat-txt h2 { margin: 6px 0 10px; }
.feat-txt p { margin: 0 0 26px; color: var(--ink-2); font-size: 17px; }
.kw { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; color: #fff; background: var(--grad); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #dbe4ff; color: var(--blue-d); }
.tint-dark .chip { background: rgba(255,255,255,.08); border-color: rgba(167,139,250,.45); color: #e9e5ff; }

/* 7 · 玩法卡片墙 */
.wall { padding: 96px 0 72px; text-align: center; overflow: hidden; }
.wall h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rows { margin-top: 40px; display: grid; gap: 16px; }
.row { display: flex; gap: 14px; width: max-content; animation: slide var(--dur, 60s) linear infinite; }
.row.rev { animation-direction: reverse; }
.rows:hover .row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.card { width: 230px; flex: none; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card .cv { aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 34px; color: #fff; }
.card .cv img { width: 100%; height: 100%; object-fit: cover; }
.card .ct { padding: 10px 12px 12px; font-size: 14px; font-weight: 600; line-height: 1.4; height: 52px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card .bd { display: block; font-size: 12px; font-weight: 500; color: var(--purple); padding: 0 12px 10px; }
.g1{background:linear-gradient(135deg,#0ea5e9,#6366f1)}.g2{background:linear-gradient(135deg,#f59e0b,#ef4444)}.g3{background:linear-gradient(135deg,#10b981,#0d9488)}.g4{background:linear-gradient(135deg,#8b5cf6,#ec4899)}.g5{background:linear-gradient(135deg,#64748b,#0f172a)}.g6{background:linear-gradient(135deg,#f97316,#fbbf24)}.g7{background:linear-gradient(135deg,#14b8a6,#3b82f6)}.g8{background:linear-gradient(135deg,#e11d48,#7c3aed)}.g9{background:linear-gradient(135deg,#1f2937,#4b5563)}.g10{background:linear-gradient(135deg,#06b6d4,#8b5cf6)}.g11{background:linear-gradient(135deg,#84cc16,#22c55e)}.g12{background:linear-gradient(135deg,#f43f5e,#f97316)}

/* 8 · 安全感 */
.safe { padding: 96px 0; background: linear-gradient(180deg, #fff, var(--tint-blue)); }
.safe-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.tile { background: #fff; border: 1px solid #e3e8ff; border-radius: 16px; padding: 18px 18px 16px; }
.tile .ic { font-size: 24px; }
.tile b { display: block; margin: 6px 0 2px; font-size: 17px; }
.tile span { color: var(--ink-2); font-size: 14px; }
.safe-art img { border-radius: var(--radius); box-shadow: 0 24px 50px rgba(37, 99, 235, .14); }

/* 9 · 常见问题 */
.faq { padding: 96px 0; }
.faq h2 { text-align: center; }
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--purple); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* 结尾 */
.end { padding: 88px 0 72px; background: radial-gradient(900px 500px at 80% 40%, #ece7ff 0%, rgba(236,231,255,0) 60%), var(--tint-blue); }
.end-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.end h2 { margin-bottom: 30px; }
.qr { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.qr-box { width: 112px; height: 112px; flex: none; border: 2px dashed #b9c6f5; border-radius: 14px; background: #fff; display: grid; place-items: center; text-align: center; font-size: 12px; color: #8a94b8; padding: 8px; }
.qr-img { width: 132px; height: 132px; flex: none; border-radius: 14px; background: #fff; padding: 6px; box-shadow: 0 8px 24px rgba(37, 99, 235, .12); }
.foot-l a[href^="mailto"]:hover { color: var(--blue); }
.qr p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 300px; }
.qr p b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.end-art img { border-radius: var(--radius); }

/* 页脚 */
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--ink-2); }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 6px 0; }
.foot-r { text-align: right; }
.foot-r a { margin-left: 16px; }
.foot-r a:hover { color: var(--blue); }

/* 手机上点下载的提示 */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(17,24,39,.45); display: grid; place-items: end center; padding: 16px; }
.sheet[hidden] { display: none; }
.sheet-card { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 22px; }
.sheet-card p { margin: 0 0 12px; }
.sheet-url { font-weight: 700; color: var(--blue); margin-bottom: 16px; }
.sheet-btns { display: flex; gap: 10px; }
.sheet-btns button { flex: 1; border: 0; border-radius: 999px; padding: 12px; font: inherit; font-weight: 600; cursor: pointer; background: #eef2ff; color: var(--blue-d); }
.sheet-btns button:first-child { background: var(--grad); color: #fff; }

/* CG助手 跳转来的品牌升级弹窗 */
.sheet.up { place-items: center; }
.up-card { text-align: center; padding: 28px 24px 22px; }
.up-card img { margin: 0 auto 10px; border-radius: 50%; }
.up-card h3 { margin: 0 0 8px; font-size: 21px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.up-card p { color: var(--ink-2); font-size: 15px; }
.up-card .up-dl { font-size: 14px; }
.up-card .up-dl a { color: var(--blue); font-weight: 600; }
.sheet-btns .up-go { flex: 1; border-radius: 999px; padding: 12px; font-weight: 600; text-decoration: none; background: var(--grad); color: #fff; }

/* 滚动淡入 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .row { animation: none; }
  html { scroll-behavior: auto; }
}

/* 法律页面 */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: 34px; margin-bottom: 8px; }
.legal .meta { color: var(--ink-2); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; }
.legal p, .legal li { color: #374151; }
.legal .note { background: var(--tint-lilac); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--ink-2); }

/* 响应式 */
@media (max-width: 900px) {
  .links { display: none; }
  .hero-in, .feat-in, .safe-in, .end-in { grid-template-columns: 1fr; gap: 32px; }
  .feat-in.rev .feat-art { order: 0; }
  .hero-in { text-align: center; padding-top: 32px; }
  .hero-art img { width: min(300px, 80%); }
  .feat, .demo, .wall, .safe, .faq, .end { padding: 64px 0; }
  .end-txt { text-align: center; }
  .qr { justify-content: center; }
  .foot-in { flex-direction: column; }
  .foot-r { text-align: left; }
  .foot-r a { margin: 0 16px 0 0; }
}
@media (max-width: 520px) {
  .nav-r .lang { display: none; }
  .grid4 { grid-template-columns: 1fr; }
  .bot-card { min-width: 0; }
  .btn-lg { padding: 14px 24px; font-size: 16px; }
}

/* 手机「发到电脑」 */
.m2pc-title { margin: 0 0 10px; font-size: 18px; }
.m2pc-steps { margin: 0 0 12px; padding-left: 20px; color: #4b5563; line-height: 1.8; font-size: 15px; }
.sheet-url { word-break: break-all; font-size: 14px; }
.sheet-wechat { flex: 1; display: grid; place-items: center; border-radius: 999px; padding: 12px; font-weight: 600; background: #07c160; color: #fff; text-decoration: none; }
.sheet-wechat[hidden] { display: none; }
.m2pc-done { margin: 12px 0 0 !important; color: #059669; font-size: 14px; }
.m2pc-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 999px; background: rgba(17,24,39,.92); color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.m2pc-bar[hidden] { display: none; }
.m2pc-bar button { border: 0; border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 600; background: var(--grad); color: #fff; cursor: pointer; }

/* 邀请横幅 */
.invite-banner { position: sticky; top: 72px; z-index: 30; margin: 12px auto 0; width: min(960px, calc(100% - 24px)); }
.invite-banner[hidden] { display: none; }
.invite-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(90deg, #fff7ed, #eef2ff); border: 1px solid #fde2c7; box-shadow: 0 6px 20px rgba(17,24,39,.08); }
.invite-gift { font-size: 30px; }
.invite-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.invite-main b { font-size: 16px; }
.invite-main span { color: #4b5563; font-size: 14px; }
.invite-code em { font-style: normal; font-weight: 800; letter-spacing: .12em; color: #ea580c; }
.invite-hint { margin: 6px 4px 0; font-size: 12px; color: #6b7280; }
@media (max-width: 640px) { .invite-card { flex-wrap: wrap; } .invite-dl { width: 100%; text-align: center; } .invite-banner { top: 56px; } }
