/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2c3e50;
  background: #f8f9fa;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e74c3c;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  color: #2c3e50;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #ecf0f1;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
}

.brand-tag {
  font-size: 12px;
  color: #bdc3c7;
  letter-spacing: 0;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: #34495e;
  border-radius: 4px;
  line-height: 1.5;
}

.site-nav .nav-list a:hover {
  color: #e74c3c;
  background: #fdf0ef;
}

.site-nav .nav-list a.is-current {
  color: #e74c3c;
  background: #fdf0ef;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid #ecf0f1;
  border-radius: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #2c3e50;
  border-radius: 1px;
  margin: 0 auto;
}

.site-main {
  min-height: 60vh;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.site-footer {
  background: #2c3e50;
  color: #ecf0f1;
  margin-top: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-brand-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: #bdc3c7;
  max-width: 480px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid #40556a;
  border-bottom: 1px solid #40556a;
  margin-bottom: 24px;
}

.footer-group-title {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-group li {
  margin-bottom: 10px;
}

.footer-group a {
  font-size: 14px;
  color: #bdc3c7;
}

.footer-group a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 8px;
  padding-bottom: 8px;
}

.footer-bottom p {
  font-size: 13px;
  color: #8fa3b8;
}

/* 面包屑 */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #95a5a6;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #7f8c8d;
}

.breadcrumb a:hover {
  color: #e74c3c;
}

.breadcrumb-sep {
  color: #bdc3c7;
}

.breadcrumb-current {
  color: #2c3e50;
}

/* 页面标题区 */

.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #ecf0f1;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: #7f8c8d;
  max-width: 760px;
}

/* ==========================================================================
   Components
   ========================================================================== */

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: #7f8c8d;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

/* 通用链接按钮 */

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  background: #e74c3c;
  color: #ffffff;
  border: 1px solid #e74c3c;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-btn:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #ffffff;
}

.hero-btn-secondary {
  background: transparent;
  color: #2c3e50;
  border-color: #bdc3c7;
}

.hero-btn-secondary:hover {
  background: #ecf0f1;
  border-color: #95a5a6;
  color: #2c3e50;
}

/* 卡片通用 */

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: #e74c3c;
}

.card-link:hover {
  color: #c0392b;
}

/* ==========================================================================
   首页
   ========================================================================== */

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* Hero */

.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 48px;
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.35;
  color: #2c3e50;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  color: #7f8c8d;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px 0;
  border-top: 1px solid #ecf0f1;
  border-bottom: 1px solid #ecf0f1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #e74c3c;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: #95a5a6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hero-figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #ecf0f1;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-figure:hover {
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.15);
  transform: translateY(-2px);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: #34495e;
  background: #ffffff;
  line-height: 1.5;
}

.hero-figure:first-child {
  grid-row: span 2;
}

.hero-figure:first-child img {
  aspect-ratio: 3 / 4;
  height: 100%;
}

/* 题材分类导航 */

.subject-nav-section {
  padding: 48px 0;
  border-top: 1px solid #ecf0f1;
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.subject-tag {
  display: inline-block;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  color: #34495e;
  background: #ffffff;
  border: 1px solid #dce1e6;
  border-radius: 6px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.subject-tag:hover {
  color: #e74c3c;
  border-color: #e74c3c;
  background: #fdf0ef;
}

.subject-nav-more {
  margin-top: 8px;
}

.subject-nav-more a {
  font-size: 14px;
  color: #e74c3c;
  font-weight: 500;
}

/* 最近更新 */

.recent-list-section {
  padding: 48px 0;
  border-top: 1px solid #ecf0f1;
}

.recent-group {
  margin-bottom: 36px;
}

.recent-date {
  font-size: 16px;
  font-weight: 600;
  color: #34495e;
  padding-bottom: 12px;
  border-bottom: 1px solid #ecf0f1;
  margin-bottom: 20px;
}

.recent-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.recent-item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.recent-item:hover {
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
  transform: translateY(-2px);
}

.recent-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.recent-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.recent-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.5;
}

.recent-chapter {
  font-size: 13px;
  color: #95a5a6;
}

.recent-status {
  display: inline-block;
  align-self: flex-start;
  margin: 0 14px 14px;
  padding: 3px 10px;
  font-size: 12px;
  color: #e74c3c;
  background: #fdf0ef;
  border-radius: 4px;
}

.recent-more {
  margin-top: 8px;
  text-align: right;
}

.recent-more a {
  font-size: 14px;
  color: #e74c3c;
  font-weight: 500;
}

/* 人气榜单预览 */

.rank-preview-section {
  padding: 48px 0;
  border-top: 1px solid #ecf0f1;
}

.rank-preview-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: rank;
}

.rank-preview-item {
  position: relative;
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rank-preview-item:hover {
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
  transform: translateY(-2px);
}

.rank-preview-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}

.rank-number {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: #e74c3c;
  border-radius: 4px;
}

.rank-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
  line-height: 1.5;
}

.rank-reason {
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.6;
}

.rank-more {
  margin-top: 24px;
  text-align: right;
}

.rank-more a {
  font-size: 14px;
  color: #e74c3c;
  font-weight: 500;
}

/* 阅读指南与追更技巧入口 */

.guide-tips-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 48px 0;
  border-top: 1px solid #ecf0f1;
}

.guide-card,
.tips-card {
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 32px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.guide-card:hover,
.tips-card:hover {
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
  transform: translateY(-2px);
}

.guide-card h2,
.tips-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.guide-card p,
.tips-card p {
  font-size: 15px;
  color: #7f8c8d;
  line-height: 1.7;
}

/* ==========================================================================
   内页：题材分类
   ========================================================================== */

.subject-list {
  margin-bottom: 48px;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.subject-card {
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.subject-card:hover {
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
  transform: translateY(-2px);
}

.subject-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
}

.subject-name {
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.subject-desc {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 16px;
}

.subject-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #e74c3c;
}

.subject-link:hover {
  color: #c0392b;
}

.works-grid {
  margin-bottom: 48px;
}

.works-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-item {
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 20px 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.work-item:hover {
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
  transform: translateY(-2px);
}

.work-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.work-desc {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 12px;
}

.work-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #e74c3c;
}

.category-guide {
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 32px;
}

.category-guide p {
  font-size: 15px;
  color: #34495e;
  line-height: 1.8;
  margin-bottom: 16px;
}

.category-guide p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   内页：阅读指南
   ========================================================================== */

.guide-nav {
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 40px;
}

.guide-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-nav-list li {
  flex: 0 0 auto;
}

.guide-nav-list a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #34495e;
  background: #f8f9fa;
  border: 1px solid #ecf0f1;
  border-radius: 4px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.guide-nav-list a:hover {
  color: #e74c3c;
  border-color: #e74c3c;
  background: #fdf0ef;
}

.guide-content {
  max-width: 860px;
}

.guide-section {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}

.guide-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #ecf0f1;
}

.guide-section-desc {
  font-size: 15px;
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 24px;
}

.guide-step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-step {
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 24px;
}

.guide-step-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
}

.guide-step p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 12px;
}

.guide-step a {
  font-size: 14px;
  font-weight: 600;
  color: #e74c3c;
}

.guide-tip-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-tip {
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 24px;
}

.guide-tip-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
}

.guide-tip p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.7;
}

.guide-method-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-method {
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 24px;
}

.guide-method-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
}

.guide-method p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 12px;
}

.guide-method a {
  font-size: 14px;
  font-weight: 600;
  color: #e74c3c;
}

.guide-media {
  margin: 40px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #ecf0f1;
}

.guide-media-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-media figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: #7f8c8d;
  background: #ffffff;
}

.related-links {
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 24px 32px;
  margin-top: 40px;
}

.related-links-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
}

.related-links-list li {
  margin-bottom: 10px;
}

.related-links-list a {
  font-size: 15px;
  color: #34495e;
}

.related-links-list a:hover {
  color: #e74c3c;
}

/* ==========================================================================
   内页：最近更新
   ========================================================================== */

.timeline-intro {
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.timeline-intro p {
  font-size: 15px;
  color: #34495e;
  line-height: 1.7;
}

.update-group {
  margin-bottom: 48px;
}

.update-group-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  padding-bottom: 12px;
  border-bottom: 2px solid #e74c3c;
  margin-bottom: 12px;
}

.update-group-desc {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 20px;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.update-item {
  display: flex;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.update-item:hover {
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
  transform: translateY(-2px);
}

.update-cover {
  flex-shrink: 0;
  width: 96px;
}

.update-cover img {
  width: 96px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.5;
}

.update-meta {
  font-size: 13px;
  color: #95a5a6;
}

.update-chapter {
  font-size: 13px;
  color: #e74c3c;
}

.update-info a {
  display: inline-block;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: #e74c3c;
}

.update-note {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.note-card {
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 24px 32px;
}

.note-title {
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.note-card p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 12px;
}

.note-card a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #e74c3c;
}

/* ==========================================================================
   内页：人气榜单
   ========================================================================== */

.rank-tabs {
  margin-bottom: 40px;
}

.tab-list {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.tab-item {
  display: inline-block;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 500;
  color: #34495e;
  background: #ffffff;
  border: 1px solid #dce1e6;
  border-radius: 6px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tab-item:hover {
  color: #e74c3c;
  border-color: #e74c3c;
}

.tab-item.is-active {
  color: #ffffff;
  background: #e74c3c;
  border-color: #e74c3c;
}

.rank-list {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.rank-item {
  display: flex;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rank-item:hover {
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
  transform: translateY(-2px);
}

.rank-item .rank-number {
  top: 8px;
  left: 8px;
}

.rank-cover {
  flex-shrink: 0;
  width: 88px;
  margin: 0;
}

.cover-img {
  width: 88px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}

.rank-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-top: 4px;
}

.rank-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.5;
}

.rank-meta {
  font-size: 13px;
  color: #95a5a6;
}

.rank-reason {
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.6;
}

.subject-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.subject-rank-card {
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 24px;
}

.subject-name {
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #ecf0f1;
}

.subject-rank-list li {
  margin-bottom: 12px;
}

.subject-rank-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #34495e;
}

.subject-rank-list a:hover {
  color: #e74c3c;
}

.rank-note {
  background: #ffffff;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 32px;
}

.rank-note-desc {
  font-size: 15px;
  color: #34495e;
  line-height: 1.8;
}

.rank-note-desc a {
  color: #e74c3c;
  font-weight: 500;
  margin-right: 16px;
}

/* ==========================================================================
   内页：追更技巧
   ========================================================================== */

.article-layout {
  max-width: 860px;
}

.article-cover {
  margin: 0 0 32px;
  border-radius: 8px;
  overflow: hidden;
  background: #ecf0f1;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-cover figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: #7f8c8d;
  background: #ffffff;
}

.article-section {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}

.article-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #ecf0f1;
}

.article-section h3 {
  font-size: 17px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
}

.article-section p {
  font-size: 15px;
  color: #34495e;
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.article-content .related-links {
  margin-top: 48px;
}

.related-list li {
  margin-bottom: 10px;
}

.related-list a {
  font-size: 15px;
  color: #34495e;
}

.related-list a:hover {
  color: #e74c3c;
}

/* ==========================================================================
   404 页面
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-section {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: #e74c3c;
  line-height: 1.2;
  margin-bottom: 16px;
}

.error-title {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 16px;
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 32px;
}

.error-home-link {
  display: inline-block;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #e74c3c;
  border-radius: 6px;
  margin-bottom: 32px;
}

.error-home-link:hover {
  background: #c0392b;
  color: #ffffff;
}

.error-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.error-links a {
  font-size: 14px;
  color: #34495e;
  border-bottom: 1px solid #bdc3c7;
  padding-bottom: 2px;
}

.error-links a:hover {
  color: #e74c3c;
  border-color: #e74c3c;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-section {
    gap: 32px;
  }

  .recent-items {
    grid-template-columns: repeat(3, 1fr);
  }

  .rank-preview-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-step-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-tip-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-method-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #ecf0f1;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    padding: 12px 16px;
    font-size: 15px;
  }

  .inner-main {
    padding: 24px 16px 48px;
  }

  .page-title {
    font-size: 24px;
  }

  .home-main {
    padding: 0 16px 48px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-value {
    font-size: 24px;
  }

  .hero-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-figure:first-child {
    grid-row: span 1;
  }

  .hero-figure:first-child img {
    aspect-ratio: 3 / 4;
  }

  .recent-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-preview-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-tips-section {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 40px 16px 24px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .subject-grid {
    grid-template-columns: 1fr;
  }

  .works-list {
    grid-template-columns: 1fr;
  }

  .guide-step-list {
    grid-template-columns: 1fr;
  }

  .guide-tip-list {
    grid-template-columns: 1fr;
  }

  .guide-method-list {
    grid-template-columns: 1fr;
  }

  .guide-nav-list {
    flex-direction: column;
  }

  .guide-nav-list a {
    text-align: center;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .update-note {
    grid-template-columns: 1fr;
  }

  .rank-grid {
    grid-template-columns: 1fr;
  }

  .subject-rank-grid {
    grid-template-columns: 1fr;
  }

  .tab-list {
    flex-direction: column;
  }

  .tab-item {
    text-align: center;
  }

  .rank-note-desc a {
    display: inline-block;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .brand-tag {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn {
    width: 100%;
  }

  .recent-items {
    grid-template-columns: 1fr;
  }

  .rank-preview-list {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .update-item {
    flex-direction: column;
  }

  .update-cover,
  .update-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .rank-item {
    flex-direction: column;
  }

  .rank-cover,
  .cover-img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .error-code {
    font-size: 56px;
  }
}
