/* ============================================================
   天堂漫画 - 整站样式表
   站点：lsjxtfsb.com
   风格：技术工作台风中性底色 + 紧凑控件 + 少量亮色强调
   ============================================================ */

/* ============================================================
   1. Base - 基础变量、重置、字体与通用元素
   ============================================================ */
:root {
  --bg-body: #f5f6f8;
  --bg-card: #ffffff;
  --color-primary: #2563eb;
  --color-accent: #f59e0b;
  --color-text: #1f2937;
  --color-text-secondary: #6b7280;
  --color-border: #e5e7eb;
  --color-border-light: #f0f1f3;
  --color-bg-soft: #f9fafb;
  --radius-card: 8px;
  --radius-small: 4px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --container-width: 1200px;
  --header-height: 64px;
  --transition-fast: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--bg-body);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

ul,
ol {
  list-style-position: inside;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.35;
  color: var(--color-text);
  font-weight: 700;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 0.8em;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============================================================
   2. Layout - 全局骨架：容器、页头、页脚、主区域
   ============================================================ */

/* 站点主容器：统一宽度 1200px */
.site-header .header-inner,
.site-main,
.site-footer .footer-columns,
.site-footer .footer-bottom {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- 页头 ---------- */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

.brand-slogan {
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-small);
  line-height: 1.4;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-list a:hover {
  background-color: var(--bg-soft);
  color: var(--color-primary);
  text-decoration: none;
}

.nav-list a.is-current {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  font-weight: 600;
}

/* 移动端汉堡按钮（默认隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  cursor: pointer;
  padding: 10px 8px;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 主内容区 ---------- */
.site-main {
  min-height: 60vh;
  padding-top: 32px;
  padding-bottom: 48px;
}

.home-main {
  padding-top: 0;
}

.inner-main {
  padding-top: 24px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--color-text-secondary);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: #9ca3af;
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* ---------- 页面标题区（内页统一） ---------- */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  max-width: 68ch;
  margin-bottom: 0;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--color-border);
  padding-top: 40px;
  padding-bottom: 24px;
  margin-top: 48px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding-top: 16px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.footer-bottom p {
  margin-bottom: 4px;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   3. Components - 通用组件
   ============================================================ */

/* ---------- 区块标题 ---------- */
.section-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.35;
}

.section-lead {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  max-width: 72ch;
}

.section-note {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

/* ---------- 表格 ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background-color: var(--bg-card);
}

.mini-compare-table,
.compare-table {
  min-width: 640px;
  font-size: 14px;
}

.mini-compare-table th,
.mini-compare-table td,
.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

.mini-compare-table thead th,
.compare-table thead th {
  background-color: var(--color-bg-soft);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.mini-compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.mini-compare-table tbody tr:hover td,
.compare-table tbody tr:hover td {
  background-color: var(--color-bg-soft);
}

.table-note {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 12px;
}

/* ---------- 特性列表 ---------- */
.feature-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.feature-list li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 相关链接区（首页与内页通用） ---------- */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.related-links-item {
  font-size: 14px;
  color: var(--color-primary);
}

.related-links-item:hover {
  text-decoration: underline;
}

/* ---------- 图片容器 ---------- */
figure {
  margin: 0;
}

.topic-figure,
.trend-figure,
.table-illustration,
.hero-figure,
.tip-figure,
.content-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background-color: var(--color-bg-soft);
}

.topic-figure img,
.trend-figure img,
.table-illustration img,
.hero-figure img,
.tip-figure img,
.content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 12px;
  color: var(--color-text-secondary);
  padding: 8px 12px;
  background-color: var(--color-bg-soft);
  border-top: 1px solid var(--color-border-light);
  line-height: 1.5;
}

/* ============================================================
   4. Pages - 首页
   ============================================================ */

/* ---------- 首屏 Hero ---------- */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0 40px;
}

.hero-copy {
  max-width: 520px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.hero-cta {
  margin-bottom: 0;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-small);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  color: #ffffff;
  text-decoration: none;
}

/* 首屏右侧三分类入口卡片 */
.hero-entry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.entry-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.entry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-small);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.entry-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.entry-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* 首屏主图 */
.hero-figure {
  grid-column: 1 / -1;
  height: 220px;
  margin-top: 8px;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- 分类锚点导航条 ---------- */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  margin-bottom: 32px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.anchor-nav a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  transition: border-color var(--transition-fast), color var(--transition-fast),
    background-color var(--transition-fast);
  text-decoration: none;
}

.anchor-nav a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: rgba(37, 99, 235, 0.04);
}

/* ---------- 最近更新 ---------- */
.recent-updates {
  margin-bottom: 40px;
}

.update-card-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.update-card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.update-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.update-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.update-card h3 {
  font-size: 16px;
  font-weight: 700;
  padding: 12px 14px 4px;
}

.update-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  padding: 0 14px 14px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ---------- 热门题材对比简表 ---------- */
.compare-preview {
  margin-bottom: 40px;
}

/* ---------- 分类封面索引 ---------- */
.category-index {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cover-card {
  display: block;
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cover-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.cover-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.cover-card h3 {
  font-size: 16px;
  font-weight: 700;
  padding: 12px 14px 4px;
  color: var(--color-text);
}

.cover-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  padding: 0 14px 14px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ---------- 阅读提示区（首页） ---------- */
.home-main .reading-tips {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.home-main .reading-tips .section-title {
  margin-bottom: 8px;
}

.home-main .reading-tips p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.home-main .reading-tips a {
  display: inline-block;
  margin-right: 20px;
  margin-top: 8px;
  font-weight: 500;
}

/* ============================================================
   5. Pages - 题材百科页
   ============================================================ */

/* 题材摘要列表 */
.topic-summary-section {
  margin-bottom: 40px;
}

.topic-summary-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.summary-card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 16px;
  transition: border-color var(--transition-fast);
}

.summary-card:hover {
  border-color: var(--color-primary);
}

.summary-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.summary-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 题材明细区块 */
.topic-detail-section {
  margin-bottom: 40px;
}

.topic-block {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 20px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.topic-media {
  align-self: start;
}

.topic-figure {
  height: 200px;
}

.topic-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-content {
  min-width: 0;
}

.topic-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.topic-def {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.topic-subtitle {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 12px;
}

.topic-audience {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* 相关题材链接 */
.related-links-section {
  margin-bottom: 24px;
}

.related-links-list {
  list-style: none;
}

.related-links-list li {
  margin-bottom: 8px;
}

.related-links-list a {
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   6. Pages - 题材对比页
   ============================================================ */

.section-block {
  margin-bottom: 40px;
}

/* 关键结论 */
.summary-list {
  list-style: none;
}

.summary-item {
  position: relative;
  padding: 14px 16px 14px 40px;
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.summary-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background-color: var(--color-accent);
}

/* 对比表格区 */
.compare-table-section .table-scroll {
  margin-bottom: 16px;
}

.compare-table th,
.compare-table td {
  min-width: 140px;
}

.compare-table tbody th {
  background-color: var(--color-bg-soft);
  font-weight: 700;
  white-space: nowrap;
  width: 100px;
  min-width: 100px;
}

.table-illustration {
  max-width: 260px;
  margin: 16px 0 0;
}

.table-illustration img {
  height: 160px;
  object-fit: cover;
  width: 100%;
}

/* 题材详述 */
.topic-details .topic-item {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin-bottom: 14px;
}

.topic-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.topic-item p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  line-height: 1.7;
}

.topic-item .feature-list {
  margin-bottom: 0;
}

/* 偏好建议 */
.preference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pref-card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
}

.pref-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.pref-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 热度提示 */
.trend-note p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.trend-note a {
  font-weight: 500;
}

/* ============================================================
   7. Pages - 热度风向页
   ============================================================ */

/* 热门题材摘要 */
.trend-summary-section {
  margin-bottom: 40px;
}

.trend-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trend-card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  transition: border-color var(--transition-fast);
}

.trend-card:hover {
  border-color: var(--color-primary);
}

.trend-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.trend-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  background-color: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border-radius: 999px;
  white-space: nowrap;
}

.trend-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0;
}

.trend-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 趋势变化说明 */
.trend-change-section {
  margin-bottom: 40px;
}

.trend-media-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.trend-figure {
  height: 200px;
}

.trend-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trend-copy {
  min-width: 0;
}

.trend-copy p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.trend-copy p:last-child {
  margin-bottom: 0;
}

/* 阅读风向建议 */
.trend-advice-section {
  margin-bottom: 40px;
}

.advice-list {
  list-style: none;
}

.advice-list li {
  position: relative;
  padding: 12px 16px 12px 36px;
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.advice-list li::before {
  content: "→";
  position: absolute;
  left: 16px;
  color: var(--color-primary);
  font-weight: 700;
}

/* 相关题材链接 */
.trend-links-section {
  margin-bottom: 24px;
}

.trend-links-section .related-links {
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trend-links-section .related-links a {
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   8. Pages - 阅读帮助页（FAQ）
   ============================================================ */

.faq-layout {
  max-width: 800px;
  margin: 0 auto;
}

.faq-section {
  margin-bottom: 40px;
}

.faq-section h2,
.reading-tips h2,
.feedback-guide h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}

.faq-list {
  margin-bottom: 8px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
  transition: background-color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--color-primary);
}

.faq-item summary:hover {
  background-color: var(--color-bg-soft);
}

.faq-content {
  padding: 0 18px 16px;
  border-top: 1px solid var(--color-border-light);
}

.faq-content p {
  padding-top: 14px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 0;
}

/* 阅读与浏览建议 */
.faq-layout .reading-tips {
  margin-bottom: 40px;
}

.tip-figure {
  max-width: 320px;
  height: 160px;
  margin-bottom: 16px;
}

.tip-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tip-list {
  padding-left: 20px;
}

.tip-list li {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

/* 反馈指引 */
.feedback-guide p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.feedback-guide a {
  font-weight: 500;
}

/* ============================================================
   9. Pages - 站点说明页
   ============================================================ */

.statement-layout {
  max-width: 800px;
  margin: 0 auto;
}

.statement-block {
  margin-bottom: 36px;
}

.statement-block h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.statement-block p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.statement-block p:last-child {
  margin-bottom: 0;
}

.content-media-inline {
  max-width: 320px;
  height: 160px;
  margin-bottom: 16px;
}

.content-media-inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 相关页面 */
.related-links {
  margin-top: 24px;
}

.related-list {
  list-style: none;
}

.related-list li {
  margin-bottom: 8px;
}

.related-list a {
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   10. Pages - 404
   ============================================================ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding-top: 48px;
  padding-bottom: 48px;
}

.error-section {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.error-section h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 8px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.error-home-link {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: var(--radius-small);
  transition: background-color var(--transition-fast);
  text-decoration: none;
}

.error-home-link:hover {
  background-color: #1d4ed8;
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   11. Responsive - 响应式规则
   ============================================================ */

/* ---------- 平板（≤1024px） ---------- */
@media (max-width: 1024px) {
  .hero-section {
    gap: 24px;
  }

  .cover-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .update-card-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .topic-summary-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .topic-block {
    grid-template-columns: 280px 1fr;
  }
}

/* ---------- 手机（≤768px） ---------- */
@media (max-width: 768px) {
  .site-header .header-inner,
  .site-main,
  .site-footer .footer-columns,
  .site-footer .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    height: 56px;
    gap: 12px;
  }

  .brand-slogan {
    display: none;
  }

  .brand-name {
    font-size: 20px;
  }

  /* 移动导航 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--color-border);
    padding: 0 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 12px;
    font-size: 15px;
    border-radius: var(--radius-small);
  }

  .nav-list a.is-current {
    background-color: rgba(37, 99, 235, 0.08);
  }

  .site-main {
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .page-title {
    font-size: 26px;
  }

  /* 首页 Hero */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0 24px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-entry-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .entry-card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
  }

  .entry-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .hero-figure {
    height: 180px;
  }

  /* 首页锚点导航 */
  .anchor-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px 0;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
  }

  .anchor-nav a {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 13px;
  }

  /* 首页更新列表：横向滑动 */
  .recent-updates {
    margin-bottom: 32px;
  }

  .update-card-list {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .update-card {
    flex: 0 0 220px;
    min-width: 220px;
  }

  /* 首页封面索引：两列 */
  .cover-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cover-card img {
    height: 120px;
  }

  /* 首页对比表 */
  .compare-preview {
    margin-bottom: 32px;
  }

  /* 阅读提示区 */
  .home-main .reading-tips {
    padding: 20px;
  }

  .home-main .reading-tips a {
    display: block;
    margin-right: 0;
    margin-bottom: 4px;
  }

  /* 页脚 */
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    font-size: 12px;
  }

  /* 百科页 */
  .topic-summary-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .summary-card {
    padding: 14px 16px;
  }

  .topic-block {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .topic-figure {
    height: 180px;
  }

  /* 对比页 */
  .summary-item {
    padding: 12px 14px 12px 36px;
  }

  .summary-item::before {
    top: 18px;
  }

  .preference-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .table-illustration {
    max-width: 100%;
  }

  /* 热度风向页 */
  .trend-summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trend-media-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .trend-figure {
    height: 180px;
  }

  /* FAQ 页 */
  .faq-layout {
    max-width: 100%;
  }

  .faq-item summary {
    padding: 12px 40px 12px 14px;
    font-size: 14px;
  }

  .faq-content {
    padding: 0 14px 14px;
  }

  /* 站点说明页 */
  .statement-layout {
    max-width: 100%;
  }

  /* 404 */
  .error-code {
    font-size: 48px;
  }

  .error-section h1 {
    font-size: 26px;
  }
}

/* ---------- 小屏手机（≤390px） ---------- */
@media (max-width: 390px) {
  .cover-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cover-card img {
    height: 110px;
  }

  .cover-card h3 {
    font-size: 14px;
    padding: 10px 10px 2px;
  }

  .cover-card p {
    font-size: 12px;
    padding: 0 10px 10px;
  }

  .update-card {
    flex-basis: 200px;
    min-width: 200px;
  }

  .update-card img {
    height: 120px;
  }

  .hero-title {
    font-size: 24px;
  }

  .entry-card {
    padding: 12px 14px;
  }

  .footer-columns {
    gap: 20px;
  }
}
