:root {
  --page: #ffffff;
  --surface: #ffffff;
  --ink: #050505;
  --soft-ink: #262626;
  --muted: #6f6f6f;
  --line: #d8d8d8;
  --line-dark: #0a0a0a;
  --accent: #d71920;
  --brand: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.45;
}

body.modal-open {
  overflow: hidden;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font: inherit;
}

.brand-strip {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 56px;
  padding: 0;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.brand-strip::before {
  content: none;
}

.masthead-row {
  display: grid;
  grid-template-columns: 28px auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 56px;
  padding: 0 18px;
}

.menu-button {
  display: grid;
  gap: 4px;
  width: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 1.5px;
  background: #0a0a0a;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-lockup:hover {
  text-decoration: none;
}

.brand-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: transparent;
}

.brand-symbol img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-word {
  color: #050505;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.app-shell {
  width: min(1760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 54px;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 7px;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.045em;
}

.subtitle {
  margin-bottom: 0;
  color: var(--soft-ink);
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 650;
}

.controls {
  display: flex;
  justify-self: start;
  justify-content: flex-start;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-top: 0;
}

.segment {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: clamp(18px, 2.1vw, 34px);
  padding-bottom: 0;
}

.segment-button {
  position: relative;
  min-height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111111;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    opacity 140ms ease,
    color 140ms ease;
}

.segment-button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
}

.segment-button.active {
  background: transparent;
  color: #000000;
  box-shadow: none;
  transform: none;
}

.segment-button.active::after {
  background: #000000;
}

.segment-button:hover {
  color: var(--accent);
  box-shadow: none;
  transform: none;
}

.segment-button:active {
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.content-flow {
  display: grid;
  gap: 24px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 max(18px, calc((100vw - 1760px) / 2)) 64px;
  border-top: 0;
  background: var(--surface);
}

.column {
  min-width: 0;
}

.column-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}

.column-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.column-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(22px, 2.1vw, 34px);
  row-gap: 46px;
}

.news-card {
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition:
    opacity 180ms ease;
}

.rail-card,
.trend-card {
  display: grid;
  gap: 12px;
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.rail-card {
  grid-template-columns: minmax(86px, 42%) minmax(0, 1fr);
  align-items: start;
}

.trend-card {
  gap: 10px;
}

.lead-card {
  border-bottom: 0;
  text-align: center;
}

.lead-kicker {
  margin-bottom: 18px;
  color: #111111;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lead-title {
  max-width: 900px;
  margin: 0 auto 20px;
  font-size: clamp(36px, 4.3vw, 64px);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.052em;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
  text-wrap: balance;
}

.lead-card .key-numbers {
  max-width: 780px;
  margin: 0 auto 16px;
  text-align: left;
}

.lead-summary {
  max-width: 820px;
  margin: 0 auto 18px;
  color: #4a4a4a;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 500;
  line-height: 1.34;
}

.lead-actions {
  max-width: 760px;
  margin: 0 auto 22px;
  border-top: 0;
  justify-content: center;
}

.lead-card .card-image {
  aspect-ratio: 16 / 9.4;
  border-color: #050505;
}

.lead-card .card-image::after {
  background: none;
}

.news-card:hover {
  transform: none;
  box-shadow: none;
}

.news-card:hover .card-image img {
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.015);
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(135deg, #eeeeee, #d8d8d8);
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

.card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.source-logo-card {
  background: #f7f7f2;
}

.source-logo-card img {
  padding: 0;
  object-fit: cover;
}

.image-title {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.46);
}

.image-title span {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.image-title h3 {
  margin: 0;
  font-size: clamp(15px, 1.08vw, 19px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-card:not(.lead-card) .image-title h3 {
  display: none;
}

.body-title {
  margin: 0 0 8px;
  color: #050505;
  font-size: clamp(20px, 1.65vw, 30px);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.rail-card .body-title,
.trend-card .body-title {
  font-size: clamp(19px, 1.45vw, 27px);
}

.rail-card .card-image {
  aspect-ratio: 1 / 1;
}

.rail-card .card-body {
  padding-top: 0;
}

.rail-card .summary,
.trend-card .summary {
  font-size: 11.2px;
  line-height: 1.38;
}

.rail-card .key-numbers strong,
.trend-card .key-numbers strong {
  font-size: 9.8px;
}

.trend-card .card-image {
  aspect-ratio: 16 / 8.8;
}

.trend-card .card-actions,
.rail-card .card-actions {
  align-items: flex-start;
  flex-direction: column;
}

.favorite-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #0b0b0b;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0b0b0b;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.favorite-button.active {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}

.favorite-button:hover {
  transform: scale(1.04);
}

.source-image-missing,
.card-image.image-failed::after {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: center;
}

.card-image.image-failed::after {
  content: "原文图片加载失败";
}

.card-body {
  padding: 11px 0 14px;
}

.key-numbers {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
  padding: 7px 0 8px;
  border-top: 1px solid #bcbcbc;
  border-bottom: 1px solid #bcbcbc;
}

.key-numbers span {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.key-numbers strong {
  color: var(--ink);
  font-size: 10.8px;
  font-weight: 850;
  line-height: 1.34;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-break: anywhere;
}

.summary {
  margin-bottom: 11px;
  color: var(--soft-ink);
  font-size: 12.5px;
  font-weight: 620;
  line-height: 1.45;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.8px;
  font-weight: 850;
}

.action-links {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.read-more-button,
.card-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid #0b0b0b;
  border-radius: 0;
  cursor: pointer;
  color: #ffffff;
  background: #0b0b0b;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.10em;
  white-space: nowrap;
}

.read-more-button {
  color: #0b0b0b;
  background: #ffffff;
}

.read-more-button.secondary {
  min-height: 32px;
  color: #0b0b0b;
  background: #ffffff;
  font-size: 11px;
}

.read-more-button:hover,
.card-actions a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.read-more-modal[hidden] {
  display: none;
}

.read-more-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
  width: min(980px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  border: 1px solid #050505;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

#modal-content {
  display: contents;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #050505;
  background: #ffffff;
  color: #050505;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.modal-close:hover {
  background: #050505;
  color: #ffffff;
}

.modal-image {
  min-height: 100%;
  background: #eeeeee;
}

.modal-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
}

.modal-body {
  padding: 34px 34px 30px;
}

.modal-kicker {
  margin-bottom: 12px;
  color: #666666;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.modal-body h2 {
  margin: 0 38px 18px 0;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  background: var(--line);
}

.modal-meta div {
  min-width: 0;
  padding: 9px 10px;
  background: #ffffff;
}

.modal-meta dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.modal-meta dd {
  margin: 0;
  color: #111111;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
}

.modal-section {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.modal-section h3 {
  margin: 0 0 8px;
  color: #111111;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.15em;
}

.modal-section p {
  margin: 0 0 10px;
  color: #222222;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.64;
}

.modal-section p:last-child {
  margin-bottom: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}

.modal-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #050505;
  background: #050505;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.10em;
}

.modal-actions a:hover {
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.empty-state {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 980px) {
  .masthead-row {
    grid-template-columns: 28px auto;
    gap: 14px;
    padding: 0 16px;
  }

  .controls {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
  }

  .segment {
    flex-wrap: nowrap;
  }

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

@media (max-width: 760px) {
  .card-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .read-more-modal {
    padding: 0;
  }

  .modal-panel {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 100vh;
    border-right: 0;
    border-left: 0;
  }

  .modal-image img {
    min-height: 260px;
    max-height: 340px;
  }

  .modal-body {
    padding: 24px 22px 28px;
  }

  .modal-body h2 {
    margin-right: 38px;
    font-size: 31px;
  }

  .modal-meta {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .masthead-row {
    padding: 0 12px;
  }

  .brand-symbol {
    width: 36px;
    height: 36px;
  }

  .brand-symbol img {
    width: 34px;
    height: 34px;
  }

  .brand-word {
    font-size: 24px;
  }

  .app-shell {
    width: min(100% - 24px, 1540px);
    padding-top: 0;
  }

  .controls {
    margin-bottom: 0;
  }

  .segment {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 18px;
    padding-bottom: 2px;
  }

  .segment-button {
    flex: 0 0 auto;
    font-size: 14px;
    letter-spacing: 0.01em;
  }

  .card-list {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .content-flow {
    padding-right: 12px;
    padding-left: 12px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .news-card {
    max-width: calc(100vw - 24px);
  }

  .lead-title {
    font-size: 38px;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
  }

  .image-title h3 {
    font-size: 18px;
    line-height: 1.08;
  }
}
