/* ==========================================================================
   BG6WH · 业余无线电个人博客主页
   深色科技感主题 —— 青绿主色 + 琥珀点缀，避开大面积紫/蓝
   ========================================================================== */

:root {
  --bg: #0b0e13;
  --bg-2: #10141b;
  --bg-3: #161c26;
  --panel: rgba(22, 28, 38, .72);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(45, 212, 191, .28);

  --text: #e6eaf0;
  --text-dim: #9aa4b2;
  --text-soft: #6b7686;

  --accent: #2dd4bf;      /* 青绿 */
  --accent-2: #22d3ee;    /* 青 */
  --amber: #f5a623;       /* 琥珀 */

  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;

  --radius: 14px;
  --radius-s: 8px;
  --maxw: 1160px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ============ 导航栏 ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 14, 19, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-call {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text);
}
.brand-call::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--amber);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.brand-sub { font-size: 11px; color: var(--text-soft); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--accent); background: rgba(45, 212, 191, .08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("../assets/images/hero-antenna.jpg");
  background-size: cover;
  background-position: center;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,19,.55) 0%, rgba(11,14,19,.72) 60%, var(--bg) 100%),
    radial-gradient(ellipse at center, rgba(11,14,19,.15) 0%, rgba(11,14,19,.55) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 24px 90px; max-width: 900px; }
.hero-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent);
  border: 1px solid var(--line-2);
  border-radius: 40px;
  padding: 7px 18px;
  margin-bottom: 26px;
  background: rgba(11, 14, 19, .35);
  backdrop-filter: blur(4px);
}
.hero-call { margin-bottom: 10px; }
.call-big {
  font-family: var(--mono);
  font-size: clamp(64px, 14vw, 150px);
  font-weight: 800;
  letter-spacing: 6px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 40px rgba(45, 212, 191, .45), 0 4px 30px rgba(0, 0, 0, .6);
  animation: fadeDown .9s ease both;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-type {
  font-family: var(--mono);
  font-size: clamp(15px, 2.4vw, 20px);
  color: var(--accent-2);
  min-height: 34px;
  margin: 8px 0 18px;
  animation: fadeUp .9s .2s ease both;
}
.type-cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 34px;
  animation: fadeUp .9s .35s ease both;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; animation: fadeUp .9s .5s ease both; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 14px;
  letter-spacing: 1px;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn-primary {
  background: var(--accent);
  color: #06231f;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(45, 212, 191, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(45, 212, 191, .45); }
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(11, 14, 19, .3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-freq {
  margin-top: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  animation: fadeUp .9s .65s ease both;
}
.hero-freq span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 12px;
  background: rgba(11, 14, 19, .4);
}
.hero-freq span:nth-child(1) { color: var(--amber); border-color: rgba(245, 166, 35, .35); }

.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 20px;
  display: flex; justify-content: center;
}
.scroll-hint span {
  width: 4px; height: 8px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ============ Section 通用 ============ */
.section { padding: 110px 0; }
.section-head { margin-bottom: 56px; }
.sec-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 4.6vw, 42px);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-head p { color: var(--text-dim); font-size: 15px; }

/* ============ About ============ */
.about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.about-text p { color: var(--text-dim); margin-bottom: 18px; font-size: 15.5px; }
.about-text strong { color: var(--text); }
.about-text em { color: var(--accent); font-style: normal; font-weight: 600; }

.about-facts { list-style: none; margin-top: 26px; border-top: 1px solid var(--line); }
.about-facts li {
  display: flex;
  gap: 20px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.about-facts .k {
  width: 64px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 13px;
  padding-top: 2px;
}
.about-facts .v { color: var(--text); }

.about-photos { position: relative; padding: 0 0 40px 0; }
.about-photo { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.about-photo:hover img { transform: scale(1.05); }
.about-photo.main { height: 400px; }
.about-photo.small {
  position: absolute;
  right: -6px; bottom: -30px;
  width: 46%;
  height: 190px;
  border: 5px solid var(--bg-2);
  border-radius: var(--radius-s);
}

/* ============ 照片墙 Gallery ============ */
.passion { background: var(--bg-2); }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
}
.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg-3);
}
.g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.g-item:nth-child(4) { grid-row: span 2; }
.g-item:nth-child(6) { grid-column: span 2; }
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease, filter .5s ease;
}
.g-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 10, 14, .85) 100%);
  opacity: .8;
  transition: opacity .4s;
}
.g-item:hover img { transform: scale(1.08); filter: saturate(1.15); }
.g-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 18px 20px;
  font-size: 14.5px;
  color: #fff;
  transform: translateY(6px);
  transition: transform .4s;
}
.g-item:hover figcaption { transform: translateY(0); }
.g-item figcaption span::before { content: "◈ "; color: var(--accent); }
.gallery-note { margin-top: 22px; font-size: 12px; color: var(--text-soft); }

/* ============ 玩些什么 ============ */
.directions { background: var(--bg); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.card-icon { font-size: 30px; margin-bottom: 16px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-dim); }

/* ============ 通联日志 ============ */
.log { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.log-table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}
.log-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.log-table thead th {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  background: rgba(45, 212, 191, .05);
}
.log-table tbody td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}
.log-table tbody td:first-child { color: var(--text); }
.log-table tbody tr:hover { background: rgba(45, 212, 191, .04); }
.log-table tbody tr:last-child td { border-bottom: 0; }
.log-note { margin-top: 16px; font-size: 12px; color: var(--text-soft); }

/* ============ 文章 ============ */
.articles { background: var(--bg-2); }
.article-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .3s, border-color .3s;
}
.article-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.article-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 12px;
}
.article-card h3 { font-size: 17px; margin-bottom: 12px; line-height: 1.5; }
.article-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 18px; flex: 1; }
.article-link { font-size: 14px; color: var(--accent); transition: letter-spacing .3s; }
.article-link:hover { letter-spacing: 1px; }

/* ============ 联系 ============ */
.contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.contact-qsl {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.contact-qsl::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--amber));
}
.qsl-call {
  font-family: var(--mono);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 18px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.qsl-line {
  font-size: 14.5px;
  color: var(--text-dim);
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.qsl-line:last-child { border-bottom: 0; }
.qsl-line span { color: var(--text); }
.contact-links p { color: var(--text-dim); margin-bottom: 22px; }
.btn-row { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.tiny { font-size: 13px; color: var(--text-soft); }

/* ============ Footer ============ */
.site-footer {
  background: #07090d;
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
}
.footer-main { text-align: center; margin-bottom: 34px; }
.footer-call {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-main p { color: var(--text-dim); font-size: 14px; margin-bottom: 6px; }
.footer-73 { color: var(--text-soft) !important; font-size: 13px !important; }
.footer-73 .mono { color: var(--accent); }
.footer-meta {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
}
.footer-meta p { margin-bottom: 4px; }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(5, 7, 10, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { max-width: min(1080px, 92vw); max-height: 88vh; text-align: center; }
.lb-figure img {
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--radius-s);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.lb-figure figcaption { margin-top: 14px; color: var(--text-dim); font-size: 15px; }
.lb-close {
  position: absolute; top: 24px; right: 30px;
  background: none; border: 0;
  font-size: 42px; line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  transition: color .25s, transform .25s;
}
.lb-close:hover { color: var(--amber); transform: rotate(90deg); }

/* ============ 滚动渐入 ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo.main { height: 320px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .article-list { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
  .g-item:nth-child(1) { grid-column: span 2; }
  .g-item:nth-child(4) { grid-row: span 1; }
  .g-item:nth-child(6) { grid-column: span 2; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(11, 14, 19, .97);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    gap: 2px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { padding: 12px 10px; }
  .nav-toggle { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .article-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-item:nth-child(1), .g-item:nth-child(6) { grid-column: span 1; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 260px; text-align: center; }
}
