/* ==========================================================================
   羞羞漫画在线阅读 - 全站样式表
   版本: 1.0
   ========================================================================== */

/* ==========================================================================
   Base - 基础变量、重置、字体、颜色
   ========================================================================== */
:root {
  --color-bg: #f5f5f0;
  --color-surface: #ffffff;
  --color-text: #2c2c2c;
  --color-text-light: #6b6b6b;
  --color-border: #e0e0e0;
  --color-accent: #b8860b;
  --color-accent-dark: #9a7209;
  --color-accent-light: #f5e6c8;
  --color-muted: #fafaf7;

  --font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --container-width: 1200px;
  --container-padding: 0 24px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);

  --transition-base: 0.25s ease;
  --transition-fast: 0.15s 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-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--color-text);
  line-height: 1.35;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 12px;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* 无障碍辅助类 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Layout - 全局布局骨架：页头、页脚、主容器、栅格
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- 页头 --- */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand-logo {
  flex-shrink: 0;
}

.brand-logo a {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-logo a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* --- 导航 --- */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list a {
  font-size: 15px;
  color: var(--color-text);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--color-accent);
  font-weight: 600;
}

.nav-list a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 1px;
}

/* 汉堡按钮（默认隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-md);
  background-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  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 {
  flex: 1;
  width: 100%;
}

.home-main {
  width: 100%;
}

.inner-main {
  width: 100%;
  padding: 40px 0 60px;
}

/* 内页布局容器 */
.layout-shell,
.page-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.layout-shell .main-content,
.page-layout .main-content {
  min-width: 0;
}

.layout-shell .sidebar,
.page-layout .sidebar,
.layout-shell .side-content,
.page-layout .side-content {
  min-width: 0;
}

/* --- 面包屑 --- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.breadcrumb-sep {
  color: var(--color-border);
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* --- 页面标题区 --- */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.page-description {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 720px;
}

/* --- 页脚 --- */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
  margin-top: auto;
}

.footer-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
  display: grid;
  gap: 20px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-note {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 800px;
}

.copyright {
  font-size: 13px;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  margin-top: 8px;
}

/* ==========================================================================
   Components - 通用组件：卡片、按钮、标签、列表、侧栏模块
   ========================================================================== */

/* --- 按钮 --- */
.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--color-accent);
  color: var(--color-surface);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-surface);
  text-decoration: none;
  transform: translateY(-2px);
}

/* --- 区块标题 --- */
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

/* --- 更多链接 --- */
.more-link {
  text-align: center;
  margin-top: 24px;
}

.more-link a {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-accent);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.more-link a:hover {
  background-color: var(--color-accent);
  color: var(--color-surface);
  text-decoration: none;
}

/* --- 内联链接 --- */
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  padding: 16px;
  background-color: var(--color-muted);
  border-radius: var(--radius-md);
  font-size: 14px;
}

.inline-links a {
  color: var(--color-accent);
}

/* --- 侧栏模块（通用） --- */
.sidebar,
.side-content {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar h2,
.side-content h2,
.side-card h2,
.side-module h2,
.side-categories h2,
.side-guide h2,
.sidebar-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent-light);
  color: var(--color-text);
}

.side-links,
.side-list,
.sidebar-list,
.side-cat-list,
.side-guide-list {
  display: grid;
  gap: 10px;
}

.side-links a,
.side-list a,
.sidebar-list a,
.side-cat-list a,
.side-guide-list a {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.side-links a:hover,
.side-list a:hover,
.sidebar-list a:hover,
.side-cat-list a:hover,
.side-guide-list a:hover {
  color: var(--color-accent);
  padding-left: 6px;
  text-decoration: none;
}

.side-note {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 16px;
  line-height: 1.6;
}

/* --- 侧栏卡片（update 页） --- */
.side-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* --- 侧栏模块（guide 页） --- */
.side-module {
  margin-bottom: 28px;
}

.side-module:last-child {
  margin-bottom: 0;
}

.side-media {
  margin-top: 24px;
}

.side-media figure {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.side-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.side-media figcaption {
  font-size: 13px;
  color: var(--color-text-light);
  padding-top: 10px;
  line-height: 1.5;
}

/* --- 侧栏卡片（tips 页） --- */
.sidebar-card {
  margin-bottom: 28px;
}

.sidebar-card:last-child {
  margin-bottom: 0;
}

/* --- 侧栏（ranking 页） --- */
.side-categories {
  margin-bottom: 32px;
}

.side-guide {
  /* 与 side-categories 一致 */
}

/* --- 侧栏（categories 页） --- */
.side-hot {
  /* 继承通用侧栏样式 */
}

/* ==========================================================================
   Pages - 首页
   ========================================================================== */

/* --- 首屏卡片流 --- */
.hero-cards {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.hero-feature {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-md);
  min-height: 360px;
}

.hero-figure {
  position: relative;
  height: 100%;
  min-height: 360px;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 28px 28px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    transparent 100%
  );
  color: var(--color-surface);
}

.hero-caption h1 {
  color: var(--color-surface);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-caption p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 480px;
}

.hero-caption .btn-primary {
  background-color: var(--color-accent);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

.mini-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.mini-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.mini-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.mini-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.mini-card p:last-child {
  margin-bottom: 0;
}

.mini-card a {
  font-weight: 500;
  font-size: 14px;
}

/* --- 题材分类导航带 --- */
.category-strip {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list li {
  margin: 0;
}

.tag-list a {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--color-text);
  transition: border-color var(--transition-fast), color var(--transition-fast),
    background-color var(--transition-fast);
}

.tag-list a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: var(--color-accent-light);
  text-decoration: none;
}

/* --- 最近更新预览 --- */
.update-preview {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid var(--color-border);
}

.update-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.update-item {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

.update-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.update-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.update-item div {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.update-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.update-item h3 a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.update-item h3 a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.update-item p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 0;
}

.update-item p a {
  color: var(--color-accent);
  font-size: 13px;
}

/* --- 人气榜单预览 --- */
.ranking-preview {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid var(--color-border);
}

.ranking-list {
  display: grid;
  gap: 12px;
  counter-reset: rank-counter;
}

.ranking-list li {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.ranking-list li:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.rank-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
  min-width: 36px;
  text-align: center;
}

.ranking-list li:nth-child(1) .rank-num {
  color: var(--color-accent-dark);
  font-size: 32px;
}

.ranking-list li:nth-child(2) .rank-num {
  color: var(--color-accent);
  font-size: 30px;
}

.ranking-list li:nth-child(3) .rank-num {
  color: var(--color-text-light);
  font-size: 30px;
}

.ranking-list li div {
  flex: 1;
  min-width: 0;
}

.ranking-list h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ranking-list h3 a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.ranking-list h3 a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.ranking-list p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- 阅读指南与追更技巧入口 --- */
.guide-entry {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 56px;
  border-top: 1px solid var(--color-border);
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.guide-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.guide-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.guide-card img {
  width: 180px;
  flex-shrink: 0;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.guide-card div {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.guide-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.guide-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 14px;
}

.guide-card a {
  font-weight: 500;
  font-size: 14px;
}

/* ==========================================================================
   Pages - 题材分类页（categories.html）
   ========================================================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.category-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.category-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.category-card h3 {
  font-size: 17px;
  font-weight: 600;
  padding: 16px 16px 4px;
}

.category-card h3 a {
  color: var(--color-text);
}

.category-card h3 a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.category-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  padding: 0 16px;
  margin-bottom: 0;
}

.category-card p:last-child {
  padding-bottom: 16px;
}

.category-card p a {
  font-size: 13px;
  color: var(--color-accent);
}

.category-intro {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.category-intro h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.category-intro p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ==========================================================================
   Pages - 阅读指南页（guide.html）
   ========================================================================== */

.guide-section {
  margin-bottom: 40px;
}

.guide-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent-light);
}

.lead-text {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.step-list {
  display: grid;
  gap: 16px;
}

.step-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.step-card:hover {
  box-shadow: var(--shadow-md);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
  min-width: 36px;
  text-align: center;
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* FAQ 区块 */
.faq-section {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 40px;
  list-style: none;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--color-accent);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  color: var(--color-accent);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ==========================================================================
   Pages - 最近更新页（update.html）
   ========================================================================== */

.update-group-block {
  margin-bottom: 40px;
}

.update-group-block h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent-light);
}

.update-day-group {
  margin-bottom: 28px;
}

.update-day-group h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--color-accent);
  padding-left: 12px;
  border-left: 3px solid var(--color-accent);
}

.update-list {
  display: grid;
  gap: 12px;
}

.update-list .update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}

.update-list .update-item img {
  width: 64px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.update-list .update-item div {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.update-list .update-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.update-list .update-item p {
  font-size: 13px;
  margin-bottom: 0;
}

.update-list-block {
  margin-bottom: 0;
}

.update-list-block h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent-light);
}

.recent-list {
  display: grid;
  gap: 12px;
}

.recent-list li {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.recent-list li:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.recent-list a {
  color: var(--color-text);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.recent-list a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.recent-list span {
  font-size: 12px;
  color: var(--color-text-light);
  white-space: nowrap;
}

/* ==========================================================================
   Pages - 人气榜单页（ranking.html）
   ========================================================================== */

.ranking-list-section {
  margin-bottom: 40px;
}

.ranking-list-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-intro {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.ranking-item {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 44px 72px minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.ranking-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ranking-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
  text-align: center;
  padding-top: 4px;
}

.ranking-item:nth-child(1) .ranking-num {
  color: var(--color-accent-dark);
  font-size: 36px;
}

.ranking-item:nth-child(2) .ranking-num {
  color: var(--color-accent);
  font-size: 34px;
}

.ranking-item:nth-child(3) .ranking-num {
  color: var(--color-text-light);
  font-size: 34px;
}

.ranking-cover img {
  width: 72px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.ranking-info {
  min-width: 0;
}

.ranking-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.ranking-info h3 a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.ranking-info h3 a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.ranking-tags {
  font-size: 13px;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.ranking-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.ranking-reason {
  background-color: var(--color-muted);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  min-width: 0;
}

.ranking-reason h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-accent);
}

.ranking-reason p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.ranking-note-section {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.ranking-note-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ranking-note-section p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 10px;
}

.ranking-note-section p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Pages - 追更技巧页（tips.html）
   ========================================================================== */

.tips-section {
  margin-bottom: 40px;
}

.tips-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent-light);
}

.tips-section .section-intro {
  margin-bottom: 20px;
}

.tip-item {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.tip-item:hover {
  box-shadow: var(--shadow-md);
}

.tip-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.tip-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

.related-links {
  background-color: var(--color-muted);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 32px;
}

.related-links p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.related-links a {
  color: var(--color-accent);
  font-weight: 500;
}

/* tips 页末尾图片 */
.tips-figure {
  max-width: var(--container-width);
  margin: 40px auto 0;
  padding: 0 24px;
}

.tips-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.tips-figure figcaption {
  font-size: 13px;
  color: var(--color-text-light);
  padding-top: 10px;
  text-align: center;
  line-height: 1.5;
}

/* ==========================================================================
   Pages - 404 错误页
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  min-height: 60vh;
}

.error-panel {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.error-code {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-back,
.btn-categories {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: background-color var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.btn-back {
  background-color: var(--color-accent);
  color: var(--color-surface);
}

.btn-back:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-surface);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-categories {
  background-color: var(--color-surface);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-categories:hover {
  background-color: var(--color-accent-light);
  color: var(--color-accent-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

.error-help {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.error-help a {
  color: var(--color-accent);
  font-weight: 500;
}

/* ==========================================================================
   Responsive - 响应式断点
   ========================================================================== */

/* --- 小于 1024px：首页更新预览 5 列降 3 列，内页侧栏收窄 --- */
@media (max-width: 1024px) {
  .update-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-cards {
    grid-template-columns: 1fr;
  }

  .hero-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .layout-shell,
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }

  .ranking-item {
    grid-template-columns: 36px 64px minmax(0, 1fr);
  }

  .ranking-reason {
    grid-column: 2 / -1;
  }
}

/* --- 小于 768px：移动端布局 --- */
@media (max-width: 768px) {
  .header-shell {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding: 8px 16px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    padding: 12px 0;
    border-top: 1px solid var(--color-border);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 12px 8px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .nav-list a:hover {
    background-color: var(--color-muted);
  }

  .nav-list a.is-current {
    background-color: var(--color-accent-light);
  }

  .nav-list a.is-current::after {
    display: none;
  }

  /* 内页布局改为单列 */
  .layout-shell,
  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
  }

  .inner-main {
    padding: 24px 0 48px;
  }

  .sidebar,
  .side-content {
    order: 2;
  }

  /* 首页模块间距调整 */
  .hero-cards {
    padding: 20px 16px 32px;
    gap: 16px;
  }

  .hero-feature {
    min-height: 280px;
  }

  .hero-figure {
    min-height: 280px;
  }

  .hero-caption {
    padding: 20px 20px 20px;
  }

  .hero-caption h1 {
    font-size: 22px;
  }

  .category-strip,
  .update-preview,
  .ranking-preview,
  .guide-entry {
    padding: 32px 16px;
  }

  .update-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .guide-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-card img {
    width: 140px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .ranking-item {
    grid-template-columns: 32px 56px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .ranking-cover img {
    width: 56px;
  }

  .page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .footer-shell {
    padding: 0 16px;
  }

  .site-footer {
    padding: 32px 0 24px;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 56px;
  }
}

/* --- 小于 480px：小屏手机 --- */
@media (max-width: 480px) {
  .hero-side {
    grid-template-columns: 1fr;
  }

  .update-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    flex-direction: column;
  }

  .guide-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .ranking-item {
    grid-template-columns: 28px 48px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .ranking-cover img {
    width: 48px;
  }

  .ranking-reason {
    grid-column: 1 / -1;
  }

  .step-card {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }

  .step-num {
    text-align: left;
  }

  .footer-links {
    gap: 10px 16px;
  }

  .footer-links a {
    font-size: 13px;
  }
}

/* --- 滚动出现动画（增强，不影响初始可见性） --- */
@media (prefers-reduced-motion: no-preference) {
  .update-item,
  .category-card,
  .guide-card,
  .ranking-item,
  .tip-item,
  .step-card {
    transition: box-shadow var(--transition-base), transform var(--transition-base);
  }
}
