/* ------------------------------------------------------------------
   个人Agent管理 — 静态站点样式
   设计语言: Vercel-Inspired (near-white canvas / ink CTA / mesh gradient)
   说明: 全部使用系统字体与本地资源，无任何外部 CDN 请求
   ------------------------------------------------------------------ */

:root {
  /* Surface */
  --canvas: #ffffff;
  --canvas-soft: #fafafa;
  --canvas-soft-2: #f5f5f5;

  /* Text */
  --ink: #171717;
  --body: #4d4d4d;
  --mute: #888888;

  /* Line */
  --hairline: #ebebeb;
  --hairline-strong: #a1a1a1;

  /* Accent */
  --primary: #171717;
  --on-primary: #ffffff;
  --link: #0070f3;
  --link-deep: #0761d1;

  /* Radius */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 100px;

  /* Elevation (stacked shadow + inset hairline) */
  --e1: inset 0 0 0 1px #00000014;
  --e2: 0 1px 1px #00000005, 0 2px 2px #0000000a, inset 0 0 0 1px #00000014;
  --e4: 0 2px 2px #0000000a, 0 8px 16px -4px #0000000a, inset 0 0 0 1px #00000014;

  /* Type */
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    "JetBrains Mono", Consolas, monospace;

  /* Layout */
  --page: 1200px;
  --gutter: 24px;
  --nav-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

::selection {
  background: #171717;
  color: #f2f2f2;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

/* ───────────────────────── 导航 ───────────────────────── */

/* 基线态（无 JS 时）：始终可读的磨砂玻璃 */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-bottom: calc(-1 * var(--nav-h) - 1px); /* 连同下边框一起压在首屏上 */
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* 有 JS 时：首屏完全透明，随滚动进度 --nav-p (0→1) 逐渐显影为磨砂玻璃 */
html.js .nav {
  --nav-p: 0;
  background: rgba(255, 255, 255, calc(var(--nav-p) * 0.66));
  backdrop-filter: blur(calc(var(--nav-p) * 16px)) saturate(calc(100% + var(--nav-p) * 80%));
  -webkit-backdrop-filter: blur(calc(var(--nav-p) * 16px)) saturate(calc(100% + var(--nav-p) * 80%));
  border-bottom: 1px solid transparent;
  border-bottom-color: rgba(235, 235, 235, calc(var(--nav-p) * 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, calc(var(--nav-p) * 0.72)),
    0 1px 2px rgba(23, 23, 23, calc(var(--nav-p) * 0.04));
}

/* 不支持 backdrop-filter 时，靠底色保证可读性 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html.js .nav {
    background: rgba(255, 255, 255, calc(0.5 + var(--nav-p) * 0.42));
  }
}

/* 需要更高对比度 / 减少透明效果时，提高玻璃底色 */
@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) {
  html.js .nav {
    background: rgba(255, 255, 255, calc(0.62 + var(--nav-p) * 0.36));
    border-bottom-color: rgba(161, 161, 161, calc(var(--nav-p) * 0.8));
  }
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: var(--on-primary);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  padding-left: 10px;
  border-left: 1px solid var(--hairline);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 14px;
  color: #262626;
  padding: 6px 12px;
  border-radius: 9999px;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(23, 23, 23, 0.05);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  background: rgba(23, 23, 23, 0.05);
}

/* 玻璃态显影后，选中/悬停改用玻璃高光，避免灰块压暗底色 */
html.js .nav[data-glass="on"] .nav-link:hover,
html.js .nav[data-glass="on"] .nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.07);
}

/* 品牌名与副标题同样加一点光晕，保证叠在渐变上时清晰 */
.brand {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-cta {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--e1);
}

/* ───────────────────────── Hero ───────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: calc(var(--nav-h) + 104px) 0 88px;
}

/* 品牌网格渐变 —— 全站唯一装饰元素，仅用于首屏大气背景 */
.mesh {
  position: absolute;
  inset: -30% -12% auto -12%;
  height: 130%;
  pointer-events: none;
  opacity: 0.42;
  filter: blur(56px);
  background:
    radial-gradient(34% 42% at 16% 26%, #007cf0 0%, rgba(0, 124, 240, 0) 72%),
    radial-gradient(38% 46% at 38% 14%, #00dfd8 0%, rgba(0, 223, 216, 0) 70%),
    radial-gradient(36% 44% at 60% 34%, #7928ca 0%, rgba(121, 40, 202, 0) 70%),
    radial-gradient(34% 42% at 80% 18%, #ff0080 0%, rgba(255, 0, 128, 0) 70%),
    radial-gradient(30% 38% at 92% 46%, #f9cb28 0%, rgba(249, 203, 40, 0) 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--body);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007cf0, #00dfd8);
}

h1.display-xl {
  margin: 20px 0 0;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 20em;
}

.lead-lg {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--body);
  max-width: 42em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--e2);
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--canvas);
  color: var(--ink);
  box-shadow: var(--e2);
}

.btn-secondary:hover {
  background: var(--canvas-soft-2);
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.chip {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--body);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
}

/* ───────────────────────── 区块 ───────────────────────── */

.section {
  padding: 96px 0;
}

.section--canvas {
  background: var(--canvas);
}

.section--soft {
  background: var(--canvas-soft);
}

.section--dark {
  background: var(--primary);
  color: var(--on-primary);
}

.section-head {
  max-width: 720px;
}

.eyebrow-mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.section--dark .eyebrow-mono {
  color: #8f8f8f;
}

h2.display-lg {
  margin: 12px 0 0;
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.body-md {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--body);
}

.section--dark .body-md {
  color: #b4b4b4;
}

/* 三列卡片 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.card {
  background: var(--canvas);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--e2);
}

.card .num {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--mute);
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--body);
}

.card--dark {
  background: #1f1f1f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card--dark p {
  color: #b4b4b4;
}

.card--dark .num {
  color: #7a7a7a;
}

/* 暗色区块内的清单 */
.dark-list {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dark-list div {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 16px;
  line-height: 24px;
}

.dark-list span.k {
  font-family: var(--mono);
  font-size: 12px;
  color: #7a7a7a;
  min-width: 28px;
}

.dark-list span.v {
  color: #d4d4d4;
}

/* 信息表（备案信息 / 参数表） */
.spec {
  margin-top: 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--canvas);
  overflow: hidden;
  box-shadow: var(--e1);
}

.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  line-height: 22px;
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row .k {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 22px;
  color: var(--mute);
}

.spec-row .v {
  color: var(--ink);
}

.spec-row .v small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 18px;
  color: var(--mute);
}

/* 正文长文（隐私说明 / 关于） */
.prose {
  max-width: 720px;
  margin-top: 40px;
}

.prose h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 0;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 28px;
  color: var(--body);
}

.prose ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--body);
  font-size: 16px;
  line-height: 28px;
}

.prose li {
  margin: 6px 0;
}

.prose code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  padding: 1px 6px;
  border-radius: var(--r-sm);
  background: var(--canvas-soft-2);
  border: 1px solid var(--hairline);
  color: var(--ink);
}

.note {
  margin-top: 32px;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  background: var(--canvas-soft-2);
  border: 1px solid var(--hairline);
  font-size: 14px;
  line-height: 22px;
  color: var(--body);
}

.note strong {
  color: var(--ink);
  font-weight: 500;
}

/* 内页头部 */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: calc(var(--nav-h) + 64px) 0 56px;
}

.page-head .mesh {
  inset: -60% -12% auto -12%;
  height: 190%;
  opacity: 0.26;
}

h1.display-md {
  margin: 16px 0 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* CTA 收尾条 */
.outro {
  padding: 64px 0;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
}

.outro-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.outro h2 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.outro p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--body);
}

/* ───────────────────────── 页脚 / 备案信息 ───────────────────────── */

.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-about p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--body);
  max-width: 32em;
}

.footer h4 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--body);
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* 备案条 */
.beian {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 13px;
  line-height: 20px;
  color: var(--body);
}

.beian-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.beian-item a {
  color: var(--body);
}

.beian-item a:hover {
  color: var(--link-deep);
  text-decoration: underline;
}

.beian-badge {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--primary);
  color: var(--on-primary);
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  line-height: 1;
}

.copyright {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--mute);
}

/* ───────────────────────── 响应式 ───────────────────────── */

@media (max-width: 959px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }

  .brand-sub {
    display: none;
  }

  :root {
    --nav-h: 56px;
  }

  .nav-inner {
    gap: 8px;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 13px;
  }

  .hero {
    padding: calc(var(--nav-h) + 64px) 0 56px;
  }

  h1.display-xl {
    font-size: 34px;
    line-height: 1.14;
  }

  h1.display-md {
    font-size: 30px;
  }

  h2.display-lg {
    font-size: 24px;
    line-height: 32px;
  }

  .lead-lg {
    font-size: 16px;
    line-height: 26px;
  }

  .section {
    padding: 64px 0;
  }

  .page-head {
    padding: calc(var(--nav-h) + 48px) 0 40px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 16px;
  }

  .spec-row .k {
    line-height: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    height: 44px;
    font-size: 15px;
  }

  .dark-list div {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
