/* ==================================================
   喵喵云 第3套：“云端猫窝系统” 专属样式表
   Design System: Editorial, Soft Tech, Warm White & Sage Green
   ================================================== */

:root {
  --bg: #F7F4EE;
  --surface: #FFFDFC;
  --text: #292A2D;
  --body: #67676A;
  --muted: #939095;
  --forest: #46574F;
  --sage: #7F9386;
  --sage-soft: #EBF0EC;
  --blue-gray: #687E8B;
  --blue-gray-soft: #EBEFF2;
  --apricot: #C78360;
  --apricot-soft: #F5E8DF;
  --latte: #A98E77;
  --latte-soft: #F0E9E2;
  --border: #DDD8D1;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-soft: 0 12px 36px rgba(41, 42, 45, 0.04);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  color: var(--body);
  background-color: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--apricot);
}

.hover-lift:hover {
  transform: translateY(-2px);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.8rem; /* 48-64px equivalent */
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.9rem; /* 30-40px */
}

h3 {
  font-size: 1.35rem; /* 21-27px */
}

p {
  margin-bottom: 1.2rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 74px;
  background: rgba(247, 244, 238, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-svg {
  width: 26px;
  height: 26px;
  color: var(--forest);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--forest);
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 6px;
  display: inline-block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--forest);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg width='30' height='6' viewBox='0 0 30 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5C8 1 22 1 29 5' stroke='%2%46574F' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--forest);
  color: #FFFDFC !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.25 ease, transform 0.2s ease;
}

.header-cta:hover {
  background-color: var(--apricot);
  color: #FFFDFC !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  width: 100%;
  height: calc(100vh - 74px);
  background-color: var(--bg);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  z-index: 999;
  border-top: 1px solid var(--border);
}

.mobile-menu-overlay.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(221, 216, 209, 0.4);
}

/* Hero Section (云端猫窝系统) */
.hero-section {
  position: relative;
  min-height: 760px;
  padding: 4rem 0 3rem 0;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-gradient {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, var(--sage-soft) 0%, transparent 60%),
              radial-gradient(circle at 80% 70%, var(--apricot-soft) 0%, transparent 50%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  background-color: var(--sage-soft);
  border: 1px solid var(--sage);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.hero-sub-header {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--apricot);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--body);
  max-width: 780px;
  margin: 0 auto 2rem auto;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--apricot);
  color: #FFFDFC !important;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(199, 131, 96, 0.25);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background-color: #b57250;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--forest);
  color: #FFFDFC !important;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background-color: var(--sage);
  transform: translateY(-2px);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--forest);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
}

.btn-link:hover {
  color: var(--apricot);
}

/* Hero Cat & Tail Interactive Entrance Area */
.hero-cat-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 380px;
  margin: 0 auto;
}

.hero-cat-svg-container {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 240px;
  height: 300px;
  z-index: 5;
}

/* Hero Task Entries - Positioned elegantly around cat tail curve */
.hero-task-entries {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.task-entry-item {
  position: absolute;
  pointer-events: auto;
  background: rgba(255, 253, 252, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 160px;
  text-align: left;
}

.task-entry-item:hover {
  border-color: var(--apricot);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(41, 42, 45, 0.08);
}

.task-entry-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--apricot);
  letter-spacing: 0.05em;
}

.task-entry-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.task-entry-sub {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* Specific Positions for 9 Task Entries along the curve */
.task-pos-1 { top: 20px; left: 6%; }
.task-pos-2 { top: 90px; left: 2%; }
.task-pos-3 { top: 180px; left: 5%; }
.task-pos-4 { top: 260px; left: 14%; }
.task-pos-5 { bottom: 10px; left: 28%; }
.task-pos-6 { bottom: 10px; right: 28%; }
.task-pos-7 { top: 260px; right: 14%; }
.task-pos-8 { top: 160px; right: 4%; }
.task-pos-9 { top: 50px; right: 8%; }

/* SVG Cat Line-art Styles & Animations */
.cat-line {
  stroke: var(--forest);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.cat-fill-subtle {
  fill: #FFFDFC;
}

.cat-chest-part {
  transform-origin: 120px 180px;
  animation: catBreathing 20s ease-in-out infinite;
}

.cat-ear-left-part {
  transform-origin: 105px 75px;
  animation: earTwitchLeft 20s ease-in-out infinite;
}

.cat-ear-right-part {
  transform-origin: 135px 75px;
  animation: earTwitchRight 20s ease-in-out infinite;
}

.cat-whole-body {
  transform-origin: 120px 220px;
  animation: catStretch 20s ease-in-out infinite;
}

.cat-tail-path-hero {
  stroke: var(--forest);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 800;
  stroke-dashoffset: 0;
  animation: tailSweep 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Keyframes for 20-second Cat Cycle */
@keyframes catBreathing {
  0%, 45%, 100% { transform: scaleY(1); }
  20%, 35% { transform: scaleY(1.018); }
}

@keyframes earTwitchLeft {
  0%, 15%, 30%, 100% { transform: rotate(0deg); }
  18% { transform: rotate(-3deg); }
  22% { transform: rotate(0deg); }
}

@keyframes earTwitchRight {
  0%, 22%, 35%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  28% { transform: rotate(0deg); }
}

@keyframes catStretch {
  0%, 55%, 75%, 100% { transform: translate(0, 0); }
  62% { transform: translate(-5px, 6px); } /* subtle stretch down-front */
}

@keyframes tailSweep {
  0% { stroke-dashoffset: 200; }
  25% { stroke-dashoffset: 0; }
  70% { stroke-dashoffset: 0; }
  90% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 200; }
}

/* General Section Styling */
.section-padding {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 2.8rem;
}

.section-number {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--apricot);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: block;
}

.direct-answer-box {
  background-color: var(--sage-soft);
  border-left: 3px solid var(--sage);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
}

.direct-answer-box strong {
  color: var(--forest);
}

/* Section 01: 猫尾步骤单 */
.cat-tail-steps-wrapper {
  position: relative;
  padding-left: 2.5rem;
}

.cat-tail-step-line {
  position: absolute;
  top: 15px;
  left: 18px;
  width: 2px;
  height: calc(100% - 30px);
  background: linear-gradient(to bottom, var(--forest), var(--sage), var(--apricot));
  border-radius: 2px;
}

.step-item {
  position: relative;
  margin-bottom: 2rem;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-badge-num {
  position: absolute;
  left: -2.5rem;
  top: 2px;
  width: 32px;
  height: 32px;
  background-color: var(--surface);
  border: 2px solid var(--forest);
  color: var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
}

.step-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--body);
}

/* Task Checklist Grid for Devices */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.check-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
}

.check-item h4 {
  font-size: 1.05rem;
  color: var(--forest);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-item h4::before {
  content: "✓";
  color: var(--apricot);
  font-weight: bold;
}

/* Paper Strip Step Flow (Section 06) */
.paper-strip-flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background-color: var(--latte-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.paper-strip-step {
  flex: 1;
  min-width: 140px;
  background-color: var(--surface);
  border: 1px dashed var(--latte);
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.paper-strip-step .num {
  font-size: 0.8rem;
  color: var(--apricot);
  font-weight: 700;
}

.paper-strip-step .title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}

.paper-arrow {
  color: var(--latte);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Section 14: 猫尾目录页 (Core Guide Entry) */
.core-guide-box {
  background: linear-gradient(135deg, var(--sage-soft) 0%, var(--surface) 100%);
  border: 1px solid var(--sage);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.core-guide-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: center;
}

.core-guide-cat-visual {
  text-align: center;
}

.core-guide-cat-svg {
  width: 180px;
  height: 220px;
}

/* Section 15: 猫窝选择单 (Pricing Section) */
.pricing-section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-row {
  display: grid;
  grid-template-columns: 220px 30px 1fr 180px 140px;
  align-items: center;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  transition: all 0.25s ease;
}

.pricing-row:hover {
  border-color: var(--sage);
}

.pricing-row.highlight-row {
  background-color: var(--sage-soft);
  border: 2px solid var(--forest);
  box-shadow: var(--shadow-soft);
}

.pricing-user-state {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.pricing-arrow {
  color: var(--muted);
}

.pricing-plan-name {
  font-weight: 700;
  color: var(--forest);
  font-size: 1.1rem;
}

.pricing-plan-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background-color: var(--apricot);
  color: #FFFDFC;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

.pricing-specs {
  font-size: 0.9rem;
  color: var(--body);
}

.pricing-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--apricot);
}

.pricing-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--forest);
  color: #FFFDFC !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
}

.pricing-cta-btn:hover {
  background-color: var(--apricot);
}

/* Section 16: 教程文章中心 (Cat Tail Article Catalog) */
.article-catalog-groups {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.catalog-group-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.catalog-group-row:last-child {
  border-bottom: none;
}

.catalog-group-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.catalog-group-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--forest);
}

.catalog-article-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.catalog-article-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-article-item:hover {
  border-color: var(--apricot);
}

.catalog-article-main h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.catalog-article-main h4 a:hover {
  color: var(--apricot);
}

.catalog-article-snippet {
  font-size: 0.85rem;
  color: var(--muted);
}

.catalog-article-meta {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Section 17: FAQ Accordion (教程问答纸页) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  gap: 1rem;
}

.faq-question-btn:hover {
  color: var(--forest);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--forest);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer-content {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.98rem;
  color: var(--body);
  line-height: 1.8;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
}

.faq-answer-content p {
  margin-bottom: 0.5rem;
}

/* Category Page Styling */
.category-hero {
  background-color: var(--bg);
  padding: 4rem 0 3rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.category-hero-inner {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 2rem;
  align-items: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--forest);
}

.category-desc {
  font-size: 1.05rem;
  color: var(--body);
  max-width: 700px;
}

/* Article Detail Page Layout */
.article-page-layout {
  padding: 3rem 0 5rem 0;
}

.article-main-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
}

.article-body-wrapper {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-soft);
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

.quick-conclusion-box {
  background-color: var(--sage-soft);
  border-left: 3px solid var(--sage);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.quick-conclusion-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 1.5rem;
  width: 40px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg width='40' height='8' viewBox='0 0 40 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7C10 2 30 2 39 7' stroke='%237F9386' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
}

.article-content {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--body);
}

.article-content h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.article-content h3 {
  font-size: 1.2rem;
  color: var(--forest);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.toc-box {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.toc-list a {
  color: var(--body);
  display: block;
}

.toc-list a:hover {
  color: var(--apricot);
}

/* Footer (深灰绿教程目录Footer) */
.site-footer {
  background-color: var(--forest);
  color: #F8F7F3;
  padding: 4rem 0 2rem 0;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.footer-tail-watermark {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 500px;
  height: 500px;
  opacity: 0.05;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFDFC;
  margin-bottom: 0.8rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #CDD6D0;
  margin-bottom: 1.2rem;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFDFC;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.footer-links a {
  color: #CDD6D0;
}

.footer-links a:hover {
  color: var(--apricot-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(205, 214, 208, 0.2);
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #CDD6D0;
}

.friendly-links-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.friendly-links-group a {
  color: #CDD6D0;
}

.friendly-links-group a:hover {
  color: #FFFDFC;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .cat-chest-part, .cat-ear-left-part, .cat-ear-right-part, .cat-whole-body, .cat-tail-path-hero {
    animation: none !important;
  }
  
  .cat-tail-path-hero {
    stroke-dashoffset: 0 !important;
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-cat-wrapper {
    height: 340px;
  }
  
  .pricing-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  
  .catalog-group-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .article-main-grid {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  
  .nav-menu, .header-cta {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .brand-tagline {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2.5rem 0 2rem 0;
  }
  
  .hero-title {
    font-size: 1.9rem;
  }
  
  .hero-cat-wrapper {
    height: 380px;
  }
  
  .task-entry-item {
    position: static;
    max-width: 100%;
    margin-bottom: 0.6rem;
  }
  
  .hero-task-entries {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-top: 1.5rem;
  }
  
  .core-guide-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .pricing-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .paper-strip-flow {
    flex-direction: column;
  }
  
  .paper-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.65rem;
  }
  
  .hero-task-entries {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
