* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  margin: 0;
  background: transparent;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  /* 默认不预留滚动条槽，去掉右侧灰条/拉动框 */
  overflow-y: auto;
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* 旧 Edge */
  scrollbar-gutter: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 彻底隐藏各浏览器滚动条（含 WebKit 预留槽） */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent;
}

/* 被主站 iframe 嵌入时：内部禁止滚动，右侧拉动框消失
   （高度由父页按 embed-height 撑满，滚动在主站页面） */
html.is-embedded,
html.is-embedded body {
  overflow: hidden !important;
  height: 100%;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(20, 40, 80, .05);
  max-width: 100%;
  overflow: hidden;
}
.card:last-child { margin-bottom: 0; }

/* 图文交替流 */
.unit-stream { max-width: 100%; }
.unit-card .card-title { font-size: 13px; color: #666; font-weight: 600; }
.unit-card.unit-pic .card-title { color: #334b99; }
.unit-card.unit-txt .card-title { color: #2f8bff; }
.unit-card .p-card:last-child,
.unit-card .cat-block:last-child,
.unit-card .col-block:last-child { margin-bottom: 0; }
.unit-card .pic-list.unit { gap: 12px; }

/* 整版栏目：多期连在一起 */
.col-block {
  border: 1px solid #eceff3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.col-sub {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  background: rgba(255,255,255,.2);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
}
.cat-title .col-sub {
  float: right;
  margin-left: 8px;
}
.col-body { padding: 4px 0; }
.col-period {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f2f5;
}
.col-period:last-child { border-bottom: 0; }
.col-period-hd {
  font-size: 13px;
  font-weight: 700;
  color: #2f8bff;
  margin-bottom: 6px;
}
.accent-orange .col-head { background: linear-gradient(90deg, #f1680e, #ff944d); }
.accent-blue .col-head { background: linear-gradient(90deg, #2f8bff, #5aa7ff); }
.accent-green .col-head { background: linear-gradient(90deg, #339966, #4caf7a); }
.accent-purple .col-head { background: linear-gradient(90deg, #993385, #c45aad); }
.accent-red .col-head { background: linear-gradient(90deg, #d32f2f, #ef5350); }
.accent-teal .col-head { background: linear-gradient(90deg, #00897b, #26a69a); }

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  padding-left: 10px;
  position: relative;
  margin-bottom: 12px;
}
.card-title::before {
  content: "";
  position: absolute;
  left: 0; top: 2px; bottom: 2px;
  width: 4px; border-radius: 4px; background: #2f8bff;
}

.meta {
  font-size: 12px;
  color: #8a93a2;
  margin: -4px 0 12px;
  line-height: 1.5;
}

/* —— 参考站风格：彩色快捷按钮 —— */
.chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.chip {
  display: inline-block;
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* —— 期数卡片（参考彩色区块） —— */
.p-card {
  border: 1px solid #eceff3;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.p-card:last-child { margin-bottom: 0; }
.p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: #fff;
  font-weight: 700;
}
.p-no { font-size: 15px; letter-spacing: .02em; }
.p-tag {
  font-size: 11px;
  background: rgba(255,255,255,.22);
  padding: 2px 8px;
  border-radius: 999px;
}
.p-body { padding: 10px 12px 12px; }

.accent-blue .p-head,
.cat-block.accent-blue .cat-title { background: linear-gradient(90deg, #2f8bff, #5aa7ff); }
.accent-green .p-head,
.cat-block.accent-green .cat-title { background: linear-gradient(90deg, #339966, #4caf7a); }
.accent-orange .p-head,
.cat-block.accent-orange .cat-title { background: linear-gradient(90deg, #f1680e, #ff944d); }
.accent-purple .p-head,
.cat-block.accent-purple .cat-title { background: linear-gradient(90deg, #993385, #c45aad); }
.accent-red .p-head,
.cat-block.accent-red .cat-title { background: linear-gradient(90deg, #d32f2f, #ef5350); }
.accent-teal .p-head,
.cat-block.accent-teal .cat-title { background: linear-gradient(90deg, #00897b, #26a69a); }

.line {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-bottom: 6px;
  line-height: 1.7;
  max-width: 100%;
  min-width: 0;
}
.k {
  color: #8a93a2;
  flex: 0 0 auto;
  font-size: 12px;
  min-width: 2.5em;
}
.v {
  color: #333;
  font-weight: 600;
  flex: 1 1 10em;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.v.nums {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.hit {
  background: #fff3b0;
  color: #c62828;
  padding: 0 3px;
  border-radius: 2px;
}
.hit-note {
  margin-top: 6px;
  font-size: 12px;
  color: #8a93a2;
}

/* —— 分类表 —— */
.cats { display: flex; flex-direction: column; gap: 12px; }
.cat-block {
  border: 1px solid #eceff3;
  border-radius: 12px;
  overflow: hidden;
}
.cat-title {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
}
.cat-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 12px;
  table-layout: fixed;
  border: 1px solid #d0d7e2;
  background: #fff;
}
.cat-table th,
.cat-table td {
  padding: 8px 8px;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.cat-table th {
  background: #f0f4fa;
  color: #555;
  font-weight: 700;
  width: 22%;
}
.cat-table th:nth-child(2) { width: 38%; }
.cat-table th:nth-child(3) { width: 40%; }
.cat-table tbody tr:nth-child(even) td {
  background: #fafbfd;
}
.cat-table td:first-child {
  color: #6b7280;
  white-space: nowrap;
  width: 22%;
  font-variant-numeric: tabular-nums;
}

/* —— 图片 —— */
.pic-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}
.pic { margin: 0; max-width: 100%; }
.pic picture,
.pic img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #eceff3;
  background: #f4f6fa;
}
.pic figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

/* 触底加载：未激活块不占布局、不拉图片 */
.unit-deferred {
  display: none !important;
}
.unit-active {
  display: block;
}
.pic-deferred img {
  min-height: 120px;
  background: #f4f6fa;
}

.load-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

.more-wrap {
  margin-top: 14px;
  margin-bottom: 8px;
  text-align: center;
}
.btn-more {
  display: inline-block;
  max-width: 100%;
  border: 1px solid #d7e6ff;
  background: #f3f8ff;
  color: #2f8bff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.load-tip {
  margin-top: 8px;
  font-size: 12px;
  color: #8a93a2;
}
.load-done {
  text-align: center;
  padding: 8px 0 4px;
}

/* 手机细节 */
@media (max-width: 480px) {
  .card { padding: 12px; border-radius: 12px; }
  .card-title { font-size: 14px; }
  .chip { font-size: 11px; padding: 6px 10px; }
  .line { display: block; margin-bottom: 8px; }
  .k { display: block; margin-bottom: 2px; }
  .v { display: block; width: 100%; font-size: 13px; }
  .p-head { padding: 9px 10px; }
  .p-body { padding: 10px; }
  .cat-table { font-size: 11px; }
  .cat-table th, .cat-table td { padding: 7px 6px; }
}
