/* 猫猫动力 v2 · 设计系统（第三版：轻、细、克制）
   白底、细线、紧凑字号、墨色主按钮、珊瑚色点睛、柔和光晕；参考开发者平台的清爽风格。 */
:root {
  --bg: #FFFFFF; --bg-soft: #FAFAFB; --bg-2: #F4F4F6; --surface: #FFFFFF;
  --ink: #111015; --ink-2: #393744; --muted: #6B6978; --faint: #A3A1AE;
  --line: rgba(17, 16, 21, .08); --line-2: rgba(17, 16, 21, .14);
  --accent: #FF621E; --accent-deep: #E44717; --accent-text: #C2460C; --accent-soft: #FFF2E8;
  --grad: linear-gradient(115deg, #FF9040 0%, #FF621E 55%, #E64818 100%);
  --ok: #16915C; --ok-soft: #EAF7F0;
  --sh-1: 0 1px 2px rgba(17, 16, 21, .04);
  --sh-2: 0 1px 2px rgba(17, 16, 21, .04), 0 8px 24px -12px rgba(17, 16, 21, .12);
  --sh-3: 0 2px 6px rgba(17, 16, 21, .04), 0 24px 56px -24px rgba(17, 16, 21, .22);
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 1120px; --gut: clamp(24px, 6vw, 88px); --nav-h: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.65 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
::selection { background: #FFDAC6; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(var(--wrap), calc(100% - var(--gut) * 2)); margin-inline: auto; }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 文字 */
.display { font-size: clamp(38px, 5.6vw, 66px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; }
.h1 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
.h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.03em; line-height: 1.18; }
.h3 { font-size: 18px; font-weight: 650; letter-spacing: -.015em; line-height: 1.35; }
.lead { font-size: clamp(15.5px, 1.3vw, 17.5px); color: var(--muted); line-height: 1.7; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; } .tiny { font-size: 12.5px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15px; white-space: nowrap; border: 1px solid transparent; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: scale(.985); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A2833; }
.btn-accent { background: #F95B1A; color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-1); }
.btn-light:hover { border-color: rgba(17, 16, 21, .28); background: var(--bg-soft); }
.btn-ghost-dark { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15.5px; }
.arrow { transition: transform .2s; }
a:hover > .arrow, button:hover > .arrow { transform: translateX(3px); }
.link { color: var(--accent-text); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.more:hover { color: var(--accent-text); }

/* 预览条与导航 */
.preview-bar { background: var(--bg-2); color: var(--muted); font-size: 12.5px; text-align: center; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.preview-bar a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nav { position: sticky; top: 0; z-index: 60; height: var(--nav-h); background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; flex: none; }
.brand svg { width: 28px; height: 28px; }
.brand small { font-size: 13px; font-weight: 600; color: var(--faint); letter-spacing: 0; }
.nav-search { position: relative; flex: 0 1 240px; margin-left: 4px; }
.nav-search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: var(--faint); }
.nav-search input { width: 100%; height: 34px; padding: 0 12px 0 32px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-soft); font-size: 13.5px; outline: none; transition: border-color .15s, background .15s; }
.nav-search input:focus { border-color: var(--ink); background: #fff; }
.nav-links { display: flex; gap: 2px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a { padding: 6px 10px; border-radius: 8px; white-space: nowrap; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-actions .login { font-weight: 500; font-size: 14px; padding: 6px 10px; color: var(--muted); border-radius: 8px; }
.nav-actions .login:hover { color: var(--ink); background: var(--bg-2); }
.nav-actions .login.is-user { color: var(--ink); font-weight: 600; max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-actions .login.is-user::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--ok); vertical-align: 1px; }
.nav-burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); place-items: center; }
.nav-burger svg { width: 18px; height: 18px; }
@media (max-width: 1280px) { .nav-search { display: none; } }
@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; gap: 0; padding: 6px var(--gut) 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(17, 16, 21, .2); margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 2px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-actions { margin-left: auto; }
  .nav-actions .login { display: none; }
  .nav-burger { display: grid; }
}
@media (max-width: 420px) { .nav-actions .btn { display: none; } }

/* 区块 */
.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 48px); }
.head.center { margin-inline: auto; text-align: center; }
.head .h2 { margin-top: 10px; }
.head .lead { margin-top: 12px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.head-row .h2 { margin-top: 8px; }
.head-row .more { white-space: nowrap; flex: none; }
@media (max-width: 640px) { .head-row { flex-direction: column; align-items: flex-start; gap: 12px; } }
.tinted { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora { background:
  radial-gradient(28% 42% at 36% 18%, rgba(255, 175, 124, .39), transparent 72%),
  radial-gradient(28% 42% at 64% 14%, rgba(166, 181, 204, .40), transparent 72%),
  radial-gradient(24% 30% at 50% 40%, rgba(255, 216, 192, .29), transparent 72%); }
.aurora i { display: none; }
.glow { display: none; }

/* 卡片与小部件 */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.card-pad { padding: 24px; }
.card-hover { transition: border-color .2s, box-shadow .2s, transform .2s; }
.card-hover:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.ink { background: var(--bg-2); color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.glyph.logo { background: #fff; border: 1px solid var(--line); }
.glyph.logo img { width: 64%; height: 64%; object-fit: contain; }
.glyph { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; letter-spacing: -.02em; }

/* 窗口外框 */
.window { border-radius: 12px; background: #F6F6F8; border: 1px solid var(--line-2); box-shadow: var(--sh-3); overflow: hidden; }
.window-bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 11px; background: #F7F7F9; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.window-bar i:nth-child(2) { background: #FEBC2E; } .window-bar i:nth-child(3) { background: #28C840; }
.window-bar span { margin-left: auto; margin-right: auto; font-size: 11.5px; color: var(--muted); font-weight: 600; transform: translateX(-18px); }

/* 终端与代码 */
.term { background: #0F0E13; color: #E9E7F0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--sh-3); overflow: hidden; font: 13px/1.75 var(--mono); }
.term-bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.term-bar span { margin-left: 8px; font-size: 11.5px; color: #8E8A9C; font-family: var(--font); font-weight: 600; }
.term pre { margin: 0; padding: 16px 18px 18px; white-space: pre; overflow-x: auto; }
.k { color: #FFA36B; } .s { color: #A9E3C3; } .c { color: #77738A; } .g { color: #7BE0A9; } .p { color: #9DB8FF; }
.code-block { position: relative; background: #0F0E13; color: #E9E7F0; border-radius: 12px; border: 1px solid rgba(17, 16, 21, .12); overflow: hidden; }
.code-block pre { margin: 0; padding: 18px 20px; font: 13.5px/1.75 var(--mono); white-space: pre; overflow-x: auto; }
.code-head { display: flex; align-items: center; gap: 2px; padding: 6px 6px 0 10px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.code-head button { height: 32px; padding: 0 12px; border: 0; background: transparent; color: #8E8A9C; font-size: 12.5px; font-weight: 600; }
.code-head button[aria-selected="true"] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.code-head .copy { margin-left: auto; margin-bottom: 6px; height: 28px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #E9E7F0; }
.code-head .copy:hover { background: rgba(255, 255, 255, .1); }

/* 表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-soft); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--bg-soft); }

/* 页脚 */
.footer { position: relative; overflow: hidden; background: #0F0E14; color: #A7A3B6; padding: 64px 0 28px; font-size: 13.5px; }
.footer-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 70% at 0% 0%, rgba(255, 98, 30, .18), transparent 70%), radial-gradient(35% 60% at 100% 100%, rgba(96, 128, 200, .14), transparent 70%); }
.footer .wrap { position: relative; z-index: 1; }
.footer .brand { color: #fff; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand p { margin-top: 14px; font-size: 15px; line-height: 1.75; color: #C9C5D4; }
.footer-cta { display: flex; gap: 10px; flex-wrap: wrap; }
body[data-page="home"] .footer-cta { display: none; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 28px; padding: 36px 0; }
.footer-col strong, .footer-ver strong { display: block; color: #fff; font-weight: 600; margin-bottom: 12px; font-size: 13.5px; }
.footer-col a { display: block; padding: 5px 0; color: #A7A3B6; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-ver { align-self: start; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.footer-ver span { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.footer-ver b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.footer-ver a { display: inline-block; margin-top: 8px; color: #FFB185; font-weight: 600; }
.footer-ver a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; color: #77738A; }
.footer-bottom .meow { color: #A7A3B6; }
.footer-bottom .meow i { font-style: normal; color: #FF8A4C; }
.footer-mark { position: absolute; right: -36px; bottom: -64px; width: 280px; opacity: .07; pointer-events: none; }
.footer-mark svg { width: 100%; height: auto; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-ver { grid-column: 1 / -1; } .footer-mark { width: 200px; } }

/* 动效 */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .06s; } .js .reveal.d2 { transition-delay: .12s; } .js .reveal.d3 { transition-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 10px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; box-shadow: var(--sh-3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
