/* =========================================================
   个人站点入口页 · 样式
   全部原创手写，无任何第三方依赖（不需要 CDN / 图标字体）
   ========================================================= */

/* ---------- 1. 变量与主题 ---------- */
:root {
  --bg: #f5f5f7;
  --bg-soft: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #9a9aa1;
  --line: rgba(0, 0, 0, .09);
  --line-strong: rgba(0, 0, 0, .14);
  --card: rgba(255, 255, 255, .68);
  --blur: 14px;
  --accent: #0a84ff;
  --accent-2: #6a5cff;
  --ok: #2ec46b;
  --warn: #ff9f0a;
  --shadow-s: 0 2px 10px -4px rgba(0, 0, 0, .14);
  --shadow-m: 0 14px 44px -16px rgba(0, 0, 0, .22), 0 0 2px rgba(0, 0, 0, .04);
  --shadow-l: 0 30px 70px -28px rgba(0, 0, 0, .30), 0 0 2px rgba(0, 0, 0, .05);
  --radius: 18px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-soft: #0b0b0e;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --card: rgba(255, 255, 255, .055);
  --accent: #2f9bff;
  --accent-2: #8b7dff;
  --shadow-s: 0 2px 10px -4px rgba(0, 0, 0, .6);
  --shadow-m: 0 16px 50px -20px rgba(0, 0, 0, .85), 0 0 1px rgba(255, 255, 255, .12);
  --shadow-l: 0 34px 80px -30px rgba(0, 0, 0, .95), 0 0 1px rgba(255, 255, 255, .14);
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(900px 520px at 78% -8%, rgba(47, 123, 255, .20), transparent 62%),
    radial-gradient(760px 460px at 12% 4%, rgba(138, 100, 255, .14), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, p, dl, dd, dt, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.i { width: 1em; height: 1em; flex: none; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. 加载层 ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .45s var(--ease), visibility .45s;
}
.loader.done { opacity: 0; visibility: hidden; }

.loader-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(10, 132, 255, .22);
  border-top-color: var(--accent);
  animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 4. 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  padding: 18px 22px;
  transition: padding .3s var(--ease), background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  padding: 10px 22px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-s);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 1.5px;
  background: conic-gradient(from 210deg, #22d3ee, #0a84ff, #6a5cff, #22d3ee);
  animation: hue 9s linear infinite;
}
.brand-mark-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}
@keyframes hue { to { filter: hue-rotate(360deg); } }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(96deg, var(--accent), var(--accent-2) 62%, var(--accent));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slide 6s ease-in-out infinite;
}
@keyframes slide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.brand-sub { font-size: 11px; color: var(--faint); font-weight: 500; margin-top: 1px; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a {
  padding: 8px 13px;
  border-radius: 10px;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(127, 127, 127, .12); }

.nav-actions { display: flex; align-items: center; gap: 9px; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 13px;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s,
              box-shadow .25s, border-color .25s, opacity .25s;
}
.btn:active { transform: scale(.975); }

.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.btn-solid {
  color: var(--bg);
  background: var(--text);
  box-shadow: var(--shadow-s);
}
.btn-solid:hover { box-shadow: var(--shadow-m); transform: translateY(-1px); }
[data-theme="dark"] .btn-solid { color: #08080a; background: #f5f5f7; }

.btn-line {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-soft) 55%, transparent);
}
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

.btn-quiet { color: var(--muted); }
.btn-quiet:hover { color: var(--text); background: rgba(127, 127, 127, .14); }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--muted);
  font-size: 18px;
  transition: color .2s, background-color .2s, transform .2s;
}
.icon-btn:hover { color: var(--text); background: rgba(127, 127, 127, .14); transform: translateY(-1px); }

#themeBtn .i-moon { display: none; }
[data-theme="dark"] #themeBtn .i-moon { display: block; }
[data-theme="dark"] #themeBtn .i-sun { display: none; }

.nav-toggle { display: none; }
.nav-toggle .i-shut { display: none; }
.nav-toggle.open .i-open { display: none; }
.nav-toggle.open .i-shut { display: block; }

/* ---------- 6. 移动端菜单 ---------- */
.mobile-panel {
  max-width: var(--maxw);
  margin: 12px auto 0;
  padding: 12px;
  display: grid;
  gap: 4px;
  background: color-mix(in srgb, var(--bg-soft) 90%, transparent);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
  animation: pop .25s var(--ease);
}
.mobile-panel[hidden] { display: none !important; }

.mobile-panel a,
.mobile-panel .btn {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  justify-content: flex-start;
  color: var(--muted);
}
.mobile-panel a:hover { color: var(--text); background: rgba(127, 127, 127, .12); }

@keyframes pop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 7. 通用区块 ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 132px 22px 40px;
}

.section { margin-bottom: 96px; scroll-margin-top: 100px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 26px;
}
.section-head h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.section-head p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.card {
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, background-color .35s;
}

/* ---------- 8. 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 52px;
  align-items: center;
  margin-bottom: 104px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 11px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-soft) 60%, transparent);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(46, 196, 107, .55); }
  70% { box-shadow: 0 0 0 9px rgba(46, 196, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 196, 107, 0); }
}

.hero-title {
  font-size: clamp(29px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-line-1 { display: block; }
.hero-line-1 em { font-style: normal; font-variant-numeric: tabular-nums; }

.hero-line-2 {
  display: block;
  margin-top: .3em;
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 700;
  min-height: 1.4em;
  color: transparent;
  background: linear-gradient(96deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.caret {
  display: inline-block;
  width: 2px;
  height: .95em;
  margin-left: 3px;
  vertical-align: -.1em;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.uptime {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--bg-soft) 62%, transparent);
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.uptime .i { color: var(--accent); font-size: 14px; }
.uptime b { color: var(--text); font-weight: 700; }

/* 搜索框 */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  padding: 12px 14px;
  margin-bottom: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-s);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow-s);
}
.search > .i { color: var(--faint); font-size: 17px; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  outline: none;
}
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }

.search-kbd {
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--faint);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.5;
}
.search-clear[hidden] { display: none !important; }

.search-clear {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(127, 127, 127, .16);
  font-size: 12px;
}
.search-clear:hover { color: var(--text); }

.stats {
  display: flex;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 460px;
}
.stats > div {
  padding-right: 26px;
  margin-right: 26px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.stats dd {
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stats dt { margin-top: 5px; color: var(--muted); font-size: 12.5px; font-weight: 500; }

/* ---------- 9. 地球视觉 ---------- */
.hero-visual {
  position: relative;
  height: 420px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.globe {
  width: min(320px, 76%);
  filter: drop-shadow(0 26px 46px rgba(20, 60, 160, .35));
  position: relative;
  z-index: 2;
}
.meridians { animation: spin 34s linear infinite; transform-origin: 110px 110px; }
.shine { opacity: .75; }
.hero-visual .ping { animation: ping 2.6s ease-out infinite; }
.hero-visual .ping-2 { animation-delay: 1.3s; }

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  z-index: 1;
}
.orbit-a { width: 350px; height: 350px; animation: spin 26s linear infinite; }
.orbit-b {
  width: 264px;
  height: 264px;
  animation: spin-back 19s linear infinite;
  border-style: dashed;
  opacity: .7;
}
@keyframes spin-back { to { transform: rotate(-360deg); } }

.sat {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}
.sat-1 { top: -4.5px; left: calc(50% - 4.5px); background: #22d3ee; box-shadow: 0 0 12px #22d3ee; animation: twinkle 2.4s ease-in-out infinite; }
.sat-2 { bottom: 16%; right: 2%; width: 7px; height: 7px; background: #8b7dff; box-shadow: 0 0 12px #8b7dff; animation: twinkle 1.8s ease-in-out infinite; }
.sat-3 { top: 26%; left: -3px; width: 7px; height: 7px; background: #ffd60a; box-shadow: 0 0 12px #ffd60a; animation: twinkle 3s ease-in-out infinite; }

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.75); }
}

.pills {
  position: absolute;
  bottom: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 3;
}
.pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 55%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-ok { background: var(--ok); }
.dot-info { background: #0a84ff; }
.dot-warn { background: var(--warn); }

/* ---------- 10. 分组标签 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-soft) 55%, transparent);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: color .2s, background-color .2s, border-color .2s, transform .2s;
}
.tab:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.tab[aria-selected="true"] {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}
.tab .count {
  font-size: 11.5px;
  font-weight: 700;
  opacity: .55;
  font-variant-numeric: tabular-nums;
}

/* ---------- 11. 站点卡片 ---------- */
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.site {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-s);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.site:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}
.site:focus-visible { outline-offset: 4px; }

.site-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .45);
}
.site-icon.emoji { font-size: 20px; letter-spacing: 0; }

/* 图标配色 */
.tone-blue { background: linear-gradient(150deg, #4fa8ff, #0a6bff); }
.tone-violet { background: linear-gradient(150deg, #a78bfa, #6d4dff); }
.tone-green { background: linear-gradient(150deg, #4ade80, #12a150); }
.tone-amber { background: linear-gradient(150deg, #ffc861, #f08c00); }
.tone-pink { background: linear-gradient(150deg, #ff8fc7, #e0369b); }
.tone-cyan { background: linear-gradient(150deg, #67e8f9, #0aa2c0); }
.tone-slate { background: linear-gradient(150deg, #94a3b8, #475569); }

.site-body { flex: 1; min-width: 0; }

.site-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.site-name {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-badge {
  flex: none;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
[data-theme="dark"] .site-badge { color: #6fb8ff; }

.site-desc {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
  /* 最多两行 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(127, 127, 127, .12);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.site-host {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--faint);
  margin-left: auto;
}

.site-go {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--faint);
  font-size: 13px;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity .25s, transform .25s, color .25s;
}
.site:hover .site-go,
.site:focus-visible .site-go {
  opacity: 1;
  transform: none;
  color: var(--accent);
}

/* 空状态 */
.empty[hidden] { display: none !important; }

.empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 62px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}
.empty .i { font-size: 26px; color: var(--faint); }
.empty p { font-size: 14px; font-weight: 600; }

/* ---------- 12. 关于 / 联系 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 26px;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(150deg, #67e8f9, #0a84ff 45%, #6d4dff);
  box-shadow: 0 8px 22px -10px rgba(10, 132, 255, .8);
}
.profile-body h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.profile-body p { color: var(--muted); font-size: 13.5px; line-height: 1.75; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(127, 127, 127, .09);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.panel { padding: 28px 26px; }
.panel-head h3 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.panel-head p { color: var(--muted); font-size: 13px; line-height: 1.6; }

.contact-list { display: grid; gap: 8px; margin-top: 18px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--bg-soft) 45%, transparent);
  transition: transform .25s var(--ease), border-color .25s, background-color .25s;
}
.contact-item:hover {
  transform: translateX(3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.contact-icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 15px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}

.contact-text { flex: 1; min-width: 0; }
.contact-label { display: block; font-size: 11.5px; color: var(--faint); font-weight: 600; }
.contact-value {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-arrow { color: var(--faint); font-size: 13px; }

/* ---------- 13. 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 55%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 22px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.footer-sub { color: var(--faint); font-size: 12.5px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a,
.footer-links button {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--faint);
  font-size: 12px;
}
.footer-dots { display: inline-flex; align-items: center; gap: 7px; }
.footer-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: twinkle 2.4s ease-in-out infinite;
}

/* ---------- 13.5 管理入口密钥弹窗 ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  animation: pop .22s var(--ease);
}
.gate[hidden] { display: none !important; }

.gate-card {
  width: 100%;
  max-width: 372px;
  padding: 28px 26px 22px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-soft) 96%, transparent);
  box-shadow: var(--shadow-l);
  text-align: center;
}

.gate-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: 22px;
}

.gate-card h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.gate-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }

.gate-form { display: flex; gap: 8px; margin-top: 20px; }
.gate-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.gate-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.gate-cancel {
  margin-top: 14px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 600;
}
.gate-cancel:hover { color: var(--muted); }

/* 已登录时右下角的管理入口 */
.admin-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 260;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-soft) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-m);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.admin-fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.admin-fab .i { color: var(--accent); font-size: 15px; }

/* ---------- 14. 提示条 ---------- */.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 300;
  transform: translate(-50%, 22px);
  max-width: calc(100vw - 40px);
  padding: 13px 20px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: var(--shadow-l);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 15. 进入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1024px) {
  .hero { gap: 32px; }
  .orbit-a { width: 290px; height: 290px; }
  .orbit-b { width: 218px; height: 218px; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    margin-bottom: 76px;
  }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .search { max-width: 100%; }
  .stats { justify-content: center; }
  .hero-visual { height: 360px; margin-top: 6px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: flex-start; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-actions { margin-left: auto; }
  .only-md { display: none; }
  main { padding-top: 108px; }
  .section { margin-bottom: 68px; }
  .stats { width: 100%; max-width: 420px; }
  .stats > div { padding-right: 18px; margin-right: 18px; }
  .site-grid { grid-template-columns: minmax(0, 1fr); }
  .site { padding: 18px; }
  .site-go { opacity: 1; transform: none; }
  .profile { flex-direction: column; gap: 14px; }
  .footer-inner,
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .site-host { display: none; }
  .pills { gap: 6px; }
  .pills li { font-size: 11px; padding: 4px 9px; }
}

@media (min-width: 1600px) {
  :root { --maxw: 1240px; }
}
