/* ============================================================
   BDnews 新闻资讯主题样式
   设计语言：报纸红 + 暖纸底色 + 金橙点缀
   ============================================================ */
:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --card-soft: #faf8f3;
  --text: #23201b;
  --muted: #7c7466;
  --line: rgba(35, 32, 27, 0.1);
  --primary: #d7263d;
  --primary-deep: #a4123f;
  --primary-soft: rgba(215, 38, 61, 0.08);
  --accent: #f4a259;
  --accent-soft: rgba(244, 162, 89, 0.14);
  --gold: #c9a227;
  --ink: #1c1611;
  --shadow: 0 18px 46px rgba(84, 42, 18, 0.1);
  --shadow-hover: 0 26px 60px rgba(84, 42, 18, 0.16);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shell: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -6%, rgba(215, 38, 61, 0.06), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(244, 162, 89, 0.08), transparent 26%),
    var(--bg);
  color: var(--text);
  font: 16px/1.75 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
}

input,
textarea,
button {
  font: inherit;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin: 0 auto;
}

::selection {
  background: rgba(215, 38, 61, 0.2);
}

/* ---------------- 顶部信息条 ---------------- */
.site-topline {
  background: linear-gradient(90deg, #2a0d16 0%, #3d1120 55%, #2a0d16 100%);
  color: rgba(255, 235, 220, 0.85);
}

.topline-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topline-copy,
.topline-side {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.topline-copy {
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.topline-copy span,
.topline-side a,
.topline-subname {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.topline-date {
  color: #ffd9a0;
  font-weight: 600;
}

.topline-copy span + span,
.topline-subname + a {
  margin-left: 18px;
}

.topline-copy span + span::before,
.topline-subname + a::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 217, 160, 0.6);
  transform: translateY(-50%);
}

.topline-side {
  font-size: 12.5px;
}

.topline-subname {
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 217, 160, 0.25);
  color: #ffe9d2;
}

.topline-side a {
  color: #ffbf87;
  font-weight: 600;
  transition: color 0.2s ease;
}

.topline-side a:hover {
  color: #fff;
}

/* ---------------- 头部 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(84, 42, 18, 0.06);
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  font: 800 22px/1 "PingFang SC", "Microsoft YaHei", sans-serif;
  box-shadow: 0 10px 22px rgba(215, 38, 61, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: rotate(-4deg);
  flex: 0 0 44px;
}

.brand-copy {
  display: flex;
  align-items: center;
  line-height: 1;
  margin: 0;
}

h1.brand-copy {
  font-size: inherit;
  font-weight: inherit;
}

.brand-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 800 21px/1.1 "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(5px);
}

.brand-copy em {
  display: none;
}

.site-nav {
  justify-self: start;
  margin-left: 32px;
}

.nav-menu,
.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 76px;
  font-size: 15.5px;
  font-weight: 500;
  color: #5d564b;
  transition: color 0.2s ease;
}

.nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav-menu > li > a:hover {
  color: var(--primary);
}

.nav-menu > li.current > a,
.nav-menu > li.active > a,
.nav-menu > li.on > a,
.nav-menu > li.navbar-on > a,
body.index .nav-menu > li:first-child > a {
  color: var(--ink);
  font-weight: 700;
}

.nav-menu > li.current > a::after,
.nav-menu > li.active > a::after,
.nav-menu > li.on > a::after,
.nav-menu > li.navbar-on > a::after,
body.index .nav-menu > li:first-child > a::after {
  width: 100%;
}

.nav-menu > li > ul {
  position: absolute;
  left: -14px;
  top: calc(100% - 2px);
  min-width: 180px;
  padding: 10px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
}

.nav-menu > li:hover > ul {
  display: block;
}

.nav-menu > li > ul > li > a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: #5d564b;
  font-size: 14px;
  transition: all 0.18s ease;
}

.nav-menu > li > ul > li > a:hover {
  background: var(--primary-soft);
  color: var(--primary);
  padding-left: 18px;
}

/* 头部按钮 */
.header-action,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.22s ease;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.header-action-secondary {
  border: 1.5px solid rgba(215, 38, 61, 0.4);
  background: #fff;
  color: var(--primary);
}

.header-action-secondary:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.header-action-primary,
.btn-primary {
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, var(--primary) 0%, #ef476f 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(215, 38, 61, 0.32);
}

.header-action-primary:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(215, 38, 61, 0.4);
}

.btn-secondary {
  border: 1px solid rgba(215, 38, 61, 0.2);
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--primary-soft);
  color: var(--primary);
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 700;
}

.site-main {
  padding: 28px 0 72px;
}

/* ---------------- 首页轮播 ---------------- */
.showcase-section {
  margin-top: 22px;
}

.showcase-viewport {
  position: relative;
  max-width: 1200px;
  height: 460px;
  margin: 0 auto;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.995);
  transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.showcase-column {
  display: grid;
  gap: 18px;
}

.showcase-column--side {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.showcase-main,
.showcase-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #e7e0d4;
  box-shadow: 0 10px 28px rgba(60, 30, 10, 0.1);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.showcase-main:hover,
.showcase-tile:hover {
  box-shadow: 0 20px 44px rgba(60, 30, 10, 0.2);
  transform: translateY(-4px);
  z-index: 2;
}

.showcase-main img,
.showcase-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-main {
  height: 460px;
}

.showcase-tile--small {
  height: 221px;
}

.showcase-main:hover img,
.showcase-tile:hover img {
  transform: scale(1.06);
}

.showcase-main__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, rgba(20, 8, 10, 0) 30%, rgba(20, 8, 10, 0.82) 100%);
  transition: background 0.4s ease;
}

.showcase-main__badge {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #ef476f);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 18px rgba(215, 38, 61, 0.4);
}

.showcase-main__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  margin-right: 7px;
  animation: bdnPulse 1.6s ease-in-out infinite;
}

@keyframes bdnPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.showcase-main__content {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 34px;
  color: #fff;
  z-index: 1;
  transition: transform 0.4s ease;
}

.showcase-main:hover .showcase-main__content {
  transform: translateY(-5px);
}

.showcase-main__content strong {
  display: block;
  font: 800 34px/1.2 "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.showcase-main__content em {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-style: normal;
  font-size: 15.5px;
  max-width: 520px;
  line-height: 1.55;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.showcase-main__content.is-compact strong {
  font-size: 38px;
}

.showcase-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #fff;
  z-index: 1;
  font: 700 16.5px/1.35 "PingFang SC", "Microsoft YaHei", sans-serif;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s ease;
}

.showcase-tile:hover .showcase-caption {
  transform: translateY(-3px);
}

.showcase-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, rgba(20, 8, 10, 0) 35%, rgba(20, 8, 10, 0.68) 100%);
  transition: opacity 0.4s ease;
}

.showcase-tile:hover::after {
  opacity: 0.85;
}

.showcase-tile.is-empty,
.showcase-main.is-empty {
  background: linear-gradient(135deg, #f1ece2, #e6ddcd);
}

.showcase-dots {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
  background: rgba(20, 8, 10, 0.35);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.showcase-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-dot:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.2);
}

.showcase-dot.is-active {
  width: 26px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ---------------- 通用区块 ---------------- */
.hero-section,
.feature-layout,
.channel-section,
.content-layout,
.detail-layout,
.not-found-section {
  margin-top: 24px;
}

.metric-card,
.feature-card,
.sidebar-card,
.story-card,
.feature-main,
.channel-card,
.article-card,
.not-found-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(84, 42, 18, 0.07);
}

.section-title {
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 5px solid var(--primary);
  border-radius: 3px;
}

.section-title h1,
.section-title h2 {
  margin: 0;
  font: 800 clamp(26px, 3vw, 34px)/1.2 "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8a5a1d;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill-primary {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(215, 38, 61, 0.18);
}

.feature-badges,
.story-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-meta,
.story-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 18px;
  color: #8d8272;
  font-size: 13.5px;
}

.btn {
  cursor: pointer;
  border: 0;
}

/* ---------------- 首页布局 ---------------- */
.bdn-body.index {
  background: var(--bg);
}

.bdn-body.index .site-main {
  padding-top: 14px;
}

.tc-home-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  margin-top: 20px;
}

.tc-home-main,
.tc-home-sidebar {
  min-width: 0;
}

.tc-module {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(84, 42, 18, 0.06);
  overflow: hidden;
}

.tc-module__head,
.tc-side-module__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf9 0%, #fff 100%);
}

.tc-module__title h2,
.tc-side-module__head h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tc-module__title h2::before,
.tc-side-module__head h3::before {
  content: "";
  width: 5px;
  height: 19px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  flex: 0 0 5px;
}

.tc-module__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tc-module__tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  color: #7c7466;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tc-module__tabs a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.tc-module__tabs a.is-active {
  background: linear-gradient(135deg, var(--primary), #ef476f);
  color: #fff;
  box-shadow: 0 6px 14px rgba(215, 38, 61, 0.3);
}

/* 首页文章列表 */
.tc-post-list {
  padding: 4px 20px;
}

.tc-post-item {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  transition: background 0.2s ease;
}

.tc-post-item + .tc-post-item {
  border-top: 1px dashed var(--line);
}

.tc-post-item__thumb {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.tc-post-item__thumb img {
  width: 100%;
  aspect-ratio: 196 / 126;
  object-fit: cover;
  display: block;
  background: #ede7db;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tc-post-item:hover .tc-post-item__thumb img {
  transform: scale(1.06);
}

.tc-thumb-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  min-height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #ef476f);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(215, 38, 61, 0.35);
}

.tc-post-item__content {
  min-width: 0;
}

.tc-post-item__content h3 {
  margin: 0 0 9px;
  font-size: 21px;
  line-height: 1.4;
}

.tc-post-item__content h3 a {
  color: var(--ink);
  background: linear-gradient(0deg, rgba(215, 38, 61, 0.16), rgba(215, 38, 61, 0.16)) no-repeat left bottom / 0% 40%;
  transition: background-size 0.35s ease, color 0.2s ease;
}

.tc-post-item__content h3 a:hover {
  color: var(--primary);
  background-size: 100% 40%;
}

.tc-post-item__excerpt {
  color: #6f665a;
  line-height: 1.8;
  font-size: 14.5px;
}

.tc-post-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-top: 14px;
  color: #98907f;
  font-size: 12.5px;
}

.tc-post-item__author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6f665a;
  font-weight: 500;
}

.tc-post-item__author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0ebe0;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(60, 30, 10, 0.15);
}

.tc-meta-cate a {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  transition: all 0.2s ease;
}

.tc-meta-cate a:hover {
  background: var(--primary);
  color: #fff;
}

/* 首页侧栏 */
.tc-home-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.tc-side-module {
  padding-bottom: 16px;
}

.tc-mini-list,
.tc-recommend-list,
.tc-tag-cloud {
  padding: 14px 18px 0;
}

.tc-mini-list {
  display: grid;
  gap: 14px;
}

.tc-mini-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
}

.tc-mini-item__thumb {
  overflow: hidden;
  border-radius: 10px;
  display: block;
}

.tc-mini-item__thumb img {
  width: 100%;
  aspect-ratio: 100 / 66;
  object-fit: cover;
  display: block;
  background: #ede7db;
  transition: transform 0.45s ease;
}

.tc-mini-item:hover .tc-mini-item__thumb img {
  transform: scale(1.08);
}

.tc-mini-item__content h4 {
  margin: 0 0 7px;
  font-size: 14.5px;
  line-height: 1.5;
}

.tc-mini-item__content h4 a {
  color: var(--ink);
  transition: color 0.2s ease;
}

.tc-mini-item__content h4 a:hover {
  color: var(--primary);
}

.tc-mini-item__content p,
.tc-recommend-item span {
  margin: 0;
  color: #98907f;
  font-size: 12.5px;
}

.tc-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tc-tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8a5a1d;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(244, 162, 89, 0.25);
  transition: all 0.2s ease;
}

.tc-tag-cloud a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(215, 38, 61, 0.28);
}

/* 编辑推荐（带排名） */
.tc-recommend-list {
  display: grid;
  gap: 4px;
}

.tc-recommend-item a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 6px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.tc-recommend-item a:hover {
  background: var(--card-soft);
}

.tc-rank {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #efe9dd;
  color: #98907f;
  font: 800 13px/1 "Bahnschrift", Arial, sans-serif;
}

.tc-rank-1 { background: linear-gradient(135deg, #d7263d, #ef476f); color: #fff; box-shadow: 0 4px 10px rgba(215, 38, 61, 0.35); }
.tc-rank-2 { background: linear-gradient(135deg, #f4a259, #f7c59f); color: #fff; box-shadow: 0 4px 10px rgba(244, 162, 89, 0.35); }
.tc-rank-3 { background: linear-gradient(135deg, #c9a227, #e8cf7a); color: #fff; box-shadow: 0 4px 10px rgba(201, 162, 39, 0.3); }

.tc-recommend-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.tc-recommend-item strong {
  color: var(--ink);
  line-height: 1.5;
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.tc-recommend-item a:hover strong {
  color: var(--primary);
}

.tc-recommend-item .tc-recommend-body > span {
  color: #98907f;
  font-size: 12.5px;
}

/* ---------------- 列表页 / 详情页布局 ---------------- */
.content-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 24px;
}

.content-main,
.detail-main,
.content-sidebar,
.detail-sidebar {
  min-width: 0;
}

.content-main,
.detail-main {
  max-width: none;
  margin: 0;
}

/* 文章摘要卡 */
.story-card {
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.story-card:hover::before {
  opacity: 1;
}

.story-card + .story-card {
  margin-top: 18px;
}

.story-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.story-date {
  color: #a39a88;
  font-size: 13.5px;
  font-weight: 500;
}

.story-title {
  margin: 14px 0 12px;
  font-size: 24px;
  line-height: 1.35;
}

.story-title a {
  color: var(--ink);
  transition: color 0.2s ease;
}

.story-title a:hover {
  color: var(--primary);
}

.story-desc {
  margin: 0;
  color: #6f665a;
  font-size: 15px;
}

.story-meta {
  padding-top: 16px;
  margin-top: 18px;
  border-top: 1px dashed var(--line);
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.story-tags a,
.article-tags a,
.tag-cloud a,
.footer-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--card-soft);
  color: #8a5a1d;
  font-size: 13px;
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

.story-tags a:hover,
.article-tags a:hover,
.tag-cloud a:hover,
.footer-tags a:hover {
  background: var(--primary-soft);
  border-color: rgba(215, 38, 61, 0.3);
  color: var(--primary);
}

/* ---------------- 侧栏卡片 ---------------- */
.sidebar-stack {
  display: grid;
  gap: 18px;
}

.sidebar-card {
  padding: 22px;
}

.sidebar-card__title {
  font: 800 19px/1.2 "PingFang SC", "Microsoft YaHei", sans-serif;
  margin-bottom: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-card__title::before {
  content: "";
  width: 5px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.sidebar-list,
.footer-links,
.module-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-list li,
.module-body li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
}

.sidebar-list li:first-child,
.module-body li:first-child {
  border-top: 0;
  padding-top: 0;
}

.sidebar-list a,
.module-body a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.sidebar-list a:hover,
.module-body a:hover {
  color: var(--primary);
}

.sidebar-list span,
.module-body li {
  color: var(--muted);
  font-size: 12.5px;
}

.sidebar-list-rank li {
  align-items: center;
}

.sidebar-rank {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #efe9dd;
  color: #98907f;
  font: 800 12px/1 "Bahnschrift", Arial, sans-serif;
}

.sidebar-rank-1 { background: linear-gradient(135deg, #d7263d, #ef476f); color: #fff; }
.sidebar-rank-2 { background: linear-gradient(135deg, #f4a259, #f7c59f); color: #fff; }
.sidebar-rank-3 { background: linear-gradient(135deg, #c9a227, #e8cf7a); color: #fff; }

.sidebar-list-rank a {
  flex: 1;
  min-width: 0;
}

.module-body ul li {
  display: block;
}

.module-body ul li a {
  display: block;
  padding: 8px 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* ---------------- 文章详情 ---------------- */
.breadcrumb-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #98907f;
  font-size: 13.5px;
  margin-bottom: 18px;
}

.breadcrumb-bar a {
  color: #7c7466;
  transition: color 0.2s ease;
}

.breadcrumb-bar a:hover {
  color: var(--primary);
}

.article-card {
  padding: 34px;
}

.article-hero {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.28;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.article-summary {
  margin: 10px 0 0;
  color: #6f665a;
  font-size: 16.5px;
  padding: 14px 18px;
  background: var(--card-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content {
  margin-top: 26px;
  color: #3a352d;
  font-size: 17px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5 {
  margin: 1.5em 0 0.65em;
  line-height: 1.3;
  color: var(--ink);
}

.article-content h2 {
  padding-left: 14px;
  border-left: 5px solid var(--primary);
  border-radius: 2px;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
  margin: 0 0 1.15em;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(215, 38, 61, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.article-content a:hover {
  text-decoration-color: var(--primary);
}

.article-content blockquote {
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: var(--card-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: #6f665a;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
}

.article-content th,
.article-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.article-content th {
  background: var(--card-soft);
}

.article-content img {
  border-radius: var(--radius-md);
  height: auto;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.article-block {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-block__title {
  margin-bottom: 16px;
  font: 800 21px/1.2 "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-block__title::before {
  content: "";
  width: 5px;
  height: 19px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  padding: 20px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.related-card:hover {
  background: #fff;
  border-color: rgba(215, 38, 61, 0.25);
  box-shadow: 0 14px 30px rgba(84, 42, 18, 0.1);
  transform: translateY(-2px);
}

.related-card h3 {
  margin: 12px 0 8px;
  font-size: 17.5px;
  line-height: 1.45;
}

.related-card h3 a {
  color: var(--ink);
  transition: color 0.2s ease;
}

.related-card h3 a:hover {
  color: var(--primary);
}

.related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------- 评论区 ---------------- */
.comment-panel {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.msg,
#divCommentPost {
  margin: 18px 0 0;
  padding: 22px;
  background: var(--card-soft);
  border-radius: var(--radius-md);
  list-style: none;
}

.msghead {
  font-weight: 700;
}

.msgname {
  color: var(--muted);
}

.msgarticle {
  margin-top: 12px;
  color: var(--text);
}

.avatar {
  border-radius: 50%;
  vertical-align: middle;
}

#divCommentPost .text,
#divCommentPost textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#divCommentPost .text:focus,
#divCommentPost textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.12);
  outline: none;
}

#divCommentPost .button {
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #ef476f);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(215, 38, 61, 0.3);
  transition: all 0.2s ease;
}

#divCommentPost .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(215, 38, 61, 0.38);
}

/* ---------------- 分页 ---------------- */
.pager-wrap {
  margin-top: 28px;
}

.pagebar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-number {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: #5d564b;
  font-weight: 700;
  transition: all 0.2s ease;
}

.page-number:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.page-number.is-current {
  background: linear-gradient(135deg, var(--primary), #ef476f);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(215, 38, 61, 0.32);
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: 44px;
  padding: 48px 0 24px;
  background: linear-gradient(180deg, #22101a 0%, #170a11 100%);
  color: rgba(255, 235, 220, 0.78);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.footer-block h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-block h3::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.footer-intro p {
  color: rgba(255, 235, 220, 0.68);
  font-size: 14px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #fff;
  font: 800 23px/1.2 "PingFang SC", "Microsoft YaHei", sans-serif;
}

.footer-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  font-size: 20px;
  font-weight: 800;
  transform: rotate(-4deg);
  box-shadow: 0 8px 18px rgba(215, 38, 61, 0.4);
}

.footer-contact {
  margin-top: 10px;
  color: #ffbf87;
}

.footer-links li + li {
  margin-top: 9px;
}

.footer-links a {
  color: rgba(255, 235, 220, 0.75);
  font-size: 14px;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #ffbf87;
  padding-left: 5px;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 235, 220, 0.85);
}

.footer-tags a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.footer-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.footer-search input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: border-color 0.2s ease;
}

.footer-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.footer-search input::placeholder {
  color: rgba(255, 235, 220, 0.4);
}

.footer-search button {
  min-width: 88px;
  min-height: 46px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--primary), #ef476f);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(215, 38, 61, 0.35);
  transition: all 0.2s ease;
}

.footer-search button:hover {
  transform: translateY(-1px);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 235, 220, 0.45);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* ---------------- 404 ---------------- */
.not-found-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 34px;
}

.not-found-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--ink);
}

.not-found-card p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 680px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px auto 0;
  max-width: 560px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(215, 38, 61, 0.1);
}

.hero-search button {
  min-width: 120px;
  min-height: 52px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--primary), #ef476f);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(215, 38, 61, 0.32);
  transition: all 0.2s ease;
}

.hero-search button:hover {
  transform: translateY(-1px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .tc-home-section {
    grid-template-columns: 1fr;
  }

  .header-inner {
    grid-template-columns: auto auto auto;
    position: relative;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    display: none;
    justify-self: stretch;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    margin-left: 0;
    z-index: 50;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-menu {
    display: block;
  }

  .nav-menu > li + li {
    margin-top: 4px;
  }

  .nav-menu > li > a {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
  }

  .nav-menu > li > a::after {
    display: none;
  }

  .nav-menu > li > ul {
    position: static;
    display: block;
    margin-top: 8px;
    box-shadow: none;
    border-radius: 10px;
    left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    align-items: center;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .showcase-slide,
  .content-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .showcase-viewport {
    height: 780px;
    max-width: 100%;
  }

  .showcase-slide {
    gap: 16px;
  }

  .showcase-column--side {
    grid-template-rows: repeat(2, 180px);
  }

  .showcase-main {
    height: 380px;
  }

  .showcase-dots {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .site-header {
    backdrop-filter: none;
  }

  .topline-inner,
  .footer-bottom,
  .story-head,
  .hero-search,
  .footer-search {
    flex-direction: column;
    align-items: flex-start;
  }

  .topline-inner {
    padding: 8px 0;
    gap: 8px;
  }

  .topline-copy,
  .topline-side {
    gap: 8px 0;
  }

  .tc-module__head,
  .tc-side-module__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tc-module__tabs {
    justify-content: flex-start;
  }

  .tc-post-item {
    grid-template-columns: 1fr;
  }

  .tc-post-item__thumb img {
    aspect-ratio: 16 / 10;
  }

  .tc-post-item__content h3 {
    font-size: 19px;
  }

  .story-card,
  .article-card,
  .sidebar-card,
  .not-found-card {
    padding: 20px;
  }

  .showcase-viewport {
    height: 780px;
  }

  .showcase-main,
  .showcase-tile--small {
    min-height: 180px;
  }

  .showcase-main__content {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .showcase-main__content strong {
    font-size: 26px;
  }

  .showcase-main__badge {
    left: 16px;
    top: 16px;
  }

  .showcase-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 14px;
  }

  .showcase-dots {
    top: 12px;
    right: 14px;
  }

  .header-inner {
    min-height: 68px;
    gap: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 19px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero-search,
  .footer-search {
    width: 100%;
  }

  .hero-search input,
  .hero-search button,
  .footer-search input,
  .footer-search button {
    width: 100%;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    padding: 22px;
  }
}

/* ---------------- SEO 辅助：无障碍隐藏文本 ---------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- 上一篇 / 下一篇导航 ---------------- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.post-nav__link {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-soft);
  transition: all 0.22s ease;
  min-width: 0;
}

.post-nav__link--next {
  text-align: right;
  align-items: flex-end;
}

a.post-nav__link:hover {
  border-color: rgba(215, 38, 61, 0.35);
  background: #fff;
  box-shadow: 0 12px 26px rgba(84, 42, 18, 0.1);
  transform: translateY(-2px);
}

.post-nav__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
}

.post-nav__label::before {
  content: "← ";
}

.post-nav__link--next .post-nav__label::before {
  content: "";
}

.post-nav__link--next .post-nav__label::after {
  content: " →";
}

.post-nav__title {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

a.post-nav__link:hover .post-nav__title {
  color: var(--primary);
}

.post-nav__link.is-disabled {
  opacity: 0.55;
  cursor: default;
}

@media (max-width: 720px) {
  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav__link--next {
    text-align: left;
    align-items: flex-start;
  }

  .post-nav__link--next .post-nav__label::after {
    content: "";
  }

  .post-nav__link--next .post-nav__label::before {
    content: "← ";
  }
}
