/* ============================================================
 * 《星禾成长大陆》 - 治愈卡通样式
 * ============================================================ */
:root {
  --bg: #fff4e6;
  --card: #ffffff;
  --primary: #ffb74d;
  --primary-dark: #f59f2e;
  --accent: #7ec8a3;
  --accent-dark: #5aa983;
  --pink: #f9a8c9;
  --text: #6b4a2f;
  --text-light: #a1845e;
  --shadow: 0 6px 18px rgba(190, 140, 80, 0.18);
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100%;
}

#app {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff6ec, #ffeede);
  position: relative;
  overflow: hidden;
  padding-bottom: 84px;
  box-shadow: 0 0 40px rgba(0,0,0,0.06);
}

.hidden { display: none !important; }

/* ---------- 顶栏 ---------- */
#topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 247, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #ffe3c2;
}
.topbar-title { font-weight: 700; font-size: 16px; color: var(--primary-dark); }
.topbar-coins { display: flex; gap: 12px; font-size: 15px; }
.topbar-coins b { color: var(--text); }

/* ---------- 通用 ---------- */
.screen { padding: 16px 18px; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.screen-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 10px rgba(245, 159, 46, 0.35);
  transition: transform .08s ease, background .2s;
}
.btn:active { transform: scale(.95); }
.btn-primary { background: linear-gradient(135deg, #ffb74d, #ff9f43); }
.btn-ghost { background: #fff; color: var(--primary-dark); border: 2px solid var(--primary); box-shadow: none; }
.btn-small { padding: 8px 14px; font-size: 13px; }

/* ---------- 开始界面 ---------- */
.start-bg {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 20px;
}
.start-card { position: relative; z-index: 2; width: 100%; }
.start-logo { font-size: 30px; font-weight: 800; color: var(--primary-dark); }
.start-sub { color: var(--text-light); margin: 8px 0 22px; font-size: 14px; }
.start-card input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #ffe0b5;
  border-radius: 14px;
  font-size: 16px;
  margin-bottom: 14px;
  outline: none;
  text-align: center;
}
.start-float { position: absolute; font-size: 40px; opacity: .7; animation: floaty 4s ease-in-out infinite; }
.f1 { top: 16%; left: 12%; }
.f2 { top: 30%; right: 14%; animation-delay: 1s; }
.f3 { bottom: 22%; left: 18%; animation-delay: 2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* ---------- 捏脸 ---------- */
.avatar-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(135deg, #fff2df, #ffe9e0);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 16px;
}
.avatar-preview { display: flex; align-items: center; justify-content: center; min-width: 90px; }
.avatar-pet-preview { font-size: 44px; }
.avatar-controls .av-group { margin-bottom: 14px; }
.avatar-controls label { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.av-options { display: flex; gap: 10px; flex-wrap: wrap; }
.av-opt {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #ffe0b5;
  font-size: 26px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.av-opt.selected { border-color: var(--primary); background: #fff3e0; box-shadow: 0 0 0 2px var(--primary); }
.av-opt.locked { opacity: .4; }
.screen .btn { width: 100%; margin-top: 6px; }

/* 头像组合 */
.av-compose { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.av-compose .av-hair { font-size: 20px; }
.av-compose .av-face { font-size: 60px; }
.av-compose .av-outfit { font-size: 22px; margin-top: 2px; }

/* ---------- 家园 ---------- */
.home-hero {
  position: relative;
  height: 230px;
  background: linear-gradient(180deg, #cdeff7, #d8f5e0);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}
.hero-avatar { position: absolute; left: 26px; bottom: 26px; z-index: 2; animation: bob 3s ease-in-out infinite; }
.hero-pet { position: absolute; left: 92px; bottom: 18px; font-size: 34px; }
.home-house { position: absolute; right: 26px; bottom: 20px; font-size: 72px; }
.hero-mascot {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 14px; padding: 7px 14px; font-size: 13px;
  box-shadow: var(--shadow); white-space: nowrap;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.deco-layer { position: absolute; inset: 0; pointer-events: none; font-size: 26px; }
.deco-layer span { position: absolute; }
.home-name { text-align: center; font-size: 17px; margin: 8px 0 14px; }
.home-name b { color: var(--primary-dark); }
.home-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.menu-card {
  border: none; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
  padding: 22px 12px; font-size: 17px; font-weight: 700; color: var(--text);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .1s;
}
.menu-card:active { transform: scale(.96); }
.menu-card span { font-size: 34px; }

/* ---------- 菜园 ---------- */
.garden-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.plot {
  aspect-ratio: 1;
  border-radius: 16px;
  background: #e9d7b8;
  border: 2px dashed #d3b98b;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; position: relative; font-size: 34px;
  transition: background .2s;
}
.plot.planted { background: #cfe3c0; border-color: #a9c98e; }
.plot.ready { background: #fff1c2; border-color: #ffc94d; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,201,77,.5);} 50% { box-shadow: 0 0 0 10px rgba(255,201,77,0);} }
.plot .plot-stage { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.plot .plot-emoji { font-size: 34px; }
.garden-toolbar { font-size: 13px; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.science-card {
  margin-top: 14px; background: #fff; border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); font-size: 14px; line-height: 1.6;
  border-left: 5px solid var(--accent);
}
.science-card b { color: var(--accent-dark); }

/* ---------- 建造 ---------- */
.build-canvas {
  position: relative;
  height: 300px;
  background: linear-gradient(180deg, #d8f5e0, #c9eccf);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.build-canvas .deco-item { position: absolute; font-size: 40px; transform: translate(-50%, -50%); }
.build-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.build-item {
  border: 2px solid #ffe0b5; background: #fff; border-radius: 12px;
  padding: 8px 12px; font-size: 13px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.build-item span { font-size: 22px; }

/* ---------- 萌宠 ---------- */
.pet-stage { text-align: center; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.pet-big { font-size: 84px; }
.pet-name { font-size: 18px; font-weight: 700; margin: 6px 0; }
.pet-desc { font-size: 13px; color: var(--text-light); }
.pet-outfits { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pet-outfit {
  border: 2px solid #ffe0b5; background: #fff; border-radius: 14px; padding: 10px 14px;
  cursor: pointer; text-align: center; font-size: 13px;
}
.pet-outfit span { font-size: 26px; display: block; }
.pet-outfit.locked { opacity: .5; }
.pet-outfit.equipped { border-color: var(--primary); background: #fff3e0; }

/* ---------- 装扮 ---------- */
.dress-preview { text-align: center; padding: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; display: flex; justify-content: center; }
.dress-outfits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dress-item {
  border: 2px solid #ffe0b5; background: #fff; border-radius: 14px; padding: 12px;
  cursor: pointer; text-align: center; font-size: 14px;
}
.dress-item span { font-size: 30px; display: block; margin-bottom: 4px; }
.dress-item.equipped { border-color: var(--primary); background: #fff3e0; }
.dress-item.locked { opacity: .55; }

/* ---------- 学习屋 ---------- */
.study-rooms { display: flex; flex-direction: column; gap: 14px; }
.room-card {
  border: none; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
  padding: 20px; cursor: pointer; display: flex; align-items: center; gap: 16px; text-align: left;
}
.room-card span { font-size: 40px; }
.room-card b { font-size: 17px; color: var(--primary-dark); display: block; }
.room-card small { color: var(--text-light); }

/* ---------- 拼图 ---------- */
.puzzle-select { display: flex; flex-wrap: wrap; gap: 10px; }
.puzzle-select .pz-card {
  border: 2px solid #ffe0b5; background: #fff; border-radius: 14px; padding: 12px;
  cursor: pointer; text-align: center; width: calc(33% - 8px);
}
.puzzle-select .pz-card img { width: 100%; border-radius: 8px; display: block; aspect-ratio: 1; object-fit: cover; }
.puzzle-select .pz-card b { font-size: 13px; display: block; margin-top: 6px; }
.puzzle-board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: #d9c3a5; padding: 6px; border-radius: 14px; margin: 12px 0; width: 100%;
}
.puzzle-tile {
  aspect-ratio: 1; border-radius: 8px; cursor: pointer;
  background-size: 300% 300%; background-color: #fff;
}
.puzzle-tile.empty { background: #cbb594; }
.puzzle-desc { background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.6; box-shadow: var(--shadow); margin-bottom: 10px; }

/* ---------- 记忆配对 ---------- */
.memory-mode { display: flex; gap: 10px; margin-bottom: 10px; }
.memory-mode .btn { width: auto; margin-top: 0; }
.memory-tip { color: var(--text-light); font-size: 13px; margin-bottom: 10px; }
.memory-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mem-card {
  aspect-ratio: 3 / 4; border-radius: 12px; border: 2px solid #ffe0b5; background: #fff;
  cursor: pointer; font-size: 13px; padding: 6px; display: flex; align-items: center; justify-content: center;
  text-align: center; word-break: break-all; transition: all .15s; line-height: 1.25;
}
.mem-card.flipped { background: var(--accent); border-color: var(--accent-dark); color: #fff; }
.mem-card.matched { background: #c7e5d5; border-color: #a9d8bd; color: #fff; cursor: default; }

/* ---------- 文字创作 ---------- */
.writing-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.writing-tabs .btn { width: auto; margin-top: 0; }
.writing-tip { color: var(--text-light); font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.idiom-chain { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.idiom-chip { background: #fff; border: 2px solid #ffe0b5; border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.idiom-chip.mine { border-color: var(--primary); }
.idiom-chip.ai { border-color: var(--accent); }
#screen-writing input[type=text] { width: 100%; padding: 12px 14px; border: 2px solid #ffe0b5; border-radius: 12px; font-size: 15px; margin-bottom: 10px; outline: none; }
#screen-writing .btn { width: auto; margin: 4px 6px 0 0; }
.kan-scene { font-size: 54px; text-align: center; padding: 16px; background: #fff; border-radius: 16px; margin-bottom: 12px; letter-spacing: 6px; }
.kan-hints { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; font-size: 13px; line-height: 1.8; box-shadow: var(--shadow); }
.kan-hints b { color: var(--accent-dark); }
#kanText { width: 100%; padding: 12px; border: 2px solid #ffe0b5; border-radius: 12px; font-size: 14px; resize: vertical; outline: none; margin-bottom: 8px; }

/* ---------- 任务 ---------- */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-item { background: #fff; border-radius: 16px; padding: 13px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; }
.task-item .task-ico { font-size: 26px; }
.task-item .task-info { flex: 1; }
.task-item .task-info b { display: block; font-size: 15px; }
.task-item .task-info small { color: var(--text-light); }
.task-item .task-reward { color: var(--primary-dark); font-size: 14px; font-weight: 700; white-space: nowrap; }
.task-item.done { opacity: .55; }
.task-item.done .task-ico { filter: grayscale(.6); }

/* ---------- 问答 ---------- */
.qa-post { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.qa-post input, .qa-post select { width: 100%; padding: 10px 12px; border: 2px solid #ffe0b5; border-radius: 10px; font-size: 14px; margin-bottom: 8px; outline: none; }
.qa-post .btn { width: 100%; }
.qa-anon { font-size: 13px; color: var(--text-light); display: block; margin-bottom: 8px; }
.qa-list { display: flex; flex-direction: column; gap: 12px; }
.qa-item { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.qa-q { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.qa-tag { display: inline-block; font-size: 11px; background: #ffe9d1; color: #d28a3a; border-radius: 999px; padding: 2px 8px; margin-right: 6px; }
.qa-a { font-size: 13px; line-height: 1.7; color: #4d6b52; background: #eef8f1; border-radius: 12px; padding: 10px 12px; margin-top: 6px; }
.qa-volunteer { font-size: 12px; color: var(--accent-dark); margin-top: 4px; text-align: right; }
.qa-pending { font-size: 12px; color: var(--text-light); font-style: italic; margin-top: 6px; }

/* ---------- 树洞 ---------- */
.wish-post { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.wish-post input { width: 100%; padding: 10px 12px; border: 2px solid #ffe0b5; border-radius: 10px; font-size: 14px; margin-bottom: 8px; outline: none; }
.wish-post .btn { width: 100%; }
.wish-moods { display: flex; gap: 8px; margin-bottom: 10px; }
.wish-mood { font-size: 24px; border: 2px solid transparent; border-radius: 12px; padding: 4px 8px; cursor: pointer; }
.wish-mood.selected { border-color: var(--primary); background: #fff3e0; }
.wish-list { display: flex; flex-direction: column; gap: 10px; }
.wish-item { background: #fff; border-radius: 16px; padding: 13px 15px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.6; }
.wish-item .wish-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--text-light); }
.wish-item .wish-btn { margin-left: auto; border: none; background: #fff1d6; color: #d28a3a; border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 12px; }

/* ---------- 底部导航 ---------- */
#tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 460px;
  display: flex; background: #fff; border-top: 1px solid #ffe3c2;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
}
.tab {
  flex: 1; background: none; border: none; cursor: pointer; font-size: 12px; color: var(--text-light);
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0;
}
.tab span { font-size: 22px; }
.tab.active { color: var(--primary-dark); font-weight: 700; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(80, 55, 30, 0.88); color: #fff; padding: 14px 22px;
  border-radius: 14px; font-size: 15px; z-index: 100; max-width: 80%; text-align: center;
  animation: fadeIn .2s;
}

/* ---------- 漂流瓶广场 ---------- */
.bottle-banner {
  background: linear-gradient(135deg, #bfe9ff, #9bd8f0);
  color: #12608e; border-radius: 14px; padding: 10px 14px;
  font-size: 13px; margin-bottom: 14px; line-height: 1.5;
}
.bottle-myname { color: #2e7fae; font-weight: 600; }

.bottle-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.bottle-loading { text-align: center; color: var(--text-light); font-size: 14px; padding: 26px 0; }
.bottle-empty { text-align: center; color: var(--text-light); font-size: 14px; padding: 30px 0; }

.bottle-card {
  position: relative; background: var(--card); border-radius: var(--radius);
  padding: 14px 14px 12px 62px; cursor: pointer; box-shadow: var(--shadow);
  animation: bottleFloat 4.5s ease-in-out infinite; overflow: hidden;
}
.bottle-card:nth-child(2n) { animation-delay: 1.2s; }
.bottle-card:nth-child(3n) { animation-delay: 2.4s; }
@keyframes bottleFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.bottle-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #e8f6ff; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.bottle-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.bottle-role-badge {
  font-size: 11px; font-weight: 700; color: #fff; padding: 2px 10px; border-radius: 999px;
}
.bottle-role-badge.college { background: #5f7cff; }
.bottle-role-badge.pupil { background: #ff9f43; }
.bottle-nickname { font-size: 13px; color: var(--text-light); font-weight: 600; }
.bottle-time { font-size: 11px; color: #c4ad8c; margin-left: auto; }
.bottle-question {
  font-size: 14px; line-height: 1.55; font-weight: 600; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bottle-footer { margin-top: 6px; font-size: 12px; color: #4a9fd0; font-weight: 600; }
.bottle-throw-btn { width: 100%; }

/* ---------- 漂流瓶弹层 ---------- */
.bottle-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.bottle-modal-mask { position: absolute; inset: 0; background: rgba(60, 45, 25, 0.5); }
.bottle-modal-card {
  position: relative; width: 100%; max-width: 460px; max-height: 84vh; overflow-y: auto;
  background: #fdf6ec; border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  animation: bottleSlideUp .28s ease;
}
@keyframes bottleSlideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.bottle-modal-close {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(107, 74, 47, 0.1); color: var(--text); font-size: 14px; cursor: pointer;
}

.bottle-detail-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.bottle-detail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.bottle-detail-name { font-weight: 700; font-size: 15px; }
.bottle-detail-time { font-size: 12px; color: var(--text-light); margin-left: auto; }
.bottle-detail-question { font-size: 17px; font-weight: 700; line-height: 1.6; }

.bottle-answer-area { margin-top: 16px; }
.bottle-answer-area h3 { font-size: 14px; color: var(--text-light); margin-bottom: 10px; }
.bottle-answer-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bottle-answer-item { background: #fff; border-radius: 14px; padding: 11px 13px; box-shadow: var(--shadow); }
.bottle-answer-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bottle-answer-name { font-size: 13px; font-weight: 700; }
.bottle-answer-item .content { font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.bottle-answer-area textarea {
  width: 100%; border: 2px solid #ffe3c2; border-radius: 14px; padding: 11px;
  font-size: 15px; font-family: inherit; outline: none; resize: none; background: #fff; margin-bottom: 10px;
}
.bottle-answer-area textarea:focus { border-color: var(--primary); }

.bottle-throw-title { font-size: 17px; margin-bottom: 5px; }
.bottle-throw-sub { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.bottle-throw-card textarea {
  width: 100%; border: 2px solid #ffe3c2; border-radius: 14px; padding: 11px;
  font-size: 15px; font-family: inherit; outline: none; resize: none; background: #fff; margin-bottom: 10px;
}
.bottle-throw-card textarea:focus { border-color: var(--primary); }

/* ---------- 学习 · 大陆世界地图 ---------- */
.continent-tip { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.continent-map { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.continent-card {
  border: none; border-radius: 18px; box-shadow: var(--shadow);
  padding: 18px 16px; cursor: pointer; display: flex; align-items: center; gap: 14px;
  text-align: left; position: relative; overflow: hidden;
}
.continent-card:active { transform: scale(0.98); }
.ct-emoji {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, 0.55);
  display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0;
}
.ct-info b { font-size: 18px; display: block; }
.ct-info small { color: rgba(0, 0, 0, 0.45); font-size: 12px; }
.ct-arrow { margin-left: auto; font-size: 26px; color: rgba(0, 0, 0, 0.25); font-weight: 700; }
.ct-xinghe { background: linear-gradient(135deg, #ffe9c7, #ffd6a1); }
.ct-xinghe .ct-info b { color: #9a6b2f; }
.ct-xiaoc { background: linear-gradient(135deg, #d8ecff, #b3d7ff); }
.ct-xiaoc .ct-info b { color: #2c6db3; }
.ct-xiaowang { background: linear-gradient(135deg, #ffd9e8, #ffbcd6); }
.ct-xiaowang .ct-info b { color: #b0477a; }

/* ---------- 小C大陆 · 法语学习 ---------- */
.french-tip { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.french-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.fs-chip { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.fs-ok { background: #e2f7e4; color: #2e7d32; }
.fs-no { background: #fdeaea; color: #c62828; }
.french-quiz { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.french-word-card { text-align: center; margin-bottom: 14px; }
.french-word { font-size: 34px; font-weight: 800; color: #2c6db3; letter-spacing: 1px; margin-bottom: 8px; }
.french-speak { margin: 0 auto; display: block; }
.french-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.french-opt {
  border: 2px solid #d8ecff; background: #f4faff; border-radius: 14px;
  padding: 13px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.french-opt.correct { background: #e2f7e4; border-color: #66bb6a; color: #2e7d32; }
.french-opt.wrong { background: #fdeaea; border-color: #ef5350; color: #c62828; }
.french-feedback { margin-top: 12px; font-size: 14px; line-height: 1.6; min-height: 22px; }
.french-feedback.ok { color: #2e7d32; font-weight: 600; }
.french-feedback.no { color: #c62828; }

/* ---------- 小王大陆 · 上传画作 ---------- */
.draw-quota {
  background: #fff4f8; color: #b0477a; border-radius: 12px;
  padding: 10px 14px; font-size: 13px; margin-bottom: 12px;
}
.draw-upload { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 18px; }
.draw-drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 2px dashed #ffbcd6; border-radius: 16px; padding: 22px 10px;
  cursor: pointer; color: #b0477a;
}
.draw-drop span { font-size: 34px; }
.draw-drop b { font-size: 15px; }
.draw-drop small { font-size: 12px; color: #c98da9; }
.draw-preview { width: 100%; border-radius: 14px; margin: 12px 0 4px; display: block; }
.draw-upload input[type="text"] {
  width: 100%; margin: 10px 0; border: 2px solid #ffe3c2; border-radius: 12px;
  padding: 10px 12px; font-size: 14px; outline: none; font-family: inherit;
}
.draw-gallery-title { font-size: 15px; color: var(--text); margin-bottom: 10px; }
.draw-gallery { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.draw-item { background: #fff; border-radius: 12px; padding: 6px; box-shadow: var(--shadow); }
.draw-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.draw-item figcaption { font-size: 11px; color: var(--text-light); margin-top: 5px; display: flex; align-items: center; justify-content: space-between; }
.draw-del { border: none; background: none; cursor: pointer; font-size: 12px; padding: 0; }
.draw-empty { grid-column: 1 / -1; text-align: center; color: var(--text-light); font-size: 13px; padding: 14px 0; }

.studio-progress{margin:18px 0;padding:18px;border:1px solid #dbe4d7;border-radius:16px;background:#fff;text-align:left}.studio-progress p{line-height:1.7;margin:10px 0}.studio-progress .btn{min-height:44px;margin:4px 8px 4px 0}
