/* ============================================================
   BG6HLQ — 站点样式
   ============================================================ */

:root {
  --bg:        #080c11;
  --bg2:       #0c1219;
  --panel:     #101a24;
  --panel2:    #152130;
  --line:      #1d2b3a;
  --fg:        #dce8f3;
  --muted:     #7d92a7;
  --accent:    #35d6c4;
  --accent2:   #ffb454;
  --max:       1060px;
  --r:         14px;
  --mono:      ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
        "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景：极光 + 网格 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -12%, rgba(53, 214, 196, .15), transparent 62%),
    radial-gradient(760px 420px at 92% 2%,  rgba(255, 180, 84, .08), transparent 60%),
    linear-gradient(to bottom, #080c11, #080c11 58%, #06090d);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 120% 70% at 50% 0%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 120% 70% at 50% 0%, #000 10%, transparent 75%);
}

a { color: inherit; }

/* ---------------- 顶部导航 ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 12, 17, .74);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max); margin: 0 auto;
  padding: 13px 22px;
  display: flex; align-items: center; gap: 16px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: .07em; font-size: 15.5px;
  text-decoration: none; color: var(--fg);
}

.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(53, 214, 196, .8);
  animation: pulse 2.6s ease-in-out infinite;
  flex: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: .45; transform: scale(.82); }
}

.nav-links { margin-left: auto; display: flex; gap: 4px; }

.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14.5px; padding: 8px 13px; border-radius: 9px;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--fg); background: var(--panel); }

.nav-toggle {
  margin-left: auto; display: none;
  width: 40px; height: 36px; padding: 9px 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--muted); border-radius: 2px;
}

/* ---------------- Hero ---------------- */

.hero { max-width: var(--max); margin: 0 auto; padding: 84px 22px 40px; }

.eyebrow {
  margin: 0 0 20px;
  font: 600 12.5px/1 var(--mono);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}

.callsign {
  margin: 0;
  font-size: clamp(54px, 13vw, 130px);
  line-height: .95; font-weight: 800; letter-spacing: .015em;
  background: linear-gradient(175deg, #ffffff 8%, #a8ddd7 52%, #35d6c4 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lede {
  max-width: 54ch; margin: 24px 0 0;
  color: var(--muted); font-size: 17.5px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-block; text-decoration: none;
  padding: 12px 22px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--fg); font-size: 15px; font-weight: 600;
  transition: transform .16s, border-color .16s, background .16s;
}
.btn:hover { transform: translateY(-2px); border-color: #2b4258; background: var(--panel2); }

.btn-primary {
  background: linear-gradient(180deg, #3ee0cd, #24b9a8);
  border-color: transparent; color: #04110f;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #4bead6, #2ac4b2);
  border-color: transparent;
}

/* ---------------- 卡片与状态 ---------------- */

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  transition: border-color .18s, transform .18s;
}

.status {
  display: grid; gap: 14px; margin-top: 52px;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.stat .label {
  font: 600 11.5px/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.stat .value {
  margin-top: 10px;
  font: 600 20px/1.3 var(--mono);
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat .foot { margin-top: 6px; font-size: 12.5px; color: #5d7287; }

/* ---------------- 区块 ---------------- */

.section { max-width: var(--max); margin: 0 auto; padding: 58px 22px; }

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(23px, 3.4vw, 31px);
  letter-spacing: .01em;
}
.section .sub { margin: 0 0 32px; color: var(--muted); }

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

/* QSL 区：宽屏走 2x2，避免出现 3+1 的孤卡 */
#qsl .grid { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

.grid h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: .01em; }
.grid p  { margin: 0; color: var(--muted); font-size: 15px; }

.icon { font-size: 24px; margin-bottom: 14px; line-height: 1; }

.link-card { text-decoration: none; color: inherit; display: block; }
.link-card:hover { border-color: rgba(53, 214, 196, .55); transform: translateY(-3px); }
.link-card .arrow { color: var(--accent); font-weight: 400; }

.list-card { padding: 8px 22px 18px; }

.kv { list-style: none; margin: 0; padding: 0; }
.kv li {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.kv li:last-child { border-bottom: 0; }
.kv span { color: var(--muted); font-size: 14.5px; min-width: 96px; }
.kv b { font-weight: 600; font-size: 15px; }

.note { margin: 6px 0 0; font-size: 13px; color: #5d7287; }

/* ---------------- 页脚 ---------------- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(6, 9, 13, .6);
}

.footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 42px 22px 52px;
  text-align: center;
}

.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: .09em;
  margin-bottom: 16px;
}

.footer-links { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-links .sep { margin: 0 9px; color: #35485c; }

.copyright { margin: 0 0 8px; font-size: 13.5px; color: #5d7287; }

.beian { margin: 0; font-size: 13px; }
.beian a {
  color: #6d8296; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.beian a:hover { color: var(--accent); border-bottom-color: rgba(53, 214, 196, .5); }

/* ---------------- 404 页面 ---------------- */

.error-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 22px 40px;
}

.error-code {
  margin: 0;
  font: 800 clamp(96px, 24vw, 210px)/1 var(--mono);
  letter-spacing: .04em;
  background: linear-gradient(180deg, #ffffff 5%, #89cfc8 50%, rgba(53, 214, 196, .28) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(53, 214, 196, .18));
}

.error-title {
  margin: -6px 0 14px;
  font-size: clamp(20px, 3.6vw, 28px);
  letter-spacing: .04em;
}

.error-text {
  max-width: 70ch; margin: 0 0 32px;
  color: var(--muted); font-size: 16px;
}

.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* 波形装饰 */
.wave {
  width: min(420px, 80vw); height: 48px;
  margin: 30px 0 6px;
  opacity: .75;
}
.wave path {
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 240;
  animation: trace 3.4s linear infinite;
}
@keyframes trace {
  0%   { stroke-dashoffset: 480; opacity: .25; }
  40%  { opacity: 1; }
  100% { stroke-dashoffset: 0;   opacity: .25; }
}

.error-page .site-footer { width: 100%; margin-top: 64px; background: none; border-top: 1px solid var(--line); }

/* ---------------- 响应式 ---------------- */

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; left: 14px; right: 14px; top: 62px;
    flex-direction: column; gap: 2px;
    padding: 10px;
    background: rgba(13, 19, 27, .97);
    border: 1px solid var(--line); border-radius: 13px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; }
  .hero { padding-top: 60px; }
  .section { padding: 46px 20px; }
  .status { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
