/* ============================================================
   SZRES · Shenzhen Resistance — Ingress-inspired dark theme
   ============================================================ */
:root {
  --bg: #030509;
  --bg-soft: #070b12;
  --panel: #0a1018;
  --panel-2: #0d1520;
  --line: rgba(0, 150, 230, 0.16);
  --line-strong: rgba(0, 180, 255, 0.35);
  --text: #c9d7e6;
  --dim: #7f92a6;
  --faint: #55677a;
  --accent: #00c2ff;
  --accent-2: #1b8adf;
  --accent-dim: rgba(0, 194, 255, 0.12);
  --font-display: "Rajdhani", "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-body: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* faint global grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 150, 230, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 150, 230, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

::selection { background: rgba(0, 194, 255, 0.35); color: #fff; }

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------------- top navigation ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 64px;
  background: linear-gradient(to bottom, rgba(3, 5, 9, 0.92), rgba(3, 5, 9, 0.75));
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, height 0.3s;
}
.nav.scrolled {
  height: 56px;
  background: rgba(4, 7, 12, 0.96);
  border-bottom-color: var(--line);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand img { height: 30px; width: auto; }
.brand .b-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 4px;
}
.brand .b-sub {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--dim);
  display: block;
  margin-top: -4px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.nav-links a.nav-cta {
  border: 1px solid var(--line-strong);
  padding: 7px 18px;
  color: var(--accent);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.2s, color 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--accent-dim); color: #fff; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-toggle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 5px 12px;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.2s, color 0.2s;
}
.lang-toggle:hover { background: var(--accent-dim); color: #fff; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span { width: 24px; height: 2px; background: var(--accent); transition: 0.25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- hero ---------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 110px 24px 60px;
  background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 42%, rgba(0, 60, 120, 0.16), transparent 70%),
    linear-gradient(to bottom, rgba(3, 5, 9, 0.86) 0%, rgba(3, 5, 9, 0.5) 45%, rgba(3, 5, 9, 0.94) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 980px; }
.hero-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--accent);
  margin-bottom: 26px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5.2vw, 60px);
  letter-spacing: 5px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 0 30px rgba(0, 150, 235, 0.5);
  margin-bottom: 22px;
}
.hero-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: 8px;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-tag {
  color: var(--dim);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 40px;
}
.hero-tag .sep { color: var(--accent-2); margin: 0 10px; }
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 3px;
  padding: 13px 34px;
  transition: all 0.2s;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn-primary {
  background: var(--accent);
  color: #02131f;
}
.btn-primary:hover { background: #3fd4ff; box-shadow: 0 0 24px rgba(0, 194, 255, 0.45); }
.btn-line {
  border: 1px solid var(--line-strong);
  color: var(--accent);
}
.btn-line:hover { background: var(--accent-dim); color: #fff; }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 3px;
  animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---------------- sections ---------------- */
.section { padding: 96px 0; scroll-margin-top: 56px; }
.section-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
.overline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.overline::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.overline.center { justify-content: center; }
.overline.center::after { content: ""; width: 34px; height: 1px; background: var(--accent); }
h2.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: 10px;
}
h2.sec-title .zh { color: var(--dim); font-size: 0.62em; letter-spacing: 6px; margin-left: 14px; }

/* intel map panel */
.map-panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 14px;
  margin-top: 44px;
}
.map-panel::before, .map-panel::after,
.map-corners::before, .map-corners::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--accent);
  border-style: solid;
}
.map-panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.map-panel::after { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.map-corners::before { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.map-corners::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.map-panel img { width: 100%; }
.map-caption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 0 4px;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 2.5px;
  color: var(--faint);
}
.map-caption .live { color: var(--accent); }
.map-caption .live::before {
  content: "●";
  margin-right: 8px;
  animation: hintPulse 2s infinite;
}

/* stats strip */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 12, 20, 0.6);
}
.strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 0;
  padding: 26px 10px;
}
.strip-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 4px;
  color: var(--dim);
  padding: 0 34px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.strip-item:last-child { border-right: none; }
.strip-item b { display: block; color: var(--accent); font-size: 24px; letter-spacing: 2px; }
.strip-item b[data-i18n="strip_sz_b"] { font-size: 17px; letter-spacing: 1px; padding-top: 5px; }

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 54px;
  margin-top: 46px;
  align-items: start;
}
.about-text p { margin-bottom: 18px; color: var(--text); }
.about-text .lead { font-size: 18px; color: #e2eefb; }
.about-text em { color: var(--accent); font-style: normal; }
.about-aside {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 26px;
}
.about-aside img { margin: 0 auto 22px; width: 88%; }
.fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-top: 1px dashed rgba(0, 150, 230, 0.22);
  font-size: 14.5px;
}
.fact .k {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--faint);
}
.fact .v { color: var(--text); text-align: right; }
.fact .v.hl { color: var(--accent); }

/* join */
.join {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0, 90, 170, 0.12), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.join p.desc {
  max-width: 560px;
  margin: 14px auto 36px;
  color: var(--dim);
}
.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 3px;
  color: #02131f;
  background: var(--accent);
  padding: 17px 44px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: all 0.2s;
}
.tg-btn svg { width: 22px; height: 22px; fill: currentColor; }
.tg-btn:hover { background: #3fd4ff; box-shadow: 0 0 34px rgba(0, 194, 255, 0.5); transform: translateY(-2px); }
.join .hint { margin-top: 18px; font-size: 13.5px; color: var(--faint); letter-spacing: 1px; }

/* memories preview (home) */
.mem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}
.mem-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px 24px 20px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: block;
  color: var(--text);
}
.mem-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 10px 34px rgba(0, 120, 200, 0.16);
}
.mem-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  opacity: 0.7;
}
.mem-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--accent);
}
.mem-date {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 2px;
  margin-left: 10px;
}
.mem-card h3 {
  font-size: 18px;
  color: #eaf3fc;
  margin: 10px 0 8px;
  line-height: 1.45;
}
.mem-card p { font-size: 14px; color: var(--dim); line-height: 1.7; }
.mem-tags { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.mem-tags span {
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--accent-2);
  border: 1px solid rgba(0, 150, 230, 0.3);
  padding: 2px 9px;
}
.mem-btnrow { margin-top: 14px; }
.mem-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 2px;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  padding: 5px 14px;
  transition: background 0.2s, color 0.2s;
}
.mem-btn:hover { background: var(--accent-dim); color: #fff; }
.mem-btn::after { content: " →"; }
.mem-more { text-align: center; margin-top: 40px; }
.mem-empty {
  border: 1px dashed rgba(0, 150, 230, 0.3);
  color: var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  font-size: 14px;
  letter-spacing: 2px;
}

/* ---------------- memories archive page ---------------- */
.page-head {
  padding: 150px 0 44px;
  text-align: center;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(0, 90, 170, 0.14), transparent 70%);
}
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: 10px;
  color: #fff;
  text-shadow: 0 0 22px rgba(0, 170, 255, 0.4);
}
.page-head .p-sub { color: var(--dim); letter-spacing: 2px; margin-top: 10px; font-size: 15px; }

.year-block {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.year-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: 2px;
  color: rgba(0, 194, 255, 0.8);
  text-shadow: 0 0 18px rgba(0, 170, 255, 0.35);
  line-height: 1;
  position: sticky;
  top: 90px;
}
.year-num small { display: block; font-size: 12px; letter-spacing: 3px; color: var(--faint); margin-top: 8px; }
.year-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.year-cards .mem-card { padding: 20px 20px 16px; }
.year-cards .mem-card h3 { font-size: 16.5px; }

/* ---------------- article page ---------------- */
.article { max-width: 800px; margin: 0 auto; padding: 150px 24px 90px; position: relative; z-index: 1; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 36px; }
.article-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 2px;
  color: #fff;
  margin: 14px 0 10px;
  line-height: 1.3;
}
.article-meta { color: var(--faint); font-size: 14px; letter-spacing: 2px; }
.article-meta .mem-tags { display: inline-flex; margin-left: 14px; margin-top: 0; }
.article-body p { margin-bottom: 20px; color: var(--text); }
.article-body h2 {
  font-family: var(--font-display);
  color: #fff;
  letter-spacing: 2px;
  font-size: 22px;
  margin: 36px 0 14px;
}
.article-body img { margin: 24px 0; border: 1px solid var(--line); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--panel);
  padding: 14px 20px;
  color: var(--dim);
  margin: 22px 0;
}
.back-link {
  display: inline-block;
  margin-top: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 3px;
  font-size: 15px;
}

/* ---------------- footer ---------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px 46px;
  text-align: center;
  position: relative;
  z-index: 1;
}
footer img { width: 72px; margin: 0 auto 14px; opacity: 0.9; }
footer .f-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--text);
  font-size: 15px;
}
footer .f-est {
  font-family: var(--font-display);
  color: var(--accent);
  letter-spacing: 3px;
  font-size: 12.5px;
  margin: 6px 0 14px;
}
footer .f-note { font-size: 12.5px; color: var(--faint); max-width: 560px; margin: 0 auto; line-height: 1.8; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .mem-grid { grid-template-columns: 1fr; }
  .year-block { grid-template-columns: 1fr; gap: 18px; }
  .year-num { position: static; font-size: 36px; }
  .strip-item { padding: 0 18px; font-size: 13px; }
  .strip-item b { font-size: 20px; }
}
@media (max-width: 760px) {
  .nav { padding: 0 18px; }
  .brand .b-sub { display: none; }
  .nav-right { gap: 14px; }
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(4, 7, 12, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 260px; }
  .nav-links a { padding: 16px 0; width: 100%; text-align: center; border-top: 1px solid rgba(0, 150, 230, 0.08); }
  .nav-links a.active::after { display: none; }
  .nav-links a.nav-cta { border: none; margin-bottom: 14px; }
  .hero { padding-top: 90px; }
  .section { padding: 68px 0; }
  .hero-title { letter-spacing: 3px; }
  .hero-sub { letter-spacing: 2px; font-size: 15px; }
}
