/* ═════════════════════════════════════
   zsq.jizhidaoai.com — 全球AI模型生态墙
   Mobile H5 · Dark Theme · Hexagon Wall
   ═════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --bg: #080C1A;
  --bg-card: rgba(255,255,255,0.03);
  --primary: #00D4FF;
  --accent: #7B2FFF;
  --gold: #FFD166;
  --text: #E8F4FD;
  --text-dim: rgba(255,255,255,0.5);
  --text-muted: rgba(255,255,255,0.3);
  --border: rgba(255,255,255,0.08);
  --border-glow: rgba(0,212,255,0.15);
  --radius: 14px;
  --safe-bottom: env(safe-area-inset-bottom, 20px);
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════ CANVAS BG ═══════════ */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ═══════════ SCROLLBAR ═══════════ */
::-webkit-scrollbar { width: 0; }

/* ═══════════ TOPOGRAPHY ═══════════ */
.orbitron { font-family: 'Orbitron', monospace; }

/* ═══════════ HOME HEADER ═══════════ */
.home-header {
  position: relative; z-index: 10;
  text-align: center;
  padding: 40px 20px 24px;
}
.logo-ring {
  width: 72px; height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 24px rgba(0,212,255,0.35), inset 0 0 16px rgba(0,212,255,0.08);
  animation: ringPulse 3s ease-in-out infinite;
}
.logo-ring::before {
  content: ''; position: absolute;
  inset: -5px; border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.25);
  animation: ringSpin 8s linear infinite;
  border-top-color: var(--primary);
}
.logo-ring::after {
  content: ''; position: absolute;
  inset: -12px; border-radius: 50%;
  border: 1px solid rgba(123,47,255,0.15);
  animation: ringSpin 12s linear infinite reverse;
  border-bottom-color: var(--accent);
}
.logo-inner {
  font-size: 28px; position: relative; z-index: 1;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.4));
}
.site-title {
  font-family: 'Orbitron', monospace;
  font-size: 16px; font-weight: 700;
  color: var(--text); letter-spacing: 3px; margin-bottom: 2px;
}
.site-subtitle {
  font-size: 11px; color: var(--text-dim); letter-spacing: 1px;
}
.scan-line {
  width: 140px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 14px auto; animation: scanMove 2s ease-in-out infinite;
}
.stats-bar {
  display: flex; justify-content: center; gap: 20px;
  margin-top: 8px; font-size: 11px; color: var(--text-dim);
}
.stats-bar span { letter-spacing: 0.5px; }
.stats-bar .num { color: var(--primary); font-weight: 700; font-size: 14px; }

/* ═══════════ SECTION TITLES ═══════════ */
.section-header {
  position: relative; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: 28px 16px 12px;
}
.section-header .divider {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0.3;
}
.section-label {
  font-family: 'Orbitron', monospace;
  font-size: 12px; font-weight: 700;
  color: var(--primary); letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-tag {
  font-size: 10px; color: var(--text-dim);
  letter-spacing: 1px; white-space: nowrap;
}

/* ═══════════ HEXAGON WALL ═══════════ */
.hex-wall {
  position: relative; z-index: 10;
  display: flex; flex-wrap: wrap; justify-content: center;
  padding: 0 8px 10px; gap: 6px;
}
.hex-item {
  width: 100px; height: 114px;
  position: relative; cursor: pointer;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), filter 0.25s;
  filter: drop-shadow(0 0 6px var(--hex-color, #00D4FF33));
}
.hex-item:active {
  transform: scale(0.88);
  filter: drop-shadow(0 0 18px var(--hex-color, #00D4FF));
}
.hex-item::before {
  content: ''; position: absolute;
  width: 100px; height: 114px;
  background: var(--hex-color, #00D4FF);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.06; transition: opacity 0.3s;
}
.hex-item:active::before { opacity: 0.2; }
.hex-item::after {
  content: ''; position: absolute;
  width: 96px; height: 110px; top: 2px; left: 2px;
  background: var(--bg-card);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 1px solid rgba(255,255,255,0.06);
}
.hex-content {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 14px 8px; text-align: center;
}
.hex-icon { font-size: 26px; line-height: 1; margin-bottom: 3px; }
.hex-name {
  font-size: 10px; font-weight: 700; color: var(--text);
  line-height: 1.2; letter-spacing: 0.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hex-org {
  font-size: 8px; color: var(--text-dim); margin-top: 2px;
  letter-spacing: 0.5px;
}
.hex-glow {
  position: absolute; width: 40px; height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hex-color, #00D4FF), transparent 70%);
  opacity: 0; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
.hex-item:active .hex-glow { opacity: 0.4; }

/* ═══════════ QUICK LIST (备选速览) ═══════════ */
.quick-list {
  position: relative; z-index: 10;
  padding: 0 16px 30px;
}
.quick-list-title {
  font-size: 11px; color: var(--text-dim); letter-spacing: 1px;
  margin-bottom: 10px; text-align: center;
}
.quick-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.quick-chip {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 4px; border-radius: 10px;
  font-size: 10px; font-weight: 500; color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none; cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px; text-align: center;
}
.quick-chip:active {
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.3);
}

/* ═══════════ FOOTER ═══════════ */
.site-footer {
  position: relative; z-index: 10;
  text-align: center; padding: 24px 16px 40px;
  font-size: 10px; color: var(--text-muted);
  letter-spacing: 1px;
}

/* ═══════════ DETAIL PAGE ═══════════ */
.detail-page {
  min-height: 100vh; overflow-x: hidden;
}
.detail-hero {
  position: relative; min-height: 200px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 20px 20px 30px; overflow: hidden;
}
.detail-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg,
    var(--hero-color, #00D4FF15) 0%,
    var(--bg) 60%);
}
.detail-hero::after {
  content: ''; position: absolute;
  width: 180px; height: 180px; border-radius: 50%;
  top: -60px; right: -60px;
  background: radial-gradient(circle, var(--hero-color, #00D4FF), transparent 70%);
  opacity: 0.12;
}
.detail-hero .hero-content { position: relative; z-index: 1; }
.detail-back {
  position: fixed; top: 14px; left: 14px; z-index: 100;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(8,12,26,0.85); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.detail-badge {
  display: inline-block; padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 20px;
  font-size: 10px; color: rgba(255,255,255,0.6);
  letter-spacing: 1px; margin-bottom: 10px;
}
.detail-title {
  font-family: 'Orbitron', monospace;
  font-size: 20px; font-weight: 900; line-height: 1.2;
  margin-bottom: 2px;
  text-shadow: 0 0 20px var(--hero-color, #00D4FF99);
}
.detail-fullname {
  font-size: 12px; color: var(--text-dim);
  letter-spacing: 0.5px; margin-bottom: 10px;
}
.detail-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.detail-tag {
  padding: 2px 8px; border-radius: 10px;
  font-size: 9px; font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim); letter-spacing: 0.5px;
}

/* ═══════════ CONTENT CARDS ═══════════ */
.detail-body {
  position: relative; z-index: 1;
  padding: 0 16px 100px; display: flex; flex-direction: column; gap: 14px;
}
.content-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 18px;
  position: relative; overflow: hidden;
}
.content-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 2px; height: 100%;
  background: var(--hero-color, #00D4FF);
  box-shadow: 0 0 8px var(--hero-color, #00D4FF44);
}
.card-heading {
  font-family: 'Orbitron', monospace;
  font-size: 11px; font-weight: 700;
  color: var(--hero-color, #00D4FF);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 12px;
}
.card-text {
  font-size: 13px; line-height: 1.9;
  color: rgba(255,255,255,0.65);
}
.cap-list {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}
.cap-item {
  font-size: 13px; color: rgba(255,255,255,0.6);
  line-height: 1.7; padding-left: 16px; position: relative;
}
.cap-item::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--hero-color, #00D4FF); opacity: 0.6;
}

/* ═══════════ RELATED MODELS ═══════════ */
.related-section {
  padding: 0 16px 30px;
}
.related-heading {
  font-size: 11px; color: var(--text-dim);
  letter-spacing: 1px; margin-bottom: 10px;
  text-align: center;
}
.related-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.related-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 14px;
  text-decoration: none; color: var(--text);
  transition: all 0.2s; display: block;
}
.related-card:active {
  background: rgba(0,212,255,0.06);
  border-color: rgba(0,212,255,0.2);
}
.related-name { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.related-org { font-size: 10px; color: var(--text-dim); }

.back-bottom {
  display: block; text-align: center; padding: 0 16px 40px;
  font-size: 12px; color: var(--text-dim);
  text-decoration: none; letter-spacing: 1px;
}

/* ═══════════ ANIMATIONS ═══════════ */
@keyframes ringPulse {
  0%,100% { box-shadow: 0 0 20px rgba(0,212,255,0.3), inset 0 0 14px rgba(0,212,255,0.06); }
  50%     { box-shadow: 0 0 36px rgba(0,212,255,0.55), inset 0 0 22px rgba(0,212,255,0.14); }
}
@keyframes ringSpin {
  from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}
@keyframes scanMove {
  0%,100% { opacity: 0.3; width: 100px; }
  50%     { opacity: 0.9; width: 180px; }
}
.animate-in {
  animation: fadeSlideIn 0.45s ease forwards;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}