:root {
  --paper: #f4ebdc;
  --paper-2: #ece0cd;
  --surface: #fffaf1;
  --ink: #2c2317;
  --ink-soft: #5c4a37;
  --muted: #937e66;
  --coffee: #6f4a2f;
  --coffee-deep: #3c2818;
  --accent: #b5651d;
  --accent-2: #c98a3c;
  --hot: #c0392b;
  --line: #e8dcc6;
  --line-soft: #f0e7d6;
  --r-bg: #fafaf8;
  --r-card: #ffffff;
  --r-text: #2c2c2c;
  --r-sub: #5a5a5a;
  --r-muted: #999999;
  --r-border: #e8e4df;
  --r-line: #f0ede8;
  --r-accent: #8b5a3c;
  --r-accent-light: #f5efe8;
  --r-blue: #0a4ea3;
  --r-blue-2: #1a73e8;
  --r-green: #1a7f4b;
  --r-warn: #b26a00;
  --r-red: #b3261e;
  --up: #c0392b;
  --down: #1a7f4b;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans:
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --brand: "Ma Shan Zheng", "Noto Serif SC", cursive;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(60, 40, 24, 0.06), 0 10px 30px rgba(60, 40, 24, 0.06);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 8% -12%, rgba(181, 101, 29, 0.16), transparent 60%),
    radial-gradient(900px 460px at 96% -4%, rgba(111, 74, 47, 0.14), transparent 55%),
    radial-gradient(720px 520px at 50% 118%, rgba(201, 138, 60, 0.1), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.72;
  font-size: 15px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: rgba(181, 101, 29, 0.26);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgba(111, 74, 47, 0.32);
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: 0 0;
}
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-header {
  background: linear-gradient(180deg, var(--coffee-deep) 0, var(--coffee) 100%);
  color: var(--surface);
  box-shadow: 0 4px 18px rgba(60, 40, 24, 0.18);
}
.topbar {
  border-bottom: 1px solid rgba(255, 250, 241, 0.12);
}
.topbar-inner {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 250, 241, 0.72);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-right .dot {
  opacity: 0.45;
}
.live-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffd9a8;
}
.live-flag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff9d4d;
  box-shadow: 0 0 0 0 rgba(255, 157, 77, 0.7);
  animation: 1.8s infinite pulseDot;
}
@keyframes pulseDot {
  70% {
    box-shadow: 0 0 0 7px rgba(255, 157, 77, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 157, 77, 0);
  }
}
.header-main {
  padding: 18px 20px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo-btn {
  background: 0 0;
  border: 0;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px;
  border-radius: 12px;
}
.logo-btn:hover .seal {
  transform: scale(1.05);
}
.seal {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 250, 241, 0.1);
  ring: 1px solid rgba(255, 250, 241, 0.25);
  display: grid;
  place-items: center;
  transition: transform 0.25s;
  border: 1px solid rgba(255, 250, 241, 0.22);
}
.seal-inner {
  position: absolute;
  inset: 5px;
  border-radius: 8px;
  border: 1px solid rgba(201, 138, 60, 0.65);
}
.seal-word {
  font-family: var(--brand);
  font-size: 32px;
  color: var(--accent-2);
  line-height: 1;
}
.logo-text {
  text-align: left;
}
.logo-name {
  display: block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0.06em;
}
.logo-slogan {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--accent-2);
}
.header-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.1);
  color: rgba(255, 250, 241, 0.88);
  border: 1px solid rgba(255, 250, 241, 0.16);
}
.header-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 50%, var(--accent));
  opacity: 0.92;
}
.zone-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 241, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.zone-nav-inner {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding-top: 0;
  padding-bottom: 0;
}
.zone-tab {
  position: relative;
  background: 0 0;
  border: 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 14px 20px 12px;
  transition: color 0.18s;
}
.zone-tab:hover {
  color: var(--coffee);
}
.zone-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  transition:
    left 0.22s,
    right 0.22s;
}
.zone-tab.active {
  color: var(--coffee-deep);
}
.zone-tab.active::after {
  left: 14px;
  right: 14px;
}
.zone-nav-fill {
  flex: 1;
}
.view {
  min-height: 60vh;
  padding: 26px 0 56px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-head .tick {
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: var(--accent);
}
.section-head .title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.section-head .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.section-head .extra {
  font-size: 12.5px;
  color: var(--muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}
.chip-accent {
  background: rgba(181, 101, 29, 0.13);
  color: var(--accent);
}
.chip-coffee {
  background: var(--paper-2);
  color: var(--coffee);
}
.chip-live {
  background: rgba(192, 57, 43, 0.12);
  color: var(--up);
}
.chip-sample {
  background: #eceef2;
  color: #6b7280;
}
.empty {
  padding: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.skeleton {
  height: 12px;
  border-radius: 6px;
  margin: 9px 0;
  background: linear-gradient(90deg, var(--line-soft) 25%, #f7f1e6 37%, var(--line-soft) 63%);
  background-size: 400% 100%;
  animation: 1.3s infinite shimmer;
}
@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  background: rgba(44, 35, 23, 0.94);
  color: var(--surface);
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
  z-index: 90;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 1100px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 26px 28px;
  background: linear-gradient(135deg, var(--coffee-deep), var(--coffee) 65%, #7c5334);
  color: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.hero::after {
  content: "热";
  position: absolute;
  right: 18px;
  bottom: -26px;
  font-family: var(--serif);
  font-size: 150px;
  font-weight: 900;
  color: rgba(255, 250, 241, 0.05);
  pointer-events: none;
}
.hero-label {
  font-size: 11.5px;
  letter-spacing: 0.32em;
  color: var(--accent-2);
}
.hero h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 900;
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.hero p {
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(255, 250, 241, 0.8);
  max-width: 680px;
}
.panel {
  margin-bottom: 24px;
}
.panel-body {
  padding: 6px 4px 10px;
}
.nlist {
  list-style: none;
}
.nitem {
  display: flex;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  transition: background 0.16s;
  border-bottom: 1px solid var(--line-soft);
}
.nitem:last-child {
  border-bottom: 0;
}
.nitem:hover {
  background: rgba(236, 224, 205, 0.42);
}
.nrank {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  background: var(--paper-2);
  color: var(--coffee);
}
.nrank.top {
  background: linear-gradient(135deg, #d9543b, #b5651d);
  color: #fff;
}
.nmain {
  min-width: 0;
  flex: 1;
}
.ntitle {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  display: block;
  word-break: break-word;
}
.ntitle:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ndesc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.66;
}
.nmeta {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.nsrc {
  padding: 1px 8px;
  border-radius: 5px;
  background: var(--paper-2);
  color: var(--coffee);
  font-weight: 600;
}
.nheat {
  color: var(--accent);
  font-weight: 700;
}
/* 微博热搜：双列网格 + 热度条，消除右侧大片留白 */
.wb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.wb-grid .nitem {
  padding: 10px 12px;
  border-bottom: 1px dashed var(--line-soft);
}
.wb-grid .nitem:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.wb-grid .ntitle {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wb-heat {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}
.wb-bar {
  flex: 1;
  min-width: 36px;
  height: 6px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}
.wb-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--hot));
  transition: width 0.4s;
}
@media (max-width: 760px) {
  .wb-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .wb-grid .nitem:nth-last-child(-n + 2) {
    border-bottom: 1px dashed var(--line-soft);
  }
  .wb-grid .nitem:last-child {
    border-bottom: 0;
  }
}
.nlink {
  color: var(--coffee);
  font-weight: 600;
}
.nlink:hover {
  color: var(--accent);
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 4px;
}
.pager button {
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--coffee);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.16s,
    opacity 0.16s;
}
.pager button:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pager button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.pager .pager-info {
  font-size: 12.5px;
  color: var(--muted);
  min-width: 76px;
  text-align: center;
}
/* 栏目速览：5 个栏目纵向单列排列，每栏 5 条横向铺满，消除右侧留白 */
.cat-wall {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cat-box {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 112px;
  overflow: hidden;
}
.cat-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex: none;
  width: 136px;
  padding: 12px 14px;
  border-bottom: 0;
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(236, 224, 205, 0.55), rgba(236, 224, 205, 0.12));
}
.cat-head .cat-name {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.cat-head .cat-name em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--muted);
  margin-left: 0;
  margin-top: 3px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.more-btn {
  flex: none;
  background: var(--coffee);
  color: #fff8ec;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  transition: background 0.16s;
}
.more-btn:hover {
  background: var(--accent);
}
.more-btn.ghost {
  background: var(--paper-2);
  color: var(--coffee);
  border: 1px solid var(--line);
}
.more-btn.ghost:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cat-list {
  list-style: none;
  padding: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr; /* 5 条新闻上下竖排 */
}
.cat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  min-width: 0;
  border-top: 0;
  border-left: 0;
}
.cat-item + .cat-item {
  border-top: 1px dashed var(--line-soft);
}
.cat-item:first-child {
  border-left: 0;
}
.cat-no {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--paper-2);
  color: var(--coffee);
  margin-top: 0;
}
.cat-item .ci-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}
.cat-item .ci-title:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cat-item .ci-desc {
  flex: none;
  max-width: 40%;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: right;
}
/* 窄屏回落：单栏卡片 + 2 列条目 */
@media (max-width: 1080px) {
  .cat-box {
    flex-direction: column;
    min-height: 0;
  }
  .cat-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(236, 224, 205, 0.5), rgba(236, 224, 205, 0.18));
  }
  .cat-head .cat-name {
    flex-direction: row;
    align-items: baseline;
  }
  .cat-head .cat-name em {
    margin-left: 6px;
    margin-top: 0;
  }
  .cat-list {
    grid-template-columns: 1fr; /* 竖排布局在窄屏同样单列 */
  }
  .cat-item .ci-desc {
    display: none; /* 窄屏隐藏摘要，保证标题完整 */
  }
}
.side {
  position: sticky;
  top: 74px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-card {
  padding: 14px 15px;
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.side-head h4 {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.quote {
  padding: 10px 0;
}
.quote + .quote {
  border-top: 1px dashed var(--line-soft);
}
.quote-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.quote-name {
  font-size: 14px;
  font-weight: 700;
}
.quote-code {
  font-size: 11.5px;
  color: var(--muted);
  margin-left: 5px;
  font-weight: 500;
}
.quote-price {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.quote-chg {
  font-size: 12.5px;
  font-weight: 700;
  margin-left: 6px;
}
.up {
  color: var(--up);
}
.down {
  color: var(--down);
}
.flat {
  color: var(--muted);
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 10px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.quote-grid b {
  color: var(--ink-soft);
  font-weight: 600;
}
.spark {
  width: 100%;
  height: 58px;
  display: block;
  margin-top: 6px;
}
.qrange {
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--paper-2);
  font-weight: 700;
}
.quote-off {
  margin-top: 8px;
  padding: 14px 12px;
  border-radius: 10px;
  background: rgba(179, 38, 30, 0.07);
  border: 1px dashed rgba(179, 38, 30, 0.32);
  color: var(--r-red);
  font-size: 13px;
  text-align: center;
}
.quote-off span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}
.chip-off {
  background: rgba(179, 38, 30, 0.12);
  color: var(--r-red);
}
.mini-refresh {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--coffee);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.16s,
    transform 0.3s;
}
.mini-refresh:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.mini-refresh.spin {
  transform: rotate(360deg);
}
.wx-now {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wx-temp {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}
.wx-temp sup {
  font-size: 15px;
  font-weight: 500;
}
.wx-now-meta {
  flex: 1;
  min-width: 0;
}
.wx-desc {
  font-size: 14px;
  font-weight: 600;
}
.wx-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.wx-loc {
  font-size: 11.5px;
  color: var(--coffee);
  font-weight: 600;
  margin-top: 3px;
}
.wx-days {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
}
.wx-day {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.wx-day .d {
  font-weight: 700;
  color: var(--ink-soft);
}
.wx-day .t {
  margin-top: 3px;
  font-size: 11.5px;
}
.wx-day .t i {
  font-style: normal;
  color: var(--muted);
}
.fort-tab {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.fort-tab button {
  flex: 1;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 9px;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: 0.16s;
  line-height: 1.4;
}
.fort-tab button.on {
  background: var(--coffee);
  color: #fff8ec;
  border-color: var(--coffee);
}
.fort-tab button small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.8;
}
.fort-who {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.fort-who .name {
  font-size: 14px;
  font-weight: 700;
}
.fort-who .bazi {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--coffee);
  letter-spacing: 0.1em;
}
.fort-score {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--paper-2);
}
.fort-score .num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.fort-score .txt {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.fort-score .txt b {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}
.fort-bars {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fort-bar {
  display: grid;
  grid-template-columns: 40px 1fr 34px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.fort-bar .lb {
  color: var(--muted);
}
.fort-bar .track {
  height: 6px;
  border-radius: 4px;
  background: var(--line-soft);
  overflow: hidden;
}
.fort-bar .fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.fort-bar .vl {
  text-align: right;
  font-weight: 700;
  color: var(--ink-soft);
}
.fort-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fort-tags span {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--coffee);
  font-weight: 600;
}
.fort-yiji {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fort-yiji div {
  font-size: 12px;
  padding: 7px 9px;
  border-radius: 8px;
  line-height: 1.6;
}
.fort-yiji .yi {
  background: rgba(26, 127, 75, 0.09);
  color: #1a7f4b;
}
.fort-yiji .ji {
  background: rgba(179, 38, 30, 0.09);
  color: var(--r-red);
}
.fort-yiji b {
  display: block;
  font-size: 11.5px;
  margin-bottom: 2px;
}
.fort-advice {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  padding: 9px 11px;
  border-left: 3px solid var(--accent);
  background: rgba(181, 101, 29, 0.06);
  border-radius: 0 8px 8px 0;
}
.report-wrap {
  background: var(--r-bg);
  border: 1px solid var(--r-border);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(60, 40, 24, 0.05);
  overflow: hidden;
}
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
}
.report-main {
  padding: 34px 38px 44px;
  background: var(--r-bg);
  min-width: 0;
}
@media (max-width: 640px) {
  .report-main {
    padding: 24px 18px 32px;
  }
}
.report-side {
  border-left: 1px solid var(--r-border);
  background: #fff;
  padding: 26px 22px 40px;
}
@media (max-width: 1100px) {
  .side {
    position: static;
  }
  .report-layout {
    grid-template-columns: 1fr;
  }
  .report-side {
    border-left: 0;
    border-top: 1px solid var(--r-border);
  }
}
.report-header {
  padding-bottom: 26px;
  border-bottom: 2px solid var(--r-border);
  margin-bottom: 30px;
}
.report-header .label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--r-muted);
  margin-bottom: 8px;
}
.report-header h1 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.report-header .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 12.5px;
  color: var(--r-muted);
}
.report-header .meta b {
  color: var(--r-sub);
  font-weight: 600;
}
.archive-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border: 1px solid var(--r-border);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 24px;
}
.archive-bar .lab {
  font-size: 12.5px;
  color: var(--r-muted);
  font-weight: 600;
}
.archive-bar input,
.archive-bar select {
  font-family: inherit;
  font-size: 13px;
  padding: 5px 9px;
  border: 1px solid var(--r-border);
  border-radius: 7px;
  background: #fff;
  color: var(--r-text);
  cursor: pointer;
}
.archive-bar .spacer {
  flex: 1;
}
.pill-note {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--r-accent-light);
  color: var(--r-accent);
  font-weight: 600;
}
.pill-note.ok {
  background: #e6f4ea;
  color: var(--r-green);
}
.rsec {
  margin-bottom: 44px;
  scroll-margin-top: 80px;
}
.rsec:last-child {
  margin-bottom: 20px;
}
.rsec-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--r-text);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--r-border);
  margin-bottom: 22px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.rsec-title .en {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--r-muted);
  letter-spacing: 0.14em;
}
.overview p {
  font-size: 14.5px;
  color: var(--r-sub);
  margin-bottom: 13px;
  text-align: justify;
}
.overview p:last-child {
  margin-bottom: 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 24px 0 30px;
}
.stat-card {
  background: var(--r-card);
  border: 1px solid var(--r-border);
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
}
.stat-card .num {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  color: var(--r-accent);
  line-height: 1.25;
}
.stat-card .lb {
  font-size: 11.5px;
  color: var(--r-muted);
  margin-top: 5px;
  line-height: 1.6;
}
.news-group {
  margin-bottom: 30px;
}
.news-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.news-group-header .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.tag-policy {
  background: #edf4f5;
  color: #4a7c82;
}
.tag-news {
  background: var(--r-accent-light);
  color: var(--r-accent);
}
.tag-data {
  background: #f3eef8;
  color: #6b4c8a;
}
.tag-innov {
  background: #fdf1e3;
  color: var(--r-warn);
}
.news-group-header .count {
  font-size: 12px;
  color: var(--r-muted);
}
.news-list {
  list-style: none;
}
.news-item {
  padding: 17px 0;
  border-bottom: 1px solid var(--r-line);
}
.news-item:last-child {
  border-bottom: 0;
}
.item-date {
  font-size: 12px;
  color: var(--r-muted);
  margin-bottom: 3px;
  letter-spacing: 0.03em;
}
.item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--r-text);
  margin-bottom: 5px;
  line-height: 1.6;
}
a.item-title:hover {
  color: var(--r-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.item-desc {
  font-size: 13.5px;
  color: var(--r-sub);
  line-height: 1.78;
  text-align: justify;
}
.item-source {
  font-size: 12px;
  color: var(--r-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.src-badge {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 600;
}
.src-national {
  background: #fdecec;
  color: var(--r-red);
}
.src-province {
  background: #e7f0ff;
  color: var(--r-blue-2);
}
.src-sgcc {
  background: #fff4e0;
  color: var(--r-warn);
}
.src-industry {
  background: #eef1f6;
  color: #5b6b7b;
}
.item-source a {
  color: var(--r-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.item-source a:hover {
  color: var(--r-accent);
}
.pulse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 780px) {
  .pulse-grid {
    grid-template-columns: 1fr;
  }
}
.pulse-card {
  background: var(--r-card);
  border: 1px solid var(--r-border);
  border-radius: 10px;
  padding: 18px 20px;
}
.pulse-card h4 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--r-text);
}
.pulse-card h4.trend {
  color: var(--r-blue);
}
.pulse-card h4.focus {
  color: var(--r-accent);
}
.pulse-card ul {
  list-style: none;
}
.pulse-card li {
  font-size: 13px;
  color: var(--r-sub);
  line-height: 1.8;
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
  text-align: justify;
}
.pulse-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--r-accent);
}
.pulse-card:last-child li::before {
  background: var(--r-blue);
}
.award-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.award-head h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--r-text);
}
.award-sub {
  font-size: 11.5px;
  color: var(--r-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}
.diff-legend {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}
.diff-legend span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  padding: 3px 0;
  border-radius: 5px;
  font-weight: 700;
}
.d1 {
  background: #e6f4ea;
  color: var(--r-green);
}
.d2 {
  background: #e7f0ff;
  color: var(--r-blue-2);
}
.d3 {
  background: #fdf1e3;
  color: var(--r-warn);
}
.d4 {
  background: #fdecec;
  color: var(--r-red);
}
.d5 {
  background: #eceef2;
  color: #6b7280;
}
.award-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.award-item {
  border: 1px solid var(--r-border);
  border-radius: 10px;
  padding: 12px 13px;
  background: #fff;
}
.award-item:hover {
  border-color: #cfd8e3;
  box-shadow: 0 2px 8px rgba(20, 40, 80, 0.06);
}
.award-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.award-diff {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--r-accent-light);
  color: var(--r-accent);
}
.award-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--r-text);
  line-height: 1.5;
}
.award-host {
  font-size: 11.5px;
  color: var(--r-muted);
  margin-bottom: 7px;
}
.award-row {
  display: flex;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 4px;
  line-height: 1.7;
}
.award-row .k {
  flex: none;
  width: 40px;
  color: var(--r-muted);
  font-weight: 600;
}
.award-row .v {
  flex: 1;
  color: var(--r-sub);
}
.award-dl {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed var(--r-border);
  font-size: 11.5px;
}
.award-dl b {
  color: var(--r-blue-2);
}
.award-dl .ddl {
  font-weight: 700;
}
.award-dl .ddl.urgent {
  color: var(--r-red);
}
.award-dl .ddl.soon {
  color: var(--r-warn);
}
.award-dl .ddl.open {
  color: var(--r-green);
}
.award-dl .ddl.past {
  color: var(--r-muted);
}
.countdown {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 5px;
}
.countdown.urgent {
  background: #fdecec;
  color: var(--r-red);
}
.countdown.soon {
  background: #fdf1e3;
  color: var(--r-warn);
}
.countdown.open {
  background: #e6f4ea;
  color: var(--r-green);
}
.countdown.past {
  background: #eceef2;
  color: #6b7280;
}
.side-note {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #fff8e6;
  border: 1px solid #f3dca0;
  font-size: 12px;
  color: #7a5c14;
  line-height: 1.75;
}
.side-note b {
  display: block;
  margin-bottom: 3px;
}
.report-footer {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px dashed var(--r-border);
  font-size: 12px;
  color: var(--r-muted);
  line-height: 1.9;
}
.report-footer .dvd {
  text-align: center;
  letter-spacing: 0.3em;
  margin: 6px 0;
}
.report-footer .disclaimer {
  color: #a8a29a;
}
.study-hero {
  border-radius: 18px;
  padding: 22px 26px;
  color: var(--surface);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #2f4858, #33658a 55%, #4a7ba7);
  box-shadow: var(--shadow);
}
.study-hero .lab {
  font-size: 11.5px;
  letter-spacing: 0.3em;
  color: #bcd9f0;
}
.study-hero h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 900;
  margin-top: 5px;
  letter-spacing: 0.04em;
}
.study-hero p {
  margin-top: 7px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
}
.study-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.study-tab {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--serif);
  color: var(--ink-soft);
  transition: 0.16s;
  letter-spacing: 0.05em;
}
.study-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.study-tab.on {
  background: var(--coffee);
  color: #fff8ec;
  border-color: var(--coffee);
}
.study-panel {
  animation: 0.4s both fadeUp;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.day-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.day-strip b {
  color: var(--coffee);
}
.day-strip .spacer {
  flex: 1;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 14px;
}
.book-card {
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
}
.book-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.book-cover {
  flex: none;
  width: 46px;
  height: 62px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff8ec;
  text-align: center;
  line-height: 1.2;
  padding: 4px;
  box-shadow: 0 3px 8px rgba(60, 40, 24, 0.2);
}
.book-meta {
  min-width: 0;
  flex: 1;
}
.book-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}
.book-author {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}
.book-tags {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.book-tags span {
  font-size: 10.5px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--coffee);
  font-weight: 600;
}
.book-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 11px;
  line-height: 1.75;
}
.book-fold {
  margin-top: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 9px;
}
.book-fold summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--coffee);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
}
.book-fold summary::-webkit-details-marker {
  display: none;
}
.book-fold summary::before {
  content: "＋";
  font-weight: 700;
}
.book-fold[open] summary::before {
  content: "－";
}
.book-fold .body {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.85;
}
.book-fold .body ol,
.book-fold .body ul {
  padding-left: 18px;
}
.book-fold .body li {
  margin-bottom: 4px;
}
.en-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.word-list {
  list-style: none;
}
.word-item {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.word-item:last-child {
  border-bottom: 0;
}
.word-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.word-w {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}
/* 语音播放按钮（小喇叭） */
.spk {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--coffee);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.12s;
  vertical-align: middle;
}
.spk:hover {
  background: var(--coffee);
  color: #fff8ec;
  transform: scale(1.12);
}
.spk:active {
  transform: scale(0.94);
}
.word-line .spk {
  align-self: center;
}
.sent-en .spk {
  width: 20px;
  height: 20px;
  font-size: 10px;
}
.word-ph {
  font-size: 12px;
  color: var(--muted);
}
.word-pos {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--coffee);
  font-weight: 600;
}
.word-cn {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.word-eg {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.7;
}
.word-eg em {
  font-style: normal;
  color: var(--coffee);
  font-weight: 600;
}
.sent-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.sent-item:last-child {
  border-bottom: 0;
}
.sent-en {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.7;
}
.sent-cn {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 3px;
}
.sent-tip {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.7;
}
.sent-tip b {
  color: var(--coffee);
}
.gram-body {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.85;
}
.gram-body h5 {
  font-size: 14px;
  color: var(--ink);
  margin: 12px 0 5px;
  font-family: var(--serif);
}
.gram-body h5:first-child {
  margin-top: 0;
}
.gram-body ol,
.gram-body ul {
  padding-left: 18px;
}
.gram-body li {
  margin-bottom: 4px;
}
.gram-body code {
  font-family: ui-monospace, Consolas, monospace;
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--coffee);
  font-size: 12.5px;
}
.gram-eg {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 10px;
  margin: 7px 0;
  color: var(--r-sub);
}
.math-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.math-card {
  padding: 16px 18px;
}
.math-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.math-subject {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--coffee);
}
.math-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.lv-a {
  background: #e6f4ea;
  color: var(--r-green);
}
.lv-b {
  background: #e7f0ff;
  color: var(--r-blue-2);
}
.lv-c {
  background: #fdf1e3;
  color: var(--r-warn);
}
.math-stem {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--r-text);
  background: var(--r-bg);
  border: 1px solid var(--r-border);
  border-radius: 9px;
  padding: 13px 15px;
  margin-bottom: 10px;
}
.math-stem b {
  color: var(--r-red);
}
.math-ans {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 13.5px;
}
.math-ans .k {
  flex: none;
  font-weight: 700;
  color: var(--coffee);
}
.math-ans .v {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--r-red);
}
.math-sol {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.math-sol summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--coffee);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.math-sol summary::-webkit-details-marker {
  display: none;
}
.math-sol summary::before {
  content: "▸";
  transition: transform 0.2s;
  display: inline-block;
}
.math-sol[open] summary::before {
  transform: rotate(90deg);
}
.math-sol .body {
  margin-top: 10px;
}
.math-step {
  display: flex;
  gap: 10px;
  margin-bottom: 9px;
}
.math-step .idx {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coffee);
  color: #fff8ec;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 2px;
}
.math-step .txt {
  flex: 1;
  font-size: 13.5px;
  color: var(--r-sub);
  line-height: 1.9;
}
.math-step .txt b {
  color: var(--r-text);
}
.math-step .txt .hl {
  color: var(--r-red);
  font-weight: 700;
}
.math-key {
  margin-top: 9px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(26, 127, 75, 0.07);
  font-size: 12.5px;
  color: #1a6b41;
  line-height: 1.8;
}
.math-key b {
  color: #14532d;
}
.math-src {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
}
.math-src b {
  color: var(--coffee);
}
.math-src a {
  color: var(--r-blue-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer {
  background: linear-gradient(180deg, var(--coffee-deep), #2a1c11);
  color: rgba(255, 250, 241, 0.72);
  padding: 26px 0 30px;
  margin-top: 20px;
}
.foot-line {
  font-size: 13px;
  line-height: 1.9;
}
.foot-note {
  font-size: 11.5px;
  color: rgba(255, 250, 241, 0.5);
  margin-top: 7px;
  line-height: 1.85;
}
@media print {
  .pager,
  .site-footer,
  .site-header,
  .toast,
  .zone-nav {
    display: none !important;
  }
  body {
    background: #fff;
  }
}

/* ==================================================================
   访问验证门禁
   ================================================================== */
.gate[hidden] {
  display: none !important;
}
.gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 20px;
}
.gate-mask {
  position: absolute;
  inset: 0;
  background: rgba(244, 235, 220, 0.94);
  backdrop-filter: blur(8px);
}
body.gate-on {
  overflow: hidden;
}
.gate-box {
  position: relative;
  width: min(430px, 100%);
  padding: 34px 32px 26px;
  text-align: center;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(60, 40, 24, 0.22);
}
.gate-seal {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--brand);
  font-size: 30px;
  color: #fff8ec;
  background: linear-gradient(135deg, #b5651d, #6f4a2f);
  box-shadow: 0 6px 18px rgba(111, 74, 47, 0.32);
}
.gate-lab {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.gate-q {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 10px 0 6px;
  color: var(--coffee-deep);
}
.gate-tip {
  font-size: 12.5px;
  color: var(--muted);
}
.gate-form {
  margin-top: 18px;
  display: flex;
  gap: 8px;
}
.gate-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  outline: none;
  transition: border-color 0.16s;
}
.gate-form input:focus {
  border-color: var(--accent);
  background: #fff;
}
.gate-form button {
  flex: none;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff8ec;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, #b5651d, #6f4a2f);
  transition: filter 0.16s;
}
.gate-form button:hover {
  filter: brightness(1.08);
}
.gate-err {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--r-red);
}
.gate-foot {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.gate-box.shake {
  animation: gateShake 0.42s;
}
@keyframes gateShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-9px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(4px);
  }
}

/* ==================================================================
   每日更新状态胶囊
   ================================================================== */
.pill-note.sync-ok {
  background: #e6f4ea;
  color: var(--r-green);
}
.pill-note.sync-wait {
  background: #fdf3e2;
  color: var(--r-warn);
}
.pill-note.sync-late {
  background: #fdecea;
  color: var(--r-red);
}

/* 数据新鲜度标记（report-footer 内） */
.fresh-ok {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: #e6f4ea;
  color: var(--r-green);
  font-size: 12px;
}
.fresh-warn {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: #fdecea;
  color: var(--r-red);
  font-size: 12px;
  font-weight: 700;
}

/* ==================================================================
   离退休新闻（美篇收藏）
   ================================================================== */
.mp-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.mp-metric {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mp-metric .lb {
  font-size: 12px;
  color: var(--muted);
}
.mp-metric .vl {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--coffee);
  line-height: 1.2;
}
.mp-metric .vl em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
  font-weight: 400;
}
.mp-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.mp-filter input {
  flex: 1;
  min-width: 200px;
  padding: 8px 13px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
.mp-filter input:focus {
  border-color: var(--accent);
  background: #fff;
}
.mp-filter select {
  padding: 8px 12px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
.mp-count {
  font-size: 12px;
  color: var(--muted);
}
.mp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mp-item {
  overflow: hidden;
}
.mp-item.open {
  border-color: rgba(181, 101, 29, 0.45);
  box-shadow: 0 4px 16px rgba(60, 40, 24, 0.08);
}
.mp-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.16s;
}
.mp-head:hover {
  background: rgba(236, 224, 205, 0.4);
}
.mp-idx {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  background: var(--paper-2);
  color: var(--coffee);
}
.mp-main {
  flex: 1;
  min-width: 0;
}
/* 标题与发布时间同一行：标题占满剩余宽度，时间固定在右侧 */
.mp-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.mp-row .mp-title {
  flex: 1;
  min-width: 0;
}
.mp-date {
  flex: none;
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.mp-date em {
  font-style: normal;
  margin-left: 8px;
  color: var(--r-warn);
}
.mp-title {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
/* 省级及以上官方网站发布：整条左侧描边 + 底色 + 标题加重放大 */
.mp-item.mp-lv-nat,
.mp-item.mp-lv-prov {
  border-left: 3px solid var(--accent-2);
  background: linear-gradient(90deg, rgba(201, 138, 60, 0.12), rgba(201, 138, 60, 0) 46%);
}
.mp-item.mp-lv-nat .mp-title,
.mp-item.mp-lv-prov .mp-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--coffee-deep);
  letter-spacing: 0.2px;
}
.mp-lv {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 9px;
  border-radius: 999px;
  line-height: 18px;
  border: 1px solid #d9b26a;
  background: linear-gradient(180deg, #fbe9c6, #f2d69f);
  color: #7a4a12;
}
.mp-lv.inline {
  margin: 0 2px;
  vertical-align: 1px;
}
.mp-flag.src {
  background: #f3ecdf;
  border-color: #e0cfb4;
  color: var(--coffee);
  font-weight: 700;
}
.mp-tip {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.mp-tip b {
  color: var(--coffee);
}
/* 窄屏：时间回落到标题下方，避免挤压标题 */
@media (max-width: 720px) {
  .mp-row {
    flex-direction: column;
    gap: 2px;
  }
  .mp-date {
    padding-top: 0;
  }
}
.mp-item.open .mp-title {
  color: var(--coffee);
}
.mp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.mp-topic,
.mp-flag {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  line-height: 18px;
}
.mp-topic {
  font-weight: 700;
}
.mp-flag.ok {
  background: #e6f4ea;
  border-color: #bfe0cc;
  color: var(--r-green);
}
.mp-flag.org {
  background: var(--r-accent-light);
  border-color: #e3d3c2;
  color: var(--r-accent);
  font-weight: 600;
}
.mp-flag.warn {
  background: #fdf3e2;
  border-color: #f0dcb4;
  color: var(--r-warn);
}
.mp-arrow {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  transition: transform 0.2s;
}
.mp-item.open .mp-arrow {
  transform: rotate(180deg);
}
.mp-body {
  padding: 2px 15px 16px;
  border-top: 1px dashed var(--line-soft);
}
.mp-sum {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 10px 0 4px;
}
.mp-article p {
  margin: 9px 0;
  font-size: 14.5px;
  line-height: 1.95;
  color: rgba(44, 35, 23, 0.9);
  text-align: justify;
}
.mp-img {
  margin: 10px 0;
  padding: 22px 12px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(236, 224, 205, 0.32);
}
.mp-foot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--muted);
}
.mp-foot a {
  margin-left: auto;
  color: var(--coffee);
  font-weight: 600;
}
.mp-foot a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mp-nocontent {
  padding: 16px 0 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
.mp-nocontent a {
  display: inline-block;
  margin-top: 6px;
  color: var(--coffee);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mp-sec {
  padding: 18px 20px;
  margin-bottom: 16px;
}
.mp-h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--coffee-deep);
  margin-bottom: 4px;
}
.mp-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.mp-svg {
  width: 100%;
  height: auto;
}
.mp-grid6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.mp-mini {
  padding: 11px 8px;
  text-align: center;
  border-radius: 10px;
  background: rgba(236, 224, 205, 0.42);
}
.mp-mini .v {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--coffee);
}
.mp-mini .v em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  margin-left: 2px;
}
.mp-mini .l {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.mp-hbars {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mp-hbars li {
  display: grid;
  grid-template-columns: 216px 1fr 42px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.mp-hbars .nm {
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-hbars .tr {
  height: 12px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}
.mp-hbars .tr i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), #8b5a3c);
}
.mp-hbars .vl {
  text-align: right;
  font-weight: 700;
  color: var(--coffee);
}
.mp-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mp-donut-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mp-donut {
  width: 140px;
  height: 140px;
  flex: none;
}
.mp-legend {
  list-style: none;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mp-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.mp-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}
.mp-legend .lg-n {
  color: var(--ink-soft);
}
.mp-legend .lg-v {
  margin-left: auto;
  color: var(--muted);
  font-size: 11.5px;
}
.mp-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  padding: 4px 0 8px;
}
@media (max-width: 900px) {
  .mp-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mp-grid6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mp-2col {
    grid-template-columns: minmax(0, 1fr);
  }
  .mp-hbars li {
    grid-template-columns: 130px 1fr 36px;
  }
}

/* ==================================================================
   后台管理
   ================================================================== */
.admin-hero {
  background: linear-gradient(135deg, #3c2818, #6f4a2f 55%, #8b5a3c);
}
.admin-hero .lab {
  color: #e3cbaa;
}
.adm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.adm-src {
  display: flex;
  gap: 6px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(236, 224, 205, 0.5);
}
.adm-src button {
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 5px 14px;
  border-radius: 999px;
  transition: 0.16s;
}
.adm-src button.on {
  background: var(--coffee);
  color: #fff8ec;
}
.adm-metrics {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.adm-metric {
  display: flex;
  flex-direction: column;
}
.adm-metric .l {
  font-size: 11.5px;
  color: var(--muted);
}
.adm-metric .v {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--coffee);
  line-height: 1.25;
}
.adm-metric .v em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  margin-left: 2px;
}
.adm-empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.adm-empty b {
  display: block;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.adm-empty pre {
  display: inline-block;
  margin: 8px 0;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(60, 40, 24, 0.06);
  color: var(--coffee);
  font-size: 12px;
  text-align: left;
}
.adm-table-wrap {
  overflow-x: auto;
  padding: 6px 4px;
}
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.adm-table th {
  text-align: left;
  padding: 9px 10px;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.adm-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  vertical-align: middle;
}
.adm-table tbody tr:hover {
  background: rgba(236, 224, 205, 0.34);
}
.adm-table td b {
  color: var(--ink);
}
.adm-city {
  color: var(--r-accent);
}
.adm-batch,
.adm-path {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--paper-2);
  font-size: 11.5px;
  color: var(--coffee);
}
.adm-path {
  background: rgba(58, 95, 138, 0.1);
  color: #2b5480;
  margin-right: 4px;
  word-break: break-all;
}
.adm-more {
  padding: 10px 12px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}
.lv-tag {
  flex: none;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--paper-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.lv-tag.high {
  background: #fdecea;
  color: var(--r-red);
  border-color: #f3c9c5;
}
.lv-tag.warn {
  background: #fdf3e2;
  color: var(--r-warn);
  border-color: #f0dcb4;
}
.lv-tag.low {
  background: #eef4fb;
  color: #2b5480;
  border-color: #cfe0ef;
}
.lv-tag.banned {
  background: rgba(179, 38, 30, 0.12);
  color: var(--r-red);
  border-color: rgba(179, 38, 30, 0.28);
}
.rh-hits {
  list-style: none;
  margin: 9px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rh-hits li {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.rh-hits li b {
  display: inline-block;
  min-width: 96px;
  color: var(--coffee);
}
.adm-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adm-rules li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.adm-rules li b {
  font-size: 14px;
  color: var(--ink);
}
.adm-rules li p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.7;
}
.adm-doc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.9;
}
.adm-doc p {
  margin-bottom: 6px;
}
.adm-doc code {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(60, 40, 24, 0.07);
  font-size: 12px;
  color: var(--coffee);
}
.adm-doc pre {
  margin: 6px 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(60, 40, 24, 0.06);
  color: var(--coffee);
  font-size: 12px;
  overflow-x: auto;
}
@media print {
  .gate,
  .mini-refresh {
    display: none !important;
  }
}

/* 学习 · 冷知识维度 */
.trivia-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}
.trivia-cat-btn {
  border: 1px solid rgba(60, 40, 24, 0.18);
  background: rgba(255, 255, 255, 0.5);
  color: var(--coffee);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.trivia-cat-btn:hover {
  border-color: var(--coffee);
}
.trivia-cat-btn.on {
  background: var(--coffee);
  color: #fff;
  border-color: var(--coffee);
}
.trivia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.trivia-card {
  padding: 14px 16px;
}
.trivia-cat {
  display: inline-block;
  font-size: 11.5px;
  color: #fff;
  background: var(--coffee);
  border-radius: 6px;
  padding: 2px 9px;
  margin-bottom: 8px;
}
.trivia-q {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.75;
  font-weight: 600;
}
.trivia-why {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 7px;
}
.trivia-ans {
  filter: blur(7px);
  user-select: none;
  transition: filter 0.35s ease;
  margin-top: 8px;
}
.trivia-card.revealed .trivia-ans {
  filter: none;
  user-select: auto;
}
.trivia-struct {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.55);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}
.trivia-struct b {
  display: block;
  color: var(--coffee);
  margin-bottom: 5px;
  font-size: 12.5px;
}
.trivia-struct ul {
  margin: 0;
  padding-left: 18px;
}
.trivia-struct li {
  margin: 3px 0;
  line-height: 1.55;
  font-size: 12px;
  color: var(--ink);
}
.trivia-reveal {
  margin-top: 10px;
  align-self: flex-start;
  background: var(--paper-2);
  color: var(--coffee);
  border: 1px solid #d8c4a6;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.trivia-reveal:hover {
  background: #e7d6bd;
}
.trivia-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.trivia-reroll {
  background: transparent;
  border: 1px dashed #c9b48f;
  color: var(--coffee);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  font-size: 13px;
}
.trivia-reroll:hover {
  background: var(--paper-2);
}
.trivia-hint {
  color: var(--muted);
  font-size: 12px;
}

/* ================= 分析研究栏目（research） ================= */
.rs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.rs-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
  cursor: pointer;
  outline: none;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  border-left: 3px solid var(--accent-2);
}
.rs-card:hover,
.rs-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(181, 101, 29, 0.45);
  border-left-color: var(--accent);
  box-shadow: 0 6px 20px rgba(60, 40, 24, 0.1);
}
.rs-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.rs-kind {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5efe4, #efe4d1);
  border: 1px solid #e0d2b8;
  color: var(--coffee);
}
.rs-no {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
}
.rs-title {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}
.rs-card:hover .rs-title {
  color: var(--coffee);
}
.rs-desc {
  flex: 1;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.rs-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 12px;
}
.rs-meta li {
  font-size: 11.5px;
  line-height: 18px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.rs-go {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--coffee);
  display: flex;
  align-items: center;
  gap: 6px;
}
.rs-go span {
  transition: transform 0.18s;
}
.rs-card:hover .rs-go span {
  transform: translateX(4px);
}
.rs-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}
@media (max-width: 900px) {
  .rs-grid {
    grid-template-columns: 1fr;
  }
  .rs-title {
    font-size: 17px;
  }
}

/* ============================================================
   2026.9.2 新增：new 标记 · 国内/国际分栏 · 研究列表 · 风险猜测
   ============================================================ */

/* ---- new 标记（小字号 · 红色 · 斜体） ---- */
.new-tag {
  flex: none;
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10.5px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.5;
  color: #c0392b;
  background: rgba(192, 57, 43, 0.09);
  border: 1px solid rgba(192, 57, 43, 0.24);
  vertical-align: 2px;
  white-space: nowrap;
}
.ntitle-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.ntitle-row .ntitle {
  flex: 1;
  min-width: 0;
}

/* ---- 国内外热点新闻：分栏切换 ---- */
.news-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 6px;
}
.news-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.news-tabs button:hover {
  border-color: var(--coffee);
  color: var(--coffee);
}
.news-tabs button.on {
  background: var(--coffee);
  border-color: var(--coffee);
  color: #fff8ec;
}
.news-tabs button em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(60, 40, 24, 0.1);
  color: var(--ink-soft);
}
.news-tabs button.on em {
  background: rgba(255, 248, 236, 0.24);
  color: #fff8ec;
}

/* ---- 分析研究：纵向列表 ---- */
.rs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rs-row {
  display: grid;
  grid-template-columns: 46px minmax(220px, 1.5fr) minmax(220px, 2.2fr) 104px minmax(180px, 1.1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.rs-row:hover {
  transform: translateY(-2px);
  border-color: var(--coffee);
  box-shadow: var(--shadow-lg);
}
.rs-row-no {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 900;
  color: var(--coffee);
  opacity: 0.55;
  text-align: center;
}
.rs-row-name {
  min-width: 0;
}
.rs-row-name h3 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  word-break: break-word;
}
.rs-row:hover .rs-row-name h3 {
  color: var(--coffee);
}
.rs-row-kind {
  display: inline-block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.rs-row-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.rs-row-date {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.rs-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.rs-row-meta li {
  font-size: 11.5px;
  color: var(--muted);
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  white-space: nowrap;
}
.rs-list-head {
  display: grid;
  grid-template-columns: 46px minmax(220px, 1.5fr) minmax(220px, 2.2fr) 104px minmax(180px, 1.1fr);
  gap: 14px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
}
.rs-list-head span:last-child {
  text-align: right;
}
@media (max-width: 980px) {
  .rs-list-head {
    display: none;
  }
  .rs-row {
    grid-template-columns: 40px 1fr;
    gap: 8px 12px;
  }
  .rs-row-no {
    grid-row: span 4;
  }
  .rs-row-desc,
  .rs-row-date,
  .rs-row-meta {
    grid-column: 2;
    text-align: left;
    justify-content: flex-start;
  }
}

/* ---- 后台：访问明细分页信息条 ---- */
.adm-table-cap {
  padding: 10px 16px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(236, 224, 205, 0.28);
  border-radius: 10px 10px 0 0;
}
.adm-table-cap b {
  color: var(--coffee);
  font-size: 14px;
}
#logPager:not(:empty) {
  padding: 0 16px 14px;
}

/* ================= 风险预警（IP 五分类） ================= */
/* 分类标签上的数量徽标 */
.rw-tab-n {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(111, 74, 47, 0.12);
  color: var(--coffee);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--sans);
}
.study-tab.on .rw-tab-n {
  background: rgba(255, 248, 236, 0.22);
  color: #fff8ec;
}

/* 示例数据提示条 */
.rw-banner {
  margin-bottom: 14px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #fdf3e2;
  border: 1px solid #f0dcb4;
  color: var(--r-warn);
  font-size: 12.5px;
}

/* 工具条：搜索 + 筛选 */
.rw-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.rw-search {
  flex: 1;
  min-width: 220px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink);
  font-family: var(--sans);
}
.rw-search:focus {
  outline: none;
  border-color: var(--accent);
}
.rw-sel {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-soft);
  font-family: var(--sans);
  cursor: pointer;
}
.rw-sel:focus {
  outline: none;
  border-color: var(--accent);
}
.rw-count {
  font-size: 12.5px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}

/* 归属地「推测」徽标 */
.rw-infer {
  font-style: normal;
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 4px;
  margin-left: 2px;
}
.rw-muted {
  color: var(--muted);
}

/* 处置状态标签 */
.rw-status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper-2);
}
.rw-status.banned {
  color: var(--r-red);
  border-color: #f3c9c5;
  background: #fdecea;
}
.rw-status.watching {
  color: var(--r-warn);
  border-color: #f0dcb4;
  background: #fdf3e2;
}
.rw-status.none {
  color: var(--muted);
}
.rw-status.whitelist {
  color: var(--r-green);
  border-color: #bfe3cf;
  background: #eafaf1;
}

/* 列表操作按钮 */
.rw-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--coffee);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  transition: 0.16s;
  margin-right: 6px;
}
.rw-btn:hover:not([disabled]) {
  border-color: var(--accent);
  color: var(--accent);
}
.rw-btn.primary {
  background: var(--coffee);
  color: #fff8ec;
  border-color: var(--coffee);
}
.rw-btn.primary:hover:not([disabled]) {
  background: var(--coffee-deep);
  color: #fff8ec;
}
.rw-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  margin-right: 0;
}

/* 详情展开行 */
.rw-detail td {
  background: rgba(236, 224, 205, 0.28);
  padding: 14px 18px;
}
.rw-detail[hidden] {
  display: none;
}
.rw-d-box {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.rw-d-sec {
  margin-bottom: 8px;
}
.rw-d-sec:last-child {
  margin-bottom: 0;
}
.rw-d-sec b {
  color: var(--ink);
}

/* 加载骨架 */
.rw-loading {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rw-skel {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #ece0cd, #f4ebdc, #ece0cd);
  background-size: 200% 100%;
  animation: rwSh 1.2s infinite;
}
@keyframes rwSh {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ---- 风险预警：五分类标签 / 白名单 / 内联展开 ---- */
/* 「正常」与「白名单」风险标签配色 */
.lv-tag.ok {
  background: #eef8f1;
  color: var(--r-green);
  border-color: #bfe0cc;
}
.lv-tag.whitelist {
  background: #eafaf1;
  color: var(--r-green);
  border-color: #bfe3cf;
}
/* IP 行内的白名单小标记 */
.rw-wl-flag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--r-green);
  border: 1px solid #bfe3cf;
  background: #eafaf1;
  vertical-align: 1px;
}
/* 就地展开：详情行紧跟在对应 IP 行之后 */
.rw-row.open > td {
  background: rgba(236, 224, 205, 0.46);
  border-bottom-color: transparent;
}
.rw-row.open > td:first-child {
  box-shadow: inset 3px 0 0 var(--coffee);
}
.rw-detail td {
  box-shadow: inset 3px 0 0 var(--coffee);
}
.rw-d-box {
  animation: rwFade 0.16s ease-out;
}
@keyframes rwFade {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* 详情区：规则列表在展开面板内的排版 */
.rw-d-box .rh-hits {
  margin: 6px 0 2px;
}
.rw-d-box .rh-hits li {
  display: flex;
  gap: 10px;
}
.rw-d-box .rh-hits li b {
  min-width: 104px;
}
/* 取消白名单：次要危险操作 */
.rw-btn.danger {
  color: var(--r-red);
  border-color: #f0c4c0;
  background: #fdf3f2;
  margin-right: 0;
}
.rw-btn.danger:hover:not([disabled]) {
  background: #fbe7e5;
  border-color: var(--r-red);
  color: var(--r-red);
}
