/* ==========================================================================
   龙猫云 (Totoro Cloud) - 全站核心样式
   配色系统：绘本森林、柔和纸感、宽松留白
   ========================================================================== */

:root {
  --bg: #F7FAEF;
  --sage: #C8DCC0;
  --sage-dark: #2C503C;
  --sage-hover: #223E2F;
  --mint: #D6EADF;
  --cream: #F5E7B5;
  --peach: #EFCDB9;
  --totoro-gray: #929A9B;
  --totoro-dark: #626B6C;
  --totoro-belly: #F4E9C8;
  --text: #34483D;
  --text-muted: #586F62;
  --border-soft: #D2E2CE;
  --wood-card: #F9F4E8;
  --wood-border: #D8C6A5;
  --wood-accent: #8E5A3C;
  --white: #FFFFFF;
  --gold: #D97706;
  --gold-bg: #FEF3C7;
  
  --font-serif: Georgia, "Songti SC", "STSong", "Source Han Serif SC", "SimSun", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fira Code", Consolas, Monaco, "Courier New", monospace;

  --shadow-sm: 0 2px 8px rgba(52, 72, 61, 0.05);
  --shadow-md: 0 6px 18px rgba(52, 72, 61, 0.08);
  --shadow-lg: 0 12px 30px rgba(52, 72, 61, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  letter-spacing: 0.01em;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(200, 220, 192, 0.15) 0%, transparent 25%),
    radial-gradient(circle at 90% 80%, rgba(214, 234, 223, 0.2) 0%, transparent 30%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button, input {
  font-family: inherit;
  font-size: inherit;
}

/* 容器与版心 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  position: relative;
}

/* 标题样式 */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--mint);
  color: var(--sage-dark);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  border: 1px solid rgba(44, 80, 60, 0.12);
}

.section-badge svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  margin-bottom: 16px;
  color: #24342B;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--sage-dark);
  color: #FAFBF7;
  box-shadow: 0 4px 14px rgba(44, 80, 60, 0.25);
}

.btn-primary:hover {
  background-color: var(--sage-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 80, 60, 0.32);
}

.btn-secondary {
  background-color: var(--cream);
  color: var(--text);
  border: 1px solid #E6D79F;
}

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

.btn-outline {
  background-color: transparent;
  color: var(--sage-dark);
  border: 2px solid var(--sage-dark);
}

.btn-outline:hover {
  background-color: var(--sage);
  color: var(--sage-dark);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* 顶部导航栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(247, 250, 239, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 220, 192, 0.6);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--sage-dark);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.mobile-toggle svg {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   首屏 (Hero Section)
   左侧品牌文字，右侧森林中的巨大坐姿龙猫，身体延伸至边际
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 40px 0 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
  z-index: 3;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E8F2E6;
  border: 1px solid #BFD8BA;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: #38A169;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: #213328;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-title .highlight {
  color: #365C45;
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--cream);
  z-index: -1;
  border-radius: 4px;
  opacity: 0.85;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(200, 220, 192, 0.7);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-badge-item svg {
  width: 18px;
  height: 18px;
  color: var(--sage-dark);
}

/* 右侧巨大龙猫容器 */
.hero-totoro-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-totoro-scene {
  width: 115%;
  max-width: 780px;
  transform: translateX(8%);
  transition: transform 0.6s ease-out;
}

.hero-totoro-scene:hover {
  transform: translateX(6%) scale(1.02);
}

/* ==========================================================================
   森林小径连接的三个优势段落 (Pathways Layout)
   蜿蜒小径连接，非卡片墙
   ========================================================================== */
.pathway-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, #EFF5E8 50%, var(--bg) 100%);
  padding: 100px 0;
  overflow: hidden;
}

.pathway-container {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

/* 蜿蜒小径 SVG 导线贯穿背景 */
.pathway-trail-svg {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: calc(100% - 80px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.pathway-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

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

.pathway-step:nth-child(even) {
  flex-direction: row-reverse;
}

.pathway-marker {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background: #FAF8F2;
  border: 3px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sage-dark);
  box-shadow: 0 4px 15px rgba(52, 72, 61, 0.08);
  flex-shrink: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.pathway-box {
  width: calc(50% - 60px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.pathway-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 48px;
  height: 4px;
  background-color: var(--mint);
  border-radius: 2px;
}

.pathway-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
  border-color: #BBD2B8;
}

.pathway-icon {
  width: 44px;
  height: 44px;
  background-color: #EBF3E8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dark);
  margin-bottom: 18px;
}

.pathway-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: #26382E;
}

.pathway-text {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.pathway-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pathway-tag {
  font-size: 0.8rem;
  padding: 4px 10px;
  background: #F1F6EE;
  color: #44614F;
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* ==========================================================================
   节点区域 (Nodes Section) - 叶片标记与清晰地区列表
   ========================================================================== */
.nodes-section {
  background-color: var(--bg);
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.node-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.node-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #B5CEB2;
}

.node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-soft);
}

.node-region-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.leaf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #E8F4E6;
  border-radius: var(--radius-full);
  color: #386B42;
}

.node-status-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: #ECFDF5;
  color: #065F46;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.node-status-pill .indicator {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: var(--radius-full);
}

.node-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.node-detail-item {
  display: flex;
  flex-direction: column;
}

.node-detail-label {
  color: #798E82;
  font-size: 0.775rem;
}

.node-detail-value {
  color: var(--text);
  font-weight: 600;
  margin-top: 2px;
}

.node-detail-value.pending {
  color: #8A6D3B;
  background: #FDF6E2;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  font-size: 0.75rem;
  width: fit-content;
}

.node-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.node-feature-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  background-color: #F4F8F1;
  border: 1px solid #DCE7D8;
  color: #4C6556;
  border-radius: 4px;
}

/* ==========================================================================
   AI 与流媒体 (AI & Streaming) - 左右交替图文
   ========================================================================== */
.ai-stream-section {
  background: linear-gradient(180deg, #F3F8EE 0%, #FFFFFF 100%);
  padding: 100px 0;
}

.feature-alternate-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 90px;
}

.feature-alternate-row:last-child {
  margin-bottom: 0;
}

.feature-alternate-row.reverse {
  direction: rtl;
}

.feature-alternate-row.reverse > * {
  direction: ltr;
}

.feature-card-visual {
  background: #FAFBF7;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.feature-card-visual::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: var(--mint);
  border-radius: var(--radius-full);
  opacity: 0.35;
  pointer-events: none;
}

.feature-card-visual svg {
  max-width: 320px;
  height: auto;
}

.feature-card-info h3 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: #26382E;
}

.feature-card-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.feature-check-item svg {
  width: 18px;
  height: 18px;
  color: #388E3C;
  flex-shrink: 0;
}

/* ==========================================================================
   五档套餐 (Pricing Plans) - 五块高度一致的木牌式比较区
   推荐套餐使用叶片徽章和文字强调
   未知参数写“待更新”
   ========================================================================== */
.pricing-section {
  background-color: var(--bg);
}

/* 计费周期切换器 */
.billing-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #EDF4E8;
  border: 1px solid var(--border-soft);
  padding: 5px;
  border-radius: var(--radius-full);
}

.billing-btn {
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.billing-btn:hover {
  color: var(--sage-dark);
}

.billing-btn.active {
  background-color: var(--sage-dark);
  color: #FAFBF7;
  box-shadow: 0 2px 8px rgba(44, 80, 60, 0.2);
}

.billing-discount {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background-color: var(--cream);
  color: #5A4212;
  font-weight: 700;
}

.billing-btn.active .billing-discount {
  background-color: #EBF5E5;
  color: var(--sage-dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}

.wood-plan-card {
  background-color: var(--wood-card);
  border: 2px solid var(--wood-border);
  border-radius: var(--radius-md);
  padding: 30px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 12px rgba(110, 80, 50, 0.08);
  transition: var(--transition);
  background-image: 
    linear-gradient(rgba(249, 244, 232, 0.92), rgba(249, 244, 232, 0.92)),
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(200, 180, 150, 0.15) 19px, rgba(200, 180, 150, 0.15) 20px);
}

.wood-plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(110, 80, 50, 0.14);
  border-color: #BBA27E;
}

/* 推荐套餐木牌特别样式 */
.wood-plan-card.featured {
  background-color: #FFFDF7;
  border: 2px solid #5C8C56;
  box-shadow: 0 8px 24px rgba(92, 140, 86, 0.2);
  transform: scale(1.03);
  z-index: 2;
}

.wood-plan-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.plan-leaf-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #3B7243;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.plan-leaf-badge svg {
  width: 12px;
  height: 12px;
}

.plan-header {
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--wood-border);
}

.plan-tier-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #7A5C3E;
  background-color: #F2E7CF;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.wood-plan-card.featured .plan-tier-tag {
  background-color: #E3F1E0;
  color: #2C503C;
}

.plan-name {
  font-size: 1.25rem;
  color: #382414;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 0.8rem;
  color: #7A6652;
  min-height: 38px;
  line-height: 1.5;
}

.plan-price-box {
  margin: 12px 0 4px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}

.plan-price-box .currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wood-accent);
}

.plan-price-box .amount {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--wood-accent);
}

.plan-price-box .period {
  font-size: 0.8rem;
  color: #8C7864;
}

.plan-cycle-note {
  font-size: 0.74rem;
  color: #8C7864;
  min-height: 18px;
}

.plan-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  flex-grow: 1;
}

.plan-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  padding: 5px 0;
  border-bottom: 1px dotted rgba(200, 180, 150, 0.45);
}

.plan-spec-label {
  color: #6D5B4B;
  white-space: nowrap;
  flex-shrink: 0;
}

.plan-spec-val {
  font-weight: 600;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}

.plan-spec-val.pending {
  color: #A36B15;
  background: #FEF3C7;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.plan-cta {
  margin-top: auto;
}

.plan-cta .btn {
  width: 100%;
  font-size: 0.9rem;
  padding: 10px 14px;
}

/* ==========================================================================
   真正可玩的游戏：橡果休息站 (Acorn Game Section)
   帮龙猫接橡果
   ========================================================================== */
.game-section {
  background: linear-gradient(180deg, #EDF5E6 0%, var(--bg) 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.game-layout-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.game-stage-wrapper {
  background: #FFFFFF;
  border: 3px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(52, 72, 61, 0.1);
  overflow: hidden;
  position: relative;
}

/* 游戏状态栏 */
.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background-color: #FAFBF7;
  border-bottom: 2px solid #E3ECE0;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.hud-item-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hud-item-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--sage-dark);
}

.lives-container {
  display: flex;
  gap: 4px;
}

.heart-icon {
  width: 20px;
  height: 20px;
  color: #E11D48;
  transition: transform 0.2s;
}

.heart-icon.lost {
  opacity: 0.25;
  filter: grayscale(1);
}

.hud-controls {
  display: flex;
  gap: 8px;
}

.hud-btn {
  background-color: var(--mint);
  border: 1px solid #BACFB6;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-dark);
  cursor: pointer;
  transition: var(--transition);
}

.hud-btn:hover {
  background-color: var(--sage);
  color: var(--sage-dark);
}

/* 游戏画布区 */
.game-canvas-area {
  position: relative;
  width: 100%;
  height: 440px;
  background: 
    linear-gradient(180deg, #E6F3E6 0%, #FAFDF7 70%, #E3EFE0 100%);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* 游戏覆盖层 (开始、暂停、结束结算) */
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(247, 250, 239, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 24px;
  text-align: center;
  transition: opacity 0.3s;
}

.game-overlay.hidden {
  display: none !important;
}

.overlay-title {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #24352A;
}

.overlay-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 24px;
}

.game-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
  text-align: left;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-item img {
  width: 24px;
  height: 24px;
}

.final-score-display {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 8px;
}

/* 游戏右侧守候的龙猫与互动 */
.game-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.totoro-watcher-box {
  width: 260px;
  height: 300px;
  position: relative;
}

.totoro-speech-bubble {
  background: #FFFFFF;
  border: 2px solid var(--border-soft);
  border-radius: 18px;
  padding: 12px 18px;
  font-size: 0.9rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  position: relative;
  max-width: 260px;
  line-height: 1.5;
}

.totoro-speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: #FFFFFF transparent;
  display: block;
  width: 0;
}

/* 龙猫挥手动画 */
@keyframes totoroWave {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-25deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-20deg); }
  100% { transform: rotate(0deg); }
}

.totoro-wave-arm.waving {
  animation: totoroWave 1.2s infinite ease-in-out;
}

.game-tips-list {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
  margin-top: 14px;
  width: 100%;
}

.game-tips-list li {
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* ==========================================================================
   九篇文章专区 (9 Articles Section)
   1 篇大推荐 + 8 篇双列条目
   ========================================================================== */
.articles-section {
  background-color: var(--bg);
}

.articles-featured-wrapper {
  margin-bottom: 40px;
}

.featured-article-card {
  background: #FFFFFF;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
  transition: var(--transition);
}

.featured-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #AEC6A8;
}

.featured-img-placeholder {
  background: linear-gradient(135deg, #E6F0E4 0%, #D2E5CE 100%);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border: 1px solid #C4D9C0;
}

.featured-img-placeholder svg {
  max-width: 180px;
  max-height: 180px;
}

.featured-content-box .tag {
  display: inline-block;
  padding: 4px 12px;
  background: #E8F4E5;
  color: var(--sage-dark);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.featured-content-box h3 {
  font-size: 1.85rem;
  margin-bottom: 14px;
  color: #213327;
}

.featured-content-box p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #798E82;
  margin-bottom: 20px;
}

/* 8 篇双列条目 */
.articles-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.article-compact-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-compact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #ADC8A7;
}

.article-compact-card .tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.article-compact-card .article-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: #EEF5EA;
  color: #385E46;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.article-compact-card .reading-time {
  font-size: 0.775rem;
  color: #8CA093;
}

.article-compact-card h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #273B2E;
  line-height: 1.4;
}

.article-compact-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.article-link-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-top: auto;
}

.article-link-read:hover {
  color: #172F22;
  gap: 9px;
}

/* ==========================================================================
   真实可信评价与 FAQ 区域
   保持克制真诚，不编造夸张测速评分
   ========================================================================== */
.testimonials-section {
  background: linear-gradient(180deg, var(--bg) 0%, #EEF4E8 100%);
  padding: 90px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-size: 0.975rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px dashed var(--border-soft);
  padding-top: 16px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: #DCEAD8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 1rem;
}

.author-info h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.8rem;
  color: #798E82;
}

/* FAQ 问答 */
.faq-section {
  background-color: var(--bg);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #273A2F;
  cursor: pointer;
}

.faq-toggle-icon {
  width: 20px;
  height: 20px;
  color: var(--sage-dark);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 20px;
}

/* ==========================================================================
   全站页脚 (Footer)
   包含必须的 3 个自然外链与法律独立页面导航
   ========================================================================== */
.site-footer {
  background: #25382D;
  color: #D3E0D8;
  padding: 70px 0 30px 0;
  border-top: 4px solid var(--sage);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #ABC0B3;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--sage);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #BACEC2;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: #8EA797;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   独立文章页面排版系统 (Articles Reading Experience)
   ========================================================================== */
.article-page-header {
  padding: 60px 0 30px 0;
  background: linear-gradient(180deg, #EDF5E8 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-soft);
}

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

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

.article-main-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  line-height: 1.3;
  margin-bottom: 18px;
  color: #1F3025;
}

.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: #6C8173;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 60px 0 100px 0;
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #2F4236;
}

.article-content h2 {
  font-size: 1.85rem;
  margin: 48px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  color: #203326;
}

.article-content h3 {
  font-size: 1.45rem;
  margin: 32px 0 16px 0;
  color: #284131;
}

.article-content p {
  margin-bottom: 22px;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content ul li {
  list-style-type: disc;
  margin-bottom: 8px;
}

.article-content ol li {
  list-style-type: decimal;
  margin-bottom: 8px;
}

.article-content blockquote {
  border-left: 4px solid var(--sage-dark);
  background: #EEF6EB;
  padding: 18px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  color: #385141;
  font-style: italic;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 0.95rem;
}

.article-content th, .article-content td {
  padding: 12px 16px;
  border: 1px solid #D8E6D4;
  text-align: left;
}

.article-content th {
  background-color: #E7F0E3;
  color: #24382B;
  font-weight: 600;
}

.article-content pre {
  background: #25332A;
  color: #E6F3EA;
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin: 28px 0;
}

.article-content code {
  font-family: var(--font-mono);
  background: #EAF2E7;
  color: #234731;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.article-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
}

.sidebar-widget h4 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E5EFE2;
}

/* ==========================================================================
   响应式断点适配 (375, 390, 430, 768, 1024, 1440px)
   移动端保留可见龙猫，调整构图而非隐藏
   ========================================================================== */

/* 1024px 及以下平板适配 */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-totoro-wrapper {
    justify-content: center;
  }

  .hero-totoro-scene {
    width: 85%;
    max-width: 520px;
    transform: none;
    margin: 0 auto;
  }

  .hero-totoro-scene:hover {
    transform: scale(1.02);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid .wood-plan-card:nth-child(5) {
    grid-column: span 2;
  }

  .game-layout-container {
    grid-template-columns: 1fr;
  }

  .game-sidebar {
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }
}

/* 768px 及以下手机横屏/竖屏适配 */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background-color: var(--bg);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: block;
  }

  /* 森林小径单列排布 */
  .pathway-trail-svg {
    display: none;
  }

  .pathway-step, .pathway-step:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 40px;
  }

  .pathway-marker {
    position: static;
    transform: none;
    margin: 0 auto;
  }

  .pathway-box {
    width: 100%;
  }

  .feature-alternate-row, .feature-alternate-row.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    direction: ltr;
  }

  .featured-article-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .articles-sub-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* 430px / 390px / 375px 小屏手机专项微调 */
@media (max-width: 430px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-totoro-scene {
    width: 100%;
    max-width: 360px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid .wood-plan-card:nth-child(5) {
    grid-column: span 1;
  }

  .game-canvas-area {
    height: 380px;
  }

  .game-hud {
    padding: 10px 12px;
  }

  .hud-group {
    gap: 10px;
  }

  .hud-item {
    font-size: 0.85rem;
  }

  .hud-item-value {
    font-size: 1rem;
  }
}

/* 无障碍偏好：减少动画 */
@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;
  }
}
