/* 全站公共主题样式：保持原有浅色科技风 */
:root {
  --brand-from: #3b82f6;
  --brand-to: #6366f1;
  --bg-soft: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  background: var(--bg-soft);
  color: var(--text-main);
}

.nav-glass {
  background: rgba(248, 250, 252, 0.68);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-glass.scrolled {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.brand-gradient {
  background: linear-gradient(120deg, var(--brand-from), var(--brand-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link {
  position: relative;
  color: #334155;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: #1d4ed8;
}

.nav-link.is-active {
  color: #1d4ed8;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-from), var(--brand-to));
}

.card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(59, 130, 246, 0.18);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-grid {
  background-image: linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fff;
  transition: all 0.25s ease;
}

.platform-btn:hover {
  border-color: #60a5fa;
  color: #1d4ed8;
  background: #eff6ff;
}

/* 二维码弹窗 */
.qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 80;
}

.qr-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.qr-modal {
  width: min(92vw, 360px);
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.24);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.qr-overlay.is-open .qr-modal {
  transform: translateY(0) scale(1);
}

.qr-image-wrap {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 0.75rem;
  border: 1px dashed #93c5fd;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.08));
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.qr-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filter-btn {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #eff6ff;
}

.filter-btn.is-active {
  border-color: transparent;
  background: linear-gradient(120deg, var(--brand-from), var(--brand-to));
  color: #fff;
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.25);
}

.tag-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.2rem 0.66rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
  color: #1e293b;
}

.article-content p {
  margin: 1.15rem 0;
  font-size: 1rem;
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.32rem;
  font-weight: 700;
  color: #0f172a;
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.33rem;
  top: 0.38rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand-from), var(--brand-to));
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.12);
}

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