 :root {
  --lantern-shimmer-shift: 0px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: #f4e6cc;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 86, 24, 0.18), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(255, 163, 46, 0.14), transparent 40%),
    #0c0a09;
}

.bg-decor {
  position: fixed;
  width: 380px;
  height: 380px;
  filter: blur(70px);
  z-index: -1;
}

.bg-decor-left {
  left: -120px;
  top: -80px;
  background: rgba(255, 136, 47, 0.22);
}

.bg-decor-right {
  right: -120px;
  top: 220px;
  background: rgba(173, 37, 37, 0.2);
}

.container {
  width: min(1440px, 95%);
  margin: 0 auto;
  position: relative;
}

.container::before {
  content: "";
  position: fixed;
  inset: 82px 0 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
  background:
    radial-gradient(120px 48px at 12% 18%, rgba(203, 33, 33, 0.08), transparent 72%),
    radial-gradient(150px 58px at 88% 30%, rgba(210, 67, 39, 0.08), transparent 72%),
    radial-gradient(110px 42px at 36% 62%, rgba(196, 41, 41, 0.06), transparent 72%),
    radial-gradient(140px 52px at 70% 72%, rgba(198, 38, 32, 0.06), transparent 72%);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #6a3c21;
  background: rgba(24, 14, 10, 0.9);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.nav h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 2px;
  color: #ffdba0;
  text-shadow: 0 0 20px rgba(255, 126, 30, 0.45);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-nav a {
  color: #f7ddba;
  text-decoration: none;
}

.btn {
  display: inline-block;
  border: 1px solid var(--accent, #d32f2f);
  background: var(--accent, #d32f2f);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn:hover {
  background: var(--accent-hover, #b71c1c);
  border-color: var(--accent-hover, #b71c1c);
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--accent, #d32f2f);
  color: var(--accent, #d32f2f);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(209, 31, 42, 0.08);
  border-color: var(--accent-hover, #b71c1c);
  color: var(--accent-hover, #b71c1c);
}

.hero-wrap {
  margin: 28px 0 16px;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 16px;
}

.main-banner {
  margin: 20px 0 16px;
  border: 1px solid #724327;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.main-banner img {
  width: 100%;
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
  display: block;
}

.main-banner-full {
  margin: 0 0 14px;
  border: none;
  border-radius: 0;
  width: 100%;
  box-shadow: none;
  overflow: hidden;
}

.main-banner-full img {
  width: 100%;
  height: clamp(200px, 32vw, 380px);
  object-fit: cover;
  display: block;
}

.hero {
  padding: 34px 28px;
  border-radius: 16px;
  border: 1px solid #7a4228;
  background:
    linear-gradient(120deg, rgba(123, 27, 19, 0.82), rgba(23, 13, 27, 0.9)),
    /* 图片由后端配置或占位图渲染，这里不要写死外部链接 */
    none;
  box-shadow: inset 0 1px 0 rgba(255, 221, 169, 0.16), 0 16px 40px rgba(0, 0, 0, 0.4);
}

.hero-kicker {
  margin: 0;
  color: #ffd48a;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero h2 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  color: #fff1d3;
}

.hero p {
  max-width: 88%;
  margin: 0;
  color: #f3d9c2;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-side {
  border-radius: 16px;
  border: 1px solid #4f2d22;
  background: linear-gradient(180deg, #1f151b, #151016);
  padding: 18px 16px;
}

.hero-side h3 {
  margin: 0 0 12px;
  color: #ffd79b;
}

.hero-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-side li {
  background: rgba(255, 196, 130, 0.06);
  border: 1px solid #503126;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.hero-side li span {
  color: #d39e6f;
  font-size: 12px;
}

.hero-side li strong {
  color: #efdcc4;
  font-size: 14px;
}

.hero-side-link {
  display: inline-block;
  margin-top: 12px;
  color: #ffcf90;
  text-decoration: none;
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #5d3827;
  border-radius: 10px;
  background: rgba(32, 19, 21, 0.78);
  padding: 10px 12px;
}

.notice-bar > span {
  background: linear-gradient(180deg, #b53a23, #7a2518);
  color: #ffd6ab;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 88px;
  justify-content: center;
  padding: 5px 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid #d8b992;
  background: linear-gradient(180deg, #fff9f0, #fff1df) !important;
  color: #7b4a21 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 2px 6px rgba(159, 115, 74, 0.2);
}

.notice-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 32% 30%, #fff8d8 0%, #f6d58f 44%, #d39d55 100%);
  border: 1px solid #cd9d5f;
  box-shadow: 0 1px 2px rgba(141, 92, 44, 0.26);
}

.notice-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 4px;
  height: 6px;
  border-radius: 1px;
  background: #8a5725;
}

.notice-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 6px;
  height: 8px;
  background: #8a5725;
  clip-path: polygon(0 24%, 100% 0, 100% 100%, 0 76%);
}

.notice-label {
  line-height: 1;
}

.notice-badge i {
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-radius: 50%;
  background: #ff6f5f;
  box-shadow: 0 0 0 0 rgba(255, 111, 95, 0.5);
  animation: notice-dot-pulse 2.2s ease-out infinite;
}

@keyframes notice-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 111, 95, 0.52);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 111, 95, 0);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 111, 95, 0);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice-badge i {
    animation: none;
  }
}

.feature-strip {
  margin: 16px 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-strip article {
  background: linear-gradient(160deg, rgba(255, 163, 79, 0.14), rgba(41, 23, 26, 0.8));
  border: 1px solid #5f3929;
  border-radius: 12px;
  padding: 14px;
}

.feature-strip h4 {
  margin: 0 0 6px;
  color: #ffd99f;
}

.feature-strip p {
  margin: 0;
  color: #ddc0a7;
  font-size: 13px;
}

.portal-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 170px 170px;
  gap: 10px;
}

.event-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #6c3f29;
  text-decoration: none;
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover img {
  transform: scale(1.04);
}

.event-card-lg {
  grid-row: 1 / 3;
}

.event-mask {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
  color: #ffe6c4;
}

.event-mask h3,
.event-mask p {
  margin: 0;
}

.event-mask p {
  margin-top: 4px;
  font-size: 13px;
}

.side-panel {
  background: linear-gradient(180deg, #22171c, #160f13);
  border: 1px solid #6a3c29;
  border-radius: 12px;
  padding: 14px;
}

.side-panel h3 {
  margin: 0 0 10px;
  color: #ffdca0;
}

.side-panel ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #e2c6ae;
  line-height: 1.8;
}

.side-btn {
  width: 100%;
  text-align: center;
}

.section-block {
  margin: 0 0 24px;
}

.section-panel {
  border: 1px solid #4a2d25;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(41, 20, 13, 0.9), rgba(24, 12, 11, 0.95));
}

.section-head {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-head h3 {
  margin: 0;
  color: #ffe1ac;
}

.section-head span {
  color: #d3ab8f;
  font-size: 13px;
}

.filters {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-label {
  color: #5a4a3a;
  font-size: 14px;
  flex-shrink: 0;
}

.category-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-btn {
  padding: 6px 14px;
  border: 1px solid #d4b89a;
  background: #fff;
  color: #6b5344;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.category-btn:hover {
  border-color: #c85a1a;
  color: #c85a1a;
  background: #fff8f5;
}

.category-btn.active {
  background: linear-gradient(180deg, #e86b2a, #c95218);
  border-color: #c95218;
  color: #fff;
}

.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.search-row input {
  flex: 1;
  min-width: 0;
}

.grid {
  display: grid;
  /* 桌面端固定 4 列，卡片随容器变宽 */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1180px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #5a3328;
  background: linear-gradient(180deg, #2c1a14, #1d1210);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.card.is-floating {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.34);
}

.card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
}

.card-media {
  position: relative;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  display: block;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.card-media:hover .cover-overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  text-align: center;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  background: var(--accent, #d32f2f);
  border: 1px solid var(--accent-hover, #b71c1c);
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.overlay-link:hover {
  color: #ffffff;
  background: var(--accent, #d32f2f);
  border-color: var(--accent-hover, #b71c1c);
  box-shadow: none;
  transform: none;
}

.overlay-rate {
  font-size: 12px;
  color: #f3d7ad;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.card-body {
  padding: 12px;
}

.card h3 {
  margin: 0 0 8px;
  color: #ffe3ae;
}

.card p {
  margin: 0 0 10px;
  color: #dbc3af;
  line-height: 1.55;
}

.meta {
  display: flex;
  gap: 10px;
  color: #bb9a89;
  font-size: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag {
  border: 1px solid #5f4032;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  color: #ffd9a6;
  background: rgba(85, 40, 31, 0.5);
}

.corner-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #cb3232;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
}

.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(180deg, #ffeab7, #e8a340);
  color: #633007;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.download-btn {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  border: 1px solid var(--accent, #d32f2f);
  background: var(--accent, #d32f2f);
  box-shadow: none;
}

.download-btn:hover {
  background: var(--accent-hover, #b71c1c);
  border-color: var(--accent-hover, #b71c1c);
}

.media-strip {
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.media-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  border: 1px solid #553226;
  border-radius: 10px;
  background: linear-gradient(180deg, #2f1a14, #211210);
  padding: 10px;
}

.media-item img {
  width: 110px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.media-item h4 {
  margin: 0 0 6px;
  color: #ffdca6;
}

.media-item p {
  margin: 0;
  color: #d8bea8;
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #6a4536;
  border-radius: 10px;
  background: #160f13;
  color: #fce6c8;
  padding: 10px;
}

.site-footer {
  border-top: 1px solid #4a2d23;
  background: linear-gradient(180deg, #130e12, #0d0a0e);
  text-align: center;
  padding: 18px 0 28px;
}

.site-footer p {
  margin: 6px 0;
  color: #c8ad95;
  font-size: 13px;
  line-height: 1.7;
}

.footer-warning {
  color: #ffd28d !important;
}

.site-footer a {
  color: #ffd694;
  text-decoration: none;
  margin: 0 4px;
}

.site-footer a:hover {
  text-decoration: underline;
}

.legal-page {
  min-height: 100vh;
  padding: 28px 0;
}

.legal-container {
  width: min(960px, 92%);
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(30, 20, 24, 0.92), rgba(18, 14, 18, 0.96));
  border: 1px solid #5d3a2d;
  border-radius: 14px;
  padding: 24px;
}

.legal-container h1 {
  margin: 0 0 16px;
  color: #ffe2b2;
}

.legal-container h2 {
  margin: 20px 0 10px;
  color: #ffd093;
  font-size: 20px;
}

.legal-container h3 {
  margin: 16px 0 8px;
  color: #f0c48e;
  font-size: 17px;
}

.legal-container p {
  margin: 8px 0;
  line-height: 1.8;
  color: #d9c1a9;
}

.legal-back {
  display: inline-block;
  margin-top: 14px;
  color: #ffd58b;
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero-wrap,
  .portal-layout,
  .feature-strip,
  .media-strip {
    grid-template-columns: 1fr;
  }

  .event-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .event-card-lg {
    grid-row: auto;
    min-height: 220px;
  }

  .event-card {
    min-height: 170px;
  }

  .hero p {
    max-width: 100%;
  }

  .filters {
    grid-template-columns: 1fr;
  }
}

/* 996cq-like portal refinements */
.topline {
  background: linear-gradient(180deg, #3b2214, #24150e);
  border-bottom: 1px solid #5f3a26;
}

.topline-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: #dbbf9e;
  font-size: 12px;
}

.header {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid #7b4b2a;
}

.nav h1 {
  font-size: 30px;
  font-weight: 900;
}

.top-nav a {
  font-weight: 700;
}

.top-nav a:not(.btn) {
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.top-nav a:not(.btn):hover {
  border-bottom-color: #ffbb6a;
}

.btn {
  border-radius: 8px;
}

.hero-wrap {
  margin-top: 20px;
}

.hero,
.hero-side,
.section-panel,
.side-panel {
  border-radius: 8px;
}

.quick-entry {
  margin: 8px 0 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-entry a {
  text-decoration: none;
  padding: 12px 12px;
  border: 1px solid #704129;
  background: linear-gradient(180deg, #2f1c18, #23161a);
  border-radius: 8px;
  display: grid;
  gap: 4px;
}

.quick-entry strong {
  color: #ffdca5;
  font-size: 15px;
}

.quick-entry span {
  color: #c8ab93;
  font-size: 12px;
}

.notice-bar {
  border-radius: 8px;
}

.section-head {
  margin-bottom: 10px;
}

.section-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.section-tabs span {
  border: 1px solid #64402f;
  background: #25181d;
  color: #d3b69b;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.section-tabs .active {
  background: linear-gradient(180deg, #ffb45b, #da611c);
  color: #fff;
  border-color: #c56b30;
}

.card {
  border-radius: 8px;
}

.card img {
  height: 150px;
}

.card-media img {
  height: 150px;
}

.download-btn {
  border-radius: 8px;
  padding: 7px 10px;
}

.site-footer {
  border-top: 1px solid #6a412c;
}

@media (max-width: 980px) {
  .topline-inner {
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 6px 0;
  }

  .quick-entry {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* White theme — 门户站常见规范：中性底、深灰字、单色强调（按钮/选中） */
:root {
  --text-primary: #262626;
  --text-secondary: #595959;
  --text-muted: #8c8c8c;
  --headline: #1f1f1f;
  --accent: #c62828;
  --accent-hover: #ad1e1e;
  --border: #e8e8e8;
  --bg-subtle: #fafafa;
  --bg-page: #f5f5f5;
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Heiti SC", sans-serif;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: none;
}

.bg-decor-left {
  background: rgba(255, 136, 47, 0.06);
}

.bg-decor-right {
  background: rgba(173, 37, 37, 0.05);
}

.topline {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.topline-inner {
  color: var(--text-muted);
  font-size: 12px;
}

.header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.nav h1 {
  color: var(--headline);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: none;
}

.top-nav a {
  color: var(--text-secondary);
}

.top-nav a:hover {
  color: var(--accent);
}

.main-banner {
  border-color: var(--border);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.06);
}

.quick-entry a,
.feature-strip article,
.section-panel,
.card,
.media-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
  border-color: var(--border);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.quick-entry strong,
.feature-strip h4,
.section-head h3,
.card h3,
.media-item h4 {
  color: var(--headline);
  text-shadow: none;
}

.section-head h3 {
  color: var(--headline);
}

.quick-entry span,
.feature-strip p,
.section-head span,
.card p,
.media-item p,
.meta {
  color: var(--text-secondary);
}

.section-head h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.section-head span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  /* 标题始终占用 1 行，避免长短不一导致高度不齐 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.card p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.card-body > p:nth-of-type(1) {
  /* 描述始终占用 2 行；不足 2 行也保留 2 行高度 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(2 * 1.65em);
}

/* 版本行：略强调，仍属正文层级 */
.card-body > p:nth-of-type(2) {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  /* 版本描述：固定 1 行 + 多余内容用 ... */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1 * 1.65em);
}

.notice-bar {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.96));
  border-color: var(--border);
}

.notice-badge {
  color: #7b4a21;
  font-weight: 600;
}

.notice-bar marquee {
  color: var(--text-primary);
}

.overlay-rate {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.section-tabs span {
  background: #fff;
  border-color: var(--border);
  color: var(--text-secondary);
}

.section-tabs .active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tag {
  background: var(--bg-subtle);
  border-color: var(--border);
  color: var(--text-muted);
  font-weight: 400;
}

input,
textarea {
  background: #fff;
  color: var(--text-primary);
  border-color: var(--border);
}

input::placeholder {
  color: var(--text-muted);
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.98));
  border-top: 1px solid var(--border);
}

.site-footer p,
.site-footer a {
  color: var(--text-muted);
}

.footer-warning {
  color: var(--text-secondary) !important;
}

.filter-label {
  color: var(--text-secondary);
}

.category-btn {
  border-color: var(--border);
  color: var(--text-secondary);
  font-weight: 500;
}

.category-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.category-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.empty-msg {
  color: var(--text-muted);
}

.cover-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
}

.overlay-link {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: #ffffff;
}

/* Legal pages — 与主站同一套字体与灰阶 */
.legal-page {
  min-height: 100vh;
  padding: 28px 0;
  background: var(--bg-page);
  font-family: var(--font-sans);
}

.legal-container {
  width: min(980px, 94%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.legal-container h1 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--headline);
}

.legal-container h2 {
  margin: 22px 0 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--headline);
}

.legal-container p {
  margin: 8px 0;
  line-height: 1.85;
  font-size: 14px;
  color: var(--text-secondary);
}
