:root {
  /* 对齐后台设计规范 */
  --paper: #f9fafe;      /* 列表悬停色块 */
  --card: #ffffff;
  --ink: #2c3034;        /* 重要文字 */
  --text: #2c3034;
  --text-2: #5a5f6c;     /* 次要文字 */
  --muted: #8a90a1;      /* 辅助文字 */
  --hint: #adbcc7;       /* 输入提示 */
  --line: #edeff8;       /* 分割线 */
  --line-2: #dcdfea;
  --accent: #0066ff;     /* 品牌色 */
  --serif: var(--sans);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--sans); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; text-decoration: none; }

/* ---------- 头部 ---------- */
.hero {
  position: relative; z-index: 1; overflow: hidden;
  background: linear-gradient(180deg, #e6efff 0%, #f1f6ff 52%, var(--paper) 100%);   /* 底部融入页面，无硬边 */
}
.hero > i { position: absolute; pointer-events: none; }
.blob { border-radius: 50%; filter: blur(90px); will-change: transform; }
.blob.b1 { width: 560px; height: 560px; left: -140px; top: -260px; background: rgba(0, 102, 255, .20); animation: d1 34s ease-in-out infinite alternate; }
.blob.b2 { width: 520px; height: 520px; right: -120px; top: -200px; background: rgba(0, 209, 255, .20); animation: d2 42s ease-in-out infinite alternate; }
.blob.b3 { width: 420px; height: 420px; left: 38%; top: -240px; background: rgba(110, 140, 255, .18); animation: d3 50s ease-in-out infinite alternate; }
@keyframes d1 { to { transform: translate(180px, 90px) scale(1.12); } }
@keyframes d2 { to { transform: translate(-200px, 110px) scale(1.18); } }
@keyframes d3 { to { transform: translate(-140px, 70px) scale(.9); } }
.hero-grid {
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='224' height='224'%3E%3Cpath d='M112.5 106v13M106 112.5h13' stroke='%230066ff' stroke-opacity='.4'/%3E%3C/svg%3E"),
    linear-gradient(rgba(0, 102, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 102, 255, .055) 1px, transparent 1px);
  background-size: 224px 224px, 56px 56px, 56px 56px;
  -webkit-mask-image: radial-gradient(70% 100% at 50% 0%, #000, transparent 78%); mask-image: radial-gradient(70% 100% at 50% 0%, #000, transparent 78%);
}
.hero-data { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.hero-tip { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.hero-glow { inset: 0; background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 35%), rgba(0, 102, 255, .13), transparent 70%); }
#pagebg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: .14em; }
.logo { height: 26px; width: auto; display: block; }
.brand span { line-height: 1; position: relative; top: 4px; }   /* 光学对齐：X 标志重心偏下，文字下移与其居中 */
.admin-link { font-size: 13px; color: var(--muted); padding: 6px 2px; border-bottom: 1px solid transparent; transition: .2s; }
.admin-link:hover { color: var(--ink); border-color: var(--ink); }

.hero-body { padding: 64px 0 88px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font-size: 13px; letter-spacing: .5em; text-indent: .5em; color: var(--muted);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--line-2); }
.hero h1 {
  margin: 0; font-family: var(--serif); font-size: 56px; line-height: 1.15; font-weight: 700;
  letter-spacing: .04em; text-indent: .04em; color: var(--ink);
}
.hero-body > * { animation: fade .7s both; }
.hero-body > :nth-child(2) { animation-delay: .1s; }
.hero-body > :nth-child(3) { animation-delay: .2s; }
.hero h1 em { font-style: normal; color: var(--accent); }
.sub { margin: 20px auto 0; font-size: 15px; color: var(--muted); max-width: 560px; }

.search {
  display: flex; align-items: center; gap: 12px; margin: 36px auto 0; max-width: 520px; height: 52px; padding: 0 16px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line-2); border-radius: 10px; transition: border-color .2s, box-shadow .2s; box-shadow: 0 10px 30px -18px rgba(0, 60, 160, .35);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 102, 255, .12); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.search input::placeholder { color: var(--hint); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font: 12px var(--sans); color: var(--muted); padding: 0 7px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--paper); }
.meta { margin-top: 18px; font-size: 12.5px; color: var(--muted); letter-spacing: .08em; }

/* ---------- 菜单 ---------- */
.tabs { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.menu { list-style: none; margin: 0 auto; padding: 0 32px; max-width: 1240px; display: flex; justify-content: center; gap: 36px; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu button {
  position: relative; display: flex; align-items: baseline; gap: 6px; white-space: nowrap;
  padding: 16px 0; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--text-2); transition: color .15s;
}
.menu button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
.menu button:hover { color: var(--accent); }
.menu button.active { color: var(--accent); font-weight: 600; }
.menu button.active::after { transform: scaleX(1); }
.menu .count { font-size: 11px; color: var(--hint); font-variant-numeric: tabular-nums; }

/* ---------- 内容 ---------- */
.layout { position: relative; z-index: 1; flex: 1 0 auto; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px 40px; }   /* 内容少时撑开，页脚沉底 */
.content { padding-top: 40px; min-width: 0; }
.status { min-height: 22px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.group { margin-bottom: 44px; }
.group-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.group-head .no { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.group-head h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.group-head span.n { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

/* ---------- 卡片 ---------- */
.card {
  position: relative; display: flex; flex-direction: column; padding: 16px 16px 15px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  animation: fade .4s both;
}
.card:hover { border-color: var(--accent); box-shadow: 0 10px 28px -14px rgba(0, 102, 255, .35); transform: translateY(-2px); }
.main { display: flex; gap: 14px; align-items: flex-start; }
.main::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line);
}
.icon img { width: 100%; height: 100%; object-fit: contain; padding: 7px; display: block; }
.icon.ph { border: 0; color: #fff; font-size: 20px; font-weight: 700; }
.body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.body h3 { margin: 0; font-size: 15.5px; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 20px; }
.body p { margin: 0; font-size: 12.8px; color: var(--text-2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.tags span { font-size: 11.5px; color: var(--muted); }
.tags span::before { content: "#"; margin-right: 1px; color: var(--hint); }
.go { position: absolute; top: 15px; right: 15px; font-size: 14px; color: var(--accent); opacity: 0; transform: translate(-4px, 4px); transition: .2s; }
.card:hover .go { opacity: 1; transform: none; }

.envs { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.envs-label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.env {
  display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; font-size: 12px; line-height: 1.8;
  border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--text); transition: .15s;
}
.env i { width: 6px; height: 6px; border-radius: 50%; background: var(--c, #aaa59a); }
.env:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.env:hover i { background: #fff; }

.empty { text-align: center; padding: 96px 0; color: var(--muted); }
.empty b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.footer {
  position: relative; z-index: 1; flex: none; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 16px; font-size: 12.5px; color: var(--muted); letter-spacing: .04em;
  background: #fff; border-top: 1px solid var(--line);
}
.footer-logo { height: 26px; width: auto; display: block; opacity: .9; }
.footer-logo + div { padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.2; }

@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (max-width: 880px) {
  .hero-inner, .layout { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 34px; }
  .hero-body { padding: 36px 0 56px; }
  .menu { justify-content: flex-start; padding: 0 16px; gap: 26px; }
  .content { padding-top: 28px; }
  .grid { grid-template-columns: 1fr; }
}

/* 悬停完整介绍提示 */
.tip { position: fixed; z-index: 999; pointer-events: none; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 8px 28px rgba(30, 50, 100, .16); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.tip.show { opacity: 1; transform: none; }
.tip b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 4px; }
.tip p { margin: 0; font-size: 12.8px; line-height: 1.7; color: var(--text-2); }

.tip::before { content: ''; position: absolute; top: var(--arrow, 24px); width: 10px; height: 10px; margin-top: -5px; background: #fff; transform: rotate(45deg); }
.tip[data-side="right"]::before { left: -6px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.tip[data-side="left"]::before { right: -6px; border-right: 1px solid var(--line-2); border-top: 1px solid var(--line-2); }
