/* ==========================================================================
   base — 全局基础
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  background: #faf7f2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2a1f3d;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e06a8c;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.4;
  color: #2a1f3d;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ==========================================================================
   layout — 全站骨架
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background: #2a1f3d;
  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;
  min-height: 64px;
}

.brand-name {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
}

.brand-name a {
  color: #faf7f2;
}

.brand-name a:hover {
  color: #f4c95d;
}

.site-nav .nav-list {
  display: flex;
  gap: 28px;
}

.site-nav .nav-list a {
  display: inline-block;
  padding: 6px 0;
  font-size: 0.9375rem;
  color: #d9d2e5;
  border-bottom: 2px solid transparent;
}

.site-nav .nav-list a:hover {
  color: #faf7f2;
}

.site-nav .nav-list a.is-current {
  color: #f4c95d;
  border-bottom-color: #f4c95d;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #faf7f2;
  border-radius: 2px;
}

.site-main {
  flex: 1;
  width: 100%;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.site-footer {
  background: #2a1f3d;
  color: #c9c2d6;
  margin-top: auto;
}

.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
}

.footer-col h2 {
  font-size: 1rem;
  color: #faf7f2;
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.75em;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav a {
  color: #c9c2d6;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: #f4c95d;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: #8f88a0;
}

/* ==========================================================================
   components — 通用组件
   ========================================================================== */

/* 面包屑 */
.breadcrumb {
  padding: 20px 0 8px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: #6b6478;
}

.breadcrumb a:hover {
  color: #e06a8c;
}

.breadcrumb-sep {
  color: #b0a9bc;
}

.breadcrumb-current {
  color: #2a1f3d;
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  padding: 16px 0 32px;
  border-bottom: 2px solid #e6dfd4;
  margin-bottom: 40px;
}

.page-title {
  font-size: 2rem;
  color: #2a1f3d;
  margin-bottom: 8px;
}

.page-description {
  font-size: 1rem;
  color: #5c5668;
  max-width: 720px;
  margin: 0;
}

/* 图片容器 */
figure img {
  width: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 0.8125rem;
  color: #8f88a0;
  padding: 8px 4px 0;
  text-align: center;
}

/* 相关链接 */
.related-links {
  margin-top: 48px;
  padding: 24px;
  background: #f1ece3;
  border-radius: 8px;
}

.related-links h2 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.related-links p {
  font-size: 0.875rem;
  color: #5c5668;
  margin-bottom: 16px;
}

.related-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  display: inline-block;
  padding: 8px 16px;
  background: #faf7f2;
  border-radius: 20px;
  font-size: 0.875rem;
  border: 1px solid #e0d8ca;
}

.related-links a:hover {
  background: #e06a8c;
  color: #fff;
  border-color: #e06a8c;
}

/* 步骤编号 */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a1f3d;
  color: #faf7f2;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 48px;
}

.hero-copy h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-slogan {
  font-size: 1.25rem;
  color: #e06a8c;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-text {
  font-size: 1rem;
  color: #5c5668;
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.hero-actions a:first-child {
  background: #e06a8c;
  color: #fff;
}

.hero-actions a:first-child:hover {
  background: #c95073;
}

.hero-actions a:last-child {
  background: transparent;
  color: #2a1f3d;
  border: 1px solid #2a1f3d;
}

.hero-actions a:last-child:hover {
  background: #2a1f3d;
  color: #faf7f2;
}

.hero-media img {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(42, 31, 61, 0.15);
  aspect-ratio: 4 / 3;
}

.content-media-primary {
  margin-top: 24px;
}

.content-media-primary img {
  border-radius: 8px;
  aspect-ratio: 16 / 9;
}

/* 浏览路径 */
.paths {
  padding: 48px 0;
}

.paths h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.section-intro {
  color: #5c5668;
  margin-bottom: 32px;
  max-width: 640px;
}

.path-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.path-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  border: 1px solid #e6dfd4;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(42, 31, 61, 0.08);
}

.path-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.path-card h3 a {
  color: #2a1f3d;
}

.path-card h3 a:hover {
  color: #e06a8c;
}

.path-card p {
  font-size: 0.9375rem;
  color: #5c5668;
  margin: 0;
}

/* 题材分类索引 */
.genres {
  padding: 48px 0;
}

.genre-group {
  margin-bottom: 32px;
}

.genre-group h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid #e06a8c;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list a {
  display: inline-block;
  padding: 8px 18px;
  background: #fff;
  border: 1px solid #e0d8ca;
  border-radius: 20px;
  font-size: 0.875rem;
  color: #2a1f3d;
  transition: background 0.2s ease, color 0.2s ease;
}

.tag-list a:hover {
  background: #e06a8c;
  color: #fff;
  border-color: #e06a8c;
}

/* 更新规律 */
.update-rules {
  padding: 48px 0;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rule-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  border-top: 4px solid #2a1f3d;
}

.rule-card:nth-child(2) {
  border-top-color: #e06a8c;
}

.rule-card:nth-child(3) {
  border-top-color: #f4c95d;
}

.rule-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.rule-card p {
  font-size: 0.9375rem;
  color: #5c5668;
  margin: 0;
}

/* 术语推荐 */
.terms {
  padding: 48px 0;
}

.term-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.term-card {
  background: #f1ece3;
  border-radius: 8px;
  padding: 24px;
}

.term-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: #2a1f3d;
}

.term-card p {
  font-size: 0.9375rem;
  color: #5c5668;
  margin-bottom: 8px;
}

.term-card p:last-child {
  margin-bottom: 0;
}

.term-card p a {
  color: #e06a8c;
  font-weight: 500;
}

/* 首页相关链接 */
.home-main .related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
}

.related-links-label {
  font-weight: 600;
  color: #2a1f3d;
  font-size: 0.9375rem;
}

.related-links-item {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border-radius: 20px;
  font-size: 0.875rem;
  border: 1px solid #e0d8ca;
}

.related-links-item:hover {
  background: #e06a8c;
  color: #fff;
  border-color: #e06a8c;
}

/* ==========================================================================
   pages — 题材百科
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.genres-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.genre-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e6dfd4;
}

.genre-text h2 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.genre-text p {
  font-size: 0.9375rem;
  color: #5c5668;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  padding: 4px 14px;
  background: #f1ece3;
  border-radius: 16px;
  font-size: 0.8125rem;
  color: #2a1f3d;
}

.genre-figure img {
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}

.genre-figure figcaption {
  text-align: left;
  font-size: 0.8125rem;
}

.genres-list .related-links {
  margin-top: 0;
}

/* 侧栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-block {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e6dfd4;
}

.sidebar-block h2 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1ece3;
}

.genre-index {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.genre-index a {
  display: block;
  padding: 6px 8px;
  font-size: 0.875rem;
  color: #5c5668;
  border-radius: 4px;
}

.genre-index a:hover {
  background: #f1ece3;
  color: #e06a8c;
}

/* ==========================================================================
   pages — 追更手账
   ========================================================================== */

.section-overview {
  margin-bottom: 48px;
}

.section-overview h2 {
  margin-bottom: 16px;
}

.overview-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.overview-text p {
  color: #5c5668;
}

.overview-media img {
  border-radius: 8px;
  aspect-ratio: 16 / 9;
}

.section-cycle-table {
  margin-bottom: 48px;
}

.section-cycle-table h2 {
  margin-bottom: 8px;
}

.section-cycle-table > p {
  color: #5c5668;
  margin-bottom: 20px;
}

.section-cycle-table table {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e6dfd4;
}

.section-cycle-table th,
.section-cycle-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eee8de;
  font-size: 0.9375rem;
}

.section-cycle-table thead th {
  background: #2a1f3d;
  color: #faf7f2;
  font-weight: 600;
}

.section-cycle-table tbody tr:last-child th,
.section-cycle-table tbody tr:last-child td {
  border-bottom: none;
}

.section-cycle-table tbody th {
  font-weight: 600;
  color: #2a1f3d;
}

.section-steps {
  margin-bottom: 48px;
}

.section-steps h2 {
  margin-bottom: 8px;
}

.section-steps > p {
  color: #5c5668;
  margin-bottom: 24px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e6dfd4;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card .step-number {
  background: #e06a8c;
}

.step-card h3 {
  font-size: 1.125rem;
}

.step-card p {
  font-size: 0.9375rem;
  color: #5c5668;
  margin: 0;
}

.section-status {
  background: #f1ece3;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 48px;
}

.section-status h2 {
  margin-bottom: 8px;
}

.section-status > p {
  color: #5c5668;
  margin-bottom: 16px;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.status-list li {
  font-size: 0.9375rem;
  color: #5c5668;
}

.status-list strong {
  color: #2a1f3d;
  margin-right: 6px;
}

.section-status > p:last-child {
  margin-bottom: 0;
}

.section-related-links h2 {
  margin-bottom: 16px;
}

.section-related-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-related-links a {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border-radius: 20px;
  font-size: 0.875rem;
  border: 1px solid #e0d8ca;
}

.section-related-links a:hover {
  background: #e06a8c;
  color: #fff;
}

/* ==========================================================================
   pages — 阅读指南
   ========================================================================== */

.guide-intro {
  margin-bottom: 48px;
}

.guide-intro h2 {
  margin-bottom: 12px;
}

.intro-text p {
  color: #5c5668;
}

.guide-figure {
  margin-top: 20px;
}

.guide-figure img {
  border-radius: 8px;
  aspect-ratio: 16 / 9;
}

.guide-route {
  margin-bottom: 48px;
}

.guide-route h2 {
  margin-bottom: 8px;
}

.section-note {
  color: #5c5668;
  margin-bottom: 24px;
}

.route-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.route-step {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e6dfd4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-step .step-number {
  background: #f4c95d;
  color: #2a1f3d;
}

.route-step h3 {
  font-size: 1.0625rem;
}

.route-step p {
  font-size: 0.875rem;
  color: #5c5668;
  margin: 0;
}

.step-output {
  margin-top: 8px !important;
  padding-top: 8px;
  border-top: 1px solid #eee8de;
  font-size: 0.8125rem !important;
  color: #e06a8c !important;
  font-weight: 500;
}

.guide-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.tips-block {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e6dfd4;
}

.tips-block h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.tips-block ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tips-block li {
  font-size: 0.9375rem;
  color: #5c5668;
  padding-left: 20px;
  position: relative;
}

.tips-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e06a8c;
}

.tips-veteran li::before {
  background: #f4c95d;
}

.guide-related {
  background: #f1ece3;
  border-radius: 8px;
  padding: 24px;
}

.guide-related h2 {
  margin-bottom: 8px;
}

.guide-related p {
  color: #5c5668;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border-radius: 20px;
  font-size: 0.875rem;
  border: 1px solid #e0d8ca;
}

.related-links a:hover {
  background: #e06a8c;
  color: #fff;
}

/* ==========================================================================
   pages — 术语表
   ========================================================================== */

.glossary-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.glossary-list .section-intro {
  margin-bottom: 16px;
}

.term-item {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid #e6dfd4;
}

.term-item h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.term-item p {
  font-size: 0.9375rem;
  color: #5c5668;
  margin-bottom: 8px;
}

.term-related {
  font-size: 0.8125rem !important;
  margin-bottom: 0 !important;
}

.term-related a {
  color: #e06a8c;
  margin-right: 12px;
}

.term-related a:hover {
  color: #2a1f3d;
}

.further-reading {
  background: #f1ece3;
  border-radius: 8px;
  padding: 20px 24px;
}

.further-reading h3 {
  margin-bottom: 12px;
}

.further-reading ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.further-reading a {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border-radius: 16px;
  font-size: 0.875rem;
  border: 1px solid #e0d8ca;
}

.further-reading a:hover {
  background: #e06a8c;
  color: #fff;
}

.sidebar-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e6dfd4;
}

.sidebar-card h2 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1ece3;
}

.alpha-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.alpha-index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f1ece3;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #2a1f3d;
  transition: background 0.2s ease, color 0.2s ease;
}

.alpha-index a:hover {
  background: #e06a8c;
  color: #fff;
}

.sidebar-figure {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e6dfd4;
}

.sidebar-figure img {
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}

/* ==========================================================================
   pages — 版权与反馈
   ========================================================================== */

.boundary-section,
.rules-section,
.feedback-section {
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.section-heading p {
  color: #5c5668;
  margin-bottom: 20px;
}

.boundary-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e6dfd4;
}

.boundary-figure img {
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}

.boundary-text p {
  color: #5c5668;
  font-size: 0.9375rem;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e6dfd4;
  margin-bottom: 12px;
}

.rules-list li {
  font-size: 0.9375rem;
  color: #5c5668;
  padding-left: 24px;
  position: relative;
}

.rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4c95d;
}

.rules-note {
  font-size: 0.8125rem;
  color: #8f88a0;
}

.feedback-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feedback-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e6dfd4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-card .step-number {
  background: #e06a8c;
}

.feedback-card h3 {
  font-size: 1.0625rem;
}

.feedback-card p {
  font-size: 0.9375rem;
  color: #5c5668;
  margin: 0;
}

.feedback-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: #8f88a0;
}

/* ==========================================================================
   pages — 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.error-panel {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 4rem;
  font-weight: 700;
  color: #e06a8c;
  margin-bottom: 8px;
}

.error-panel h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-desc {
  color: #5c5668;
  margin-bottom: 24px;
}

.error-back {
  display: inline-block;
  padding: 12px 28px;
  background: #2a1f3d;
  color: #faf7f2;
  border-radius: 6px;
  font-weight: 600;
}

.error-back:hover {
  background: #e06a8c;
  color: #fff;
}

/* ==========================================================================
   responsive — 响应式
   ========================================================================== */

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr 260px;
    gap: 24px;
  }

  .route-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 56px;
  }

  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #2a1f3d;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
  }

  .site-nav .nav-list a.is-current {
    border-left-color: #f4c95d;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .path-list,
  .rule-list,
  .term-list,
  .steps-grid,
  .feedback-steps {
    grid-template-columns: 1fr;
  }

  .genre-item {
    grid-template-columns: 1fr;
  }

  .genre-figure {
    order: -1;
  }

  .overview-wrap,
  .boundary-content {
    grid-template-columns: 1fr;
  }

  .guide-tips {
    grid-template-columns: 1fr;
  }

  .route-steps {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 16px;
  }

  .inner-main,
  .home-main {
    padding: 0 16px 48px;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .page-header {
    padding: 12px 0 24px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 1.625rem;
  }

  .breadcrumb {
    padding: 12px 0 4px;
  }

  .section-cycle-table {
    overflow-x: auto;
  }

  .section-cycle-table table {
    min-width: 480px;
  }
}

@media (max-width: 390px) {
  .hero-copy h1 {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions a {
    text-align: center;
  }

  .tag-list a {
    padding: 10px 14px;
    font-size: 0.8125rem;
  }

  .genre-tags .tag {
    padding: 6px 12px;
  }

  .route-step,
  .step-card,
  .feedback-card,
  .term-item,
  .genre-item {
    padding: 16px;
  }

  .related-links ul {
    flex-direction: column;
    width: 100%;
  }

  .related-links a {
    text-align: center;
  }
}
