@charset "utf-8";
/* ==========================================================================
   架构层（叠加在 main.css 之上，不改原有配色与排版风格）
   目标：移动优先 / 语义化补齐 / 正文可读性 / 触控目标 / 百度友好
   ========================================================================== */

/* 1. 跳过导航 */
.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 999;
  padding: 10px 16px;
  background: #0f0f0d;
  color: #f2efe8;
  border-radius: 6px;
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip:focus { top: 8px; }

/* 2. 面包屑 */
.crumb { padding: 18px 0 0; font-size: 12.5px; color: #6f6a5d; }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumb a { color: #454238; text-decoration: none; }
.crumb a:hover { color: #b62b18; text-decoration: underline; }
.crumb span[aria-current] { color: #0f0f0d; }

/* 3. 列表标题语义化后保持原有视觉（原来用的是 <strong>） */
.feed-copy h3 {
  display: block;
  margin: 0;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: inherit;
  color: inherit;
}
.feed-copy h2 {
  display: block;
  margin: 0;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: inherit;
  color: inherit;
}
.dash-title h3 { margin: 0; font: inherit; font-size: 20px; letter-spacing: inherit; }
.dash-row h4 {
  margin: 0;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 4. 正文（后台富文本） */
.article-body { font-size: 16px; line-height: 1.95; color: #25251f; }
.article-body > * + * { margin-top: 16px; }
.article-body h2 {
  margin-top: 32px;
  padding-left: 12px;
  border-left: 3px solid #e33b24;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  color: #0f0f0d;
}
.article-body h3 { margin-top: 24px; font-size: 17px; font-weight: 700; color: #0f0f0d; }
.article-body p { margin: 0; }
.article-body a { color: #2f5f7a; text-decoration: underline; text-underline-offset: 3px; }
.article-body ul,
.article-body ol { padding-left: 22px; }
.article-body li + li { margin-top: 6px; }
.article-body img { max-width: 100%; height: auto; border-radius: 6px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article-body th,
.article-body td { border: 1px solid rgba(15, 15, 13, 0.15); padding: 9px 11px; text-align: left; }
.article-body blockquote {
  margin: 20px 0;
  padding: 12px 16px;
  border-left: 3px solid rgba(15, 15, 13, 0.2);
  background: #e7e1d5;
  color: #454238;
}
.article-note {
  margin-top: 26px;
  padding: 12px 14px;
  border-left: 3px solid rgba(15, 15, 13, 0.18);
  background: #f7f5ef;
  font-size: 12.5px;
  line-height: 1.8;
  color: #6f6a5d;
}

/* 5. 单页 / 留言 窄栏 */
.layout-narrow { max-width: 820px; margin: 0 auto; }
.contact-card {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid rgba(15, 15, 13, 0.14);
  border-radius: 10px;
  background: #f7f5ef;
}
.contact-card h2 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.contact-card p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.85; color: #454238; }
.contact-mail a { font-size: 16px; font-weight: 700; color: #b62b18; }
.contact-note { color: #6f6a5d !important; font-size: 12.5px !important; }

/* 6. 回到顶部 */
.totop {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 15, 13, 0.16);
  border-radius: 50%;
  background: rgba(242, 239, 232, 0.94);
  color: #0f0f0d;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }

/* 7. 顶栏在移动端更紧凑 + 吸顶 */
@media (max-width: 860px) {
  .site-head { position: sticky; top: 0; z-index: 60; background: #f2efe8; }
  .topbar-mid { display: none; }
  .masthead-inner { min-height: 56px; }
  .menu-btn { width: 44px; height: 44px; display: inline-grid; place-content: center; gap: 4px; }
  .menu-btn span { display: block; width: 18px; height: 1.5px; background: #0f0f0d; border-radius: 2px; }
  .menu-btn span + span { margin-top: 4px; }
  .head-submit { display: none; }
  .mobile-panel { position: fixed; inset: 0; z-index: 90; overflow-y: auto; }
  .mobile-nav a { min-height: 52px; }
}

/* 8. 移动端版式：单列 + 更大字号 + 触控目标 */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .wrap { width: 100%; padding-inline: 16px; box-sizing: border-box; }
  .hero-poster-copy h1 { font-size: 26px; line-height: 1.35; }
  .story-grid,
  .story-grid-two { grid-template-columns: 1fr; }
  .feed-layout { display: block; }
  .tag-panel { margin-top: 24px; }
  .dash-board { grid-template-columns: 1fr; }
  .article-body { font-size: 16.5px; line-height: 1.95; }
  .article-body h2 { font-size: 19px; }
  .foot-top { display: block; }
  .foot-col { margin-top: 18px; }
  .pager a,
  .pager span { min-height: 44px; display: inline-flex; align-items: center; }
  .feed-item { min-height: 64px; }
  .ticker-window { mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
}

/* 9. 大屏：阅读宽度与留白 */
@media (min-width: 1080px) {
  .article-body { font-size: 16.5px; }
  .article-ref-body { max-width: 760px; }
}

/* 10. 动效降级 / 打印 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker-track { animation: none !important; }
}

@media print {
  .site-head, .site-foot, .totop, .mobile-panel, .ticker { display: none !important; }
  .article-body { font-size: 12pt; }
}

/* ==========================================================================
   11. 首页首屏在移动端的收敛（原站靠独立 m 模板，现在改成单套响应式）
   ========================================================================== */
@media (max-width: 760px) {
  .hero-poster { min-height: auto; }
  .hero-poster-bg { width: 100%; height: 100%; opacity: 0.55; -webkit-mask-image: none; mask-image: none; }
  .hero-poster-shade {
    background:
      linear-gradient(0deg, rgba(8, 7, 6, 0.96) 26%, rgba(8, 7, 6, 0.72) 62%, rgba(8, 7, 6, 0.55) 100%),
      linear-gradient(90deg, rgba(8, 7, 6, 0.9), rgba(8, 7, 6, 0.3));
  }
  .hero-poster-grid { min-height: auto; padding: 30px 0 24px; }
  .hero-poster-copy { padding-right: 0; }
  .hero-poster-copy h1 { margin-top: 14px; font-size: 28px; line-height: 1.3; letter-spacing: -0.02em; }
  .hero-poster-copy p { margin-top: 12px; font-size: 13.5px; line-height: 1.85; }
  .hero-tape { gap: 10px; padding-bottom: 12px; font-size: 10px; }
  .hero-tape .tape-end { display: none; }
  .dash-board { grid-template-columns: 1fr; gap: 10px; }
  .dash-col { min-height: auto; }
  .dash-title h3 { font-size: 18px; }
  .feed-tabs { display: flex; flex-wrap: wrap; gap: 6px 10px; }
  .feed-head { align-items: flex-start; gap: 10px; }
  .story-grid-two { grid-template-columns: 1fr; }
  .pager { display: flex; flex-wrap: wrap; gap: 6px; }
  .foot-top { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-note { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .hero-poster-copy h1 { font-size: 25px; }
  .dash-row { grid-template-columns: 34px minmax(0, 1fr) 12px; }
}

/* 12. 修正：主题里 .hero-poster-grid 用了 padding 简写，会覆盖 .wrap 的水平内边距 */
@media (max-width: 760px) {
  .hero-poster-grid { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
  .page-hero .wrap,
  .page-hero-main { padding-left: 0; padding-right: 0; }
}

/* ==========================================================================
   13. 页头全站搜索（替换原「发布开区」按钮）
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.site-search {
  display: flex;
  align-items: center;
  height: 38px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.55);
}
.site-search input[type="search"] {
  width: 196px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 11.5px/1.2 var(--sans);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.site-search input[type="search"]::placeholder { color: rgba(15, 15, 13, 0.45); }
.site-search button {
  flex: none;
  height: 36px;
  padding: 0 13px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: 700 10.5px/1 var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.site-search button:hover { background: var(--red); color: var(--paper); }
.site-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 2px rgba(227, 59, 36, 0.16); }
.mobile-search { display: flex; width: 100%; margin: 4px 0 16px; }
.mobile-search input[type="search"] { flex: 1; width: auto; height: 42px; font-size: 14px; }
.mobile-search button { height: 42px; padding: 0 18px; font-size: 13px; }

@media (max-width: 960px) {
  .head-actions .site-search { display: none; }
}

/* ==========================================================================
   14. 滚动开区条（20 条 × 2 份，无缝循环 + 预知开服时间）
   ========================================================================== */
.ticker { min-height: 38px; }
.ticker-track {
  gap: 0;
  padding-left: 0;
  font-size: 10.5px;
  animation-duration: 170s;
}
.tick-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  margin-right: 20px;
  color: var(--paper);
  text-decoration: none;
}
.tick-name { color: var(--paper); }
.tick-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 1px 5px;
  border: 1px solid rgba(242, 239, 232, 0.22);
  color: rgba(242, 239, 232, 0.55);
  font: 7.5px/1.5 var(--mono);
  font-style: normal;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tick-status.is-open {
  color: rgba(242, 239, 232, 0.42);
  border-color: rgba(242, 239, 232, 0.16);
}
.tick-status.is-soon {
  color: var(--acid);
  border-color: rgba(216, 255, 62, 0.55);
  background: rgba(216, 255, 62, 0.08);
}
.tick-item.is-clone { pointer-events: none; }
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }

@media (max-width: 720px) {
  .ticker { min-height: 34px; }
  .ticker-track { animation-duration: 120s; }
  .tick-item { margin-right: 14px; }
  .tick-status { min-width: 66px; }
  .tick-name { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-window { overflow-x: auto; }
  .ticker-track { animation: none !important; }
}

/* 抽屉里的搜索框：深色面板上提高对比度 */
.mobile-search {
  border-color: rgba(242, 239, 232, 0.35);
  background: transparent;
}
.mobile-search input[type="search"] {
  background: #fbf9f4;
  color: var(--ink);
}
.mobile-search button {
  background: var(--acid);
  color: var(--ink);
}
.mobile-search button:hover {
  background: var(--red);
  color: var(--paper);
}

/* ==========================================================================
   15. 导航：当前栏目高亮 + 「全部栏目」下拉
   ========================================================================== */
.desk-nav a.on::after,
.desk-nav a[aria-current="page"]::after { right: 0; }
.desk-nav a.on span,
.desk-nav a[aria-current="page"] span { color: var(--red-dark); }

.nav-more { position: relative; display: flex; align-items: center; }
.nav-more-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 7px 0 5px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
}
.nav-more-btn span { display: inline-flex; align-items: center; gap: 3px; }
.nav-more-btn span::after { content: "▾"; font-size: 9px; line-height: 1; color: var(--muted); }
.nav-more-btn small {
  font: 6.5px var(--mono);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.nav-more-btn:hover span { color: var(--red-dark); }
.nav-more.is-open .nav-more-btn span::after { content: "▴"; }

.nav-more-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  min-width: 236px;
  padding: 10px;
  background: #f7f5ef;
  border: 1px solid var(--ink);
  box-shadow: 0 20px 44px -20px rgba(15, 15, 13, 0.5);
  display: none;
}
.nav-more.is-open .nav-more-panel,
.nav-more:hover .nav-more-panel,
.nav-more:focus-within .nav-more-panel { display: block; }
.nav-more-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.nav-more-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(15, 15, 13, 0.07);
}
.nav-more-panel li:last-child a { border-bottom: 0; }
.nav-more-panel a:hover { background: rgba(227, 59, 36, 0.07); color: var(--red-dark); }
.nav-more-panel a.on,
.nav-more-panel a[aria-current="page"] {
  color: var(--red-dark);
  background: rgba(227, 59, 36, 0.08);
  font-weight: 700;
}

.mobile-nav a.on,
.mobile-nav a[aria-current="page"] { color: var(--red-dark); }

@media (max-width: 960px) {
  .nav-more { display: none; }
}
