:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef6f4;
  --text: #142033;
  --muted: #627086;
  --line: #d9e2eb;
  --blue: #1264d8;
  --blue-deep: #0b3d91;
  --cyan: #18b7c9;
  --green: #2cb67d;
  --coral: #f07c5d;
  --amber: #f3b23f;
  --shadow: 0 18px 45px rgba(30, 57, 90, 0.12);
  --radius: 8px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10151f;
  --surface: #161e2b;
  --surface-soft: #132a2b;
  --text: #eaf1fb;
  --muted: #a7b3c7;
  --line: #2a3546;
  --blue: #4b91ff;
  --blue-deep: #9bbdff;
  --cyan: #33d4e7;
  --green: #46d18f;
  --coral: #ff9a80;
  --amber: #ffca63;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(24, 183, 201, 0.15), transparent 30%),
    linear-gradient(180deg, var(--surface-soft), var(--bg) 42%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(18, 100, 216, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), rgba(24, 183, 201, 0.18));
  box-shadow: 0 10px 28px rgba(18, 100, 216, 0.14);
}

.brand-mark svg {
  width: 34px;
  height: 26px;
  fill: var(--blue);
}

.brand-mark svg path:last-child {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(18, 100, 216, 0.1);
  color: var(--blue-deep);
  outline: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  cursor: pointer;
}

.icon-button svg,
.newsletter-panel button svg,
.search-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover {
  border-color: color-mix(in srgb, var(--blue) 50%, var(--line));
  color: var(--blue);
}

.menu-button {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 42px 0 24px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 440px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9em;
  margin-bottom: 18px;
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 520px);
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(30, 57, 90, 0.08);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.feature-panel {
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-visual {
  position: relative;
  min-height: 255px;
  background:
    linear-gradient(135deg, rgba(18, 100, 216, 0.16), transparent 45%),
    linear-gradient(160deg, rgba(24, 183, 201, 0.24), rgba(44, 182, 125, 0.15));
}

.wave-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.24) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000, transparent 92%);
}

.signal-fish {
  position: absolute;
  inset: 22px 20px 12px;
  width: calc(100% - 40px);
  height: calc(100% - 34px);
}

.fish-body,
.fish-tail {
  fill: color-mix(in srgb, var(--blue) 86%, white 14%);
}

.fish-eye {
  fill: var(--surface);
}

.fish-line,
.pulse {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-linecap: round;
}

.fish-line {
  stroke-width: 9;
}

.pulse {
  stroke-width: 5;
  opacity: 0.72;
  animation: pulseFlow 3.4s ease-in-out infinite;
}

.pulse-b {
  animation-delay: 0.7s;
}

@keyframes pulseFlow {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50% { opacity: 0.85; transform: translateX(-8px); }
}

.feature-content {
  padding: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.tag-hot {
  background: rgba(240, 124, 93, 0.14);
  color: var(--coral);
}

.feature-content h2 {
  margin: 14px 0 10px;
  font-size: 28px;
  line-height: 1.25;
}

.feature-content p {
  color: var(--muted);
  line-height: 1.75;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 10px 0 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.metric-strip div {
  min-width: 0;
  padding: 20px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip strong {
  color: var(--blue-deep);
  font-size: 30px;
  line-height: 1;
}

.metric-strip span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
  padding-bottom: 64px;
}

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

.section-head h2 {
  margin-bottom: 0;
  font-size: 31px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.filter.is-active,
.filter:hover {
  border-color: var(--blue);
  background: rgba(18, 100, 216, 0.1);
  color: var(--blue-deep);
}

.article-list {
  display: grid;
  gap: 16px;
}

.post-card {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 0;
  min-height: 176px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(30, 57, 90, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
}

.post-card.is-hidden {
  display: none;
}

.post-cover {
  display: grid;
  place-items: center;
  min-height: 176px;
  color: white;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
}

.cover-a { background: linear-gradient(135deg, #1264d8, #18b7c9); }
.cover-b { background: linear-gradient(135deg, #2cb67d, #1264d8); }
.cover-c { background: linear-gradient(135deg, #f07c5d, #f3b23f); }
.cover-d { background: linear-gradient(135deg, #243b63, #2cb67d); }

.post-body {
  min-width: 0;
  padding: 20px 22px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.post-body h3 {
  margin-bottom: 9px;
  font-size: 23px;
  line-height: 1.28;
}

.post-body p {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.post-tags span {
  padding: 5px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-soft) 76%, var(--surface));
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
}

.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.profile-card,
.topic-panel,
.newsletter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(30, 57, 90, 0.06);
}

.profile-card,
.newsletter-panel {
  padding: 22px;
}

.profile-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.profile-top h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.profile-top p,
.bio,
.newsletter-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.bio {
  margin-bottom: 18px;
}

.profile-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.profile-links a {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: var(--radius);
  background: rgba(18, 100, 216, 0.1);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 800;
}

.topic-panel {
  overflow: hidden;
}

.topic-panel .compact {
  align-items: center;
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.topic-panel .compact h2 {
  font-size: 21px;
}

.topic-panel .compact span {
  color: var(--muted);
  font-weight: 800;
}

.topic-panel a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.topic-panel a:last-child {
  border-bottom: 0;
}

.topic-panel a:hover {
  background: color-mix(in srgb, var(--surface-soft) 65%, var(--surface));
  color: var(--text);
}

.topic-panel strong {
  color: var(--blue);
}

.newsletter-panel h2 {
  margin-bottom: 8px;
  font-size: 21px;
}

.newsletter-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  margin-top: 18px;
}

.newsletter-panel input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  outline: none;
}

.newsletter-panel button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: white;
  cursor: pointer;
}

@media (max-width: 940px) {
  .site-shell {
    width: min(100% - 24px, 720px);
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 190px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .menu-button {
    display: grid;
  }

  .hero-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
    padding-top: 18px;
  }

  h1 {
    max-width: 100%;
    font-size: 44px;
  }

  .feature-panel {
    min-height: 0;
  }

  .sidebar {
    position: static;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 66px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 36px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-cover {
    min-height: 118px;
  }
}

@media (max-width: 430px) {
  .site-shell {
    width: min(100% - 18px, 390px);
  }

  .brand strong {
    font-size: 15px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 31px;
  }

  .metric-strip div {
    padding: 16px;
  }

  .metric-strip strong {
    font-size: 25px;
  }

  .post-body h3 {
    font-size: 20px;
  }

  .profile-links {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  padding: 32px 0 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-content p {
  margin: 0;
  line-height: 1.6;
}

.copyright {
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}

.beian-row {
  margin-top: 8px;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.beian-link:hover {
  color: var(--text);
}

.beian-link img {
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
}
