/* ========== 大树（左侧） ========== */
.big-tree {
  position: absolute;
  left: -20px;
  bottom: 70px;
  width: 240px;
  height: 420px;
  z-index: 5;
}

.tree-crown {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 260px;
}

.crown-main {
  position: absolute;
  width: 170px;
  height: 170px;
  background: radial-gradient(ellipse at 40% 40%, #81C784 0%, #66BB6A 40%, #43A047 80%, #2E7D32 100%);
  border-radius: 50%;
  top: 50px;
  left: 35px;
  box-shadow: 
    -50px 15px 0 -15px #4CAF50,
    50px 15px 0 -15px #43A047,
    0 -25px 0 -25px #66BB6A,
    -30px -15px 0 -30px #81C784,
    35px -12px 0 -28px #81C784;
}

.crown-highlight {
  position: absolute;
  width: 70px;
  height: 50px;
  background: radial-gradient(ellipse, rgba(200,230,200,0.5) 0%, transparent 70%);
  border-radius: 50%;
  top: 60px;
  left: 60px;
}

.tree-trunk {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 65px;
  height: 190px;
  background: linear-gradient(90deg, #5D4037 0%, #8D6E63 30%, #A1887F 50%, #8D6E63 70%, #5D4037 100%);
  border-radius: 12px 12px 8px 8px;
}

.tree-hole {
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 48px;
  background: radial-gradient(ellipse at 50% 30%, #3E2723 0%, #2C1810 100%);
  border-radius: 50% 50% 45% 45%;
  z-index: 15;
}

/* 右侧的树 */
.side-tree {
  position: absolute;
  z-index: 4;
  bottom: 70px;
}

.side-tree.tree-right {
  right: 25px;
  transform: scale(0.65);
}

.side-tree.tree-far-right {
  right: 100px;
  bottom: 75px;
  transform: scale(0.45);
  opacity: 0.7;
}

.st-trunk {
  width: 45px;
  height: 120px;
  background: linear-gradient(90deg, #6D4C41, #8D6E63, #6D4C41);
  margin: 0 auto;
  border-radius: 8px;
}

.st-crown {
  width: 130px;
  height: 140px;
  background: radial-gradient(ellipse at 40% 40%, #81C784, #4CAF50, #2E7D32);
  border-radius: 50%;
  position: relative;
  left: -42px;
  top: 15px;
}

/* ========== 标题区域 ========== */
.title-area {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 20;
}

.title-board {
  display: inline-block;
  background: linear-gradient(180deg, #8D6E63 0%, #6D4C41 100%);
  padding: 10px 35px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  border: 3px solid #5D4037;
}

.title-board::before, .title-board::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 16px;
  background: #4E342E;
  top: -14px;
  border-radius: 2px;
}

.title-board::before { left: 25px; }
.title-board::after { right: 25px; }

.title-text {
  font-size: 34px;
  font-weight: 900;
  color: #FFD54F;
  letter-spacing: 4px;
  text-shadow: 2px 2px 0 #3E2723, 3px 3px 5px rgba(0,0,0,0.3);
}

.title-sub {
  margin-top: 10px;
  font-size: 13px;
  color: #2E7D32;
  font-weight: bold;
  letter-spacing: 6px;
  background: rgba(255,255,255,0.85);
  display: inline-block;
  padding: 4px 22px;
  border-radius: 15px;
}

/* ========== 主猫咪 ========== */
.main-cat {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 145px;
  z-index: 15;
}

.cat-body {
  position: absolute;
  bottom: 0;
  left: 30px;
  width: 100px;
  height: 75px;
  background: linear-gradient(135deg, #FFB74D 0%, #FFA726 50%, #FF9800 100%);
  border-radius: 50% 50% 42% 42%;
  box-shadow: inset -8px -5px 15px rgba(0,0,0,0.1);
}

.cat-belly {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 45px;
  background: #FFE0B2;
  border-radius: 50%;
}

.cat-head {
  position: absolute;
  top: 8px;
  left: 35px;
  width: 82px;
  height: 75px;
  background: linear-gradient(135deg, #FFB74D 0%, #FFA726 100%);
  border-radius: 50%;
  box-shadow: inset -5px -3px 10px rgba(0,0,0,0.08);
}

.cat-ear {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid #FFA726;
  top: -8px;
}

.cat-ear.left { left: 4px; transform: rotate(-18deg); }
.cat-ear.right { right: 4px; transform: rotate(18deg); }

.cat-ear-inner {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 20px solid #FF8A65;
  top: 10px;
}

.cat-ear.left .cat-ear-inner { left: -5px; }
.cat-ear.right .cat-ear-inner { right: -5px; }

.cat-eye {
  position: absolute;
  width: 14px;
  height: 19px;
  background: #2C1810;
  border-radius: 50%;
  top: 26px;
}

.cat-eye.left { left: 16px; }
.cat-eye.right { right: 16px; }

.cat-eye::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 6px;
  background: white;
  border-radius: 50%;
  top: 4px;
  left: 4px;
}

.cat-cheek {
  position: absolute;
  width: 16px;
  height: 9px;
  background: #FF8A80;
  border-radius: 50%;
  opacity: 0.6;
  top: 43px;
}

.cat-cheek.left { left: 4px; }
.cat-cheek.right { right: 4px; }

.cat-nose {
  position: absolute;
  width: 11px;
  height: 7px;
  background: #FF8A65;
  border-radius: 50%;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.cat-mouth {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 11px;
}

.cat-mouth::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 6px;
  border: 2px solid #5D4037;
  border-top: none;
  border-right: none;
  border-radius: 0 0 0 8px;
  left: 2px;
  top: 2px;
}

.cat-mouth::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 6px;
  border: 2px solid #5D4037;
  border-top: none;
  border-left: none;
  border-radius: 0 0 8px 0;
  right: 2px;
  top: 2px;
}

.cat-whiskers {
  position: absolute;
  top: 45px;
  width: 100%;
}

.whisker {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: #8D6E63;
  border-radius: 1px;
}

.whisker.l1 { left: -8px; top: 0; transform: rotate(-10deg); }
.whisker.l2 { left: -10px; top: 5px; }
.whisker.l3 { left: -6px; top: 10px; transform: rotate(10deg); }
.whisker.r1 { right: -8px; top: 0; transform: rotate(10deg); }
.whisker.r2 { right: -10px; top: 5px; }
.whisker.r3 { right: -6px; top: 10px; transform: rotate(-10deg); }

/* 猫尾巴 */
.cat-tail {
  position: absolute;
  bottom: 45px;
  right: 0px;
  width: 32px;
  height: 65px;
  z-index: 14;
  animation: tailWag 1.5s ease-in-out infinite;
  transform-origin: bottom right;
}

@keyframes tailWag {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(15deg); }
}

.cat-tail-shape {
  width: 20px;
  height: 65px;
  background: linear-gradient(90deg, #FFA726, #FF9800);
  border-radius: 50% 50% 40% 40%;
  transform: rotate(25deg);
  position: absolute;
  bottom: 0;
  right: 0;
}

.cat-tail-tip {
  position: absolute;
  width: 24px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: -4px;
  left: -2px;
}

/* 猫爪 */
.cat-paw {
  position: absolute;
  width: 23px;
  height: 16px;
  background: #FFA726;
  border-radius: 50% 50% 40% 40%;
  bottom: 0;
}

.cat-paw.left { left: 40px; }
.cat-paw.right { right: 40px; }

.cat-paw::before {
  content: '';
  position: absolute;
  width: 13px;
  height: 9px;
  background: #FFCCBC;
  border-radius: 50%;
  bottom: 2px;
  left: 5px;
}

/* 猫咪头上小花 */
.cat-flower {
  position: absolute;
  top: -3px;
  right: 8px;
  width: 18px;
  height: 18px;
  z-index: 5;
  animation: flowerSway 3s ease-in-out infinite;
}

.cf-petal {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #F48FB1;
  border-radius: 50%;
}

.cf-p1 { top: 0; left: 5px; }
.cf-p2 { top: 5px; left: 0; }
.cf-p3 { top: 5px; right: 0; }
.cf-p4 { bottom: 0; left: 5px; }

.cf-center {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #FFF59D;
  border-radius: 50%;
  top: 6px;
  left: 6px;
  z-index: 2;
}

/* ========== 蝴蝶 ========== */
.butterfly {
  position: absolute;
  z-index: 22;
  animation: butterflyFly 12s ease-in-out infinite;
}

.butterfly1 {
  top: 160px;
  left: 280px;
  animation-delay: 0s;
}

@keyframes butterflyFly {
  0% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(70px, -25px) rotate(10deg); }
  40% { transform: translate(130px, 15px) rotate(-5deg); }
  60% { transform: translate(70px, 40px) rotate(8deg); }
  80% { transform: translate(-20px, 25px) rotate(-8deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.bf-wings {
  position: relative;
  width: 22px;
  height: 16px;
}

.bf-wing {
  position: absolute;
  width: 11px;
  height: 14px;
  background: linear-gradient(135deg, #CE93D8 0%, #AB47BC 100%);
  border-radius: 60% 40% 50% 50%;
  top: 1px;
  animation: bfFlap 0.25s ease-in-out infinite alternate;
}

.bf-wing.left { left: 0; transform-origin: right center; }
.bf-wing.right { right: 0; transform-origin: left center; animation-delay: 0.12s; }

@keyframes bfFlap {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(70deg); }
}

.bf-body {
  position: absolute;
  width: 3px;
  height: 12px;
  background: #6A1B9A;
  border-radius: 2px;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
}

.bf-antenna {
  position: absolute;
  width: 1px;
  height: 5px;
  background: #6A1B9A;
  top: -3px;
}

.bf-antenna.left { left: 8px; transform: rotate(-20deg); }
.bf-antenna.right { right: 8px; transform: rotate(20deg); }

.bf-antenna::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: #CE93D8;
  border-radius: 50%;
  top: -2px;
  left: -1px;
}

/* ========== 左侧状态面板 ========== */
.left-panel {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-card {
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 3px solid #81C784;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  min-width: 130px;
}

.stat-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.star-box {
  background: linear-gradient(135deg, #FFD54F, #FF8F00);
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.star-shape {
  width: 22px;
  height: 22px;
  background: white;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.level-box {
  background: linear-gradient(135deg, #81C784, #388E3C);
  box-shadow: 0 2px 8px rgba(56, 142, 60, 0.4);
}

.level-text {
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.stat-text {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 17px;
  font-weight: bold;
  color: #5D4037;
  line-height: 1.2;
}

.stat-label {
  font-size: 10px;
  color: #8D6E63;
}

.progress-card {
  background: rgba(255,255,255,0.95);
  border-radius: 15px;
  padding: 10px 14px;
  border: 3px solid #FFB74D;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  width: 130px;
}

.progress-title {
  font-size: 11px;
  color: #8D6E63;
  margin-bottom: 6px;
  font-weight: bold;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #EFEBE9;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFB74D, #FF8F00);
  border-radius: 6px;
  position: relative;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 10px;
  color: #8D6E63;
  text-align: right;
}

/* ========== 右侧模块卡片 ========== */
.modules-area {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 25;
}

.module-card {
  display: flex;
  align-items: center;
  width: 270px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 3px solid #8D6E63;
  box-shadow: 0 5px 0 #6D4C41, 0 8px 20px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.module-card:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #6D4C41, 0 4px 10px rgba(0,0,0,0.2);
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 25px,
    rgba(141,110,99,0.06) 25px,
    rgba(141,110,99,0.06) 26px
  );
  pointer-events: none;
}

.module-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
  box-shadow: inset 0 -4px 10px rgba(0,0,0,0.2), 0 3px 8px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
}

.icon-hanzi {
  background: linear-gradient(135deg, #66BB6A 0%, #2E7D32 100%);
}

.hanzi-char {
  font-size: 28px;
  font-weight: bold;
  color: #FFF8E1;
  font-family: "KaiTi", "STKaiti", serif;
}

.leaf-deco {
  position: absolute;
  width: 11px;
  height: 11px;
  background: #81C784;
  border-radius: 50% 0 50% 50%;
  top: -2px;
  right: -2px;
  transform: rotate(45deg);
}

.icon-pinyin {
  background: linear-gradient(135deg, #F48FB1 0%, #C2185B 100%);
}

.pinyin-char {
  font-size: 24px;
  font-weight: bold;
  color: #FFF8E1;
}

.flower-deco {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #FCE4EC;
  border-radius: 50%;
  top: -2px;
  left: -2px;
}

.icon-math {
  background: linear-gradient(135deg, #FFB74D 0%, #E65100 100%);
}

.math-char {
  font-size: 22px;
  font-weight: bold;
  color: #FFF8E1;
}

.apple-deco {
  position: absolute;
  width: 7px;
  height: 5px;
  background: #4CAF50;
  border-radius: 50%;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.module-info {
  flex: 1;
  position: relative;
  z-index: 2;
}

.module-title {
  font-size: 19px;
  font-weight: bold;
  color: #5D4037;
  margin-bottom: 3px;
}

.module-desc {
  font-size: 12px;
  color: #8D6E63;
}

.module-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #E53935;
  color: white;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
  z-index: 5;
}

.module-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #8D6E63;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD54F;
  font-weight: bold;
  font-size: 13px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* ========== 弹窗 ========== */
.modal-cat {
  font-size: 50px;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 24px;
  color: #5D4037;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 15px;
  color: #8D6E63;
  margin-bottom: 20px;
  line-height: 1.5;
}
