:root {
  /* 主题色 */
  --primary: #FFD93D;
  --primary-light: #FFF3B0;
  --primary-dark: #F0C929;
  --primary-pale: #FFF8DC;
  
  /* 治愈色系 */
  --heal-pink: #FFB6C1;
  --heal-blue: #87CEEB;
  --heal-green: #98FB98;
  --heal-purple: #DDA0DD;
  --heal-orange: #FFB347;
  
  /* 功能色 */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border: #E5E5E5;
  --divider: #EEEEEE;
  --background: #FFFEF5;
  --bg-card: #FFFFFF;
  --success: #52C41A;
  --warning: #FAAD14;
  --error: #FF4757;
  --love: #FF6B81;
  
  /* 尺寸 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 30px rgba(255,217,61,0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== 导航 ==================== */
.nav {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--background));
  border-bottom: 1px solid var(--divider);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

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

.brand {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-dark), #FF6B6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.menu {
  display: flex;
  gap: 8px;
}

.menu a {
  padding: 10px 18px;
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.menu a:hover {
  background: var(--primary-light);
  color: var(--text-primary);
}

.menu a.active {
  background: var(--primary);
  color: var(--text-primary);
}

/* ==================== Hero大首页 ==================== */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
  background: linear-gradient(180deg, #E8F4FD 0%, var(--background) 100%);
  position: relative;
  overflow: hidden;
}

.hero-large {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  min-height: 600px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-kicker {
  font-size: 14px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.hero-title-large {
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary-dark), #FF6B6B, var(--heal-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero-subtitle-large {
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-tertiary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
}

/* ==================== 3D卡通动物场景 ==================== */
.hero-illustration-large {
  flex: 1;
  height: 550px;
  perspective: 1000px;
}

.scene-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-5deg) rotateX(5deg);
  animation: sceneFloat 6s ease-in-out infinite;
}

@keyframes sceneFloat {
  0%, 100% { transform: rotateY(-5deg) rotateX(5deg) translateY(0); }
  50% { transform: rotateY(-3deg) rotateX(3deg) translateY(-10px); }
}

.scene-sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(180deg, #87CEEB, #E8F4FD);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.sun-large {
  position: absolute;
  top: 30px;
  right: 60px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #FFD93D, #FFA500);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(255,217,61,0.6);
  animation: sunPulse 4s ease-in-out infinite;
}

@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 60px rgba(255,217,61,0.6); }
  50% { box-shadow: 0 0 80px rgba(255,217,61,0.8); }
}

.cloud-large {
  position: absolute;
  background: white;
  border-radius: var(--radius-full);
  opacity: 0.9;
}

.cloud-1 { width: 120px; height: 50px; top: 40px; left: 30px; animation: cloudFloat 8s ease-in-out infinite; }
.cloud-2 { width: 100px; height: 40px; top: 80px; left: 180px; animation: cloudFloat 10s ease-in-out infinite 1s; }
.cloud-3 { width: 80px; height: 35px; top: 50px; right: 180px; animation: cloudFloat 12s ease-in-out infinite 2s; }

@keyframes cloudFloat {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20px); }
}

.scene-mountains {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  height: 150px;
}

.mountain {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

.m1 { left: 10%; border-width: 0 100px 120px 100px; border-color: transparent transparent #A8D8A8 transparent; }
.m2 { left: 35%; border-width: 0 120px 150px 120px; border-color: transparent transparent #90C090 transparent; }
.m3 { right: 15%; border-width: 0 90px 100px 90px; border-color: transparent transparent #78B078 transparent; }

.scene-hills {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  height: 80px;
}

.hill {
  position: absolute;
  border-radius: 50%;
}

.bh1 { left: 0; width: 300px; height: 80px; background: #90C090; }
.bh2 { right: 50px; width: 250px; height: 70px; background: #78B078; }
.bh3 { left: 40%; width: 200px; height: 60px; background: #A8D8A8; }

.scene-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(180deg, #90C090, #78B078);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* 卡通动物角色 */
.animal-group {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
}

/* 熊 */
.bear-character {
  position: relative;
  width: 100px;
  height: 100px;
  animation: bearBounce 2s ease-in-out infinite;
}

.bear-ear {
  position: absolute;
  width: 25px;
  height: 25px;
  background: #8B4513;
  border-radius: 50%;
}
.bear-ear.left { top: 0; left: 15px; }
.bear-ear.right { top: 0; right: 15px; }

.bear-face {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 80px;
  height: 70px;
  background: #DEB887;
  border-radius: 50%;
}

.bear-eye {
  position: absolute;
  width: 10px;
  height: 12px;
  background: #333;
  border-radius: 50%;
  top: 25px;
}
.bear-eye.left { left: 20px; }
.bear-eye.right { right: 20px; }

.bear-nose {
  position: absolute;
  width: 15px;
  height: 10px;
  background: #4A3728;
  border-radius: 50%;
  top: 40px;
  left: 32px;
}

.bear-blush {
  position: absolute;
  width: 12px;
  height: 8px;
  background: #FFB6C1;
  border-radius: 50%;
  opacity: 0.6;
}
.bear-blush.left { left: 10px; top: 45px; }
.bear-blush.right { right: 10px; top: 45px; }

@keyframes bearBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 猫 */
.cat-character {
  position: relative;
  width: 80px;
  height: 80px;
  animation: catBounce 2.5s ease-in-out infinite 0.5s;
}

.cat-ear {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 25px solid #FFA500;
}
.cat-ear.left { top: 5px; left: 10px; }
.cat-ear.right { top: 5px; right: 10px; }

.cat-face {
  position: absolute;
  top: 25px;
  left: 0;
  width: 80px;
  height: 55px;
  background: #FFE4B5;
  border-radius: 50% 50% 40% 40%;
}

.cat-eye {
  position: absolute;
  width: 8px;
  height: 10px;
  background: #333;
  border-radius: 50%;
  top: 20px;
}
.cat-eye.left { left: 22px; }
.cat-eye.right { right: 22px; }

.cat-nose {
  position: absolute;
  width: 8px;
  height: 6px;
  background: #FFA500;
  border-radius: 50%;
  top: 35px;
  left: 36px;
}

@keyframes catBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 兔子 */
.rabbit-character {
  position: relative;
  width: 70px;
  height: 90px;
  animation: rabbitBounce 3s ease-in-out infinite 1s;
}

.rabbit-ear {
  position: absolute;
  width: 15px;
  height: 40px;
  background: white;
  border-radius: 50% 50% 20% 20%;
}
.rabbit-ear.left { top: 0; left: 15px; }
.rabbit-ear.right { top: 0; right: 15px; }

.rabbit-face {
  position: absolute;
  top: 35px;
  left: 5px;
  width: 60px;
  height: 50px;
  background: white;
  border-radius: 50%;
}

.rabbit-eye {
  position: absolute;
  width: 8px;
  height: 10px;
  background: #333;
  border-radius: 50%;
  top: 15px;
}
.rabbit-eye.left { left: 15px; }
.rabbit-eye.right { right: 15px; }

.rabbit-nose {
  position: absolute;
  width: 8px;
  height: 6px;
  background: pink;
  border-radius: 50%;
  top: 30px;
  left: 26px;
}

@keyframes rabbitBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 漂浮元素 */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.bubble {
  position: absolute;
  font-size: 30px;
  animation: bubbleFloat 4s ease-in-out infinite;
}
.b1 { top: 60px; left: 20%; animation-delay: 0s; }
.b2 { top: 100px; right: 25%; animation-delay: 1s; }
.b3 { top: 40px; right: 35%; animation-delay: 2s; }

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  50% { transform: translateY(-15px) rotate(10deg); opacity: 1; }
}

.heart {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--heal-pink);
  transform: rotate(45deg);
  animation: heartBeat 2s ease-in-out infinite;
}
.heart::before, .heart::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--heal-pink);
  border-radius: 50%;
}
.heart::before { left: -10px; }
.heart::after { top: -10px; }

.h1 { bottom: 150px; left: 25%; }
.h2 { bottom: 180px; right: 30%; animation-delay: 1s; }

@keyframes heartBeat {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.15); }
}

/* ==================== 章节标题 ==================== */
.section-title {
  font-size: 32px;
  font-weight: 700;
  margin: 50px 0 24px;
  padding-left: 16px;
  border-left: 5px solid var(--primary);
}

/* ==================== 卡片网格 ==================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.meta {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

/* ==================== 表单 ==================== */
.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: border-color 0.3s;
  font-family: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==================== 博客网格（大） ==================== */
.blog-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

.blog-card-large {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-card-large:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-cover-large {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light), var(--heal-pink));
}

.blog-body-large {
  padding: 20px;
}

.blog-title-large {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-summary-large {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta-large {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
}

.blog-tags-large {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.blog-tag {
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 12px;
}

/* ==================== 博客详情 ==================== */
.blog-detail-view {
  display: none;
}

.blog-detail-view.active {
  display: block;
}

.blog-detail-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.blog-detail-header {
  padding: 30px;
  border-bottom: 1px solid var(--divider);
}

.blog-detail-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.blog-detail-title {
  font-size: 28px;
  font-weight: 700;
  margin: 20px 0;
}

.blog-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-tertiary);
  font-size: 14px;
}

.blog-detail-body {
  padding: 30px;
  line-height: 1.8;
  font-size: 16px;
}

/* ==================== 筛选按钮 ==================== */
.filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* ==================== 留言列表 ==================== */
.message-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.message-content {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.message-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

.message-actions {
  display: flex;
  gap: 12px;
}

.message-action {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.2s;
}

.message-action:hover {
  color: var(--primary-dark);
}

/* ==================== 游戏区域 ==================== */
.game-panel {
  margin-top: 24px;
}

.game-header {
  margin-bottom: 20px;
}

.game-header h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.game-shell {
  background: #f5f5f5;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.game-shell canvas {
  display: block;
  width: 100%;
}

.game-hud {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  background: white;
  font-size: 14px;
}

.leaderboard {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
}

.leaderboard h4 {
  font-size: 16px;
  margin-bottom: 12px;
}

.leaderboard-list {
  list-style: none;
}

.leaderboard-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid var(--divider);
}

.leaderboard-list li:nth-child(1) { color: #FFD700; }
.leaderboard-list li:nth-child(2) { color: #C0C0C0; }
.leaderboard-list li:nth-child(3) { color: #CD7F32; }

/* 呼吸游戏 */
.breath-shell {
  padding: 30px;
}

.breath-track {
  position: relative;
  height: 60px;
  background: linear-gradient(90deg, #f0f0f0, #e0e0e0);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  overflow: hidden;
}

.breath-zone {
  position: absolute;
  left: 30%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #90EE90, #90EE90, transparent);
  opacity: 0.6;
}

.breath-cursor {
  position: absolute;
  top: 5px;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, var(--primary), var(--primary-dark));
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255,217,61,0.5);
}

/* ==================== 成功/错误提示 ==================== */
.success {
  color: var(--success);
  margin-top: 8px;
  font-size: 14px;
}

/* ==================== 页脚 ==================== */
.footer {
  text-align: center;
  padding: 40px;
  margin-top: 60px;
  background: var(--primary-light);
  color: var(--text-tertiary);
  font-size: 14px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
  .hero-large {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-title-large {
    font-size: 48px;
  }
  
  .hero-subtitle-large {
    font-size: 20px;
  }
  
  .hero-illustration-large {
    width: 100%;
    height: 400px;
  }
  
  .animal-group {
    transform: translateX(-50%) scale(0.8);
  }
  
  .grid, .blog-grid-large {
    grid-template-columns: 1fr;
  }
  
  .menu {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-title-large {
    font-size: 36px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .btn-large {
    padding: 14px 28px;
    font-size: 16px;
  }
}