/* ==========================================================================
   歪歪漫画 tmggw.com 全站样式
   音乐杂志风：黑白底 + 高饱和黄/品红点缀，封面图当专辑封面
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base / Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #171717;
  background-color: #f5f1e8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #171717;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e63946;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: 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 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  width: 100%;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* --------------------------------------------------------------------------
   Header / 全站页头
   -------------------------------------------------------------------------- */
.site-header {
  background-color: #171717;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  color: #f5f1e8;
}

.brand-link:hover {
  color: #f9c80e;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #f5f1e8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  color: #f5f1e8;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: #f9c80e;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.is-current {
  color: #171717;
  background-color: #f9c80e;
  font-weight: 700;
}

.has-dropdown .nav-link {
  padding-right: 28px;
}

.has-dropdown .nav-link::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.has-dropdown:hover .nav-link::after {
  transform: translateY(-30%) rotate(-135deg);
}

.dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  background-color: #171717;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 50;
}

.has-dropdown:hover .dropdown-list,
.has-dropdown:focus-within .dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 8px 18px;
  color: #f5f1e8;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-link:hover {
  color: #f9c80e;
  background-color: rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   Breadcrumb / 面包屑
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 8px;
  font-size: 0.875rem;
  color: #6b6b6b;
}

.breadcrumb a {
  color: #6b6b6b;
}

.breadcrumb a:hover {
  color: #e63946;
}

.breadcrumb-sep {
  color: #b0a89a;
  font-size: 0.8rem;
}

.breadcrumb-current {
  color: #171717;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Page Header / 内页标题区
   -------------------------------------------------------------------------- */
.page-header {
  padding: 28px 0 32px;
  border-bottom: 3px solid #171717;
  margin-bottom: 40px;
}

.page-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: #171717;
  margin-bottom: 12px;
}

.page-description {
  max-width: 760px;
  font-size: 1.05rem;
  color: #4a4a4a;
  line-height: 1.8;
}

.page-guide {
  margin-top: 10px;
  font-size: 0.925rem;
  color: #6b6b6b;
}

.page-guide::before {
  content: "（";
  color: #e63946;
  font-weight: 700;
}

.page-guide::after {
  content: "）";
  color: #e63946;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Section 通用
   -------------------------------------------------------------------------- */
.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  background-color: #e63946;
  border-radius: 2px;
}

.section-desc,
.section-lead {
  font-size: 1rem;
  color: #4a4a4a;
  margin-bottom: 28px;
  max-width: 720px;
}

.section-link {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #171717;
  border-bottom: 2px solid #f9c80e;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.section-link:hover {
  color: #e63946;
  border-bottom-color: #e63946;
}

/* --------------------------------------------------------------------------
   Footer / 全站页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #171717;
  color: #f5f1e8;
  padding: 56px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f9c80e;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: #d0c9bb;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #f9c80e;
}

.footer-bottom {
  margin-top: 48px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #8a8378;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Home / Hero
   -------------------------------------------------------------------------- */
.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 64px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: #e63946;
}

.hero-lead {
  font-size: 1.25rem;
  font-weight: 700;
  color: #171717;
  margin-bottom: 12px;
  line-height: 1.5;
}

.hero-desc {
  font-size: 1rem;
  color: #4a4a4a;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-cta {
  display: inline-block;
  background-color: #171717;
  color: #f9c80e;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background-color: #e63946;
  color: #f5f1e8;
  transform: translateY(-2px);
}

.hero-figure {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* --------------------------------------------------------------------------
   Home / Conclusion
   -------------------------------------------------------------------------- */
.conclusion-section {
  background-color: #f9c80e;
  padding: 32px 28px;
  border-radius: 8px;
  margin-bottom: 64px;
  border-left: 8px solid #171717;
}

.conclusion-main {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 8px;
}

.conclusion-sub {
  font-size: 0.95rem;
  color: #3d3d3d;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Home / Methods
   -------------------------------------------------------------------------- */
.methods-section {
  margin-bottom: 72px;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.method-card {
  background-color: #ffffff;
  border: 2px solid #e5e0d6;
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.method-card:hover {
  border-color: #e63946;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.method-card:nth-child(2) {
  border-top: 4px solid #e63946;
}

.method-card:nth-child(3) {
  border-top: 4px solid #17a08a;
}

.method-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.method-text {
  font-size: 0.925rem;
  color: #4a4a4a;
  flex: 1;
  margin-bottom: 16px;
}

.method-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #171717;
  border-bottom: 2px solid #f9c80e;
  padding-bottom: 2px;
  align-self: flex-start;
}

.method-link:hover {
  color: #e63946;
  border-bottom-color: #e63946;
}

/* --------------------------------------------------------------------------
   Home / Recent Updates
   -------------------------------------------------------------------------- */
.recent-updates-section {
  margin-bottom: 72px;
}

.update-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.update-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e0d6;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.update-figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: #e5e0d6;
}

.update-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.update-card:hover .update-image {
  transform: scale(1.04);
}

.update-title {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 16px 4px;
}

.update-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e63946;
  margin: 0 16px 6px;
  background-color: rgba(230, 57, 70, 0.08);
  padding: 2px 10px;
  border-radius: 12px;
}

.update-batch {
  font-size: 0.8rem;
  color: #8a8378;
  padding: 0 16px 16px;
}

/* --------------------------------------------------------------------------
   Home / Ranking Preview
   -------------------------------------------------------------------------- */
.ranking-preview-section {
  margin-bottom: 64px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 36px 32px 28px;
  border: 1px solid #e5e0d6;
}

.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f0ece3;
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f9c80e;
  min-width: 40px;
  text-align: center;
  -webkit-text-stroke: 1px #171717;
}

.rank-item:nth-child(1) .rank-number {
  color: #e63946;
}

.rank-title {
  font-weight: 700;
  font-size: 1rem;
  flex: 1;
}

.rank-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #17a08a;
  background-color: rgba(23, 160, 138, 0.1);
  padding: 2px 12px;
  border-radius: 12px;
}

.rank-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #171717;
  border-bottom: 2px solid #f9c80e;
  padding-bottom: 1px;
  white-space: nowrap;
}

.rank-link:hover {
  color: #e63946;
  border-bottom-color: #e63946;
}

/* --------------------------------------------------------------------------
   Home / Topic Chips
   -------------------------------------------------------------------------- */
.topic-chips-section {
  margin-bottom: 64px;
}

.topic-chips-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #e63946 #e5e0d6;
}

.topic-chip {
  display: inline-block;
  padding: 8px 20px;
  background-color: #ffffff;
  border: 2px solid #171717;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.topic-chip:hover {
  background-color: #171717;
  color: #f9c80e;
  border-color: #171717;
}

.topic-chip:nth-child(even) {
  border-color: #e63946;
}

.topic-chip:nth-child(even):hover {
  background-color: #e63946;
  color: #f5f1e8;
}

/* --------------------------------------------------------------------------
   Home / Reading Guide Strip
   -------------------------------------------------------------------------- */
.reading-guide-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: #171717;
  color: #f5f1e8;
  border-radius: 8px;
  padding: 32px 36px;
  margin-bottom: 64px;
}

.guide-strip-text {
  font-size: 1.15rem;
  font-weight: 700;
  max-width: 480px;
  line-height: 1.6;
}

.guide-strip-links {
  display: flex;
  gap: 16px;
}

.guide-link {
  display: inline-block;
  background-color: #f9c80e;
  color: #171717;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.guide-link:last-child {
  background-color: transparent;
  color: #f5f1e8;
  border: 2px solid #f5f1e8;
}

.guide-link:hover {
  background-color: #e63946;
  color: #f5f1e8;
}

.guide-link:last-child:hover {
  background-color: #e63946;
  border-color: #e63946;
}

/* --------------------------------------------------------------------------
   Home / Creator Teaser
   -------------------------------------------------------------------------- */
.creator-teaser-section {
  margin-bottom: 64px;
  padding: 36px 32px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 2px solid #e5e0d6;
  border-left: 6px solid #17a08a;
}

.creator-text {
  font-size: 1rem;
  color: #4a4a4a;
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   Home / Related Links
   -------------------------------------------------------------------------- */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  border-top: 2px solid #e5e0d6;
  border-bottom: 2px solid #e5e0d6;
  margin-bottom: 40px;
}

.related-links-label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 8px;
}

.related-links-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a4a4a;
  padding: 6px 14px;
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e0d6;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.related-links-item:hover {
  background-color: #171717;
  color: #f9c80e;
  border-color: #171717;
}

/* --------------------------------------------------------------------------
   Inner Page / Topic Index (ti-cai)
   -------------------------------------------------------------------------- */
.tag-anchor {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e0d6;
}

.tag-chip {
  display: inline-block;
  padding: 8px 22px;
  background-color: #f5f1e8;
  border: 2px solid #171717;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-chip:hover {
  background-color: #171717;
  color: #f9c80e;
}

.tag-chip:nth-child(2) {
  border-color: #e63946;
}

.tag-chip:nth-child(3) {
  border-color: #17a08a;
}

.tag-chip:nth-child(4) {
  border-color: #f9c80e;
}

.topic-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  margin-bottom: 56px;
  padding: 32px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e0d6;
  scroll-margin-top: 80px;
}

.topic-section:nth-child(even) {
  background-color: #171717;
  color: #f5f1e8;
}

.topic-section:nth-child(even) .topic-feature,
.topic-section:nth-child(even) .topic-tip {
  color: #d0c9bb;
}

.topic-section:nth-child(even) .topic-title {
  color: #f9c80e;
}

.topic-media {
  border-radius: 8px;
  overflow: hidden;
}

.topic-figure {
  height: 100%;
}

.topic-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.topic-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topic-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.topic-feature {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin-bottom: 20px;
  line-height: 1.7;
}

.topic-clues {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.clue-item {
  font-size: 0.9rem;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.clue-item::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: #e63946;
  font-size: 0.7rem;
  top: 0.3em;
}

.topic-tip {
  font-size: 0.85rem;
  color: #6b6b6b;
  background-color: rgba(249, 200, 14, 0.15);
  border-left: 3px solid #f9c80e;
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
}

.reading-notes {
  background-color: #f9c80e;
  border-radius: 8px;
  padding: 32px;
  margin-top: 24px;
}

.reading-notes-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.reading-notes-text {
  font-size: 0.95rem;
  color: #3d3d3d;
  line-height: 1.8;
}

.in-text-link {
  font-weight: 700;
  color: #171717;
  border-bottom: 2px solid #171717;
  padding-bottom: 1px;
}

.in-text-link:hover {
  color: #e63946;
  border-bottom-color: #e63946;
}

/* --------------------------------------------------------------------------
   Inner Page / Update Timeline (geng-xin)
   -------------------------------------------------------------------------- */
.timeline-section {
  margin-bottom: 56px;
}

.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #e5e0d6;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding-left: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 32px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #f9c80e;
  border: 3px solid #171717;
  z-index: 1;
}

.timeline-media {
  grid-column: 1;
  grid-row: 1;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e5e0d6;
  z-index: 2;
}

.timeline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-content {
  grid-column: 2;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px 28px;
  border: 1px solid #e5e0d6;
}

.batch-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e63946;
  background-color: rgba(230, 57, 70, 0.08);
  padding: 2px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: #4a4a4a;
  margin-bottom: 12px;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.topic-tags .topic-chip {
  padding: 4px 14px;
  font-size: 0.8rem;
  border-width: 1px;
}

.text-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  color: #171717;
  border-bottom: 2px solid #f9c80e;
  padding-bottom: 1px;
}

.text-link:hover {
  color: #e63946;
  border-bottom-color: #e63946;
}

.batch-notes {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #e5e0d6;
  margin-bottom: 56px;
}

.batch-notes p {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin-bottom: 12px;
  line-height: 1.8;
}

.batch-notes p:last-child {
  margin-bottom: 0;
}

.topic-links-section {
  margin-bottom: 48px;
}

.topic-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.topic-entry-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px 20px;
  border: 2px solid #e5e0d6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.topic-entry-card:hover {
  border-color: #e63946;
  transform: translateY(-4px);
}

.topic-entry-card:nth-child(2) {
  border-top: 4px solid #e63946;
}

.topic-entry-card:nth-child(3) {
  border-top: 4px solid #17a08a;
}

.topic-entry-card:nth-child(4) {
  border-top: 4px solid #f9c80e;
}

.topic-entry-name {
  font-size: 1.1rem;
  font-weight: 800;
}

.topic-entry-desc {
  font-size: 0.85rem;
  color: #6b6b6b;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Inner Page / Ranking (pai-hang)
   -------------------------------------------------------------------------- */
.rank-section {
  margin-bottom: 56px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-description {
  font-size: 0.95rem;
  color: #4a4a4a;
  max-width: 720px;
}

.total-rank {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #e5e0d6;
}

.total-rank-list .rank-item {
  gap: 20px;
}

.rank-entry {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rank-entry .rank-title {
  margin: 0;
}

.content-media-inline {
  margin-top: 28px;
  border-radius: 8px;
  overflow: hidden;
}

.content-media-inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 6;
}

.content-media-inline figcaption {
  font-size: 0.8rem;
  color: #8a8378;
  padding: 8px 12px;
  background-color: #f5f1e8;
}

.tabs-shell {
  display: flex;
  gap: 4px;
  border-bottom: 3px solid #171717;
  margin-bottom: 24px;
}

.tab-button {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #6b6b6b;
  background-color: transparent;
  border: 2px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab-button:hover {
  color: #171717;
  background-color: rgba(0, 0, 0, 0.04);
}

.tab-button.is-active {
  color: #171717;
  background-color: #f9c80e;
  border-color: #171717;
  border-bottom: 3px solid #f9c80e;
  margin-bottom: -3px;
}

.tab-panels {
  background-color: #ffffff;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e5e0d6;
  border-top: none;
  padding: 8px 32px;
}

.tab-panel[hidden] {
  display: none;
}

.category-rank-list .rank-item {
  padding: 16px 0;
}

.rank-notes {
  background-color: #f5f1e8;
  border-left: 6px solid #e63946;
  padding: 28px 32px;
  border-radius: 0 8px 8px 0;
}

.notes-content p {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin-bottom: 12px;
  line-height: 1.8;
}

.notes-content strong {
  color: #171717;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 2px solid #e5e0d6;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  border-color: #e63946;
  transform: translateY(-4px);
}

.related-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.related-desc {
  font-size: 0.875rem;
  color: #6b6b6b;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Inner Page / Creator (chuang-zuo)
   -------------------------------------------------------------------------- */
.article-cover-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  margin-bottom: 56px;
  background-color: #171717;
  border-radius: 8px;
  padding: 32px;
  color: #f5f1e8;
}

.article-cover-figure {
  border-radius: 8px;
  overflow: hidden;
}

.article-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.article-cover-caption {
  font-size: 0.8rem;
  color: #8a8378;
  padding: 8px 4px 0;
}

.article-summary-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-summary-block .section-title {
  color: #f9c80e;
}

.summary-text {
  font-size: 0.95rem;
  color: #d0c9bb;
  line-height: 1.8;
  margin-bottom: 12px;
}

.summary-text:last-child {
  margin-bottom: 0;
}

.content-chapter {
  margin-bottom: 56px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #e5e0d6;
}

.chapter-lead {
  font-size: 1rem;
  color: #4a4a4a;
  margin-bottom: 24px;
  line-height: 1.8;
}

.structure-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.structure-item {
  background-color: #f5f1e8;
  border-radius: 8px;
  padding: 24px;
  border-top: 4px solid #e63946;
}

.structure-item:nth-child(2) {
  border-top-color: #f9c80e;
}

.structure-item:nth-child(3) {
  border-top-color: #17a08a;
}

.sub-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.structure-text {
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.7;
}

.relation-item {
  background-color: #f5f1e8;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.relation-text {
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.7;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  font-size: 0.9rem;
  color: #4a4a4a;
  padding-left: 20px;
  position: relative;
  line-height: 1.7;
}

.rule-item::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #e63946;
  font-weight: 700;
}

.topic-relation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reader-note-section {
  background-color: #f9c80e;
  border-radius: 8px;
  padding: 32px;
}

.reader-note-section .section-title {
  color: #171717;
}

.chapter-text {
  font-size: 0.95rem;
  color: #3d3d3d;
  line-height: 1.8;
  margin-bottom: 12px;
}

.chapter-text .text-link {
  color: #171717;
  border-bottom-color: #171717;
}

.chapter-text .text-link:hover {
  color: #e63946;
  border-bottom-color: #e63946;
}

/* --------------------------------------------------------------------------
   Inner Page / Guide (yue-du)
   -------------------------------------------------------------------------- */
.guide-header-media {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.guide-cover {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 5;
}

.guide-header-text .page-title {
  margin-bottom: 12px;
}

.page-summary {
  font-size: 1.05rem;
  color: #4a4a4a;
  line-height: 1.8;
}

.guide-summary {
  background-color: #171717;
  color: #f5f1e8;
  border-radius: 8px;
  padding: 24px 32px;
  margin-bottom: 48px;
}

.summary-lead {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.7;
}

.guide-step {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #e5e0d6;
  margin-bottom: 24px;
  position: relative;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #171717;
  color: #f9c80e;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
}

.guide-step:nth-child(even) .step-number {
  background-color: #e63946;
  color: #f5f1e8;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.step-text {
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.8;
  margin-bottom: 12px;
}

.step-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #171717;
  border-bottom: 2px solid #f9c80e;
  padding-bottom: 1px;
  margin-top: 8px;
}

.step-link:hover {
  color: #e63946;
  border-bottom-color: #e63946;
}

.reading-rhythm {
  background-color: #17a08a;
  border-radius: 8px;
  padding: 32px;
  margin: 40px 0;
  color: #f5f1e8;
}

.rhythm-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.rhythm-text {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.rhythm-text:last-child {
  margin-bottom: 0;
}

.misconceptions {
  margin-bottom: 48px;
}

.misconceptions-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.misconception-item {
  background-color: #ffffff;
  border: 1px solid #e5e0d6;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.misconception-summary {
  padding: 18px 24px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: background-color 0.2s ease;
}

.misconception-summary::-webkit-details-marker {
  display: none;
}

.misconception-summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: #e63946;
  transition: transform 0.2s ease;
}

.misconception-item[open] .misconception-summary {
  background-color: #f5f1e8;
}

.misconception-item[open] .misconception-summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.misconception-summary:hover {
  background-color: #f5f1e8;
}

.misconception-text {
  padding: 0 24px 20px;
  font-size: 0.925rem;
  color: #4a4a4a;
  line-height: 1.8;
}

.guide-related {
  background-color: #171717;
  border-radius: 8px;
  padding: 32px;
}

.related-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f9c80e;
  margin-bottom: 20px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.related-link {
  display: inline-block;
  background-color: #ffffff;
  color: #171717;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.related-link:hover {
  background-color: #e63946;
  color: #f5f1e8;
}

/* --------------------------------------------------------------------------
   Inner Page / Feedback (fan-kui)
   -------------------------------------------------------------------------- */
.declaration-header {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #e5e0d6;
  margin-bottom: 48px;
}

.declaration-figure {
  border-radius: 8px;
  overflow: hidden;
}

.declaration-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.declaration-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.declaration-heading {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.declaration-text {
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.8;
}

.boundary-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #e5e0d6;
  margin-bottom: 48px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.boundary-item {
  background-color: #f5f1e8;
  border-radius: 8px;
  padding: 20px 24px;
  border-left: 4px solid #e63946;
}

.boundary-item-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.boundary-item-text {
  font-size: 0.875rem;
  color: #4a4a4a;
  line-height: 1.7;
}

.material-section,
.check-section,
.feedback-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #e5e0d6;
  margin-bottom: 48px;
}

.material-content p,
.feedback-content p {
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.8;
  margin-bottom: 12px;
}

.material-content p:last-child,
.feedback-content p:last-child {
  margin-bottom: 0;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-item {
  background-color: #f5f1e8;
  border-radius: 8px;
  padding: 20px 24px;
  border-left: 4px solid #17a08a;
}

.check-item-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.check-item-text {
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.7;
}

.check-link {
  display: inline-block;
  font-weight: 700;
  color: #171717;
  border-bottom: 2px solid #f9c80e;
  padding-bottom: 1px;
  margin-top: 4px;
}

.check-link:hover {
  color: #e63946;
  border-bottom-color: #e63946;
}

.feedback-section {
  border-left: 6px solid #f9c80e;
}

/* --------------------------------------------------------------------------
   404 Page
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 24px;
}

.error-section {
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: #e63946;
  line-height: 1;
  margin-bottom: 8px;
}

.error-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 1rem;
  color: #4a4a4a;
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.error-link {
  display: inline-block;
  background-color: #171717;
  color: #f9c80e;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.error-link.is-home {
  background-color: #e63946;
  color: #f5f1e8;
}

.error-link:hover {
  background-color: #171717;
  color: #f9c80e;
}

.error-link.is-home:hover {
  background-color: #171717;
  color: #f9c80e;
}

.error-tip {
  font-size: 0.85rem;
  color: #8a8378;
}

/* --------------------------------------------------------------------------
   Responsive / 960px
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 40px;
  }

  .hero-content {
    order: 1;
  }

  .hero-figure {
    order: 2;
  }

  .methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-card:last-child {
    grid-column: 1 / -1;
  }

  .update-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-section {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .topic-media {
    order: 1;
  }

  .topic-content {
    order: 2;
  }

  .topic-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .structure-list {
    grid-template-columns: 1fr;
  }

  .article-cover-section {
    grid-template-columns: 1fr;
  }

  .declaration-header {
    grid-template-columns: 1fr;
  }

  .boundary-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .reading-guide-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }
}

/* --------------------------------------------------------------------------
   Responsive / 640px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .inner-main,
  .home-main {
    padding: 0 16px 64px;
  }

  .header-inner {
    padding: 0 16px;
    flex-wrap: wrap;
    min-height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 14px 8px;
    font-size: 1rem;
  }

  .has-dropdown .nav-link::after {
    right: 8px;
  }

  .dropdown-list {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-left: 3px solid #f9c80e;
    border-radius: 0;
    padding: 0 0 0 16px;
    background-color: transparent;
    margin: 0 0 8px;
  }

  .dropdown-link {
    padding: 10px 8px;
    font-size: 0.9rem;
  }

  .breadcrumb {
    padding: 16px 0 4px;
  }

  .page-header {
    padding: 20px 0 24px;
    margin-bottom: 32px;
  }

  .hero-section {
    padding: 32px 0 32px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .conclusion-section {
    padding: 24px 20px;
  }

  .conclusion-main {
    font-size: 1.15rem;
  }

  .methods-grid {
    grid-template-columns: 1fr;
  }

  .method-card:last-child {
    grid-column: auto;
  }

  .update-grid {
    grid-template-columns: 1fr;
  }

  .update-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    border-radius: 8px;
  }

  .update-figure {
    grid-column: 1;
    grid-row: 1 / 4;
    aspect-ratio: auto;
    height: 100%;
    min-height: 120px;
  }

  .update-title {
    grid-column: 2;
    padding: 12px 12px 2px;
  }

  .update-tag {
    grid-column: 2;
    margin: 4px 12px 2px;
    justify-self: start;
  }

  .update-batch {
    grid-column: 2;
    padding: 0 12px 12px;
  }

  .ranking-preview-section {
    padding: 24px 16px;
  }

  .rank-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .rank-number {
    min-width: 30px;
    font-size: 1.2rem;
  }

  .rank-title {
    flex: 1 1 auto;
    font-size: 0.9rem;
  }

  .rank-link {
    width: 100%;
    margin-top: 4px;
  }

  .reading-guide-strip {
    padding: 24px 20px;
  }

  .guide-strip-links {
    flex-direction: column;
    width: 100%;
  }

  .guide-link {
    text-align: center;
  }

  .creator-teaser-section {
    padding: 24px 20px;
  }

  .related-links {
    gap: 8px;
  }

  .related-links-item {
    font-size: 0.85rem;
  }

  .timeline-item {
    grid-template-columns: 44px 1fr;
  }

  .timeline-media {
    width: 44px;
    height: 44px;
  }

  .timeline-content {
    padding: 16px;
  }

  .topic-links-grid {
    grid-template-columns: 1fr;
  }

  .tabs-shell {
    flex-wrap: wrap;
  }

  .tab-button {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.85rem;
    text-align: center;
  }

  .tab-panels {
    padding: 4px 16px;
  }

  .rank-entry {
    flex-wrap: wrap;
    gap: 6px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-column:last-child {
    grid-column: auto;
  }

  .guide-step {
    padding: 24px 20px;
  }

  .step-heading {
    gap: 12px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .step-title {
    font-size: 1.1rem;
  }

  .boundary-item {
    padding: 16px;
  }

  .error-code {
    font-size: 3.5rem;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-link {
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Focus / 键盘可访问性
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.tab-button:focus-visible {
  outline: 3px solid #f9c80e;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
