:root {
  color-scheme: light;
  --accent: #c71e1e;
  --accent-strong: #ea3a3b;
  --border: rgba(122, 140, 164, 0.2);
  --text: #142132;
  --muted: #4e6178;
  --surface: #ffffff;
  --bg: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

.article-page-shell {
  width: min(100%, 1088px);
  margin: 0 auto;
  padding: 36px 20px 72px;
}

.article-page-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.article-page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(36, 107, 255, 0.08);
  color: var(--accent-strong);
  font-weight: 600;
  transition: transform 0.18s ease, background-color 0.18s ease,
    color 0.18s ease;
}

.article-page-back-link:hover {
  transform: translateX(-2px);
  background: rgba(36, 107, 255, 0.14);
}

.article-page-brand {
  color: inherit;
}

.article-page-topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  white-space: nowrap;
}

.article-page-topbar .brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3e7cff, #7fa7ff);
  box-shadow: 0 16px 30px rgba(36, 107, 255, 0.22);
  flex-shrink: 0;
}

.article-page-topbar .brand-mark::before,
.article-page-topbar .brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.article-page-topbar .brand-mark::before {
  width: 18px;
  height: 4px;
  top: 12px;
  left: 12px;
  transform: rotate(-28deg);
}

.article-page-topbar .brand-mark::after {
  width: 10px;
  height: 10px;
  right: 9px;
  bottom: 9px;
}

.article-page-topbar .brand-text {
  display: grid;
  gap: 2px;
}

.article-page-topbar .brand-text strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--accent-strong);
}

.article-page-topbar .brand-text span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.article-page-hero,
.article-page-section,
.article-page-related-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(25, 47, 89, 0.08);
}

.article-page-hero {
  padding: 32px;
  margin-bottom: 24px;
}

.article-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  font-size: 14px;
}

.article-page-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(36, 107, 255, 0.18),
    rgba(20, 60, 151, 0.1)
  );
  border: 1px solid rgba(36, 107, 255, 0.18);
  color: var(--accent-strong);
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(36, 107, 255, 0.12);
}

.article-page-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(122, 140, 164, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-weight: 600;
}

.article-page-meta-icon {
  font-size: 13px;
  line-height: 1;
}

.article-page-title {
  margin: 0 0 18px;
  max-width: 100%;
  font-size: 24px;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--accent-strong);
  text-wrap: pretty;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-page-summary {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-page-highlights {
  margin: 24px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--text);
}

.article-page-content {
  display: grid;
  gap: 18px;
}

.article-page-section {
  padding: 28px 32px;
}

.article-page-section h2 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.4;
}

.article-page-section p,
.article-page-related-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 17px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-page-points {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--text);
  line-height: 1.8;
}

.article-page-related {
  margin-top: 28px;
}

.article-page-related h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.article-page-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.article-page-related-card {
  padding: 24px;
}

.article-page-related-card h3 {
  margin: 14px 0 12px;
  font-size: 22px;
  line-height: 1.4;
}

.article-page-related-tag {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.article-page-related-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.article-page-footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 720px) {
  .article-page-shell {
    padding: 24px 16px 56px;
  }

  .article-page-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .article-page-brand {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .article-page-topbar .brand {
    gap: 10px;
    width: 100%;
    white-space: normal;
  }

  .article-page-topbar .brand-text {
    min-width: 0;
  }

  .article-page-topbar .brand-mark {
    width: 40px;
    height: 40px;
  }

  .article-page-topbar .brand-text strong {
    font-size: 16px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .article-page-topbar .brand-text span {
    display: none;
  }

  .article-page-back-link {
    flex-shrink: 0;
    align-self: flex-start;
    padding: 8px 12px;
  }

  .article-page-hero,
  .article-page-section,
  .article-page-related-card {
    padding: 22px;
    border-radius: 20px;
  }

  .article-page-summary,
  .article-page-section p,
  .article-page-related-card p {
    font-size: 16px;
  }

  .article-page-title {
    max-width: none;
    font-size: clamp(30px, 10vw, 40px);
    line-height: 1.16;
  }

  .article-page-section h2,
  .article-page-related h2 {
    font-size: 22px;
  }

  .article-page-related-card h3 {
    font-size: 20px;
  }

  .article-page-highlights,
  .article-page-points {
    padding-left: 18px;
  }

  .article-page-related-grid {
    grid-template-columns: 1fr;
  }

  .article-page-footer a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }
}
