* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f7fb;
  --paper: #ffffff;
  --text: #172033;
  --muted: #647084;
  --line: #e3e8f0;
  --brand: #2563eb;
  --brand-soft: #eaf1ff;
  --dark: #16213d;
  --hot: #e9502f;
  --fan: #6d5dfc;
  --ai: #0f9f6e;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.8;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  width: min(1080px, calc(100% - 32px));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.links a {
  padding: 7px 9px;
  border-radius: 7px;
}

.links a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 30px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 700;
}

.label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.label.hot {
  color: var(--hot);
  background: #fff0e9;
}

.label.fan {
  color: var(--fan);
  background: #efecff;
}

.label.ai {
  color: var(--ai);
  background: #e5f8ef;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

.summary {
  max-width: 860px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.content,
.side-card,
.related {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.content {
  padding: 24px;
}

.content h2 {
  margin: 26px 0 10px;
  font-size: 25px;
  line-height: 1.3;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  margin: 18px 0 8px;
  font-size: 19px;
}

.content p,
.content li {
  color: var(--muted);
  font-size: 16px;
}

.content p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.note {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff8ed;
  border: 1px solid #f6d3a2;
  color: #8a4a10;
}

.note strong {
  display: block;
  margin-bottom: 4px;
}

.side {
  display: grid;
  gap: 14px;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.side-card a {
  display: block;
  padding: 8px 0;
  color: var(--brand);
  font-weight: 700;
  border-top: 1px solid var(--line);
}

.side-card a:first-of-type {
  border-top: none;
}

.related {
  margin-top: 18px;
  padding: 18px;
}

.related h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

.related-list a {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand);
  font-weight: 800;
  background: #fbfcff;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .links {
    justify-content: flex-start;
  }

  main {
    grid-template-columns: 1fr;
  }

  .related-list {
    grid-template-columns: 1fr;
  }
}
