/* ========== 协域少儿两馆 通用样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { 
  width: 100%; 
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #0d0d2b;
  color: #fff;
  min-height: 100vh;
}

/* 页面容器 */
.module-page {
  width: 100%;
  min-height: 100vh;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
}

/* 7个主题背景色 */
.books-theme { background: linear-gradient(180deg, #0d2b1a 0%, #1a4e2e 40%, #2a5e3a 100%); }
.explore-theme { background: linear-gradient(180deg, #2b1a0d 0%, #4e2e1a 40%, #5e3a2a 100%); }
.knowledge-theme { background: linear-gradient(180deg, #0d1a2b 0%, #1a2e4e 40%, #2a3a5e 100%); }
.growth-theme { background: linear-gradient(180deg, #2b1f0d 0%, #4e3e1a 40%, #5e4e2a 100%); }
.mine-theme { background: linear-gradient(180deg, #1f0d2b 0%, #3e1a4e 40%, #4e2a5e 100%); }
.create-theme { background: linear-gradient(180deg, #2b0d1a 0%, #4e1a2e 40%, #5e2a3a 100%); }
.family-theme { background: linear-gradient(180deg, #0d2b2b 0%, #1a4e4e 40%, #2a5e5e 100%); }

/* 顶部模块头 */
.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,43,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.back-btn, .search-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.module-title {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
  text-align: center;
}

/* Hero插画区 */
.hero {
  padding: 32px 20px 24px;
  text-align: center;
}
.hero-icon {
  font-size: 56px;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(255,255,255,0.2));
}
.hero-title {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #f5c842 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 1px;
}

/* Tab栏 */
.tab-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s;
}
.tab.active {
  background: linear-gradient(135deg, #f5c842 0%, #ffe085 100%);
  color: #0d0d2b;
  font-weight: 700;
}

/* 筛选chip */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 16px;
}
.filter-label { font-size: 12px; color: rgba(255,255,255,0.5); }
.filter-chip {
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
}
.filter-chip.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

/* 书籍网格 */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 0 16px 24px;
}
.book-card {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
}
.book-cover {
  font-size: 36px;
  margin-bottom: 6px;
}
.book-name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.book-tag {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
}

/* 区块 */
.section {
  padding: 0 16px 24px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-title {
  font-size: 17px;
  font-weight: 700;
}
.section-more {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* 主题书单卡片 */
.topic-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.topic-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  cursor: pointer;
}
.topic-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.topic-info { flex: 1; }
.topic-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.topic-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.topic-arrow {
  font-size: 18px;
  color: rgba(255,255,255,0.4);
}

/* 客服按钮 */
.support-btn {
  position: fixed;
  bottom: 100px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(118,75,162,0.4);
  z-index: 99;
  cursor: pointer;
}

/* 底部导航 */
.bottom-entries {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: rgba(13,13,43,0.95);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 100;
}
.bottom-item {
  flex: 1;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  padding: 6px 0;
  cursor: pointer;
}
.bottom-item.active { color: #f5c842; }
.bottom-icon {
  font-size: 22px;
  margin-bottom: 2px;
  display: block;
}

/* ========= 探险主题卡片 ========= */
.adventure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 16px 24px;
}
.adventure-card {
  border-radius: 16px;
  padding: 18px 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.adventure-1 { background: linear-gradient(135deg, #e8913a 0%, #ffae5b 100%); }
.adventure-2 { background: linear-gradient(135deg, #4a6fae 0%, #5f8fce 100%); }
.adventure-3 { background: linear-gradient(135deg, #8b5fb8 0%, #ab7fd8 100%); }
.adventure-icon {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
}
.adventure-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #fff;
}
.adventure-tag {
  font-size: 11px;
  background: rgba(255,255,255,0.25);
  padding: 3px 8px;
  border-radius: 10px;
  display: inline-block;
}
.adventure-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  line-height: 1.5;
}

/* ========= 知识星球 ========= */
.planet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 24px;
}
.planet-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  cursor: pointer;
}
.planet-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.planet-1 .planet-icon { background: linear-gradient(135deg, #e8913a, #ffae5b); }
.planet-2 .planet-icon { background: linear-gradient(135deg, #4a6fae, #5f8fce); }
.planet-3 .planet-icon { background: linear-gradient(135deg, #4a8e5e, #5fae73); }
.planet-4 .planet-icon { background: linear-gradient(135deg, #c8425e, #e86882); }
.planet-5 .planet-icon { background: linear-gradient(135deg, #8b5fb8, #ab7fd8); }
.planet-6 .planet-icon { background: linear-gradient(135deg, #f5c842, #ffe085); }

.planet-info { flex: 1; }
.planet-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.planet-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}
.planet-arrow {
  font-size: 18px;
  color: rgba(255,255,255,0.4);
}

/* ========= 我的成长 ========= */
.profile-card {
  margin: 0 16px 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(139,95,184,0.3), rgba(171,127,216,0.3));
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
}
.profile-avatar {
  font-size: 48px;
  margin-bottom: 8px;
}
.profile-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.profile-stage {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
  padding: 0 16px 24px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}
.stat-num {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #f5c842 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2px;
}
.stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}

.map-card {
  margin: 0 16px 24px;
  padding: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
}
.map-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.map-node {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
}
.map-node.done {
  background: linear-gradient(135deg, #f5c842, #ffe085);
}
.map-node.doing {
  border: 2px solid #f5c842;
  box-shadow: 0 0 12px rgba(245,200,66,0.4);
}

/* ========= 创意工坊 ========= */
.create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 16px 24px;
}
.create-card {
  background: linear-gradient(135deg, rgba(232,74,95,0.3), rgba(255,106,127,0.3));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
}
.create-icon {
  font-size: 44px;
  margin-bottom: 8px;
}
.create-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.create-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ========= 亲子与活动 ========= */
.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 24px;
}
.family-card {
  background: linear-gradient(135deg, rgba(58,168,168,0.3), rgba(95,200,200,0.3));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
}
.family-icon {
  font-size: 32px;
  margin-bottom: 6px;
}
.family-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.family-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
}