/* ============================================================
   莲花清辉 · AI 科技主题
   ============================================================ */
:root {
  --bg: #05070f;
  --bg2: #080d1a;
  --panel: rgba(13, 19, 34, .74);
  --panel2: rgba(18, 26, 46, .85);
  --line: rgba(110, 180, 255, .15);
  --line2: rgba(110, 180, 255, .3);
  --cyan: #22d3ee;
  --mint: #5eead4;
  --blue: #4d8dff;
  --violet: #8b5cf6;
  --text: #e6f0ff;
  --muted: #7f93b5;
  --mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, Consolas, monospace;
  --r: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lang-wait body { visibility: hidden; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  min-height: 100vh; overflow-x: hidden;
  background-image:
    radial-gradient(900px 520px at 78% -8%, rgba(77, 141, 255, .18), transparent 62%),
    radial-gradient(700px 420px at 8% 4%, rgba(139, 92, 246, .14), transparent 62%),
    linear-gradient(rgba(94, 234, 212, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, .035) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(34, 211, 238, .3); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #1b2a45; border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 顶栏 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(5, 7, 15, .8);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: 1240px; margin: 0 auto; padding: 0 22px; height: 68px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 12px rgba(34, 211, 238, .55)); }
.brand-name { font-size: 18.5px; font-weight: 800; letter-spacing: 3px;
  background: linear-gradient(120deg, #a5f3fc, #7dd3fc 40%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--muted); letter-spacing: 2.4px; margin-top: 1px; }
.nav { display: flex; gap: 2px; margin-left: 6px; }
.nav a { padding: 8px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: .2s; }
.nav a:hover { color: var(--text); background: rgba(110, 180, 255, .08); }
.nav a.active { color: var(--cyan); background: rgba(34, 211, 238, .1); }

/* ---------- 通用 ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 22px; }
.section { margin-top: 64px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.sec-head h2 { font-size: 23px; font-weight: 800; letter-spacing: .5px; display: flex; align-items: center; gap: 11px; }
.sec-head h2::before { content: ""; width: 3px; height: 21px; border-radius: 2px; background: linear-gradient(180deg, var(--cyan), var(--violet)); }
.sec-head .sub { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 1.4px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; height: 46px; padding: 0 24px;
  border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; border: 1px solid transparent;
  background: linear-gradient(120deg, #22d3ee, #4d8dff 55%, #8b5cf6); color: #04121c; transition: .22s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(34, 211, 238, .28); }
.btn.ghost { background: rgba(110, 180, 255, .07); color: var(--text); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: none; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: 10px; }
.tag { font-family: var(--mono); font-size: 11px; padding: 4px 9px; border-radius: 6px; background: rgba(110, 180, 255, .1); color: #9fc0e8; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 66px 0 8px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 2px; color: var(--cyan); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 14px;
  background: rgba(34, 211, 238, .07); margin-bottom: 20px; }
.hero h1 { font-size: 54px; line-height: 1.14; font-weight: 800; letter-spacing: 1px; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(115deg, #a5f3fc 5%, #7dd3fc 35%, #c4b5fd 70%, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .hero-ai { font-size: 1.8em; letter-spacing: 2px; margin-left: .12em; }
.hero .lead { color: #a8bcd8; font-size: 16.5px; line-height: 1.85; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual img { width: 100%; max-width: 360px; filter: drop-shadow(0 0 60px rgba(34, 211, 238, .35)); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.035) } }
.orbit { position: absolute; inset: -6% ; border: 1px dashed rgba(110, 180, 255, .18); border-radius: 50%; animation: spin 34s linear infinite; }
.orbit::after { content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- 数字条 ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; backdrop-filter: blur(8px); }
.metric b { display: block; font-family: var(--mono); font-size: 30px; font-weight: 800; color: var(--cyan); line-height: 1.1; }
.metric span { font-size: 12.5px; color: var(--muted); letter-spacing: .6px; }

/* ---------- 子类卡 ---------- */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cat-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 26px;
  background: linear-gradient(150deg, rgba(34, 211, 238, .1), rgba(139, 92, 246, .07) 60%, transparent), var(--panel);
  border: 1px solid var(--line); transition: .25s; display: block;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: 0 18px 44px rgba(0, 0, 0, .45); }
.cat-card .ic { font-size: 26px; color: var(--cyan); display: block; margin-bottom: 14px; }
.cat-card h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.cat-card .en { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 2px; margin-bottom: 12px; display: block; }
.cat-card p { color: #a8bcd8; font-size: 14.5px; line-height: 1.75; margin-bottom: 16px; }
.cat-card .foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.cat-card .foot .cnt { font-family: var(--mono); color: var(--cyan); }

/* ---------- 模块网格 ---------- */
.filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(110, 180, 255, .06); border: 1px solid var(--line); color: var(--muted); transition: .2s; }
.chip:hover { color: var(--text); border-color: var(--line2); }
.chip.active { background: rgba(34, 211, 238, .14); border-color: var(--cyan); color: var(--cyan); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 16px; }
.mod {
  position: relative; border-radius: var(--r); padding: 20px; background: var(--panel);
  border: 1px solid var(--line); backdrop-filter: blur(8px); transition: .22s; display: flex; flex-direction: column;
}
.mod:hover { border-color: var(--line2); transform: translateY(-3px); }
.mod.live { border-color: rgba(94, 234, 212, .38); }
.mod-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mod-ic { font-size: 22px; color: var(--cyan); line-height: 1; }
.mod h4 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.mod p { font-size: 13.5px; color: #97abc9; line-height: 1.7; flex: 1; }
.mod .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.st { font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border-radius: 5px; letter-spacing: .5px; }
.st-live { background: rgba(94, 234, 212, .16); color: var(--mint); border: 1px solid rgba(94, 234, 212, .3); }
.st-dev { background: rgba(77, 141, 255, .16); color: #8ab4ff; border: 1px solid rgba(77, 141, 255, .32); }
.st-plan { background: rgba(127, 147, 181, .13); color: #93a6c4; border: 1px solid rgba(127, 147, 181, .26); }
.mod .id { font-family: var(--mono); font-size: 11px; color: #5f7396; }
.mod .go { position: absolute; right: 18px; bottom: 16px; font-size: 12.5px; color: var(--cyan); opacity: 0; transition: .2s; }
.mod:hover .go { opacity: 1; }
.empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 46px 0; font-size: 14px; }

/* ---------- 面板 / 通用组件 ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; backdrop-filter: blur(8px); }
.panel + .panel { margin-top: 18px; }
.panel h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.panel .hint { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.code {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: #a7d8ff;
  background: #060a14; border: 1px solid var(--line); border-radius: 11px; padding: 15px 17px; overflow: auto; white-space: pre;
}
.status-row { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 11px; background: rgba(110, 180, 255, .05); border: 1px solid var(--line); margin-bottom: 10px; }
.status-row .k { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 150px; }
.status-row .v { font-size: 13.5px; font-family: var(--mono); }
.badge-ok { color: var(--mint); } .badge-no { color: #ff9b9b; }
.tool-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 10px; background: rgba(8, 13, 26, .5); }
.tool-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; }
.tool-head:hover { background: rgba(110, 180, 255, .05); }
.tool-head code { font-family: var(--mono); font-size: 13.5px; color: var(--cyan); }
.tool-head .ro { font-family: var(--mono); font-size: 10px; padding: 3px 7px; border-radius: 5px; background: rgba(94, 234, 212, .12); color: var(--mint); }
.tool-head .rw { font-family: var(--mono); font-size: 10px; padding: 3px 7px; border-radius: 5px; background: rgba(255, 176, 102, .14); color: #ffc078; }
.tool-head .arrow { margin-left: auto; color: var(--muted); transition: .2s; }
.tool-item.open .arrow { transform: rotate(90deg); }
.tool-body { display: none; padding: 0 16px 16px; }
.tool-item.open .tool-body { display: block; }
.tool-body .desc { font-size: 13.5px; color: #9fb4d2; line-height: 1.75; margin-bottom: 12px; }
.field { margin-bottom: 10px; }
.field label { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: #060a14;
  color: var(--text); padding: 0 12px; font-size: 13.5px; font-family: var(--mono); outline: none;
}
.field textarea { height: 76px; padding: 9px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
.result { font-family: var(--mono); font-size: 12px; line-height: 1.75; color: #8fe3c8; background: #060a14; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; margin-top: 12px; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.result:empty { display: none; }

/* ---------- 页面头 ---------- */
.page-head { padding: 46px 0 6px; }
.page-head .crumb { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 1.4px; margin-bottom: 14px; }
.page-head h1 { font-size: 38px; font-weight: 800; letter-spacing: .5px; margin-bottom: 12px; }
.page-head p { color: #a8bcd8; font-size: 15.5px; line-height: 1.8; max-width: 720px; }

/* ---------- 页脚 ---------- */
.footer { margin-top: 80px; border-top: 1px solid var(--line); background: var(--bg2); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 34px 22px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footer .fb { display: flex; align-items: center; gap: 11px; }
.footer .fb img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(34, 211, 238, .45)); }
.footer p { color: var(--muted); font-size: 13px; margin-top: 7px; }
.footer-links { display: flex; gap: 20px; font-size: 13.5px; color: var(--muted); }
.footer-links a:hover { color: var(--cyan); }

/* ---------- 访问统计 ---------- */
.stat-table { width: 100%; border-collapse: collapse; }
.stat-table th, .stat-table td { text-align: left; padding: 16px 10px; border-bottom: 1px solid var(--line); }
.stat-table th { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .6px; }
.stat-table td.num { font-family: var(--mono); font-size: 22px; color: var(--cyan); white-space: nowrap; }
.stat-name { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; }
.stat-name a:hover { color: var(--cyan); }
.stat-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); vertical-align: middle; }
.stat-empty { color: var(--muted); text-align: center; padding: 28px 10px; }
.admin-gate { max-width: 440px; margin-top: 28px; }
.admin-error { color: #ff9b9b; font-size: 13px; min-height: 1.2em; margin-top: 10px; }
.admin-bar { display: flex; justify-content: flex-end; margin-top: 22px; }
.health-section { margin-top: 18px; }
.health-section .metrics { margin-top: 14px; }
.health-section .metric b { font-size: 26px; white-space: nowrap; }
.health-card { display: flex; align-items: flex-start; gap: 28px; }
.health-level { font-size: 32px; font-weight: 800; letter-spacing: 2px; line-height: 1.1; min-width: 4.2em; }
.health-level.steady { color: var(--mint); }
.health-level.watch { color: #f5c16c; }
.health-level.alert { color: #ff9b9b; }
.health-notes { list-style: none; color: #a8bcd8; font-size: 14.5px; line-height: 1.7; }
.health-notes li + li { margin-top: 4px; }
.health-log-actions { display: flex; justify-content: flex-end; }
.health-log {
  margin-top: 14px;
  max-height: 320px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #c5d6ee;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero h1 { font-size: 38px; }
  .hero-visual { order: -1; max-width: 240px; margin: 0 auto; }
  .cats { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .health-card { flex-direction: column; gap: 10px; }
  .hero h1 { font-size: 30px; }
  .grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .brand-name { font-size: 16px; letter-spacing: 2px; }
}
