/* == 令牌 == */
/* AI 工作台独立官网保留原有蓝、青、金视觉；固定浅色，不依赖产品集入口样式。 */
:root {
  color-scheme: light;
  --ink: #111c33;
  --ink-2: #33415c;
  --muted: #5d6b85;
  --line: #e2e7f0;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --white: #ffffff;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-soft: #e8efff;
  --teal: #14a38b;
  --teal-soft: #e3f6f1;
  --gold: #f0a431;
  --topbar-line: rgba(226, 231, 240, 0.8);
  --topbar-bg: rgba(246, 248, 252, 0.88);
  --hero-blue: rgba(37, 99, 235, 0.14);
  --hero-teal: rgba(20, 163, 139, 0.12);
  --button-shadow-color: rgba(37, 99, 235, 0.28);
  --icon-shadow-color: rgba(29, 78, 216, 0.28);
  --notice-bg: #fff8ec;
  --gold-soft: #fff4e0;
  --gold-deep: #b86e08;
  --line-blue: #c9d8fb;
  --screen-line: #d5dcea;
  --screen-bg: #16171b;
  --shadow: 0 1px 2px rgba(17, 28, 51, 0.06), 0 12px 32px rgba(17, 28, 51, 0.08);
  --shadow-lg: 0 24px 64px rgba(17, 28, 51, 0.18);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
  --font-display: clamp(40px, 6vw, 64px);
  --font-tagline: clamp(21px, 2.6vw, 28px);
  --font-heading: clamp(26px, 3.4vw, 36px);
  --tracking-heading: -0.01em;
  --tracking-display: -0.03em;
  --tracking-label: 0.08em;
  --radius-pill: 999px;
  --transition-fast: 0.15s;
  --font-12: 12px;
  --font-12-5: 12.5px;
  --font-13: 13px;
  --font-14: 14px;
  --font-15: 15px;
  --font-16: 16px;
  --font-17: 17px;
  --font-18: 18px;
  --font-19: 19px;
  --font-22: 22px;
  --size-1: 1px;
  --size-2: 2px;
  --size-3: 3px;
  --size-4: 4px;
  --size-6: 6px;
  --size-7: 7px;
  --size-8: 8px;
  --size-10: 10px;
  --size-12: 12px;
  --size-14: 14px;
  --size-16: 16px;
  --size-18: 18px;
  --size-20: 20px;
  --size-22: 22px;
  --size-24: 24px;
  --size-26: 26px;
  --size-28: 28px;
  --size-32: 32px;
  --size-36: 36px;
  --size-40: 40px;
  --size-44: 44px;
  --size-46: 46px;
  --size-48: 48px;
  --size-56: 56px;
  --size-60: 60px;
  --size-64: 64px;
  --size-72: 72px;
  --size-76: 76px;
  --size-96: 96px;
  --size-110: 110px;
  --size-120: 120px;
  --size-150: 150px;
  --size-200: 200px;
  --size-360: 360px;
  --size-420: 420px;
  --size-640: 640px;
  --size-700: 700px;
  --size-720: 720px;
  --size-880: 880px;
  --size-900: 900px;
  --size-1160: 1160px;
}

/* == 基础、布局与组件 == */

* { box-sizing: border-box; }
html { scroll-padding-top: var(--size-76); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--font-16)/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: var(--size-4); }
a:focus-visible { outline: var(--size-3) solid var(--blue); outline-offset: var(--size-3); border-radius: var(--size-6); }
img { max-width: 100%; height: auto; }
main { outline: none; }
p, li { overflow-wrap: anywhere; }
.hero-copy, .plugin-head > div, .install-grid > div { min-width: 0; }
h1, h2, h3 { letter-spacing: var(--tracking-heading); overflow-wrap: anywhere; }

.container { width: min(var(--size-1160), 100% - var(--size-48)); margin: 0 auto; }
.container.narrow { width: min(var(--size-880), 100% - var(--size-48)); }

/* == 顶部导航 == */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: var(--size-1) solid var(--topbar-line);
  background: var(--topbar-bg);
  backdrop-filter: saturate(160%) blur(var(--size-12));
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--size-20); height: var(--size-64); }
.brand img { width: var(--size-32); height: var(--size-32); flex: none; }
.brand { display: inline-flex; align-items: center; gap: var(--size-10); color: var(--ink); font-size: var(--font-18); font-weight: 700; text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: center; gap: var(--size-26); font-size: var(--font-14); }
nav a { color: var(--ink-2); text-decoration: none; }
nav a:hover { color: var(--blue); }
nav .nav-download { padding: var(--size-7) var(--size-16); border-radius: var(--radius-pill); background: var(--ink); color: var(--white); font-weight: 600; }
nav .nav-download:hover { background: var(--blue-deep); color: var(--white); }

/* == 首屏 == */
.hero {
  padding: var(--size-72) 0 0;
  background:
    radial-gradient(var(--size-900) var(--size-420) at 88% 0%, var(--hero-blue), transparent 70%),
    radial-gradient(var(--size-700) var(--size-360) at 0% 30%, var(--hero-teal), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--size-48); }
.eyebrow {
  display: inline-block;
  padding: var(--size-3) var(--size-12);
  border: var(--size-1) solid var(--line-blue);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--blue-deep);
  font-size: var(--font-12);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
}
h1 { margin: var(--size-18) 0 var(--size-8); font-size: var(--font-display); line-height: 1.1; letter-spacing: var(--tracking-display); }
.tagline { margin: 0 0 var(--size-14); font-size: var(--font-tagline); font-weight: 600; line-height: 1.45; }
.intro { max-width: var(--size-640); margin: 0 0 var(--size-28); color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--size-12); }
.button-primary, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--size-46);
  padding: 0 var(--size-24);
  border-radius: var(--size-12);
  font-weight: 650;
  text-decoration: none;
}
.button-primary { background: var(--blue); color: var(--white); box-shadow: 0 var(--size-8) var(--size-20) var(--button-shadow-color); }
.button-primary:hover { background: var(--blue-deep); }
.button-secondary { border: var(--size-1) solid var(--line); background: var(--surface); color: var(--ink); }
.button-secondary:hover { border-color: var(--line-blue); color: var(--blue-deep); }
.release-line { margin: var(--size-16) 0 0; color: var(--muted); font-size: var(--font-13); }
.hero-icon { width: var(--size-200); filter: drop-shadow(0 var(--size-24) var(--size-40) var(--icon-shadow-color)); }

.screen { margin: 0; overflow: hidden; border: var(--size-1) solid var(--screen-line); border-radius: var(--size-16); background: var(--screen-bg); box-shadow: var(--shadow-lg); }
.screen img { display: block; width: 100%; }
.screen figcaption { padding: var(--size-10) var(--size-14); border-top: var(--size-1) solid var(--line); background: var(--surface); color: var(--muted); font-size: var(--font-13); }
.screen-hero { margin-top: var(--size-56); margin-bottom: calc(-1 * var(--size-120)); position: relative; }

/* == 区块 == */
.section { padding: var(--size-96) 0; }
.section-features { padding-top: var(--size-200); }
.section-alt { background: var(--surface); border-top: var(--size-1) solid var(--line); border-bottom: var(--size-1) solid var(--line); }
h2 { margin: 0 0 var(--size-10); font-size: var(--font-heading); line-height: 1.3; }
.section-lead { max-width: var(--size-720); margin: 0 0 var(--size-40); color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--size-20); }
.feature { padding: var(--size-26); border: var(--size-1) solid var(--line); border-radius: var(--size-16); background: var(--surface); box-shadow: var(--shadow); }
.feature h3 { margin: var(--size-16) 0 var(--size-6); font-size: var(--font-18); }
.feature p { margin: 0; color: var(--muted); font-size: var(--font-15); }
.feature-icon { display: grid; place-items: center; width: var(--size-44); height: var(--size-44); border-radius: var(--size-12); background: var(--blue-soft); color: var(--blue-deep); }
.feature:nth-child(3n + 2) .feature-icon { background: var(--teal-soft); color: var(--teal); }
.feature:nth-child(3n) .feature-icon { background: var(--gold-soft); color: var(--gold-deep); }
.feature-icon svg { width: var(--size-22); height: var(--size-22); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.plugin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--size-20); margin-bottom: var(--size-40); }
.plugin { display: flex; flex-direction: column; gap: var(--size-10); padding: var(--size-24); border: var(--size-1) solid var(--line); border-radius: var(--size-16); background: var(--bg); }
.plugin p { margin: 0; color: var(--muted); font-size: var(--font-15); }
.plugin-head { display: flex; align-items: center; gap: var(--size-12); }
.plugin-head h3 { margin: 0; font-size: var(--font-18); }
.plugin-icon { display: grid; place-items: center; width: var(--size-44); height: var(--size-44); border-radius: var(--size-12); background: var(--surface); box-shadow: var(--shadow); font-size: var(--font-22); }
.plugin .plugin-meta { font-size: var(--font-12-5); }
.text-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.screen-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--size-24); }

.release-list { display: flex; flex-direction: column; }
.release { display: grid; grid-template-columns: var(--size-150) minmax(0, 1fr); gap: var(--size-24); padding: var(--size-28) 0; border-top: var(--size-1) solid var(--line); }
.release:first-child { border-top: 0; padding-top: 0; }
.release-meta { display: flex; flex-direction: column; gap: var(--size-2); }
.release-meta time { color: var(--blue-deep); font-weight: 650; }
.release-meta span { color: var(--muted); font-size: var(--font-13); }
.release h3 { margin: 0 0 var(--size-8); font-size: var(--font-19); }
.release ul { margin: 0; padding-left: var(--size-20); color: var(--ink-2); }
.release li { margin-bottom: var(--size-6); }

.install-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--size-48); }
.steps { margin: var(--size-20) 0; padding-left: var(--size-22); }
.steps li { margin-bottom: var(--size-12); color: var(--ink-2); }
.note { color: var(--muted); font-size: var(--font-15); }
.notice { margin-top: var(--size-20); padding: var(--size-16) var(--size-18); border-left: var(--size-3) solid var(--gold); border-radius: 0 var(--size-12) var(--size-12) 0; background: var(--notice-bg); font-size: var(--font-14); }
.notice p { margin: var(--size-4) 0 0; color: var(--ink-2); }
.verify { padding: var(--size-26); border: var(--size-1) solid var(--line); border-radius: var(--size-16); background: var(--bg); }
.verify h3 { margin: 0 0 var(--size-6); font-size: var(--font-17); }
.verify h3 + p { margin-top: 0; }
.verify p { color: var(--muted); font-size: var(--font-14); }
.verify code { display: block; margin: var(--size-10) 0; padding: var(--size-12) var(--size-14); overflow-wrap: anywhere; border-radius: var(--size-10); background: var(--surface); border: var(--size-1) solid var(--line); font: var(--font-12-5)/1.7 var(--font-mono); }
.verify .links { display: flex; gap: var(--size-18); margin-bottom: var(--size-22); }

.footer { padding: var(--size-36) 0; color: var(--muted); font-size: var(--font-13); }
.footer-inner { display: flex; justify-content: space-between; gap: var(--size-16); flex-wrap: wrap; }
.footer-inner img { width: var(--size-20); height: var(--size-20); }
.footer-inner span { display: inline-flex; align-items: center; gap: var(--size-8); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-icon { display: none; }
  .feature-grid, .plugin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-grid { grid-template-columns: minmax(0, 1fr); gap: var(--size-32); }
}

@media (max-width: 640px) {
  .container, .container.narrow { width: calc(100% - var(--size-32)); }
  nav { gap: var(--size-14); font-size: var(--font-13); }
  nav a:not(.nav-download):not(.portfolio-link) { display: none; }
  .hero { padding-top: var(--size-44); }
  .screen-hero { margin-top: var(--size-36); margin-bottom: calc(-1 * var(--size-60)); border-radius: var(--size-12); }
  .section, .section-features { padding: var(--size-64) 0; }
  .section-features { padding-top: var(--size-110); }
  .feature-grid, .plugin-grid, .screen-pair { grid-template-columns: minmax(0, 1fr); }
  .release { grid-template-columns: minmax(0, 1fr); gap: var(--size-8); }
  .cta-row a { flex: 1 1 100%; }
}


/* == 跳转与动效 == */
.skip-link {
  position: fixed;
  top: var(--size-8);
  left: var(--size-16);
  z-index: 100;
  padding: var(--size-10) var(--size-16);
  border-radius: var(--size-6);
  background: var(--surface);
  box-shadow: var(--shadow);
  clip-path: inset(50%);
}
.skip-link:focus { clip-path: none; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button-primary, .button-secondary {
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .button-primary:hover { transform: translateY(calc(-1 * var(--size-1))); }
}
