/* =========================================================
   漫蛙在线观看免费阅读 - 全站样式表
   站点域名：iqcnr.cn
   视觉方向：技术工作台风格，中性底色，紧凑控件
   ========================================================= */

/* =========================================================
   1. base - 基础变量、重置、全局元素
   ========================================================= */

:root {
  --color-bg: #f5f6f7;
  --color-surface: #ffffff;
  --color-text: #2c3e50;
  --color-text-light: #5a6b7a;
  --color-primary: #3498db;
  --color-primary-dark: #2471a3;
  --color-accent: #e74c3c;
  --color-border: #dfe3e8;
  --color-border-light: #eef0f3;
  --color-hover-bg: #f0f4f8;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 2px rgba(44, 62, 80, 0.06);
  --shadow-md: 0 2px 8px rgba(44, 62, 80, 0.08);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --container-width: 1200px;
  --header-height: 64px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 12px;
}

/* =========================================================
   2. layout - 全站骨架布局
   ========================================================= */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-bg);
}

.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-lg);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 22px;
  background-color: var(--color-primary);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: -3px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle-icon {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-text);
  background-color: var(--color-hover-bg);
  text-decoration: none;
}

.nav-item.is-current .nav-link,
.nav-link.is-current {
  color: var(--color-primary);
  font-weight: 600;
  background-color: rgba(52, 152, 219, 0.08);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  padding-bottom: 0;
}

.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 24px 48px;
  width: 100%;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  padding: 8px 0;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: #a0adb8;
  font-size: 13px;
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* 页标题区 */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.page-description {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 720px;
  line-height: 1.7;
}

/* 页脚 */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.footer-brand {
  margin-bottom: 28px;
}

.footer-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: var(--color-text-light);
  max-width: 480px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border-light);
}

.footer-group h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group ul li a {
  font-size: 14px;
  color: var(--color-text-light);
}

.footer-group ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding-top: 16px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #8a97a5;
  margin-bottom: 0;
}

/* =========================================================
   3. components - 通用组件
   ========================================================= */

/* 区块标题 */
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 1.6;
  max-width: 720px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
  min-height: 44px;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: rgba(52, 152, 219, 0.08);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* 更多链接 */
.link-more {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  margin-top: 16px;
}

.link-more::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.link-more:hover::after {
  transform: translateX(3px);
}

/* 相关阅读侧栏 */
.related-links {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.related-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.related-list li {
  margin-bottom: 10px;
}

.related-list li a {
  font-size: 14px;
  color: var(--color-text-light);
  display: inline-block;
  line-height: 1.5;
}

.related-list li a:hover {
  color: var(--color-primary);
}

/* =========================================================
   4. pages - 首页
   ========================================================= */

/* 首屏 hero */
.hero {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.hero-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-figure img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* 题材分类导航带 */
.section-categories {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.tag:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: rgba(52, 152, 219, 0.04);
  text-decoration: none;
}

/* 最近更新 */
.section-latest {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-latest .section-title,
.section-latest .section-desc {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-latest .section-title {
  padding-top: 40px;
}

.section-latest .link-more {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
}

.update-group {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.update-group + .update-group {
  margin-top: 24px;
}

.update-date {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-light);
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.update-item {
  display: flex;
  gap: 14px;
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.update-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.update-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-status {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 500;
}

/* 人气榜单 */
.section-ranking {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rank-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rank-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
}

.rank-item img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.rank-info {
  min-width: 0;
}

.rank-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.rank-reason {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 阅读指南入口 */
.section-guide {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.section-guide .section-title,
.section-guide .section-desc {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-guide .section-title {
  padding-top: 40px;
}

.guide-cards {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.guide-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.guide-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
}

.card-link::after {
  content: "→";
  margin-left: 4px;
}

/* =========================================================
   5. pages - 题材分类页
   ========================================================= */

.category-list-section {
  margin-bottom: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-media {
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 16px 20px 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.category-card .card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
}

.category-card .card-link::after {
  content: "→";
  margin-left: 4px;
}

/* 题材说明 */
.category-desc-section {
  margin-bottom: 40px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.desc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.desc-item {
  padding: 16px;
  background-color: var(--color-bg);
  border-radius: var(--radius-sm);
}

.desc-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.desc-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 分类页相关阅读 */
.categories .related-links {
  margin-top: 8px;
}

/* =========================================================
   6. pages - 阅读指南页
   ========================================================= */

.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.guide-steps {
  margin-bottom: 8px;
}

.content-media-inline {
  margin: 20px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}

.content-media-inline img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.content-media-inline figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-text-light);
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.step-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: 12px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.step-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.step-text a {
  font-size: 14px;
  font-weight: 500;
}

/* 追更技巧区 */
.guide-tracking {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.tracking-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tracking-item {
  padding: 16px;
  background-color: var(--color-bg);
  border-radius: var(--radius-sm);
}

.tracking-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.tracking-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 指南页相关阅读 */
.guide .related-links ul li {
  margin-bottom: 12px;
}

.guide .related-links ul li a {
  font-size: 14px;
  color: var(--color-text-light);
}

.guide .related-links ul li a:hover {
  color: var(--color-primary);
}

/* =========================================================
   7. pages - 最近更新页
   ========================================================= */

.update-section {
  margin-bottom: 40px;
}

.update-section .section-title {
  margin-bottom: 6px;
}

.update-section .section-desc {
  margin-bottom: 20px;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.update-card {
  display: flex;
  gap: 14px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.update-cover {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.update-card .update-info {
  min-width: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.update-meta {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.update-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 相关推荐 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.related-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.related-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 0;
}

/* =========================================================
   8. pages - 人气榜单页
   ========================================================= */

.rank-section {
  margin-bottom: 40px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-list .rank-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rank-list .rank-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.rank-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.rank-cover {
  flex-shrink: 0;
}

.rank-cover img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.rank-list .rank-info {
  flex: 1;
  min-width: 0;
}

.rank-list .rank-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.rank-list .rank-reason {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 0;
}

/* 推荐理由 */
.reason-section {
  margin-bottom: 40px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reason-card {
  padding: 16px;
  background-color: var(--color-bg);
  border-radius: var(--radius-sm);
}

.reason-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.reason-card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.reason-more {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.reason-more a {
  font-size: 14px;
  font-weight: 500;
}

/* =========================================================
   9. pages - 追更技巧页
   ========================================================= */

.tracking-methods {
  margin-bottom: 40px;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.method-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.method-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.method-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
}

.method-content {
  min-width: 0;
}

.method-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.method-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.method-desc a {
  font-size: 14px;
  font-weight: 500;
}

/* 追更工具 */
.tracking-tools {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 40px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.tool-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tool-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.tool-intro {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-item {
  padding: 14px;
  background-color: var(--color-bg);
  border-radius: var(--radius-sm);
}

.tool-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.tool-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 0;
}

.tool-tip {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.tool-tip a {
  font-weight: 500;
}

/* 追更页相关链接 */
.tracking .related-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* =========================================================
   10. pages - 404 页面
   ========================================================= */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  min-height: 60vh;
}

.error-panel {
  text-align: center;
  max-width: 560px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 48px 40px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  min-height: 44px;
  transition: background-color 0.2s ease;
}

.error-button:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
}

.error-tips {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
  text-align: left;
}

.error-tips p {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}

.error-tips ul li {
  margin-bottom: 6px;
  font-size: 14px;
}

.error-tips ul li a {
  font-size: 14px;
}

/* =========================================================
   11. responsive - 响应式断点
   ========================================================= */

/* 平板竖屏及以下 */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px;
  }

  .hero-figure img {
    height: 280px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .tracking-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-figure img {
    height: 220px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tracking .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机端 */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    height: 56px;
    gap: 12px;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 8px 16px;
    gap: 2px;
    z-index: 99;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 12px 8px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }

  .inner-main {
    padding: 16px 16px 32px;
  }

  .breadcrumb {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .page-title {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .page-description {
    font-size: 15px;
  }

  .section-title {
    font-size: 20px;
  }

  /* 首页 */
  .hero-content {
    padding: 32px 16px;
    gap: 24px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-figure img {
    height: 200px;
  }

  .section-categories {
    padding: 32px 16px;
  }

  .category-tags {
    gap: 8px;
  }

  .tag {
    padding: 6px 12px;
    font-size: 13px;
  }

  .section-latest .section-title,
  .section-latest .section-desc {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-latest .section-title {
    padding-top: 32px;
  }

  .section-latest .link-more {
    padding-left: 16px;
    padding-right: 16px;
  }

  .update-group {
    padding: 0 16px;
  }

  .update-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .update-item {
    padding: 10px;
  }

  .section-ranking {
    padding: 32px 16px;
  }

  .ranking-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rank-item {
    padding: 14px;
  }

  .section-guide .section-title,
  .section-guide .section-desc {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-guide .section-title {
    padding-top: 32px;
  }

  .guide-cards {
    padding: 0 16px 32px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-card {
    padding: 20px;
  }

  /* 分类页 */
  .category-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-media img {
    height: 160px;
  }

  .desc-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 指南页 */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .content-media-inline img {
    height: 180px;
  }

  .tracking-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-tracking {
    padding: 16px;
  }

  /* 更新页 */
  .update-list {
    grid-template-columns: 1fr;
  }

  .update-card {
    padding: 10px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 榜单页 */
  .rank-list .rank-item {
    padding: 12px;
    gap: 12px;
  }

  .rank-number {
    font-size: 20px;
    min-width: 24px;
  }

  .reason-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reason-section {
    padding: 16px;
  }

  .reason-more {
    flex-direction: column;
    gap: 8px;
  }

  /* 追更页 */
  .method-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .method-card {
    padding: 16px;
  }

  .tracking-tools {
    padding: 16px;
  }

  .tool-figure img {
    height: 180px;
  }

  .tracking .related-grid {
    grid-template-columns: 1fr;
  }

  /* 页脚 */
  .footer-inner {
    padding: 32px 16px 20px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer-bottom {
    text-align: left;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  /* 404 */
  .error-main {
    padding: 40px 16px;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 56px;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .brand-name {
    font-size: 16px;
  }

  .brand-name::before {
    width: 4px;
    height: 18px;
    margin-right: 8px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .footer-group h4 {
    font-size: 14px;
  }

  .footer-group ul li a {
    font-size: 13px;
  }
}

/* =========================================================
   12. 辅助 - 滚动出现动画（增强，不影响初始可见性）
   ========================================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-categories,
.section-latest,
.section-ranking,
.section-guide,
.category-list-section,
.guide-steps,
.update-section,
.rank-section,
.tracking-methods {
  animation: fadeInUp 0.4s ease-out both;
}

/* 动画延迟，仅增强视觉层次 */
.section-latest {
  animation-delay: 0.05s;
}

.section-ranking {
  animation-delay: 0.1s;
}

.section-guide {
  animation-delay: 0.15s;
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .section-categories,
  .section-latest,
  .section-ranking,
  .section-guide,
  .category-list-section,
  .guide-steps,
  .update-section,
  .rank-section,
  .tracking-methods {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
