/* 66QN 共享样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-base: #e8eeea;
  --text-primary: #16241c;
  --text-secondary: #33473d;
  --text-muted: #5a7268;
  --text-faint: #7e968c;
  --accent-blue: #1e6cc0;
  --accent-green: #1f9a5c;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-shadow: rgba(0, 50, 35, 0.16);
  --glass-blur: 42px;
  --topbar-bg: rgba(255, 255, 255, 0.6);
  --overlay-color: rgba(228, 238, 232, 0.28);
  --divider: rgba(0, 40, 30, 0.08);
  --toast-bg: rgba(255, 255, 255, 0.85);
  --toast-border: rgba(31, 154, 92, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-base: #0a1016;
    --text-primary: #e6f0ea;
    --text-secondary: #b8cec2;
    --text-muted: #82a094;
    --text-faint: #56706a;
    --accent-blue: #6ab4ec;
    --accent-green: #5cd094;
    --glass-bg: rgba(16, 32, 40, 0.55);
    --glass-bg-strong: rgba(14, 28, 36, 0.68);
    --glass-border: rgba(130, 190, 220, 0.18);
    --glass-highlight: rgba(255, 255, 255, 0.10);
    --glass-shadow: rgba(0, 0, 0, 0.35);
    --topbar-bg: rgba(10, 16, 22, 0.6);
    --overlay-color: rgba(8, 14, 20, 0.32);
    --divider: rgba(255, 255, 255, 0.07);
    --toast-bg: rgba(14, 28, 36, 0.9);
    --toast-border: rgba(92, 208, 148, 0.4);
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.75;
}

.bg { position: fixed; inset: 0; z-index: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.bg-overlay { position: fixed; inset: 0; z-index: 0; background: var(--overlay-color); }

.wrap { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* topbar */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--topbar-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(2.2);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(2.2);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 4px 30px var(--glass-shadow);
}

.topbar-logo { font-family: 'VT323', monospace; font-size: 1.9rem; color: var(--accent-blue); letter-spacing: 3px; text-decoration: none; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); }
.topbar-live b { color: var(--accent-green); font-size: 1rem; }
.topbar-nav { display: flex; gap: 22px; list-style: none; }
.topbar-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.topbar-nav a:hover { color: var(--accent-green); }
.topbar-nav a.active { color: var(--accent-blue); font-weight: 700; }

/* glass */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(2.4) brightness(1.06);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(2.4) brightness(1.06);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 -1px 0 rgba(255,255,255,0.04), 0 12px 40px var(--glass-shadow);
}

.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(56px) saturate(2.6) brightness(1.08);
  -webkit-backdrop-filter: blur(56px) saturate(2.6) brightness(1.08);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 -1px 0 rgba(255,255,255,0.05), 0 16px 48px var(--glass-shadow);
}

/* hero (首页) */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 24px 60px;
}

.hero-name {
  font-family: 'VT323', monospace;
  font-size: clamp(5.5rem, 16vw, 11rem);
  color: var(--accent-blue);
  letter-spacing: 8px;
  line-height: 1;
  text-shadow: 0 0 80px rgba(30, 108, 192, 0.35);
}

.hero-tagline { font-size: 1.08rem; color: var(--text-secondary); margin: 10px 0 44px; letter-spacing: 1px; }

.live-big { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 30px; }

.live-dot { width: 16px; height: 16px; border-radius: 50%; background: #888; flex-shrink: 0; transition: background 0.4s; }
.live-dot.online { background: var(--accent-green); box-shadow: 0 0 14px var(--accent-green); animation: breath 2s ease-in-out infinite; }
.live-dot.offline { background: #c05050; }

@keyframes breath {
  0%, 100% { box-shadow: 0 0 8px var(--accent-green); }
  50% { box-shadow: 0 0 22px var(--accent-green); }
}

.live-num { font-family: 'VT323', monospace; font-size: clamp(3.4rem, 9vw, 5.5rem); line-height: 1; color: var(--accent-green); letter-spacing: 2px; }
.live-label { font-size: 1rem; color: var(--text-secondary); text-align: left; line-height: 1.5; }
.live-label small { display: block; font-size: 0.8rem; color: var(--text-faint); }

.addr-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 42px;
  border-radius: 60px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  color: var(--accent-blue);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.addr-cta:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 var(--glass-highlight), 0 22px 60px var(--glass-shadow); }
.addr-cta svg { width: 20px; height: 20px; stroke: var(--text-muted); flex-shrink: 0; }
.addr-hint { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 42px; }

.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 40px; font-size: 0.92rem; color: var(--text-secondary); }
.badge b { color: var(--accent-green); }
.badge .b-ico { font-size: 1rem; }

.hero-scroll { margin-top: 52px; font-size: 0.8rem; color: var(--text-faint); animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* 子页页头 */
.page-head { padding: 140px 0 20px; }
.page-head h1 { font-family: 'VT323', monospace; font-size: clamp(2.6rem, 7vw, 4rem); color: var(--accent-blue); letter-spacing: 4px; line-height: 1.15; }
.page-head p { font-size: 1rem; color: var(--text-muted); margin-top: 8px; }
.page-back { display: inline-block; margin-top: 14px; color: var(--text-faint); text-decoration: none; font-size: 0.88rem; }
.page-back:hover { color: var(--accent-green); }

/* sections */
.divider { height: 1px; background: var(--divider); border: none; }
.section { padding: 56px 0; }
.section-label { font-family: 'VT323', monospace; font-size: 1.3rem; color: var(--accent-blue); letter-spacing: 2px; margin-bottom: 22px; opacity: 0.85; }
.section-body { font-size: 1.02rem; line-height: 2; color: var(--text-secondary); max-width: 700px; }
.text-card { border-radius: 20px; padding: 32px 36px; }

.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.adv-card { border-radius: 18px; padding: 28px 26px; }
.adv-card .a-num { font-family: 'VT323', monospace; font-size: 2rem; color: var(--accent-green); line-height: 1.2; }
.adv-card h3 { font-size: 1.08rem; font-weight: 700; margin: 6px 0 8px; color: var(--text-primary); }
.adv-card p { font-size: 0.9rem; line-height: 1.8; color: var(--text-muted); }

.footnote { font-size: 0.82rem; color: var(--text-faint); margin-top: 22px; opacity: 0.8; }
.footnote::before { content: '* '; }

/* 轮播 */
.carousel { position: relative; padding: 0 44px; margin: 0 -32px; }
.carousel-viewport { overflow: hidden; border-radius: 18px; }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1); will-change: transform; }
.carousel-slide { flex: 0 0 25%; padding: 0 7px; box-sizing: border-box; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px) saturate(2);
  -webkit-backdrop-filter: blur(20px) saturate(2);
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
  box-shadow: 0 4px 16px var(--glass-shadow);
  z-index: 2;
}

.carousel-arrow:hover { color: var(--accent-green); border-color: var(--accent-green); }
.carousel-arrow.prev { left: 4px; }
.carousel-arrow.next { right: 4px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dots .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); opacity: 0.35; cursor: pointer; transition: all 0.3s; }
.carousel-dots .cdot.active { opacity: 1; background: var(--accent-green); width: 22px; border-radius: 5px; }

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px var(--glass-shadow);
  background: var(--glass-bg);
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }

/* 指令列表 */
.cmd-list { margin: 22px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.cmd-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cmd-row code {
  font-family: 'VT323', monospace;
  font-size: 1.12rem;
  letter-spacing: 0.5px;
  color: var(--accent-blue);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 3px 12px;
  min-width: 170px;
  display: inline-block;
  text-align: center;
}
.cmd-row span { font-size: 0.95rem; color: var(--text-muted); }
.section-note { font-size: 0.9rem; line-height: 1.9; color: var(--text-faint); margin-top: 16px; padding-left: 14px; border-left: 3px solid var(--glass-border); }

/* 信息条 */
.info-strip { display: flex; flex-wrap: wrap; border-radius: 18px; overflow: hidden; }
.info-cell { flex: 1 1 180px; padding: 22px 26px; border-right: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.info-cell .k { font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px; }
.info-cell .v { font-family: 'VT323', monospace; font-size: 1.25rem; color: var(--accent-green); letter-spacing: 1px; }

/* FAQ / 启动器 */
.faq-q { font-size: 1.45rem; font-weight: 900; margin-bottom: 16px; }
.faq-q::before { content: 'Q'; font-family: 'VT323', monospace; color: var(--accent-green); margin-right: 12px; font-size: 1.7rem; }

.launcher-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.launcher-item { display: block; text-decoration: none; border-radius: 14px; padding: 22px 20px; transition: transform 0.25s, box-shadow 0.25s; }
.launcher-item:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--glass-highlight), 0 18px 48px var(--glass-shadow); }
.launcher-item .l-name { font-family: 'VT323', monospace; font-size: 1.6rem; color: var(--accent-blue); letter-spacing: 2px; display: block; margin-bottom: 6px; }
.launcher-item .l-tag { font-size: 0.86rem; color: var(--text-muted); display: block; line-height: 1.6; }
.launcher-item .l-tag strong { color: var(--accent-green); font-weight: 900; }
.launcher-item .l-go { display: inline-block; margin-top: 10px; font-size: 0.8rem; color: var(--text-faint); }

/* 加入 */
.join-block { padding: 64px 0; text-align: center; }
.join-block p { font-size: 1rem; color: var(--text-muted); line-height: 2; margin-bottom: 26px; max-width: 520px; margin-left: auto; margin-right: auto; }
.join-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.join-link { display: inline-flex; align-items: center; gap: 9px; color: var(--text-muted); text-decoration: none; font-size: 0.92rem; padding: 11px 22px; border-radius: 12px; transition: color 0.2s, transform 0.2s; }
.join-link:hover { color: var(--accent-blue); transform: translateY(-2px); }
.join-link svg { width: 22px; height: 22px; }
.join-link.qq:hover { color: #12b7f0; }

/* footer */
footer { padding: 26px 0 36px; text-align: center; border-top: 1px solid var(--divider); font-size: 0.78rem; color: var(--text-faint); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 40px; background: rgba(0,0,0,0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.15); }
.lightbox-close { position: absolute; top: 24px; right: 32px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); color: #fff; font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-count { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-family: 'VT323', monospace; font-size: 1.1rem; letter-spacing: 2px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; font-size: 1.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }

/* toast */
.toast { position: fixed; bottom: 36px; left: 50%; transform: translateX(-50%) translateY(80px); padding: 13px 30px; background: var(--toast-bg); backdrop-filter: blur(48px) saturate(2.4); -webkit-backdrop-filter: blur(48px) saturate(2.4); border: 1px solid var(--toast-border); border-radius: 12px; color: var(--accent-green); font-size: 0.98rem; font-weight: 500; z-index: 999; opacity: 0; transition: all 0.3s ease; pointer-events: none; box-shadow: 0 12px 40px var(--glass-shadow); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* responsive */
@media (max-width: 700px) {
  .topbar { padding: 12px 20px; }
  .topbar-nav { display: none; }
  .topbar-live { font-size: 0.8rem; }
  .wrap { padding: 0 20px; }
  .hero-name { letter-spacing: 4px; }
  .addr-cta { font-size: 1.15rem; padding: 15px 28px; }
  .live-num { font-size: 2.8rem; }
  .adv-grid { grid-template-columns: 1fr; }
  .carousel { padding: 0 40px; margin: 0; }
  .carousel-slide { flex: 0 0 50%; }
  .carousel-arrow { width: 34px; height: 34px; font-size: 1.3rem; }
  .carousel-arrow.prev { left: 3px; }
  .carousel-arrow.next { right: 3px; }
  .launcher-list { grid-template-columns: 1fr; }
  .info-cell { flex: 1 1 46%; }
  .text-card { padding: 24px 22px; }
  .lightbox { padding: 16px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.4rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}
