/* ============================================================
   清水电竞 官网样式 - 深色科技蓝风格
   ============================================================ */
:root {
  --bg: #050b1a;
  --bg-soft: #081226;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(96, 176, 255, 0.14);
  --primary: #2ea8ff;
  --accent: #35e6ff;
  --gradient: linear-gradient(135deg, #2ea8ff 0%, #35e6ff 100%);
  --text: #eaf4ff;
  --text-dim: rgba(234, 244, 255, 0.62);
  --radius: 16px;
  --shadow-blue: 0 10px 40px rgba(46, 168, 255, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.section { padding: 96px 0; }
.section-sm { padding: 48px 0; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  background: var(--gradient);
  color: #04101f;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(46, 168, 255, 0.4); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(120, 190, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(5, 11, 26, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--panel-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--panel-border), 0 4px 14px rgba(46, 168, 255, 0.3);
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-link {
  font-size: 15px;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width .25s ease, left .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; left: 0; }

.nav-download { margin-left: 4px; }

/* 后台登录入口（导航） */
.nav-admin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-admin-icon { width: 15px; height: 15px; opacity: .7; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(80, 160, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 160, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.glow-1 { width: 480px; height: 480px; background: rgba(46, 168, 255, .28); top: -120px; right: 6%; }
.glow-2 { width: 380px; height: 380px; background: rgba(53, 230, 255, .16); bottom: -80px; left: -60px; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-tagline {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--accent);
  border: 1px solid rgba(53, 230, 255, 0.35);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 22px;
  background: rgba(53, 230, 255, 0.06);
}

.hero-title {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.hero-title .gradient-text { font-size: .62em; letter-spacing: 4px; }

.hero-tags { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.tag {
  font-size: 14px;
  color: var(--text-dim);
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}
.tag::before { content: "◆ "; color: var(--accent); font-size: 10px; vertical-align: 1px; }

.hero-desc {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero 右侧视觉 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual-frame {
  position: relative;
  width: min(380px, 80%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 80px rgba(46, 168, 255, 0.25), 0 0 0 6px rgba(46, 168, 255, 0.06);
  animation: float 6s ease-in-out infinite;
}
.hero-visual-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.hero-visual-glow {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 11, 26, 0.55) 100%);
  pointer-events: none;
}

.hero-visual-badge {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  background: rgba(5, 11, 26, 0.75);
  border: 1px solid rgba(53, 230, 255, 0.4);
  backdrop-filter: blur(6px);
}
.hero-visual-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.8); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 18, 38, 0.9);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 16px; line-height: 1.3; }
.float-card small { color: var(--text-dim); font-size: 12px; }
.float-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  flex-shrink: 0;
}
.float-dot-green { background: #35e6a0; box-shadow: 0 0 10px #35e6a0; }
.float-card-1 { top: 8%; left: -4%; animation-delay: -2s; }
.float-card-2 { bottom: 10%; right: -6%; animation-delay: -4s; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 1;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 18px; height: 18px; }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- 区块标题 ---------- */
.section-head { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 700;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.section-sub { color: var(--text-dim); font-size: 16px; }

/* ---------- 功能特色 ---------- */
.features {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(46, 168, 255, 0.08), transparent),
    var(--bg-soft);
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(53, 230, 255, 0.45);
  box-shadow: 0 18px 44px rgba(46, 168, 255, 0.18);
}
.feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46, 168, 255, 0.18), rgba(53, 230, 255, 0.1));
  border: 1px solid rgba(53, 230, 255, 0.25);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: 1px; }
.feature-card p { font-size: 14px; color: var(--text-dim); }

/* ---------- 数据横幅 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: 1px;
}
.stat-item span { color: var(--text-dim); font-size: 14px; letter-spacing: 2px; }

/* ---------- 下载区 ---------- */
.download {
  background:
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(53, 230, 255, 0.1), transparent),
    var(--bg);
}
.download-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.download-inner::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 168, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.download-actions { margin: 28px 0 16px; }
.download-note { font-size: 13px; color: var(--text-dim); }

.download-visual { display: flex; justify-content: center; }
.qrcode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #0b1c36;
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-blue);
}
.qrcode-img { width: 180px; height: 180px; border-radius: 8px; }
.qrcode-card span { font-size: 13px; font-weight: 700; letter-spacing: 2px; }

/* ---------- 关于 ---------- */
.about-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 56px 48px;
}
.about-card p { color: var(--text-dim); margin-top: 18px; font-size: 15px; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--panel-border);
  background: var(--bg-soft);
  padding-top: 48px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  object-fit: cover;
}
.footer-brand strong { font-size: 18px; letter-spacing: 2px; }
.footer-brand p { font-size: 13px; color: var(--text-dim); }

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-admin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(234, 244, 255, 0.35) !important;
}
.footer-admin svg { width: 14px; height: 14px; opacity: .7; }
.footer-admin:hover { color: var(--accent) !important; }

.footer-bottom {
  border-top: 1px solid var(--panel-border);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(234, 244, 255, 0.4);
}
.footer-domain { color: var(--accent); transition: color .2s; }
.footer-domain:hover { color: var(--primary); }

/* ---------- 移动端悬浮下载 ---------- */
.float-download {
  display: none;
  position: fixed;
  right: 18px; bottom: 24px;
  z-index: 90;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--gradient);
  color: #04101f;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-blue);
}
.float-download svg { width: 18px; height: 18px; }

/* ---------- 协议弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.78);
  backdrop-filter: blur(6px);
  animation: fadeIn .25s ease;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(46, 168, 255, 0.1);
  overflow: hidden;
  animation: modalIn .3s cubic-bezier(.2,.8,.2,1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(90deg, rgba(46,168,255,.08), transparent);
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.modal-close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { color: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  line-height: 1.85;
  color: var(--text-dim);
  font-size: 14px;
}
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(46,168,255,.3); border-radius: 3px; }

.modal-body h1 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.modal-body h2 {
  font-size: 15px;
  color: var(--accent);
  margin: 20px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}
.modal-body p { margin: 8px 0; }
.modal-body ul, .modal-body ol { margin: 8px 0 8px 22px; }
.modal-body li { margin: 5px 0; }
.modal-body strong { color: var(--text); }
.modal-body .meta { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.modal-body hr { border: none; border-top: 1px solid var(--panel-border); margin: 20px 0; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: flex-end;
  background: rgba(46, 168, 255, 0.03);
}
.modal-footer .btn { width: auto; padding: 10px 28px; }

/* ---------- 滚动显现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-visual { order: -1; }
  .hero-visual-frame { width: min(300px, 70%); }
  .hero-title br { display: none; }
  .download-inner { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
  .download-text { display: flex; flex-direction: column; align-items: center; }

  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 11, 26, 0.97);
    border-bottom: 1px solid var(--panel-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    margin-left: 0;
  }
  .nav-links.open { max-height: 320px; }
  .nav-link { padding: 16px 6%; border-top: 1px solid rgba(96, 176, 255, 0.08); }
  .menu-toggle { display: flex; }
  .nav-download { margin-left: auto; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .float-card-1 { left: 0; }
  .float-card-2 { right: 0; }
  .float-download { display: inline-flex; }
  .hero { padding-top: 120px; }
  .about-card { padding: 40px 24px; }
}
