/* 文件说明：驱动公开首页、历史公告、版本下载和主题入口的交互。 */
:root {
  --ink: #24262d;
  --muted: #6f7480;
  --line: rgba(39, 43, 53, .1);
  --pink: #ed8ab4;
  --pink-deep: #cf6491;
  --blue: #8abce9;
  --paper: #fff;
  --bg: #f8f8fb;
  --shadow: 0 24px 70px rgba(48, 54, 67, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(250, 207, 225, .5), transparent 28rem),
    radial-gradient(circle at 94% 8%, rgba(194, 223, 249, .58), transparent 28rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

.top-attribution { width: min(1180px, calc(100% - 40px)); margin: 8px auto -5px; color: #959aa5; text-align: center; font-size: 9px; line-height: 1.65; letter-spacing: .01em; }
.top-attribution a { color: #7f8591; text-decoration: underline; text-decoration-color: rgba(127,133,145,.34); text-underline-offset: 2px; }
.top-attribution a:hover { color: var(--pink-deep); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  margin: 14px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 36px rgba(55, 61, 73, .07);
  backdrop-filter: blur(18px) saturate(1.2);
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 800; }
.brand img { width: 42px; height: 42px; padding: 4px; object-fit: contain; border-radius: 13px; background: #fff; box-shadow: 0 7px 18px rgba(117, 136, 160, .14); }
nav { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 650; }
.nav-link { color: var(--muted); transition: color .18s ease; }
.nav-link:hover { color: var(--ink); }
.nav-history {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color .18s ease;
}
.nav-history:hover { color: var(--ink); }
.nav-login { padding: 9px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.nav-login:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(40, 44, 54, .09); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { min-height: 680px; display: grid; grid-template-columns: 1.06fr .94fr; gap: 64px; align-items: center; padding: 76px 18px 64px; }
.hero-copy { animation: rise .65s cubic-bezier(.2,.8,.2,1) both; }
.eyebrow { display: block; color: var(--pink-deep); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
h1 { margin: 16px 0 22px; font-size: clamp(44px, 5.5vw, 72px); line-height: 1.12; letter-spacing: -.045em; }
h1 em { color: var(--pink-deep); font-style: normal; }
.hero-copy > p { max-width: 580px; margin: 0; color: var(--muted); font-size: 17px; }
.hero-copy > p strong { color: var(--ink); font-weight: 800; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-width: 156px; padding: 13px 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 780; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-deep)); box-shadow: 0 12px 25px rgba(207, 100, 145, .24); }
.button.primary:hover { box-shadow: 0 16px 32px rgba(207, 100, 145, .32); }
.button.secondary { border-color: var(--line); background: rgba(255,255,255,.86); }
.button.secondary:hover { box-shadow: 0 12px 25px rgba(40,44,54,.09); }
.android-download { gap: 9px; }
.android-download span { padding: 3px 7px; border-radius: 999px; color: #6f7884; background: rgba(138,188,233,.18); font-size: 9px; font-weight: 850; letter-spacing: .04em; }
.download-note { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: #8a8f99; font-size: 11px; }
.download-note span::before { content: ""; width: 5px; height: 5px; display: inline-block; margin: 0 7px 1px 0; border-radius: 50%; background: var(--blue); }
.wechat-experience-tip { width: fit-content; max-width: 630px; margin: 13px 0 0; padding: 7px 10px; border: 1px solid rgba(237,138,180,.22); border-radius: 10px; color: #858b96; background: rgba(255,255,255,.52); font-size: 10px; line-height: 1.65; }

.hero-visual { position: relative; min-height: 500px; animation: rise .7s .08s cubic-bezier(.2,.8,.2,1) both; }
.glow { position: absolute; border-radius: 50%; filter: blur(10px); }
.glow-pink { width: 300px; height: 300px; top: 55px; left: 0; background: rgba(248, 191, 217, .6); }
.glow-blue { width: 280px; height: 280px; right: 0; bottom: 15px; background: rgba(174, 213, 246, .62); }
.companion-card, .message-card, .capability-row { position: absolute; border: 1px solid rgba(255,255,255,.86); background: rgba(255,255,255,.82); box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(1.15); }
.companion-card { z-index: 3; top: 88px; left: 5%; width: 90%; padding: 22px; display: flex; align-items: center; gap: 16px; border-radius: 24px; transform: rotate(-1.4deg); }
.logo-wrap { width: 80px; height: 80px; padding: 7px; flex: 0 0 auto; border-radius: 21px; background: #fff; }
.logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.companion-card small, .companion-card strong, .companion-card span { display: block; }
.companion-card small { color: var(--muted); font-size: 11px; }
.companion-card small b { margin-left: 6px; padding: 3px 7px; color: #b64f7a; border-radius: 999px; background: #fde7f0; font-size: 9px; letter-spacing: .04em; }
.companion-card strong { margin: 3px 0 8px; font-size: 20px; }
.companion-card span { color: #528466; font-size: 11px; }
.companion-card i { width: 7px; height: 7px; display: inline-block; margin-right: 6px; border-radius: 50%; background: #54a46d; box-shadow: 0 0 0 5px rgba(84,164,109,.12); }
.message-card { z-index: 4; max-width: 79%; padding: 15px 18px; border-radius: 18px 18px 7px 18px; font-size: 13px; }
.message-one { top: 235px; right: 0; transform: rotate(1.2deg); }
.message-two { top: 308px; left: 0; transform: rotate(-1deg); }
.capability-row { z-index: 2; left: 8%; bottom: 55px; width: 84%; padding: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-radius: 22px; }
.capability-row span { padding: 12px 6px; border-radius: 12px; color: var(--muted); background: rgba(248,249,252,.8); text-align: center; font-size: 11px; font-weight: 750; }

.persona-showcase {
  position: relative;
  overflow: hidden;
  margin: 18px 0 72px;
  padding: 50px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  gap: 56px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 30px;
  background:
    radial-gradient(circle at 4% 10%, rgba(249,205,224,.72), transparent 19rem),
    radial-gradient(circle at 96% 88%, rgba(190,222,249,.72), transparent 21rem),
    rgba(255,255,255,.7);
  box-shadow: var(--shadow);
}
.persona-showcase::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, rgba(255,255,255,.3), transparent 45%); }
.persona-copy, .persona-options { position: relative; z-index: 1; }
.persona-badge { width: fit-content; padding: 7px 11px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(207,100,145,.14); border-radius: 999px; color: #a94770; background: rgba(255,255,255,.74); font-size: 11px; font-weight: 800; }
.persona-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 5px rgba(237,138,180,.13); }
.persona-copy h2 { margin: 18px 0 15px; font-size: clamp(30px, 3.6vw, 45px); line-height: 1.18; letter-spacing: -.04em; }
.persona-copy p { max-width: 510px; margin: 0; color: var(--muted); font-size: 14px; }
.text-link { margin-top: 23px; display: inline-flex; gap: 9px; align-items: center; color: var(--pink-deep); font-size: 13px; font-weight: 800; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translateX(4px); }
.persona-options { display: grid; gap: 13px; }
.persona-option { min-height: 154px; padding: 24px; display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; border: 1px solid rgba(255,255,255,.82); border-radius: 22px; background: rgba(255,255,255,.72); box-shadow: 0 14px 35px rgba(50,57,69,.07); transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease; }
.persona-option:hover { transform: translateX(-4px); box-shadow: 0 20px 42px rgba(50,57,69,.1); }
.persona-option-pink { border-color: rgba(237,138,180,.42); }
.persona-option-blue { border-color: rgba(138,188,233,.46); }
.option-number { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: #b44e79; background: #fce8f0; font-size: 12px; font-weight: 850; }
.persona-option-blue .option-number { color: #4c83b3; background: #e8f3fc; }
.persona-option small { color: #9a9eaa; font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.persona-option h3 { margin: 3px 0 7px; font-size: 18px; }
.persona-option p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.features { padding: 72px 0 92px; }
.section-heading { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-heading h2, .cta h2 { margin: 9px 0 10px; font-size: clamp(30px, 4vw, 46px); line-height: 1.2; letter-spacing: -.035em; }
.section-heading p, .cta p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-grid article { min-height: 220px; padding: 27px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.82); box-shadow: 0 8px 28px rgba(40,44,54,.04); transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, border-color .24s ease; }
.feature-grid article:hover { transform: translateY(-4px); border-color: rgba(207,100,145,.24); box-shadow: 0 18px 38px rgba(40,44,54,.08); }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 13px; font-weight: 850; }
.feature-icon.pink { color: #b84e7b; background: #fde5ef; }
.feature-icon.blue { color: #4b83b6; background: #e4f1fc; }
.feature-icon.lilac { color: #7663ad; background: #eeeafb; }
.feature-icon.cyan { color: #397e88; background: #e1f3f5; font-size: 10px; }
.feature-icon.green { color: #4b805a; background: #e7f3e9; }
.feature-icon.amber { color: #9a6b35; background: #f8eddc; }
.feature-grid h3 { margin: 20px 0 8px; font-size: 18px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.developer-api { margin: 18px 0 88px; padding: 50px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(241,247,253,.88)); box-shadow: 0 20px 60px rgba(42,49,61,.08); }
.developer-api-heading { margin-bottom: 28px; }
.api-security-note { margin-bottom: 18px; padding: 20px 22px; border: 1px solid rgba(207,100,145,.14); border-radius: 18px; background: rgba(255,241,247,.72); }
.api-security-note strong { display: block; margin-bottom: 7px; color: #a94770; font-size: 15px; }
.api-security-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.api-security-note code, .api-doc-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.api-security-note .text-link { margin-top: 13px; }
.api-doc-grid { display: grid; gap: 11px; }
.api-doc-grid details { overflow: hidden; border: 1px solid rgba(39,43,53,.09); border-radius: 17px; background: rgba(255,255,255,.82); }
.api-doc-grid summary { padding: 17px 19px; display: flex; align-items: center; gap: 12px; color: var(--ink); cursor: pointer; list-style: none; font-size: 14px; font-weight: 800; }
.api-doc-grid summary::-webkit-details-marker { display: none; }
.api-doc-grid summary::after { content: "+"; margin-left: auto; color: #8e94a0; font-size: 20px; font-weight: 500; }
.api-doc-grid details[open] summary::after { content: "−"; }
.api-doc-grid summary > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #a94770; background: #fbe7ef; font-size: 10px; }
.api-doc-body { padding: 0 19px 20px 61px; }
.api-doc-body p, .api-doc-body li { color: var(--muted); font-size: 12px; line-height: 1.75; }
.api-doc-body ul { margin: 0; padding-left: 19px; }
.api-doc-body h3 { margin: 18px 0 8px; color: var(--ink); font-size: 13px; }
.api-doc-body h3:first-child { margin-top: 0; }
.api-doc-table { width: 100%; margin: 12px 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid rgba(39,43,53,.1); border-radius: 10px; font-size: 11px; }
.api-doc-table th, .api-doc-table td { padding: 9px 10px; border-bottom: 1px solid rgba(39,43,53,.08); text-align: left; vertical-align: top; line-height: 1.6; }
.api-doc-table th { color: var(--ink); background: rgba(251,231,239,.44); font-weight: 800; }
.api-doc-table tr:last-child td { border-bottom: 0; }
.api-doc-table code { font-size: .94em; }
.api-doc-body pre { margin: 11px 0; padding: 15px 17px; overflow: auto; border-radius: 12px; color: #eaf1f8; background: #202733; font-size: 11px; line-height: 1.65; white-space: pre; }
.api-doc-body code { overflow-wrap: normal; }

.device-showcase { margin: 18px 0 88px; padding: 48px; display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: 54px; align-items: center; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.82); box-shadow: 0 18px 55px rgba(42,49,61,.07); }
.device-heading h2, .privacy-copy h2 { margin: 10px 0 13px; font-size: clamp(31px, 3.7vw, 46px); line-height: 1.18; letter-spacing: -.04em; }
.device-heading > p { margin: 0; color: var(--muted); font-size: 14px; }
.device-capabilities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.device-capabilities article { min-height: 146px; padding: 21px; display: grid; grid-template-columns: 48px 1fr; gap: 14px; border: 1px solid rgba(39,43,53,.08); border-radius: 18px; background: #fafbfc; }
.device-capabilities article > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #4d81ad; background: #e7f2fb; font-size: 10px; font-weight: 850; }
.device-capabilities article:nth-child(2) > span { color: #4f8060; background: #e8f3eb; }
.device-capabilities article:nth-child(3) > span { color: #9a6c36; background: #f8eddf; }
.device-capabilities article:nth-child(4) > span { color: #a74e75; background: #fbe7ef; }
.device-capabilities h3 { margin: 1px 0 6px; font-size: 15px; }
.device-capabilities p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.privacy-showcase { position: relative; overflow: hidden; margin: 0 0 92px; padding: 54px; display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 44px; border-radius: 30px; color: #eef3f8; background: linear-gradient(145deg,#29313c,#202630); box-shadow: 0 25px 70px rgba(28,34,43,.2); }
.privacy-showcase::after { content: ""; position: absolute; width: 420px; height: 420px; right: -150px; top: -190px; border-radius: 50%; background: radial-gradient(circle,rgba(138,188,233,.22),transparent 68%); pointer-events: none; }
.privacy-mark { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: center; }
.privacy-mark span { width: 132px; height: 132px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 38px; color: #f5c4d8; background: rgba(255,255,255,.06); box-shadow: inset 0 1px rgba(255,255,255,.08); font-size: 45px; font-weight: 850; }
.privacy-copy { position: relative; z-index: 1; }
.privacy-copy .eyebrow { color: #f0aaca; }
.privacy-copy h2 { max-width: 760px; }
.privacy-copy > p { max-width: 800px; margin: 0; color: #aeb8c4; font-size: 14px; }
.privacy-points { margin-top: 30px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 28px; }
.privacy-points article { display: grid; grid-template-columns: 11px 1fr; gap: 11px; align-items: start; }
.privacy-points i { width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: #ef9fc2; box-shadow: 0 0 0 5px rgba(239,159,194,.09); }
.privacy-points h3 { margin: 0 0 4px; color: #f4f7fa; font-size: 14px; }
.privacy-points p { margin: 0; color: #9da9b6; font-size: 11px; line-height: 1.75; }
.privacy-link { margin-top: 28px; display: inline-flex; gap: 9px; color: #f0b1cd; font-size: 12px; font-weight: 800; }
.privacy-link span { transition: transform .18s ease; }
.privacy-link:hover span { transform: translateX(4px); }

.cta { margin: 45px 0 82px; padding: 46px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border: 1px solid rgba(255,255,255,.9); border-radius: 28px; background: linear-gradient(135deg, rgba(255,236,244,.92), rgba(230,242,253,.94)); box-shadow: var(--shadow); }
.cta h2 { font-size: 34px; }
.cta-actions { flex: 0 0 auto; margin: 0; }
footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 4px 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-main { display: flex; gap: 18px; align-items: center; }
.footer-main span:first-child { color: var(--ink); font-weight: 800; }
.footer-main > a { margin-left: auto; }
.build-note { max-width: 850px; margin: 15px 0 0; color: #9a9ea8; font-size: 10px; line-height: 1.75; letter-spacing: .01em; }
.build-note a { color: #858a96; text-decoration: underline; text-decoration-color: rgba(133,138,150,.35); text-underline-offset: 2px; }
.build-note a:hover { color: var(--pink-deep); }

.hidden { display: none !important; }
body.history-modal-open { overflow: hidden; }
.history-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(32, 37, 47, .38);
  backdrop-filter: blur(8px);
  animation: historyFade .18s ease both;
}
.history-dialog {
  width: min(820px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 26px;
  background:
    radial-gradient(circle at 7% 0, rgba(250, 207, 225, .52), transparent 20rem),
    radial-gradient(circle at 100% 100%, rgba(194, 223, 249, .55), transparent 22rem),
    rgba(250, 251, 253, .97);
  box-shadow: 0 32px 90px rgba(28, 34, 45, .24);
  animation: historyRise .24s cubic-bezier(.2,.8,.2,1) both;
}
.history-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.history-dialog-title { display: flex; align-items: center; gap: 13px; }
.history-dialog-title img { width: 48px; height: 48px; padding: 4px; object-fit: contain; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgba(70, 84, 103, .11); }
.history-dialog-title span { display: block; color: var(--pink-deep); font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.history-dialog-title h2 { margin: 1px 0 0; font-size: 24px; line-height: 1.2; }
.history-close { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; color: #747985; background: rgba(255,255,255,.84); font-size: 24px; line-height: 1; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.history-close:hover { transform: rotate(5deg); background: #fff; }
.history-intro { margin: 17px 0 20px; color: var(--muted); font-size: 12px; }
.history-state { padding: 24px; color: var(--muted); text-align: center; font-size: 13px; }
.history-groups { display: grid; gap: 16px; }
.history-pinned {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(232, 125, 174, .6);
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(255,244,249,.94), rgba(240,248,255,.9));
  box-shadow: 0 0 0 1px rgba(255,255,255,.92), 0 0 22px rgba(232,125,174,.2), 0 12px 34px rgba(97,119,151,.1);
}
.history-pinned::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(255,255,255,.9), rgba(235,137,181,.66), rgba(151,206,247,.58), rgba(255,255,255,.88)) border-box;
  border: 1px solid transparent;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.history-pinned .history-group-head span { color: var(--pink-deep); font-weight: 850; letter-spacing: .12em; }
.history-pinned-item { border: 1px solid rgba(255,255,255,.88); background: rgba(255,255,255,.72); }
.history-group { padding: 18px; border: 1px solid rgba(39,43,53,.08); border-radius: 19px; background: rgba(255,255,255,.75); }
.history-group-head { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.history-group-head h3 { margin: 0; font-size: 15px; }
.history-group-head span { color: #9a9faa; font-size: 10px; }
.history-list { display: grid; gap: 9px; }
.history-item { padding: 14px 15px; border-radius: 14px; background: rgba(247,248,251,.9); }
.history-item-meta { margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #9297a2; font-size: 9px; }
.history-platform { padding: 2px 7px; border-radius: 999px; color: #557fa4; background: #e7f2fb; font-weight: 750; }
.history-item p { margin: 0; color: #515661; font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.history-empty { padding: 14px; color: #9a9faa; text-align: center; font-size: 11px; }

@keyframes historyFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes historyRise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (max-width: 820px) {
  .top-attribution { width: calc(100% - 28px); margin: 7px auto 1px; font-size: 8px; line-height: 1.55; }
  .site-header { width: calc(100% - 24px); height: 64px; margin-top: 8px; padding: 0 14px; border-radius: 17px; }
  .brand img { width: 37px; height: 37px; }
  .nav-link { display: none; }
  .nav-history { font-size: 11px; }
  nav { gap: 8px; }
  main { width: min(100% - 28px, 620px); }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 14px; padding: 64px 0 20px; }
  h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-copy > p { font-size: 15px; }
  .hero-actions .button { flex: 1 1 150px; }
  .hero-visual { min-height: 470px; }
  .persona-showcase { margin: 38px 0 34px; padding: 32px; grid-template-columns: 1fr; gap: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 0; }
  .features { padding: 70px 0; }
  .developer-api { margin-bottom: 58px; padding: 32px; }
  .device-showcase { margin-bottom: 58px; padding: 32px; grid-template-columns: 1fr; gap: 30px; }
  .privacy-showcase { padding: 36px 32px; grid-template-columns: 1fr; gap: 24px; }
  .privacy-mark { justify-content: flex-start; }
  .privacy-mark span { width: 76px; height: 76px; border-radius: 23px; font-size: 27px; }
  .cta { padding: 30px 23px; align-items: stretch; flex-direction: column; }
  .cta-actions { margin-top: 5px; }
  .cta-actions .button { flex: 1; }
  footer { width: calc(100% - 28px); }
}
@media (max-width: 480px) {
  .brand span { font-size: 15px; }
  .nav-login { padding: 8px 11px; }
  .hero-visual { min-height: 430px; }
  .companion-card { top: 55px; left: 0; width: 100%; }
  .message-one { top: 210px; }
  .message-two { top: 280px; }
  .capability-row { left: 0; bottom: 35px; width: 100%; padding: 14px; }
  .download-note { gap: 10px; }
  .persona-showcase { padding: 25px 20px; border-radius: 24px; }
  .persona-copy h2 { font-size: 31px; }
  .persona-option { min-height: 0; padding: 20px 17px; grid-template-columns: 46px 1fr; gap: 13px; }
  .developer-api { padding: 27px 18px; border-radius: 24px; }
  .api-doc-body { padding: 0 13px 16px; }
  .api-doc-body pre { padding: 13px; font-size: 10px; }
  .api-doc-table { display: block; overflow-x: auto; }
  .api-doc-table th, .api-doc-table td { min-width: 92px; }
  .option-number { width: 44px; height: 44px; border-radius: 13px; }
  .device-showcase { padding: 27px 20px; border-radius: 24px; }
  .device-capabilities { grid-template-columns: 1fr; }
  .device-capabilities article { min-height: 0; padding: 19px 17px; }
  .privacy-showcase { padding: 29px 21px; border-radius: 24px; }
  .privacy-copy h2 { font-size: 30px; }
  .privacy-points { grid-template-columns: 1fr; gap: 18px; }
  .cta-actions { flex-direction: column; }
  .footer-main { flex-wrap: wrap; }
  .build-note { font-size: 9px; }
  .history-backdrop { padding: 12px; }
  .history-dialog { max-height: calc(100vh - 24px); padding: 20px 16px; border-radius: 22px; }
  .history-group { padding: 13px; }
  .history-pinned { padding: 13px; }
}
