/* ============================================================
   全站通用样式 —— 黑底 + 蓝色霓虹科技风
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: #d8e6ff;
  background: #04060d;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

a { color: #58a6ff; text-decoration: none; transition: color .2s ease; }
a:hover { color: #7cc4ff; }

img { max-width: 100%; display: block; }

/* —— 背景装饰:网格 + 光斑 —— */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(0,120,255,.18), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(0,210,255,.14), transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(80,0,200,.10), transparent 70%);
}
body::after {
  background-image:
    linear-gradient(rgba(80,160,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,160,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
}

/* —— 顶部导航 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(6, 10, 22, .75);
  border-bottom: 1px solid rgba(88, 166, 255, .18);
}
.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .5px;
  background: linear-gradient(90deg, #58a6ff, #00e5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo span { color: #d8e6ff; -webkit-text-fill-color: #d8e6ff; font-weight: 400; margin-left: 8px; font-size: 14px; }
.nav-links a {
  margin-left: 22px;
  color: #aac3e6;
  font-size: 14px;
}
.nav-links a:hover { color: #fff; }

/* —— 主体容器 —— */
.container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* —— Hero 区 —— */
.hero {
  position: relative;
  padding: 56px 40px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(20,40,90,.6), rgba(8,12,28,.85));
  border: 1px solid rgba(88,166,255,.25);
  box-shadow: 0 0 60px rgba(0,120,255,.15) inset;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.15;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffffff 0%, #58a6ff 50%, #00e5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(0,180,255,.25);
}
.hero p.lead {
  font-size: 17px;
  line-height: 1.8;
  color: #c2d4f0;
  max-width: 820px;
  margin: 0;
}
.hero .badges {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid rgba(88,166,255,.4);
  background: rgba(88,166,255,.08);
  color: #aac3e6;
}

/* —— 通用 Section —— */
section.block {
  margin-top: 48px;
  padding: 32px 36px;
  border-radius: 14px;
  background: rgba(10, 16, 32, .65);
  border: 1px solid rgba(88,166,255,.15);
  backdrop-filter: blur(4px);
}
section.block h2 {
  margin: 0 0 16px;
  font-size: 22px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}
section.block h2::before {
  content: "";
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, #58a6ff, #00e5ff);
  box-shadow: 0 0 12px rgba(0,210,255,.6);
}
section.block p, section.block li {
  font-size: 15.5px;
  line-height: 1.85;
  color: #c2d4f0;
}
section.block ul { padding-left: 20px; }
section.block strong { color: #fff; }

/* —— 卡片网格 —— */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 18px;
}
.card {
  padding: 20px 22px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(20,40,90,.45), rgba(8,12,28,.7));
  border: 1px solid rgba(88,166,255,.22);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,210,255,.6);
  box-shadow: 0 10px 30px rgba(0,150,255,.18);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #58a6ff;
}
.card p { margin: 0; font-size: 14px; color: #aac3e6; line-height: 1.7; }

/* —— FAQ —— */
details.faq {
  border: 1px solid rgba(88,166,255,.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 12px;
  background: rgba(10, 16, 32, .55);
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  outline: none;
}
details.faq[open] { border-color: rgba(0,210,255,.5); }
details.faq p { margin: 10px 0 0; }

/* ============================================================
   右侧贴边联系方式(始终展开显示二维码)
   ============================================================ */
.side-contact {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.side-contact .side-item {
  position: relative;
  width: 120px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(20,40,90,.85), rgba(8,12,28,.95));
  border: 1px solid rgba(88,166,255,.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.side-contact .side-item .side-label-top {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  text-align: center;
}
.side-contact .side-item .side-qr-img {
  width: 96px; height: 96px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}
.side-contact .side-item .side-qr-fallback {
  width: 96px; height: 96px;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, #142036, #142036 6px, #0c1626 6px, #0c1626 12px);
  display: flex; align-items: center; justify-content: center;
  color: #aac3e6; font-size: 11px; text-align: center; padding: 6px;
}
.side-contact .side-item .side-label {
  font-size: 11px;
  color: #aac3e6;
  margin-top: 6px;
  text-align: center;
  word-break: break-all;
}

/* 二维码占位(图片缺失时) */
.qr-fallback {
  width: 172px; height: 172px;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, #142036, #142036 8px, #0c1626 8px, #0c1626 16px);
  display: flex; align-items: center; justify-content: center;
  color: #aac3e6; font-size: 12px; text-align: center; padding: 8px;
}

/* ============================================================
   底部
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  padding: 36px 24px 28px;
  border-top: 1px solid rgba(88,166,255,.18);
  background: rgba(4, 6, 14, .8);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-inner h4 {
  font-size: 14px;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: .5px;
}
.footer-inner p, .footer-inner li {
  font-size: 13px;
  color: #aac3e6;
  line-height: 1.85;
}
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-qr {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-qr .qr-box {
  text-align: center;
}
.footer-qr img,
.footer-qr .qr-fallback-sm {
  width: 96px; height: 96px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}
.footer-qr .qr-fallback-sm {
  background: repeating-linear-gradient(45deg, #142036, #142036 6px, #0c1626 6px, #0c1626 12px);
  display:flex;align-items:center;justify-content:center;
  color:#aac3e6;font-size:11px;text-align:center;padding:6px;
}
.footer-qr .qr-label {
  font-size: 12px;
  color: #aac3e6;
  margin-top: 6px;
}

.footer-bottom {
  max-width: 1180px;
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px dashed rgba(88,166,255,.15);
  font-size: 12px;
  color: #7e93b8;
  text-align: center;
  line-height: 1.8;
}
.footer-bottom a { color: #aac3e6; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 40px 24px; }
  section.block { padding: 24px 20px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .side-contact { right: 8px; gap: 10px; }
  .side-contact .side-item { width: 90px; padding: 8px 6px; }
  .side-contact .side-item .side-qr-img,
  .side-contact .side-item .side-qr-fallback { width: 72px; height: 72px; }
}
