:root {
  --bg: #070b14;
  --bg-card: rgba(15, 23, 42, 0.6);
  --border: rgba(255, 255, 255, 0.06);
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --green: #10b981;
  --green-light: #34d399;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #f59e0b;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background:
    linear-gradient(rgba(7,11,20,0.85), rgba(7,11,20,0.9)),
    url('/images/bg.png') center center / cover no-repeat fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:#1e293b; border-radius:3px; }

/* ===== Navbar ===== */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 64px;
  background: rgba(7, 11, 20, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.logo-wrap { display:flex; align-items:center; gap:14px; }
.logo-icon {
  width:44px; height:44px; border-radius:12px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  display:flex; align-items:center; justify-content:center;
  font-size:22px;
  box-shadow: 0 4px 20px rgba(245,158,11,0.25);
}
.logo-text h1 { font-size:20px; font-weight:800; letter-spacing:0.5px; line-height:1.2; }
.logo-text span { font-size:11px; color:var(--text-muted); letter-spacing:3px; font-weight:500; }

.nav-actions { display:flex; align-items:center; gap:14px; }
.nav-btn-icon {
  width:42px; height:42px; border-radius:12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:all .3s; font-size:18px;
}
.nav-btn-icon:hover { background:rgba(255,255,255,0.08); color:var(--text); }
.nav-avatar {
  width:42px; height:42px; border-radius:50%;
  background: linear-gradient(135deg, var(--green), #059669);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:18px; border:2px solid rgba(255,255,255,0.1);
}
.nav-btn-primary {
  padding: 10px 24px; border-radius:10px; border:none;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color:#fff; font-size:14px; font-weight:600;
  cursor:pointer; display:flex; align-items:center; gap:8px;
  text-decoration:none;
  box-shadow: 0 4px 20px rgba(59,130,246,0.25);
  transition: all .3s;
}
.nav-btn-primary:hover { transform:translateY(-1px); box-shadow:0 6px 24px rgba(59,130,246,0.35); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display:flex; flex-direction:column; justify-content:center;
  padding: 140px 64px 100px;
  position:relative;
  background:
    linear-gradient(rgba(7,11,20,0.7), rgba(7,11,20,0.8)),
    url('/images/bg.png') center center / cover no-repeat fixed;
}

.hero-badge {
  display:inline-flex; align-items:center; gap:10px;
  padding: 10px 22px; border-radius:100px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.15);
  color: var(--green-light); font-size:14px; font-weight:500;
  margin-bottom: 40px; width:fit-content;
}
.hero-badge::before {
  content:''; width:6px; height:6px; border-radius:50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}

.hero h2 { font-size:64px; font-weight:800; line-height:1.15; margin-bottom:10px; }
.hero h2 .white { color: var(--text); display:block; }
.hero h2 .green {
  background: linear-gradient(135deg, #34d399, #10b981);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display:block;
}

.hero-desc {
  font-size: 18px; color: var(--text-dim); line-height: 1.9;
  max-width: 560px; margin: 28px 0 44px;
}

.hero-btns { display:flex; gap:18px; margin-bottom:56px; }
.btn-hero-main {
  padding: 18px 36px; border-radius: 14px; border:none;
  background: linear-gradient(135deg, #34d399, #059669);
  color:#fff; font-size:16px; font-weight:700;
  cursor:pointer; display:flex; align-items:center; gap:10px;
  text-decoration:none;
  box-shadow: 0 6px 30px rgba(16,185,129,0.3);
  transition: all .3s;
}
.btn-hero-main:hover { transform:translateY(-2px); box-shadow:0 10px 40px rgba(16,185,129,0.4); }
.btn-hero-sec {
  padding: 18px 36px; border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text); font-size:16px; font-weight:600;
  cursor:pointer; display:flex; align-items:center; gap:10px;
  text-decoration:none; transition: all .3s;
}
.btn-hero-sec:hover { background:rgba(255,255,255,0.04); border-color:rgba(255,255,255,0.2); }

.hero-tags { display:flex; gap:32px; }
.hero-tag { display:flex; align-items:center; gap:10px; font-size:15px; color:var(--text-dim); }
.hero-tag .dot { width:8px; height:8px; border-radius:50%; }
.hero-tag .dot.g { background:var(--green); box-shadow:0 0 10px var(--green); }
.hero-tag .dot.b { background:var(--blue); box-shadow:0 0 10px var(--blue); }
.hero-tag .dot.c { background:var(--cyan); box-shadow:0 0 10px var(--cyan); }

.scroll-indicator {
  position:absolute; bottom:50px; right:64px;
  width:52px; height:52px; border-radius:50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:all .3s; font-size:20px;
}
.scroll-indicator:hover { background:rgba(255,255,255,0.08); color:var(--text); }

/* Review Float Card */
.review-float {
  position:absolute; bottom:120px; right:64px;
  width:340px;
  background: rgba(15,23,42,0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px;
  animation: float 5s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
@keyframes float {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-12px); }
}
.review-head { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.review-avatar {
  width:44px; height:44px; border-radius:12px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  display:flex; align-items:center; justify-content:center;
  font-size:20px;
}
.review-name { font-weight:700; font-size:16px; }
.review-sub { font-size:12px; color:var(--text-muted); margin-top:2px; }
.review-body {
  font-size:14px; color:var(--text-dim); line-height:1.7;
  padding-top:16px; border-top:1px solid var(--border);
}

/* ===== Sections ===== */
.section { padding: 100px 64px; max-width: 1280px; margin:0 auto; }

/* Query Box */
.query-box-wrap {
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(16,185,129,0.04));
  border: 1px solid rgba(59,130,246,0.12);
  border-radius: 24px; padding: 40px;
  margin-bottom: 80px;
}
.query-title { font-size:22px; font-weight:700; margin-bottom:8px; }
.query-sub { font-size:15px; color:var(--text-dim); margin-bottom:24px; }
.query-row { display:flex; gap:14px; }
.query-input {
  flex:1; padding: 16px 20px; border-radius:14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text); font-size:15px; outline:none;
  transition: all .3s;
}
.query-input:focus { border-color:rgba(59,130,246,0.4); background:rgba(255,255,255,0.06); }
.query-input::placeholder { color:var(--text-muted); }
.query-btn-go {
  padding: 16px 32px; border-radius:14px; border:none;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color:#fff; font-size:15px; font-weight:700;
  cursor:pointer; transition:all .3s;
  white-space:nowrap;
}
.query-btn-go:hover { transform:translateY(-1px); box-shadow:0 6px 24px rgba(59,130,246,0.3); }
.query-result {
  margin-top:24px; padding:24px; border-radius:16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  display:none;
}
.query-result.show { display:block; }

/* Hot List Header */
.sec-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.sec-header h3 { font-size:20px; font-weight:700; display:flex; align-items:center; gap:10px; }
.online-pill {
  padding: 8px 18px; border-radius:10px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.18);
  color: var(--blue-light); font-size:14px; font-weight:600;
  display:flex; align-items:center; gap:8px;
}

/* Server List Items */
.server-list { display:flex; flex-direction:column; gap:14px; }
.srv-item {
  display:flex; align-items:center; gap:18px;
  padding: 20px 24px; border-radius: 18px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  transition: all .3s; cursor:pointer;
}
.srv-item:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateX(6px);
  background: rgba(15,23,42,0.8);
}
.srv-icon {
  width:52px; height:52px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:24px; flex-shrink:0;
}
.srv-info { flex:1; min-width:0; }
.srv-name-row { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.srv-name { font-size:17px; font-weight:700; }
.srv-ver {
  padding: 3px 10px; border-radius:6px;
  background: rgba(59,130,246,0.12);
  color: var(--blue-light); font-size:12px; font-weight:600;
}
.srv-meta { display:flex; align-items:center; gap:20px; font-size:14px; color:var(--text-dim); }
.srv-meta span { display:flex; align-items:center; gap:6px; }
.srv-status {
  padding: 8px 16px; border-radius:10px;
  font-size:13px; font-weight:600; flex-shrink:0;
}
.st-online { background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.18); color:var(--green); }
.st-full { background:rgba(245,158,11,0.1); border:1px solid rgba(245,158,11,0.18); color:var(--yellow); }
.st-maint { background:rgba(239,68,68,0.1); border:1px solid rgba(239,68,68,0.18); color:var(--red); }

/* Stats Grid */
.stats-wrap {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 24px; overflow:hidden;
}
.stats-grid { display:grid; grid-template-columns: repeat(2, 1fr); }
.stat-cell {
  padding: 40px 36px;
  display:flex; align-items:center; gap:22px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.stat-cell:nth-child(2n) { border-right:none; }
.stat-cell:nth-last-child(-n+2) { border-bottom:none; }
.stat-cell.full { grid-column: span 2; border-right:none; border-bottom:none; }
.stat-ico {
  width:60px; height:60px; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  font-size:26px; flex-shrink:0;
}
.stat-ico.pur { background:rgba(139,92,246,0.12); }
.stat-ico.bl { background:rgba(59,130,246,0.12); }
.stat-ico.yl { background:rgba(245,158,11,0.12); }
.stat-ico.rd { background:rgba(239,68,68,0.12); }
.stat-ico.cy { background:rgba(6,182,212,0.12); }
.stat-num { font-size:40px; font-weight:800; color:var(--text); line-height:1; margin-bottom:8px; }
.stat-lbl { font-size:15px; color:var(--text-dim); }

/* Featured Header */
.feat-header { margin-bottom: 36px; }
.feat-header h2 { font-size:40px; font-weight:800; margin-bottom:10px; }
.feat-header h2 .w { color:var(--text); }
.feat-header h2 .bl {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.feat-header p { font-size:16px; color:var(--text-dim); }

/* Filter Tabs */
.tabs-row { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.tab-pill {
  padding: 10px 22px; border-radius:12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-dim); font-size:14px; font-weight:500;
  cursor:pointer; transition:all .3s;
  display:flex; align-items:center; gap:8px;
  user-select:none;
}
.tab-pill:hover { background:rgba(255,255,255,0.06); color:var(--text); }
.tab-pill.on {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.25);
  color: var(--blue-light);
}

/* Server Cards */
.cards-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap:24px; }
.srv-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 24px; overflow:hidden;
  transition: all .35s;
}
.srv-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.card-banner {
  height: 140px;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.06));
  position:relative;
}

.card-banner {
  height: 140px;
  position: relative;
  overflow: hidden;
}

/* banner 渐变背景，和服务器图标颜色一致 */
.card-banner {
  height: 140px;
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;    /* 从 left 改成 right */
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--green-light);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.card-body { padding: 0 24px 24px; position:relative; }
.card-icon-big {
  width:72px; height:72px; border-radius:20px;
  display:flex; align-items:center; justify-content:center;
  font-size:36px; margin-top: -36px; margin-bottom:18px;
  border: 3px solid rgba(7,11,20,0.8);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.card-title-row { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.card-title { font-size:20px; font-weight:700; }
.card-tag-java {
  padding: 3px 10px; border-radius:6px;
  background: rgba(245,158,11,0.12);
  color: var(--yellow); font-size:12px; font-weight:600;
}
.card-desc {
  font-size:14px; color:var(--text-dim); line-height:1.7;
  margin-bottom:18px; min-height:48px;
}
.card-meta-row { display:flex; align-items:center; gap:20px; font-size:14px; color:var(--text-dim); margin-bottom:18px; }
.card-meta-row span { display:flex; align-items:center; gap:6px; }
.card-bar-wrap {
  height:5px; border-radius:3px;
  background: rgba(255,255,255,0.05); margin-bottom:20px;
  overflow:hidden;
}
.card-bar { height:100%; border-radius:3px; background: linear-gradient(90deg, var(--green), #34d399); transition:width .5s ease; }
.card-foot { display:flex; align-items:center; gap:14px; }
.card-addr {
  flex:1; padding: 12px 16px; border-radius:12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-dim); font-size:13px;
  font-family: 'SF Mono', monospace;
}
.card-join {
  padding: 12px 24px; border-radius:12px; border:none;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color:#fff; font-size:14px; font-weight:600;
  cursor:pointer; display:flex; align-items:center; gap:8px;
  transition:all .3s; white-space:nowrap;
}
.card-join:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(59,130,246,0.3); }

/* Footer */
.footer {
  text-align:center; padding: 50px 20px;
  color: var(--text-muted); font-size:13px;
  border-top: 1px solid var(--border);
}

/* Toast */
.toast {
  position:fixed; bottom:28px; right:28px; z-index:9999;
  padding: 16px 28px; border-radius:14px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  color: var(--text); font-size:14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  transform: translateY(120px); opacity:0;
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
}
.toast.show { transform:translateY(0); opacity:1; }

/* Responsive */
@media (max-width: 900px) {
  .navbar { padding:14px 24px; }
  .hero { padding:120px 24px 80px; }
  .hero h2 { font-size:40px; }
  .section { padding:60px 24px; }
  .stats-grid { grid-template-columns:1fr; }
  .stat-cell { border-right:none; }
  .stat-cell:nth-last-child(2) { border-bottom:1px solid var(--border); }
  .stat-cell.full { grid-column:span 1; }
  .cards-grid { grid-template-columns:1fr; }
  .review-float { display:none; }
  .query-row { flex-direction:column; }
}
