/* ══════════════════════════════════════════════════════════
   yi-nology.github.io — 设计基线见 DESIGN.md
   风格：深色画布 / 细线框 / 等宽字体 / 一处高亮 / 真实数据
   ══════════════════════════════════════════════════════════ */

:root {
  --bg:        #080C14;
  --bg-1:      #0B1220;
  --bg-2:      #101B2D;
  --bg-3:      #16243B;
  --line:      #1E3A5F;
  --line-soft: #17293F;
  --ink:       #F8FAFC;
  --ink-2:     #94A3B8;
  --ink-3:     #64748B;

  --blue:   #3B82F6;
  --cyan:   #22D3EE;
  --green:  #34D399;
  --amber:  #F59E0B;
  --violet: #A78BFA;
  --orange: #F05032;

  --grad: linear-gradient(100deg, var(--blue) 0%, var(--cyan) 50%, var(--green) 100%);
  --grad-soft: linear-gradient(100deg, rgba(59,130,246,.16), rgba(34,211,238,.14), rgba(52,211,153,.14));

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", "Noto Sans Mono CJK SC", monospace;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.55);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.4), 0 22px 48px -18px rgba(0,0,0,.7);

  --nav-h: 62px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="light"] {
  --bg:        #F5F8FC;
  --bg-1:      #FFFFFF;
  --bg-2:      #FFFFFF;
  --bg-3:      #EEF3FA;
  --line:      #D8E2EF;
  --line-soft: #E7EEF7;
  --ink:       #0B1220;
  --ink-2:     #4A5A70;
  --ink-3:     #7A8AA0;
  --blue:      #2563EB;
  --cyan:      #0891B2;
  --green:     #059669;
  --amber:     #B45309;
  --violet:    #7C3AED;
  --orange:    #C2410C;
  --grad-soft: linear-gradient(100deg, rgba(37,99,235,.10), rgba(8,145,178,.09), rgba(5,150,105,.09));
  --shadow: 0 1px 2px rgba(16,32,58,.06), 0 12px 28px -14px rgba(16,32,58,.18);
  --shadow-lift: 0 2px 4px rgba(16,32,58,.07), 0 22px 44px -20px rgba(16,32,58,.28);
}

/* ── reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(34,211,238,.28); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── typography helpers ────────────────────────────────── */
.kicker {
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.lede-num { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--grad); color: #04121E; font-weight: 700;
  box-shadow: 0 8px 22px -10px rgba(34,211,238,.7);
}
.btn-primary:hover { box-shadow: 0 12px 28px -10px rgba(34,211,238,.85); }
[data-theme="light"] .btn-primary { color: #FFFFFF; }
.btn-ghost {
  background: var(--bg-2); color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }

.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--ink-2); transition: color .18s var(--ease), border-color .18s var(--ease);
}
.icon-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ── nav ───────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-nav.scrolled { border-bottom-color: var(--line-soft); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark { filter: drop-shadow(0 0 12px rgba(34,211,238,.35)); }
.brand-text {
  font-family: var(--font-mono); font-size: 16px; font-weight: 500;
  letter-spacing: -.01em; color: var(--ink);
}
.brand-text b { font-weight: 700; color: var(--cyan); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  position: relative; transition: color .18s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 4px; }

/* ── hero ──────────────────────────────────────────────── */
.hero { position: relative; padding: 84px 0 76px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-constellation { width: 100%; height: 100%; }
.hero-fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(150% 120% at 20% 45%, var(--bg) 12%, transparent 62%),
    linear-gradient(to bottom, transparent 62%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 13px 5px 10px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  font-family: var(--font-mono); letter-spacing: .02em;
  margin-bottom: 26px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulsering 2.4s ease-out infinite;
}
@keyframes pulsering {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.hero-title {
  font-size: clamp(38px, 6.2vw, 64px);
  font-weight: 700; line-height: 1.12; letter-spacing: -.025em;
  margin-bottom: 22px;
}
.hero-sub {
  max-width: 660px; font-size: clamp(15px, 1.7vw, 17.5px);
  color: var(--ink-2); line-height: 1.78; margin-bottom: 34px;
}
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; max-width: 720px;
}
.stat { background: var(--bg-1); padding: 18px 20px; }
.stat dt {
  font-size: 12px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
}
.stat dd {
  display: inline-block;
  font-family: var(--font-mono); font-size: 30px; font-weight: 600;
  line-height: 1; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

/* ── sections ──────────────────────────────────────────── */
.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--bg-1); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-title {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 650;
  letter-spacing: -.018em; line-height: 1.28; margin-bottom: 14px;
}
.section-lede { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }

/* ── cards ─────────────────────────────────────────────── */
.card {
  --c: var(--cyan);
  position: relative; display: flex; flex-direction: column;
  padding: 24px; border-radius: var(--radius);
  background: var(--bg-1); border: 1px solid var(--line-soft);
  transition: transform .22s var(--ease), border-color .22s var(--ease),
              box-shadow .22s var(--ease), background .22s var(--ease);
  overflow: hidden;
}
.section-alt .card { background: var(--bg-2); }
.card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--c); opacity: .55; transition: opacity .22s var(--ease), width .22s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 42%, transparent);
  box-shadow: var(--shadow-lift);
}
.card:hover::before { opacity: 1; width: 4px; }

.bento { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; margin-bottom: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.card-feature { padding: 28px; }
.card-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 14px; }
.card-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 11px;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
  color: var(--c);
}
.card-title {
  font-size: 18.5px; font-weight: 650; letter-spacing: -.012em;
  line-height: 1.3; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.card-cn {
  font-size: 13.5px; font-weight: 600; color: var(--c);
  padding: 1px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 13%, transparent);
}
.card-tag { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.card-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--grad); color: #04121E;
}
[data-theme="light"] .card-badge { color: #fff; }
.card-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.75; margin-bottom: 18px; }
.card-desc b { color: var(--ink); font-weight: 600; }

.card-facts { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 20px; }
.card-facts li { font-size: 12.5px; color: var(--ink-3); }
.card-facts span {
  display: block; font-family: var(--font-mono); font-size: 19px; font-weight: 600;
  color: var(--c); line-height: 1.2; letter-spacing: -.01em;
}

.card-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px;
  background: var(--bg-3); color: var(--ink-2); border: 1px solid var(--line-soft);
  white-space: nowrap;
}
.chips-lg .chip { font-size: 12.5px; padding: 5px 12px; }
.card-link {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-size: 13.5px; font-weight: 600; color: var(--c);
  transition: gap .18s var(--ease);
}
.card-link:hover { gap: 8px; }
.card-link svg { transition: transform .18s var(--ease); }

/* agent strip */
.agent-strip {
  margin-top: 20px; padding: 24px;
  border-radius: var(--radius); border: 1px solid var(--line-soft);
  background: var(--bg-1);
  display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: center;
}
.agent-strip-head { display: flex; align-items: flex-start; gap: 13px; }
.agent-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.agent-item {
  display: flex; flex-direction: column; gap: 5px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.agent-item:hover { border-color: var(--violet); transform: translateY(-2px); }
.agent-item b { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--ink); }
.agent-item span { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

/* ── repo directory ────────────────────────────────────── */
.repo-toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.repo-toolbar-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sort-box {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
  font-size: 12.5px; color: var(--ink-3); white-space: nowrap;
}
.sort-box select {
  appearance: none; -webkit-appearance: none;
  padding: 9px 30px 9px 13px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--font-sans); font-size: 13.5px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.sort-box select:hover { border-color: var(--cyan); }
.search-box {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; height: 46px; max-width: 520px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--ink-3);
  transition: border-color .2s var(--ease);
}
.search-box:focus-within { border-color: var(--cyan); color: var(--cyan); }
.search-box input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: var(--ink); font-family: var(--font-sans); font-size: 14.5px;
}
.search-box input::placeholder { color: var(--ink-3); }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  transition: all .18s var(--ease);
}
.filter-chip:hover { border-color: var(--line); color: var(--ink); }
.filter-chip .n {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.filter-chip.active {
  background: var(--grad); border-color: transparent; color: #04121E; font-weight: 600;
}
[data-theme="light"] .filter-chip.active { color: #fff; }
.filter-chip.active .n { color: inherit; opacity: .7; }

.repo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px;
}
.repo-card {
  position: relative; display: flex; flex-direction: column; gap: 9px;
  padding: 17px 18px 15px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.repo-card::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2.5px;
  border-radius: 0 3px 3px 0; background: var(--c, var(--line));
  opacity: .7; transition: opacity .2s var(--ease), top .2s var(--ease), bottom .2s var(--ease);
}
.repo-card:hover {
  transform: translateY(-2px); border-color: var(--line);
  box-shadow: var(--shadow);
}
.repo-card:hover::before { opacity: 1; top: 8px; bottom: 8px; }
.repo-top { display: flex; align-items: baseline; gap: 10px; }
.repo-name {
  font-family: var(--font-mono); font-size: 14.5px; font-weight: 600;
  color: var(--ink); letter-spacing: -.01em; word-break: break-word;
}
.repo-top:hover .repo-name { color: var(--cyan); }
.repo-star {
  margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.repo-star svg { width: 12px; height: 12px; color: var(--amber); }
.repo-desc {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.62;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.2em;
}
.repo-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.lang .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-3)); flex-shrink: 0; }
.repo-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line-soft); color: var(--ink-3); background: var(--bg-3);
}
.repo-tag.tag-fork   { color: var(--ink-3); }
.repo-tag.tag-archived { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.repo-tag.tag-home   { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.repo-tag.tag-topic  { color: var(--ink-3); }
.empty-state { text-align: center; color: var(--ink-3); padding: 48px 0; font-size: 14.5px; }
.repo-more { display: flex; justify-content: center; margin-top: 34px; }

/* ── stack ─────────────────────────────────────────────── */
.stack-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.lang-panel { padding: 24px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line-soft); }
.lang-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--bg-3); margin-bottom: 22px; }
.lang-bar i { display: block; height: 100%; transition: width .9s var(--ease); }
.lang-list { display: flex; flex-direction: column; gap: 11px; }
.lang-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.lang-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.lang-list .nm { color: var(--ink); font-weight: 500; }
.lang-list .bar { flex: 1; height: 4px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.lang-list .bar span { display: block; height: 100%; background: var(--c); border-radius: 999px; transition: width .9s var(--ease); }
.lang-list .ct { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.stack-panels { display: flex; flex-direction: column; gap: 16px; }
.stack-panel { padding: 20px 22px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line-soft); }
.stack-panel-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 650; margin-bottom: 13px; color: var(--ink);
}
.stack-panel-title svg { color: var(--cyan); }

/* ── team ──────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.team-card {
  display: flex; align-items: center; gap: 15px;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.team-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.team-avatar {
  position: relative; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--bg-3); overflow: hidden;
}
.team-initial { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--cyan); }
.team-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.team-name { font-size: 15px; font-weight: 600; color: var(--ink); font-family: var(--font-mono); }
.team-role { font-size: 13px; color: var(--ink-3); }

/* ── ecosystem ─────────────────────────────────────────── */
.eco-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.eco-card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 20px; border-radius: var(--radius);
  background: var(--bg-1); border: 1px solid var(--line-soft);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.eco-card:hover { transform: translateY(-2px); border-color: var(--cyan); }
.eco-card > svg:first-child { color: var(--cyan); margin-bottom: 8px; }
.eco-card b { font-size: 14.5px; font-weight: 650; }
.eco-card span { font-size: 13px; color: var(--ink-3); }
.eco-arrow {
  position: absolute; top: 20px; right: 18px; color: var(--ink-3);
  opacity: 0; transform: translate(-4px, 4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.eco-card:hover .eco-arrow { opacity: 1; transform: translate(0, 0); color: var(--cyan); }

/* ── footer ────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-1); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 14.5px; font-weight: 500; }
.footer-note { font-size: 13px; color: var(--ink-3); }
.footer-links { margin-left: auto; display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--ink-3); transition: color .18s var(--ease); }
.footer-links a:hover { color: var(--cyan); }

/* ── constellation motion ───────────────────────────────── */
.flow path { stroke-dasharray: 7 12; animation: flowdash 2.8s linear infinite; }
.flow path:nth-child(2) { animation-delay: -1.1s; }
.flow path:nth-child(3) { animation-delay: -1.9s; }
.flow path:nth-child(4) { animation-delay: -.5s; }
@keyframes flowdash { to { stroke-dashoffset: -19; } }
.flow.faint path { stroke-dasharray: 4 16; opacity: .4; animation-duration: 4.4s; }

.hero-mark > polygon:first-of-type {
  transform-box: fill-box; transform-origin: center;
  animation: hexbreathe 7s ease-in-out infinite;
}
@keyframes hexbreathe {
  0%, 100% { opacity: .9; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.04); }
}
.hero-mark .orbit {
  transform-box: fill-box; transform-origin: center;
  animation: spin 34s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.constellation .nodes circle {
  transform-box: fill-box; transform-origin: center;
  animation: nodepulse 3.2s ease-out infinite;
}
.constellation .nodes circle:nth-child(2) { animation-delay: 1.05s; }
.constellation .nodes circle:nth-child(3) { animation-delay: 2.1s; }
@keyframes nodepulse {
  0%   { transform: scale(.55); opacity: .8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ── reveal on scroll ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 1080px) {
  .bento { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-layout { grid-template-columns: 1fr; gap: 22px; }
  .agent-strip { grid-template-columns: 1fr; gap: 18px; }
  .eco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --nav-h: 56px; }
  .nav-links { display: none; }
  .nav-inner { gap: 14px; }
  .nav-actions { margin-left: auto; }
  /* 窄屏下六边形星群会压到正文上，只保留网格与光晕 */
  .hero-mark, .scatter, .nodes { display: none; }
  .hero-fade { background: linear-gradient(to bottom, transparent 30%, var(--bg) 88%); }
  .hero { padding: 56px 0 60px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .agent-items { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .card-feature { padding: 22px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .stat dd { font-size: 25px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .search-box { max-width: none; }
  .repo-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
