/* 官网专用样式（后台不用）。基础色板在 ui.css，这里管版式、插画和动效。 */

:root {
  --band: #f6efe8;
  --ink: #3a2a24;
  --shadow: 0 1px 2px rgba(60, 40, 30, 0.04), 0 8px 28px rgba(60, 40, 30, 0.08);
  --c-done: #3a9d5d;
  --c-confirm: #ff8a3d;
  --c-failed: #7d8ca3;
  --c-note: #b49a86;
}
@media (prefers-color-scheme: dark) {
  :root { --band: #2a2623; --ink: #2b1d18; --shadow: 0 1px 2px rgba(0,0,0,0.2), 0 10px 30px rgba(0,0,0,0.35); }
}

body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -0.01em; }
::selection { background: var(--accent-soft); }

/* ---------- 顶栏和页脚 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.site-head .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; text-decoration: none; }
.site-head .brand svg { width: 26px; height: 26px; }
.site-head nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.site-head nav a:not(.btn) { color: var(--muted); text-decoration: none; transition: color .15s; }
.site-head nav a:not(.btn):hover, .site-head nav a.on { color: var(--fg); }
.site-foot { margin-top: 24px; border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 13px; color: var(--muted); }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-foot b { display: block; color: var(--fg); font-size: 13px; margin-bottom: 8px; }
.site-foot a { display: block; color: var(--muted); text-decoration: none; padding: 2px 0; }
.site-foot a:hover { color: var(--fg); }
.site-foot .legal { margin-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; }

.btn { transition: transform .12s, box-shadow .12s, background .12s; }
.btn.primary { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px rgba(255, 138, 61, .28); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 22px rgba(255, 138, 61, .34); }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn.ghost { background: transparent; }

/* ---------- 版块 ---------- */
.sec { padding: 88px 0; }
.sec.band { background: var(--band); }
.kicker { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .04em; margin-bottom: 10px; }
.sec h2 { font-size: 30px; line-height: 1.3; margin: 0 0 12px; }
.sec .sub { font-size: 16px; color: var(--muted); margin: 0 0 40px; max-width: 34em; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* ---------- 首屏 ---------- */
.hero { padding: 64px 24px 40px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.18; margin: 0 0 20px; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 17px; line-height: 1.75; color: var(--muted); margin: 0 0 32px; max-width: 28em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; font-size: 13px; color: var(--muted); }
.trust { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 8px 24px 28px; color: var(--muted); font-size: 13px; }
.trust .logo { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fg); opacity: .78; font-size: 14px; }
.trust .logo i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font: 700 11px/1 -apple-system, sans-serif; font-style: normal; }

/* 首屏插画：一块桌面，两个 Agent 窗口，团子在右下角替它们说话。 */
.desk {
  position: relative; aspect-ratio: 1.18; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 100%, rgba(255, 159, 107, .35), transparent 60%),
    radial-gradient(90% 70% at 0% 0%, rgba(120, 140, 255, .18), transparent 60%),
    linear-gradient(160deg, #f3e6da, #eadfd6);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .desk { background:
    radial-gradient(120% 90% at 85% 100%, rgba(255, 138, 61, .22), transparent 60%),
    radial-gradient(90% 70% at 0% 0%, rgba(120, 140, 255, .14), transparent 60%),
    linear-gradient(160deg, #36302c, #2a2522); }
}
.win {
  position: absolute; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(40, 25, 15, .12); overflow: hidden; transition: box-shadow .4s, transform .4s, opacity .4s;
}
.win .bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.win .bar i { width: 8px; height: 8px; border-radius: 50%; background: #e5ddd6; }
@media (prefers-color-scheme: dark) { .win .bar i { background: #4a433e; } }
.win .bar span { margin-left: 6px; white-space: nowrap; }
.win .body { padding: 12px 12px; display: grid; gap: 7px; }
.win .ln { height: 7px; border-radius: 4px; background: var(--badge); }
.win .ln.a { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.win.w1 { left: 5%; top: 7%; width: 54%; height: 46%; }
.win.w3 { left: 44%; top: 12%; width: 46%; height: 34%; }
.win.w2 { left: 11%; top: 57%; width: 50%; height: 36%; }
.win.hot { box-shadow: 0 0 0 2.5px var(--accent), 0 18px 40px rgba(255, 138, 61, .28); transform: translateY(-4px); z-index: 2; }
.win.hot .bar { color: var(--fg); font-weight: 600; }
.pet-spot { position: absolute; right: 6%; bottom: 3%; width: 27%; z-index: 3; }
.pet-spot svg { width: 100%; display: block; filter: drop-shadow(0 10px 18px rgba(120, 60, 20, .18)); }
.say {
  position: absolute; right: 6%; bottom: 37%; z-index: 4; width: min(58%, 300px);
  padding: 12px 14px; border-radius: 14px 14px 4px 14px; background: var(--card);
  box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.55;
  transition: opacity .35s, transform .35s;
}
.say.out { opacity: 0; transform: translateY(6px); }
.say b { font-weight: 700; }
.say .tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.cursor { position: absolute; z-index: 5; width: 16px; height: 16px; transition: left .7s cubic-bezier(.4,.1,.2,1), top .7s cubic-bezier(.4,.1,.2,1); }

/* ---------- 四种语气 ---------- */
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mood { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px 20px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.mood svg { width: 92px; height: 100px; display: block; margin: 0 auto 10px; }
.mood .name { font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.mood .name i { width: 8px; height: 8px; border-radius: 50%; }
.mood p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; text-align: left; }
.mood q { quotes: "“" "”"; }

/* ---------- 三件事 ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.feat .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.feat .ico svg { width: 22px; height: 22px; }
.feat h3 { font-size: 18px; margin: 0 0 8px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ---------- 形象和声音 ---------- */
.looks { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.stage-card, .voices { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.stage { height: 240px; border-radius: 14px; display: grid; place-items: center;
  background: radial-gradient(70% 80% at 50% 100%, var(--accent-soft), transparent 70%), var(--bg); }
.stage svg { height: 210px; width: auto; }
.states { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 14px 0 16px; }
.states button, .voice { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.states button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.skins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.skins button { font: inherit; display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; font-size: 13.5px; font-weight: 600; }
.skins button.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.skins .mini svg { height: 64px; width: auto; display: block; }
.skins em { font-style: normal; font-size: 11px; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.skins em.free { background: var(--badge); color: var(--muted); }
.voices { display: grid; gap: 18px; align-content: start; }
.vhead { display: flex; align-items: center; gap: 8px; }
.vgroup p { margin: 4px 0 10px; font-size: 13.5px; }
.vlist { display: flex; flex-wrap: wrap; gap: 8px; }
.voice { color: var(--fg); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; }
.voice i { font-style: normal; font-size: 9px; color: var(--accent); }
.voice:hover { border-color: var(--accent); }
.voice.on { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- 通行证 ---------- */
.pass { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pass ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 12px; font-size: 15px; }
.pass li { display: flex; gap: 10px; }
.pass li:before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: .7em; }
.device { position: relative; width: 320px; margin: 0 auto; }
.device .lanyard { width: 64px; height: 70px; margin: 0 auto -6px; border: 6px solid #ff9f6b; border-bottom: 0; border-radius: 36px 36px 0 0; opacity: .8; }
.device .body { background: linear-gradient(160deg, #3b3532, #24201e); border-radius: 26px; padding: 18px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08); }
.device .screen { background: #fffaf5; border-radius: 12px; height: 200px; display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 16px; color: #2b2522; }
.device .screen svg { width: 96px; display: block; }
.device .screen .t { font-size: 15px; line-height: 1.55; font-weight: 500; }
.device .screen .t b { color: #e06f24; display: block; font-size: 12px; margin-bottom: 2px; }
.device .keys { display: flex; justify-content: center; gap: 18px; margin-top: 14px; }
.device .keys i { width: 34px; height: 12px; border-radius: 6px; background: #4a4340; }
.device .keys i.ok { background: #ff8a3d; }

/* ---------- 价格 ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.plan.member { border-color: transparent; box-shadow: 0 0 0 2px var(--accent), var(--shadow); position: relative; }
.plan .ribbon { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 17px; }
.plan .for { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.plan .price b { font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .alt { font-size: 13px; color: var(--muted); min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 14.5px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.plan li.no { color: var(--muted); }
.plan li.no svg { color: var(--muted); opacity: .6; }
.plan .btn { width: 100%; }
.price-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }

/* ---------- 隐私 ---------- */
.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.privacy .ico { color: var(--accent); margin-bottom: 12px; }
.privacy .ico svg { width: 24px; height: 24px; }
.privacy h3 { font-size: 16px; margin: 0 0 6px; }
.privacy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- 收尾 ---------- */
.final { text-align: center; padding: 96px 0; }
.final h2 { font-size: 34px; margin: 0 0 12px; }
.final p { color: var(--muted); margin: 0 0 28px; }
.final svg.pet { width: 84px; margin-bottom: 12px; }

/* ---------- 动画 ---------- */
.blob-breathe { animation: breathe 3.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes breathe { 50% { transform: scale(1.025, .985); } }
@media (prefers-reduced-motion: reduce) { .blob-breathe { animation: none; } .say, .win, .cursor { transition: none; } }

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 36px; }
  .trust span:last-child { flex-basis: 100%; }
  .hero h1 { font-size: 34px; }
  .hero h1 br { display: none; }
  .moods { grid-template-columns: repeat(2, 1fr); }
  .feats, .privacy { grid-template-columns: 1fr; gap: 28px; }
  .pass { grid-template-columns: 1fr; gap: 36px; }
  .looks { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .sec { padding: 64px 0; }
  .sec h2 { font-size: 25px; }
  .site-head nav a.hide-sm { display: none; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .say { font-size: 12px; width: 66%; padding: 9px 11px; bottom: 36%; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .moods { grid-template-columns: 1fr; }
  .mood { display: grid; grid-template-columns: 72px 1fr; gap: 0 14px; text-align: left; align-items: center; padding: 16px; }
  .mood > span { grid-row: 1 / 3; }
  .mood svg { width: 72px; height: 78px; margin: 0; }
  .mood .name { grid-column: 2; justify-content: flex-start; align-self: end; }
  .mood p { grid-column: 2; margin-top: 4px; align-self: start; }
  .trust { gap: 10px 18px; }
}
