:root {
  --bg: #fff;
  --fg: #050505;
  --muted: #6f6f6f;
  --line: #151515;
  --soft: #f5f5f5;
  --tap: rgba(0, 0, 0, 0.05);
  --accent: #c8161d;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  line-height: 1.55;
}

button {
  font: inherit;
}

.page {
  width: min(100%, 920px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 28px 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
}

.logo {
  color: var(--fg);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 14px;
}

.site-nav a {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-decoration: none;
}

.hero {
  padding: 28px 0 22px;
}

.eyebrow,
.date {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 10px;
  font-size: 68px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
}

.topic-list {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--line);
}

.topic-card {
  border-bottom: 1px solid #cfcfcf;
  background: var(--bg);
  animation: topic-enter 320ms ease both;
  animation-delay: min(calc(var(--topic-index, 0) * 24ms), 240ms);
}

.topic-toggle {
  display: grid;
  grid-template-columns: 60px 1fr 18px;
  gap: 14px;
  width: 100%;
  min-height: 112px;
  padding: 20px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: var(--tap);
}

.topic-index-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.rank {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 0.95;
}

.topic-card.is-leading .rank {
  color: var(--accent);
}

.topic-category {
  position: relative;
  max-width: 100%;
  margin-bottom: 9px;
  padding-bottom: 9px;
  color: var(--fg);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: left;
}

.topic-category::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--accent);
  content: "";
  transition: width 160ms ease;
}

.topic-toggle:hover .topic-category::after,
.topic-card.is-open .topic-category::after {
  width: 28px;
}

.title-wrap {
  min-width: 0;
}

.topic-title {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.28;
}

.topic-card.is-leading .topic-title {
  font-size: 21px;
}

.topic-card:not(.is-open) .topic-toggle {
  min-height: 126px;
  align-items: start;
}

.topic-card:not(.is-open) .topic-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.summary {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.stats {
  display: block;
  margin-top: 8px;
  color: #343434;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1.45;
}

.meta-item {
  white-space: nowrap;
}

.stats-full {
  display: none;
}

.topic-card:not(.is-open) .stats {
  white-space: normal;
}

.entity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 42px 18px 74px;
}

.entity-tag.is-static {
  cursor: default;
}

.entity-tag[href]:hover,
.entity-tag[href]:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.entity-tags[hidden] {
  display: none;
}

.entity-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  max-width: 100%;
  padding: 3px 13px 3px 5px;
  border: 1px solid #ddd6c6;
  border-radius: 999px;
  background: #faf7ef;
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.entity-tag-type {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.entity-tag[data-type="team"] .entity-tag-type {
  background: #c8161d;
}

.entity-tag[data-type="player"] .entity-tag-type {
  background: #1d5fae;
}

.entity-tag[data-type="coach"] .entity-tag-type {
  background: #7d3c98;
}

.entity-tag[data-type="media"] .entity-tag-type {
  background: #6f6f6f;
}

.entity-tag[data-type="celebrity"] .entity-tag-type {
  background: #b9770e;
}

.marker {
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 4px;
}

.marker::before,
.marker::after {
  position: absolute;
  inset: 6px 0 auto;
  height: 1px;
  background: var(--fg);
  content: "";
}

.marker::after {
  transform: rotate(90deg);
  transition: opacity 160ms ease;
}

.topic-card.is-open .marker::after {
  opacity: 0;
}

.topic-body {
  display: none;
  overflow: hidden;
}

.topic-card.is-open .topic-body {
  display: block;
  border-top: 1px solid var(--soft);
}

.topic-toggle:hover {
  background: #fafafa;
}

.topic-toggle:focus-visible,
.archive-date:focus-visible,
.source-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.subtopic-list {
  position: relative;
  min-height: 0;
  margin: 0;
  padding: 10px 22px 12px 22px;
  list-style: none;
}

.subtopic-list::before {
  position: absolute;
  left: 146px;
  top: 20px;
  bottom: 22px;
  border-left: 1px dashed #8a8a8a;
  content: "";
}

.subtopic-list > li {
  display: grid;
  grid-template-columns: 108px 18px minmax(0, 1fr);
  column-gap: 8px;
  position: relative;
  margin: 0;
  padding: 11px 0 15px;
  color: #202020;
  font-size: 14px;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 7px;
  height: 7px;
  margin: 8px auto 0;
  border: 1px solid var(--fg);
  border-radius: 50%;
  background: var(--bg);
}

.subtopic-heading {
  display: block;
  min-width: 0;
}

.subtopic-list time {
  display: inline-flex;
  justify-content: flex-end;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1.42;
  padding-top: 2px;
  text-align: right;
  white-space: nowrap;
}

.subtopic-heading h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.subtopic-empty {
  color: var(--muted);
}

.subtopic-list > .subtopic-empty::before,
.subtopic-list:has(.subtopic-empty)::before {
  display: none;
}

.source-block {
  min-height: 0;
  padding: 0 22px 20px 122px;
}

.source-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.source-toggle::after {
  margin-left: 6px;
  content: "+";
}

.source-block.is-source-open .source-toggle::after {
  content: "-";
}

.source-list,
.inline-source-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list {
  display: none;
  margin-top: 8px;
}

.source-block.is-source-open .source-list {
  display: grid;
}

.inline-source-list {
  margin-top: 10px;
}

.source-list li,
.inline-source-list li {
  display: flex;
  align-items: baseline;
  gap: 4px 10px;
}

.source-list .source-meta,
.inline-source-list .source-meta {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
}

.source-list a,
.inline-source-list a {
  min-width: 0;
  overflow: hidden;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-overflow: ellipsis;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* 详情页：来源默认折叠 */
.source-details {
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px solid #e4e4e4;
}

.source-details summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  list-style: none;
}

.source-details summary::-webkit-details-marker {
  display: none;
}

.source-details summary::before {
  margin-right: 6px;
  font-family: Georgia, "Times New Roman", serif;
  content: "+";
}

.source-details[open] summary::before {
  content: "–";
}

.source-details summary:hover {
  color: var(--fg);
}

.empty,
.loading,
.topic-inline-state {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.topic-inline-state {
  padding: 24px 22px 28px 122px;
}

.loading::after {
  display: inline-block;
  width: 1.5em;
  content: "...";
  animation: loading-pulse 900ms steps(4, end) infinite;
  overflow: hidden;
  vertical-align: bottom;
}

.date.is-stale {
  color: var(--accent);
}

.history-hero {
  padding-bottom: 34px;
}

.history-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: 42px;
}

.archive-dates {
  position: sticky;
  top: 18px;
  display: grid;
  border-top: 2px solid var(--line);
}

.archive-date {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid #d7d7d7;
  background: transparent;
  color: #565656;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  text-align: left;
}

.archive-date small {
  color: #888;
  font-size: 10px;
}

.archive-date.is-active {
  color: var(--accent);
  font-weight: 700;
}

.history-results {
  min-width: 0;
}

.history-static-list {
  display: grid;
  gap: 48px;
}

.history-static-list .history-results {
  width: 100%;
}

.history-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 38px;
}

.history-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.history-count {
  color: var(--muted);
  font-size: 12px;
}

@keyframes topic-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loading-pulse {
  from {
    width: 0;
  }
  to {
    width: 1.5em;
  }
}

.entity-page {
  max-width: 1040px;
}

.entity-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  align-items: end;
  gap: 42px;
  padding: 42px 0 32px;
  border-bottom: 2px solid var(--fg);
}

.entity-hero:has(.entity-profile-image[hidden]) {
  grid-template-columns: minmax(0, 760px);
}

.entity-hero-copy,
.entity-profile-image {
  animation: entity-reveal 420ms ease both;
}

.entity-profile-image {
  animation-delay: 80ms;
}

.entity-hero-copy {
  min-width: 0;
}

.entity-hero .eyebrow {
  color: #5c5c5c;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.entity-hero h1 {
  margin: 10px 0 0;
  font-size: 60px;
  letter-spacing: 0;
  line-height: 1;
}

.entity-summary {
  max-width: 660px;
  margin: 14px 0 0;
  color: #333;
  font-size: 15px;
  line-height: 1.75;
}

.entity-aliases {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin-top: 18px;
}

.entity-aliases[hidden] {
  display: none;
}

.entity-aliases span {
  position: relative;
  color: #686868;
  font-size: 12px;
}

.entity-aliases span + span::before {
  position: absolute;
  left: -7px;
  color: #a5a5a5;
  content: "·";
}

.entity-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 0;
  border-top: 1px solid #1b1b1b;
}

.entity-profile-facts div {
  min-width: 0;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid #dedede;
}

.entity-profile-facts dt {
  color: #777;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
}

.entity-profile-facts dd {
  margin: 0;
  color: #1e1e1e;
  font-size: 13px;
  line-height: 1.3;
}

.entity-profile-image {
  align-self: stretch;
  min-height: 322px;
  margin: 0;
  overflow: hidden;
  background: #ededed;
}

.entity-profile-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.entity-page[data-entity-type="team"] .entity-hero {
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  align-items: center;
  border-bottom-color: var(--entity-accent, #b42525);
}

.entity-page[data-entity-type="team"] .entity-hero-copy {
  order: 2;
}

.entity-page[data-entity-type="team"] .entity-profile-image {
  order: 1;
  min-height: 250px;
  border: 1px solid #dedede;
  background: #f6f6f4;
}

.entity-page[data-entity-type="team"] .entity-profile-image img {
  object-fit: contain;
  padding: 34px;
  filter: none;
}

.entity-page[data-entity-type="coach"] .entity-hero {
  position: relative;
  border-bottom-color: var(--entity-accent, #b42525);
}

.entity-page[data-entity-type="coach"] .entity-hero::before {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 116px;
  height: 6px;
  background: var(--entity-accent, #b42525);
  content: "";
}

.entity-highlights-section {
  padding: 0 0 28px;
  border-bottom: 1px solid #1b1b1b;
}

.entity-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.entity-highlights div {
  min-width: 0;
  padding: 20px 16px 0;
  border-left: 1px solid #d9d9d9;
}

.entity-highlights div:first-child {
  padding-left: 0;
  border-left: 0;
}

.entity-highlights dd {
  margin: 0;
  color: #121212;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.entity-highlights dt {
  margin-top: 7px;
  color: #666;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.entity-dossier-section {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid #1b1b1b;
}

.entity-dossier-section[hidden] {
  display: none;
}

.entity-dossier-heading p {
  margin: 0 0 6px;
  color: var(--entity-accent, #b42525);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.entity-dossier-heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.entity-dossier {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid #1b1b1b;
}

.entity-dossier div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #dedede;
}

.entity-dossier div:nth-child(odd) {
  padding-right: 18px;
}

.entity-dossier div:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid #dedede;
}

.entity-dossier dt,
.entity-dossier dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.entity-dossier dt {
  color: #595959;
}

.entity-dossier dd {
  color: #171717;
  font-weight: 700;
  text-align: right;
}

@keyframes entity-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.entity-classic-moments-section {
  padding: 30px 0 28px;
  border-bottom: 1px solid #1b1b1b;
}

.entity-classic-moments-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.entity-classic-moments-heading h2 {
  margin: 0;
  color: #171717;
  font-size: 20px;
  line-height: 1.3;
}

.entity-classic-moments {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entity-classic-moment {
  min-width: 0;
}

.entity-classic-moment button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.entity-classic-moment-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #d1d1d1;
  background: #e9e9e9;
}

.entity-classic-moment-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 180ms ease, transform 180ms ease;
}

.entity-classic-moment-media img[data-motion-loaded="true"] {
  filter: grayscale(20%);
}

.entity-classic-moment-rank {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 29px;
  padding: 4px 6px;
  background: #151515;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.entity-classic-moment-title {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.entity-classic-moment-title time {
  color: #777;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  line-height: 1.2;
}

.entity-classic-moment-title strong {
  display: -webkit-box;
  overflow: hidden;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.entity-classic-moment-caption {
  display: -webkit-box;
  overflow: hidden;
  color: #696969;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.entity-classic-moment-credit {
  display: inline-block;
  margin-top: 5px;
  color: #777;
  font-size: 10px;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: #b4b4b4;
  text-underline-offset: 2px;
}

.entity-classic-moment button:hover .entity-classic-moment-media {
  border-color: #111;
}

.entity-classic-moment button:hover img {
  filter: grayscale(0%);
  transform: scale(1.025);
}

.entity-classic-moment button:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 4px;
}

.entity-classic-moment-credit:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .entity-classic-moment-media img {
    transition: none;
  }

  .entity-classic-moment button:hover img {
    transform: none;
  }
}

.entity-browser {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #cfcfcf;
  background: var(--bg);
}

.entity-browser[hidden] {
  display: none;
}

.entity-browser-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.entity-browser-label {
  margin: 0;
  color: #666;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.entity-tab-list {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.entity-tab-list::-webkit-scrollbar {
  display: none;
}

.entity-tab {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d0d0d0;
  border-radius: 2px;
  background: #fff;
  color: #595959;
  cursor: pointer;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.entity-tab[data-active="true"] {
  border-color: #171717;
  background: #171717;
  color: #fff;
}

.entity-tab:hover:not([data-active="true"]) {
  border-color: #777;
  color: #171717;
}

.entity-tab:focus-visible,
.entity-event-tags button:focus-visible,
.entity-filter-reset:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

.entity-section {
  padding-top: 30px;
}

.entity-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.entity-section h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.entity-topic-list {
  border-top: 1px solid #1b1b1b;
}

.entity-topic-card {
  margin: 0;
}

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52vh;
}

.error-home-link {
  width: fit-content;
  margin-top: 28px;
  padding: 10px 14px;
  border: 1px solid #171717;
  background: #171717;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.error-home-link:hover,
.error-home-link:focus-visible {
  background: #fff;
  color: #171717;
}

.entity-filter-reset {
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid #111;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-size: 12px;
}

.entity-filter-status {
  margin: 0 0 12px;
  color: #5e5e5e;
  font-size: 12px;
}

.entity-event-list {
  position: relative;
  margin: 0;
  padding: 6px 0 10px;
  list-style: none;
}

.entity-event-list::before {
  position: absolute;
  left: 134px;
  top: 34px;
  bottom: 42px;
  border-left: 1px dashed #a8a8a8;
  content: "";
}

.entity-event-list > li {
  display: grid;
  grid-template-columns: 112px 24px minmax(0, 1fr);
  column-gap: 10px;
  position: relative;
  padding: 18px 0 30px;
  scroll-margin-top: 132px;
}

.entity-event-list time {
  display: inline-flex;
  justify-content: flex-end;
  color: #666;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.45;
  padding-top: 5px;
  text-align: right;
  white-space: nowrap;
}

.entity-timeline-dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 10px;
  height: 10px;
  margin: 8px auto 0;
  border: 2px solid #161616;
  border-radius: 50%;
  background: #fff;
}

.entity-event-content {
  min-width: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid #dedede;
}

.entity-event-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 10px;
}

.entity-event-kind {
  flex: 0 0 auto;
  color: #686868;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.entity-event-content h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
}

.entity-event-content p {
  margin: 9px 0 0;
  color: #303030;
  font-size: 15px;
  line-height: 1.65;
}

.entity-event-details {
  margin: 10px 0 0;
  color: #565656;
  font-size: 13px;
  line-height: 1.58;
}

.entity-event-details p {
  margin: 7px 0 0;
  color: #565656;
  font-size: 13px;
  line-height: 1.58;
}

.entity-event-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5e5e5;
  color: #6a6a6a;
  font-size: 12px;
  line-height: 1.45;
}

.entity-event-stats span {
  color: #333;
  font-weight: 700;
}

.entity-event-stats b {
  font-weight: 500;
  color: #353535;
}

.entity-event-quotes {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.entity-event-quotes blockquote {
  margin: 0;
  padding: 11px 14px;
  border-left: 3px solid #171717;
  background: #f5f5f5;
}

.entity-event-quotes p {
  margin: 0;
}

.entity-event-quotes .quote-translation {
  margin-top: 5px;
  color: var(--muted);
}

.entity-event-quotes cite {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.entity-event-image {
  width: min(100%, 560px);
  margin: 14px 0 0;
}

.entity-event-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border: 1px solid #d4d4d4;
  border-radius: 2px;
}

.entity-event-image figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.entity-event-image figcaption a {
  color: #4a4a4a;
  text-decoration: underline;
  text-decoration-color: #b3b3b3;
  text-underline-offset: 2px;
}

.entity-event-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-top: 12px;
  color: #717171;
  font-size: 12px;
  line-height: 1.5;
}

.entity-event-sources a {
  color: #262626;
  text-decoration: underline;
  text-decoration-color: #b3b3b3;
  text-underline-offset: 2px;
}

.entity-event-sources a:hover {
  text-decoration: underline;
}

.entity-event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.entity-event-tags button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #d2d2d2;
  border-radius: 2px;
  background: #f7f7f7;
  color: #555;
  cursor: pointer;
  font-size: 12px;
}

.entity-event-tags button:hover {
  border-color: #666;
  background: #ebebeb;
  color: #111;
}

.entity-period-marker {
  padding: 32px 0 14px !important;
}

.entity-period-marker .entity-timeline-dot {
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-color: #111;
  background: #111;
}

.entity-period-marker-content {
  padding-top: 6px;
  border-top: 1px solid #111;
}

.entity-period-marker-content strong {
  display: block;
  color: #111;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.entity-empty {
  color: var(--muted);
  font-size: 14px;
}

.entity-event-list > .entity-empty::before,
.entity-event-list:has(.entity-empty)::before {
  display: none;
}

@media (max-width: 640px) {
  .page {
    width: min(100%, 520px);
    padding: max(18px, env(safe-area-inset-top)) 18px 40px;
  }

  h1 {
    font-size: 46px;
  }

  .history-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .archive-dates {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
  }

  .topic-toggle {
    grid-template-columns: 48px 1fr 18px;
    gap: 10px;
    padding: 16px 4px;
  }

  .rank {
    font-size: 21px;
  }

  .topic-category {
    font-size: 10px;
  }

  .entity-tags {
    padding: 0 32px 14px 52px;
  }

  .subtopic-list {
    padding: 8px 18px 10px 12px;
  }

  .subtopic-list::before {
    left: 106px;
  }

  .subtopic-list > li {
    grid-template-columns: 80px 16px minmax(0, 1fr);
    column-gap: 6px;
  }

  .subtopic-list time {
    font-size: 10px;
  }

  .source-block {
    padding: 0 18px 18px 88px;
  }

  .topic-inline-state {
    padding: 20px 18px 24px 88px;
  }

  .entity-event-list::before {
    left: 80px;
  }

  .entity-event-list > li {
    grid-template-columns: 62px 18px minmax(0, 1fr);
    column-gap: 9px;
  }

  .entity-event-list time {
    font-size: 11px;
  }

  .entity-timeline-dot {
    width: 7px;
    height: 7px;
  }

  .entity-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0 26px;
  }

  .entity-page[data-entity-type="team"] .entity-hero {
    grid-template-columns: 1fr;
  }

  .entity-page[data-entity-type="team"] .entity-hero-copy {
    order: 2;
  }

  .entity-page[data-entity-type="team"] .entity-profile-image {
    order: 1;
    width: min(66vw, 240px);
    min-height: 0;
    aspect-ratio: 1;
  }

  .entity-hero h1 {
    font-size: 42px;
  }

  .entity-profile-image {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .entity-profile-facts {
    margin-top: 20px;
  }

  .entity-highlights-section {
    padding-bottom: 22px;
  }

  .entity-dossier-section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .entity-dossier {
    grid-template-columns: 1fr;
  }

  .entity-dossier div:nth-child(odd),
  .entity-dossier div:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .entity-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entity-highlights div {
    padding: 16px 12px 0;
  }

  .entity-highlights div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .entity-classic-moments-section {
    padding: 24px 0 22px;
  }

  .entity-classic-moments-heading {
    margin-bottom: 12px;
  }

  .entity-classic-moments-heading h2 {
    font-size: 18px;
  }

  .entity-classic-moments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 10px;
  }

  .entity-classic-moment-title strong {
    font-size: 13px;
  }

  .entity-browser {
    gap: 10px;
    padding: 12px 0;
  }

  .entity-browser-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .entity-tab {
    min-height: 28px;
    padding: 0 9px;
  }

  .entity-event-list > li {
    padding: 16px 0 25px;
  }

  .entity-event-heading {
    gap: 5px 8px;
  }

  .entity-event-content h3 {
    font-size: 16px;
  }

  .entity-event-content p {
    font-size: 14px;
  }

  .entity-event-image {
    width: 100%;
  }

  .entity-event-image img {
    max-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topic-card,
  .loading::after,
  .entity-hero-copy,
  .entity-profile-image {
    animation: none;
  }

  .marker::after {
    transition: none;
  }

  .marker.is-link::before,
  .marker.is-link::after {
    transition: none;
  }
}

/* ===== 详情链接卡片：右箭头 ===== */
.marker.is-link {
  width: 16px;
  height: 16px;
}

.marker.is-link::before,
.marker.is-link::after {
  inset: auto;
  width: 7px;
  height: 7px;
  right: 4px;
  background: transparent;
  border: 0 solid var(--fg);
  transition: right 160ms ease;
}

.marker.is-link::before {
  top: 1px;
  border-top-width: 1.5px;
  border-right-width: 1.5px;
  transform: rotate(45deg);
}

.marker.is-link::after {
  top: 8px;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
  transform: rotate(-45deg);
}

.topic-toggle:hover .marker.is-link::before,
.topic-toggle:hover .marker.is-link::after {
  right: 1px;
}

/* ===== 话题详情页 ===== */
.topic-detail {
  max-width: 760px;
}

.topic-detail-header {
  padding: 30px 0 20px;
  border-bottom: 2px solid var(--line);
}

.topic-detail-header .eyebrow {
  color: #5c5c5c;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.topic-detail-header h1 {
  margin: 10px 0 14px;
  font-size: 40px;
  line-height: 1.1;
}

.topic-detail-meta {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.5;
}

.topic-detail-summary {
  margin: 22px 0 0;
  color: #2c2c2c;
  font-size: 16px;
  line-height: 1.75;
}

.topic-detail-section {
  margin-top: 34px;
}

.topic-detail-section-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1b1b1b;
  font-size: 18px;
  line-height: 1.3;
}

.topic-detail-count {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 400;
}

/* 子话题标题行 + 热度增量 */
.subtopic-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.subtopic-delta {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.subtopic-body {
  margin: 6px 0 0;
  color: #3a3a3a;
  font-size: 13px;
  line-height: 1.6;
}

/* 网友观点：按立场分组 */
.viewpoint-groups {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.viewpoint-group {
  padding: 14px 18px 8px;
  border: 1px solid #e6e1d4;
  border-left: 3px solid #8a8a8f;
  background: #fdfcf9;
}

.viewpoint-group.is-positive {
  border-left-color: #2e7d4f;
}

.viewpoint-group.is-negative {
  border-left-color: #c8161d;
}

.viewpoint-group-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.4;
}

.viewpoint-group-label {
  font-weight: 700;
}

.viewpoint-group.is-positive .viewpoint-group-label {
  color: #2e7d4f;
}

.viewpoint-group.is-negative .viewpoint-group-label {
  color: #c8161d;
}

.viewpoint-group.is-neutral .viewpoint-group-label {
  color: #555;
}

.viewpoint-group-hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.viewpoint-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.viewpoint-list > li {
  padding: 11px 0;
  border-top: 1px dashed #e0dbcc;
}

.viewpoint-list > li:first-child {
  border-top: 0;
}

.viewpoint-content {
  margin: 0;
  color: #1f1f1f;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.viewpoint-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 7px;
  color: #848484;
  font-size: 11px;
  line-height: 1.5;
}

.viewpoint-fan {
  padding: 1px 8px;
  border-radius: 999px;
  background: #f0ede2;
  color: #6b6250;
  font-size: 11px;
}

.viewpoint-meta time {
  font-family: Georgia, "Times New Roman", serif;
}

.topic-detail-entities {
  padding: 18px 0 0;
}

.site-footer {
  display: flex;
  gap: 18px;
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid #d7d7d7;
}

.site-footer a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--fg);
}

@media (max-width: 640px) {
  .topic-detail-header h1 {
    font-size: 30px;
  }

  .topic-detail-summary {
    font-size: 15px;
  }

  .viewpoint-content {
    font-size: 13px;
  }
}

/* ===== 暗色模式 ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --fg: #e8e8e6;
    --muted: #9b9ba0;
    --line: #e8e8e6;
    --soft: #1d1d20;
    --tap: rgba(255, 255, 255, 0.08);
    --accent: #e05260;
    color-scheme: dark;
  }

  .topic-card {
    border-bottom-color: #2a2a2e;
  }

  .topic-toggle:hover {
    background: #18181b;
  }

  .stats {
    color: #b9b9bd;
  }

  .entity-tag.is-static {
    border-color: #3a3a3f;
    color: #8f8f94;
  }

  .subtopic-list::before {
    border-left-color: #55555c;
  }

  .subtopic-list > li {
    color: #d6d6d9;
  }

  .archive-date {
    border-bottom-color: #2e2e33;
    color: #b5b5b9;
  }

  .archive-date small {
    color: #8a8a8f;
  }

  .topic-detail-header .eyebrow,
  .entity-hero .eyebrow {
    color: #9b9ba0;
  }

  .topic-detail-summary {
    color: #d0d0d4;
  }

  .topic-detail-section-title {
    border-bottom-color: #c9c9cd;
  }

  .subtopic-body {
    color: #b5b5ba;
  }

  .viewpoint-group {
    border-color: #2e2e33;
    background: #17171a;
  }

  .viewpoint-group.is-neutral .viewpoint-group-label {
    color: #b5b5b9;
  }

  .viewpoint-list > li {
    border-top-color: #2e2e33;
  }

  .viewpoint-content {
    color: #dedee2;
  }

  .viewpoint-meta {
    color: #8f8f95;
  }

  .viewpoint-fan {
    background: #26262a;
    color: #b5b5b9;
  }

  .source-details {
    border-top-color: #2a2a2e;
  }

  .source-details summary:hover {
    color: #e8e8e6;
  }

  .entity-tag {
    border-color: #3a3a3f;
    background: #1d1d20;
    color: #e8e8e6;
  }

  .site-footer {
    border-top-color: #2e2e33;
  }

  /* 实体档案页 */
  .entity-summary {
    color: #c9c9cd;
  }

  .entity-aliases span {
    color: #8f8f95;
  }

  .entity-aliases span + span::before {
    color: #55555b;
  }

  .entity-profile-facts,
  .entity-dossier {
    border-top-color: #c9c9cd;
  }

  .entity-profile-facts div,
  .entity-dossier div {
    border-bottom-color: #2e2e33;
  }

  .entity-dossier div:nth-child(even) {
    border-left-color: #2e2e33;
  }

  .entity-profile-facts dt {
    color: #8f8f95;
  }

  .entity-profile-facts dd {
    color: #d6d6da;
  }

  .entity-profile-image {
    background: #1d1d20;
  }

  .entity-page[data-entity-type="team"] .entity-profile-image {
    border-color: #333338;
    background: #19191c;
  }

  .entity-highlights-section,
  .entity-dossier-section,
  .entity-classic-moments-section {
    border-bottom-color: #c9c9cd;
  }

  .entity-highlights div {
    border-left-color: #333338;
  }

  .entity-highlights dd {
    color: #ececf0;
  }

  .entity-highlights dt {
    color: #9a9aa0;
  }

  .entity-classic-moments-heading h2 {
    color: #e8e8e6;
  }

  .entity-classic-moment-media {
    border-color: #33333a;
    background: #1d1d20;
  }

  .entity-classic-moment-rank {
    background: #e8e8e6;
    color: #121214;
  }

  .entity-classic-moment-title time {
    color: #8f8f95;
  }

  .entity-classic-moment-title strong {
    color: #d6d6da;
  }

  .entity-classic-moment-caption {
    color: #8f8f95;
  }

  .entity-classic-moment-credit {
    color: #9a9aa0;
    text-decoration-color: #55555c;
  }

  .entity-classic-moment button:hover .entity-classic-moment-media {
    border-color: #d6d6da;
  }

  .entity-classic-moment button:focus-visible,
  .entity-classic-moment-credit:focus-visible,
  .entity-tab:focus-visible,
  .entity-event-tags button:focus-visible,
  .entity-filter-reset:focus-visible {
    outline-color: #d6d6da;
  }

  .entity-browser {
    border-bottom-color: #2e2e33;
  }

  .entity-browser-label {
    color: #9a9aa0;
  }

  .entity-tab {
    border-color: #3a3a40;
    background: #1a1a1d;
    color: #b9b9bd;
  }

  .entity-tab[data-active="true"] {
    border-color: #e8e8e6;
    background: #e8e8e6;
    color: #121214;
  }

  .entity-tab:hover:not([data-active="true"]) {
    border-color: #8f8f95;
    color: #e8e8e6;
  }

  .entity-filter-reset {
    border-bottom-color: #d6d6da;
    color: #d6d6da;
  }

  .entity-filter-status {
    color: #9a9aa0;
  }

  .entity-event-list::before {
    border-left-color: #4a4a52;
  }

  .entity-event-list time {
    color: #9a9aa0;
  }

  .entity-timeline-dot {
    border-color: #d6d6da;
    background: #121214;
  }

  .entity-event-content {
    border-bottom-color: #2c2c31;
  }

  .entity-event-kind {
    color: #8f8f95;
  }

  .entity-event-content p {
    color: #c6c6ca;
  }

  .entity-event-details,
  .entity-event-details p {
    color: #a7a7ac;
  }

  .entity-event-stats {
    border-top-color: #2c2c31;
    color: #9a9aa0;
  }

  .entity-event-stats span {
    color: #d6d6da;
  }

  .entity-event-stats b {
    color: #c9c9cd;
  }

  .entity-event-quotes blockquote {
    border-left-color: #d6d6da;
    background: #1b1b1f;
  }

  .entity-event-image img {
    border-color: #33333a;
  }

  .entity-event-image figcaption a {
    color: #b5b5ba;
    text-decoration-color: #55555c;
  }

  .entity-event-sources {
    color: #8f8f95;
  }

  .entity-event-sources a {
    color: #d6d6da;
    text-decoration-color: #55555c;
  }

  .entity-event-tags button {
    border-color: #3a3a40;
    background: #1b1b1f;
    color: #b5b5ba;
  }

  .entity-event-tags button:hover {
    border-color: #8f8f95;
    background: #26262b;
    color: #e8e8e6;
  }

  .entity-period-marker .entity-timeline-dot {
    border-color: #e8e8e6;
    background: #e8e8e6;
  }

  .entity-period-marker-content {
    border-top-color: #e8e8e6;
  }

  .entity-period-marker-content strong {
    color: #e8e8e6;
  }
}
