:root {
  --bg: #05080f;
  --panel: rgba(10, 18, 32, 0.88);
  --panel-2: rgba(14, 26, 46, 0.92);
  --line: rgba(56, 189, 248, 0.2);
  --text: #e8f2ff;
  --muted: #8aa0b8;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --brand: #67e8f9;
  --warn: #fbbf24;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1000px 420px at 20% -10%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(900px 380px at 90% 0%, rgba(56, 189, 248, 0.1), transparent 50%),
    linear-gradient(180deg, #05080f 0%, #0a1220 50%, #05080f 100%);
  color: var(--text);
  font-family: "SF Pro Display", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
}

#app-root, .site-footer, .topbar {
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 15, 0.78);
  border-bottom: 1px solid var(--line);
}

.topbar .logo {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-size: 18px;
  text-shadow: 0 0 24px rgba(103, 232, 249, 0.35);
}

.topbar .logo b {
  color: #fff;
  font-weight: 700;
  margin-left: 8px;
  letter-spacing: 0;
  font-size: 14px;
  opacity: 0.85;
}

.topbar .tag {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.16em;
}

.hero-hex {
  position: relative;
  padding: 72px 24px 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(34, 211, 238, 0.12), transparent 28%),
    radial-gradient(circle at 70% 30%, rgba(56, 189, 248, 0.1), transparent 26%);
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.brand-mark {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-2);
  letter-spacing: 0.28em;
  font-size: 12px;
  margin-bottom: 18px;
  background: rgba(34, 211, 238, 0.08);
}

.brand-title {
  margin: 0;
  line-height: 1.15;
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
}

.brand-title .brand {
  display: block;
  background: linear-gradient(120deg, #f0f9ff 0%, #67e8f9 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.04em;
  text-shadow: none;
  filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.25));
}

.brand-title .brand-sub {
  display: block;
  margin-top: 10px;
  font-size: clamp(20px, 3.4vw, 32px);
  font-weight: 600;
  color: #dbeafe;
  letter-spacing: 0.08em;
}

.brand-tag {
  margin: 18px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.search-box {
  margin-top: 30px;
}

.search-box input {
  width: min(560px, 92vw);
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 15, 28, 0.9);
  color: var(--text);
  padding: 0 22px;
  outline: none;
  font-size: 16px;
  box-shadow: var(--shadow);
}

.search-box input:focus {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.stat {
  min-width: 120px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 26, 46, 0.65);
}

.stat b {
  display: block;
  font-size: 24px;
  color: var(--accent);
}

.stat span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px 10px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 6px 0 8px;
  font-size: 28px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.kicker {
  color: var(--accent-2);
  letter-spacing: 0.22em;
  font-size: 12px;
}

.count {
  min-width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  font-weight: 700;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.latest-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  min-height: 120px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.latest-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.55);
}

.latest-card-lead {
  min-height: 100%;
  border-color: rgba(103, 232, 249, 0.5);
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.16), rgba(14, 26, 46, 0.92) 48%),
    var(--panel);
}

.latest-badge {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.latest-title {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 650;
}

.latest-card-lead .latest-title {
  font-size: 22px;
  line-height: 1.4;
}

.latest-tag {
  margin-top: auto;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #041018;
  background: var(--accent-2);
  font-weight: 700;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  min-height: 140px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background:
    linear-gradient(160deg, rgba(251, 191, 36, 0.1), rgba(14, 26, 46, 0.85) 45%),
    var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.55);
}

.feat-id {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.feat-title {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.domain-col {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 18px 18px 10px;
  box-shadow: var(--shadow);
  min-height: 280px;
}

.domain-grid .domain-col:first-child {
  grid-column: 1 / -1;
  border-color: rgba(103, 232, 249, 0.45);
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.12), rgba(14, 26, 46, 0.92) 42%),
    var(--panel);
}

.domain-head {
  position: relative;
  padding-right: 56px;
  margin-bottom: 8px;
}

.domain-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.domain-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.domain-head .count {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.article-list li a:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--line);
}

.article-list .t {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.article-list .meta {
  display: flex;
  gap: 10px;
  color: var(--brand);
  font-size: 12px;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.article-list .empty,
.empty {
  color: var(--muted);
  padding: 16px 8px;
}

.more-block {
  margin: 8px 0 12px;
  border-top: 1px dashed rgba(56, 189, 248, 0.18);
  padding-top: 8px;
}

.more-block summary {
  cursor: pointer;
  color: var(--accent);
  padding: 8px;
  font-size: 13px;
}

.page-article {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
}

.article-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.article-bar .back {
  color: var(--accent);
}

.article-bar .bar-brand {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.article-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.97);
  color: #0f172a;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: auto;
}

.article-panel .loader {
  color: #64748b;
  text-align: center;
  padding: 60px 0;
}

.article-panel img {
  max-width: 100%;
  height: auto;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 15, 0.92);
  padding: 40px 20px 56px;
}

.site-footer .inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.site-footer .brand-foot {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.site-footer .label {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--accent-2);
  margin: 18px 0;
}

.site-footer .timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .timeline li {
  min-width: 160px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(14, 24, 42, 0.6));
}

.site-footer .year {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.site-footer .desc {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.site-footer .note {
  margin-top: 22px;
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 960px) {
  .latest-grid,
  .featured-grid,
  .domain-grid {
    grid-template-columns: 1fr;
  }

  .latest-card-lead {
    grid-row: auto;
  }

  .article-list .t {
    white-space: normal;
  }

  .topbar {
    padding: 12px 16px;
  }
}
