/* ============================================
   美妆训练营 - 海绵宝宝可爱治愈风
   配色：海绵黄 / 天蓝 / 浅粉 / 浅绿
   ============================================ */

/* CSS 变量 - 糖果马卡龙配色 */
:root {
  --candy-pink: #FFB7C5;
  --candy-pink-light: #FFE4EC;
  --candy-pink-dark: #FF9AB0;
  --candy-mint: #A8E6CF;
  --candy-mint-light: #D4F5E9;
  --candy-mint-dark: #7DD4B0;
  --candy-lavender: #C9B1FF;
  --candy-lavender-light: #E8DDFD;
  --candy-lavender-dark: #B08CFA;
  --candy-blue: #A8D8FF;
  --candy-blue-light: #D4EFFF;
  --candy-blue-dark: #7BC4F7;
  --candy-yellow: #FFE4A0;
  --candy-yellow-light: #FFF5D9;
  --candy-yellow-dark: #FFD16E;
  --soft-pink: #FFC8D6;
  --soft-pink-light: #FFE4EC;
  --soft-pink-dark: #FF9AB0;
  --fresh-green: #A8E6CF;
  --fresh-green-light: #D4F5E9;
  --fresh-green-dark: #7DD4B0;
  --lavender: #C9B1FF;
  --cream: #FFF0F5;
  --white: #FFFFFF;
  --text-dark: #4A4A6A;
  --text-medium: #7A7A9A;
  --text-light: #A0A0C0;
  --bg-main: #FFF5F7;
  --shadow-soft: 0 4px 20px rgba(255,183,197,0.12);
  --shadow-medium: 0 6px 24px rgba(255,183,197,0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --nav-height: 64px;
  --header-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-main);
  user-select: none;
  -webkit-user-select: none;
}

#app {
  width: 100%;
  height: 100%;
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-main);
  overflow: hidden;
}

.hidden { display: none !important; }

/* ============================================
   开屏页
   ============================================ */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--candy-pink-light) 0%, var(--candy-pink) 50%, var(--candy-lavender-light) 100%);
  animation: splashFade 2.5s ease forwards;
}

@keyframes splashFade {
  0% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

.splash-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.splash-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-bubbles span {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: bubbleUp 3s ease-in infinite;
}

.splash-bubbles span:nth-child(1) { left: 10%; width: 20px; height: 20px; animation-delay: 0s; }
.splash-bubbles span:nth-child(2) { left: 25%; width: 14px; height: 14px; animation-delay: 0.5s; }
.splash-bubbles span:nth-child(3) { left: 50%; width: 24px; height: 24px; animation-delay: 1s; }
.splash-bubbles span:nth-child(4) { left: 70%; width: 16px; height: 16px; animation-delay: 1.5s; }
.splash-bubbles span:nth-child(5) { left: 85%; width: 12px; height: 12px; animation-delay: 2s; }

@keyframes bubbleUp {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  20% { opacity: 1; transform: translateY(-100px) scale(1); }
  100% { transform: translateY(-400px) scale(0.5); opacity: 0; }
}

.spongebob-icon {
  font-size: 72px;
  animation: bounce 1.5s ease-in-out infinite;
}

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

.splash-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  margin-top: 16px;
  text-shadow: 2px 2px 0 rgba(255,154,176,0.4);
}

.splash-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  margin-top: 8px;
  font-weight: 500;
}

.splash-loading {
  margin-top: 40px;
  padding: 0 60px;
}

.loading-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 3px;
  overflow: hidden;
}

.loading-fill {
  height: 100%;
  width: 0;
  background: var(--candy-pink-dark);
  border-radius: 3px;
  animation: loadFill 2s ease forwards;
}

@keyframes loadFill {
  to { width: 100%; }
}

.loading-text {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
}

/* ============================================
   主界面布局
   ============================================ */
.main-app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 顶部状态栏 */
.app-header {
  flex-shrink: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--candy-pink) 0%, var(--candy-pink-dark) 100%);
  box-shadow: 0 2px 12px rgba(255,183,197,0.3);
  position: relative;
  z-index: 10;
}

.header-left, .header-right {
  flex-shrink: 0;
  width: 60px;
  display: flex;
  align-items: center;
}

.header-right {
  justify-content: flex-end;
}

.header-center {
  flex: 1;
  text-align: center;
}

.header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.header-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  margin-top: 2px;
}

.header-level {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.level-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--candy-pink-dark);
  background: var(--white);
  padding: 2px 8px;
  border-radius: 8px;
}

.level-name {
  font-size: 9px;
  color: rgba(255,255,255,0.9);
  margin-top: 2px;
  font-weight: 600;
}

/* 内容区域 */
.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 10px);
  background: var(--bg-main);
}

/* 页面切换动画 */
.page {
  animation: pageIn 0.3s ease;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   底部导航栏
   ============================================ */
.bottom-nav {
  flex-shrink: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  align-items: center;
  background: var(--white);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
  position: relative;
  z-index: 10;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 100%;
  position: relative;
}

.nav-icon {
  font-size: 22px;
  transition: transform 0.2s ease;
}

.nav-label {
  font-size: 10px;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-item.active .nav-icon {
  transform: scale(1.15);
}

.nav-item.active .nav-label {
  color: var(--candy-pink-dark);
  font-weight: 700;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--candy-pink-dark);
  border-radius: 0 0 3px 3px;
}

/* 中间凸起按钮 */
.nav-center {
  position: relative;
}

.nav-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--candy-pink) 0%, var(--candy-pink-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255,183,197,0.4);
  margin-top: -20px;
  transition: transform 0.2s ease;
}

.nav-center.active .nav-icon-circle {
  transform: scale(1.1);
}

.nav-center .nav-icon {
  font-size: 24px;
}

.nav-center.active::before {
  display: none;
}

/* ============================================
   通用组件
   ============================================ */

/* 卡片 */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
}

.card-yellow {
  background: linear-gradient(135deg, var(--candy-yellow-light) 0%, var(--candy-yellow) 100%);
}

.card-blue {
  background: linear-gradient(135deg, var(--candy-blue-light) 0%, var(--candy-blue) 100%);
}

.card-pink {
  background: linear-gradient(135deg, var(--candy-pink-light) 0%, var(--candy-pink) 100%);
}

.card-green {
  background: linear-gradient(135deg, var(--candy-mint-light) 0%, var(--candy-mint) 100%);
}

/* 区块标题 */
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 16px 16px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title .emoji {
  font-size: 18px;
}

.section-title .more {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--candy-pink) 0%, var(--candy-pink-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255,183,197,0.3);
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-blue {
  background: linear-gradient(135deg, var(--candy-blue) 0%, var(--candy-blue-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(123,196,247,0.3);
}

.btn-pink {
  background: linear-gradient(135deg, var(--candy-pink) 0%, var(--candy-pink-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255,154,176,0.3);
}

.btn-outline {
  background: var(--white);
  color: var(--text-dark);
  border: 2px solid var(--candy-pink);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

/* 进度条 */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, var(--candy-pink) 0%, var(--candy-pink-dark) 100%);
}

.progress-fill.blue {
  background: linear-gradient(90deg, var(--candy-blue) 0%, var(--candy-blue-dark) 100%);
}

.progress-fill.pink {
  background: linear-gradient(90deg, var(--soft-pink) 0%, var(--soft-pink-dark) 100%);
}

.progress-fill.green {
  background: linear-gradient(90deg, var(--fresh-green) 0%, var(--fresh-green-dark) 100%);
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.tag-yellow { background: var(--candy-pink-light); color: var(--candy-pink-dark); }
.tag-blue { background: var(--candy-blue-light); color: var(--candy-blue-dark); }
.tag-pink { background: var(--soft-pink-light); color: var(--soft-pink-dark); }
.tag-green { background: var(--fresh-green-light); color: var(--fresh-green-dark); }

/* ============================================
   首页
   ============================================ */

/* 欢迎卡片 */
.welcome-card {
  margin: 12px 16px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--candy-pink) 0%, var(--candy-blue) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(255,183,197,0.25);
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.welcome-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.welcome-greeting {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

.welcome-text {
  font-size: 13px;
  color: var(--text-medium);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.welcome-week {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

/* 数据统计网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 16px 12px;
}

.stat-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-label {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 2px;
}

/* 48周进度总表 */
.progress-overview {
  margin: 0 16px 12px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.progress-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.progress-overview-title {
  font-size: 15px;
  font-weight: 700;
}

.progress-overview-percent {
  font-size: 13px;
  font-weight: 700;
  color: var(--candy-pink-dark);
}

.weeks-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.week-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--white);
  background: #E0E0E0;
  transition: all 0.2s ease;
}

.week-cell.completed { background: var(--fresh-green); }
.week-cell.current { background: var(--candy-pink-dark); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--candy-pink-dark); animation: pulse 1.5s infinite; }
.week-cell.locked { background: #E8E8E8; color: #CCC; }
.week-cell.failed { background: var(--soft-pink-dark); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--candy-pink-dark); }
  50% { box-shadow: 0 0 0 2px var(--white), 0 0 0 6px var(--candy-pink-dark); }
}

/* 阶段进度条 */
.phase-progress {
  margin: 0 16px 12px;
}

.phase-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.phase-segment {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #E0E0E0;
  overflow: hidden;
}

.phase-segment.fill-1 { background: var(--candy-pink); }
.phase-segment.fill-2 { background: var(--candy-blue); }
.phase-segment.fill-3 { background: var(--soft-pink); }
.phase-segment.fill-4 { background: var(--fresh-green); }

.phase-labels {
  display: flex;
  gap: 4px;
  font-size: 9px;
  color: var(--text-light);
}

.phase-label {
  flex: 1;
  text-align: center;
}

/* 今日任务 */
.today-tasks {
  margin: 0 16px 12px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
}

.task-item:active {
  transform: scale(0.98);
}

.task-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--candy-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-checkbox.checked {
  background: var(--fresh-green);
  border-color: var(--fresh-green);
}

.task-checkbox.checked::after {
  content: '✓';
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.task-content {
  flex: 1;
}

.task-text {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.4;
}

.task-text.done {
  text-decoration: line-through;
  color: var(--text-light);
}

.task-meta {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 2px;
}

/* 徽章展示 */
.badges-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 8px;
  -webkit-overflow-scrolling: touch;
}

.badge-item {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
}

.badge-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 4px;
  background: var(--candy-pink-light);
  border: 2px solid var(--candy-pink);
}

.badge-circle.locked {
  background: #F0F0F0;
  border-color: #E0E0E0;
  filter: grayscale(1);
  opacity: 0.5;
}

.badge-name {
  font-size: 10px;
  color: var(--text-medium);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   学习计划页
   ============================================ */
.phase-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.phase-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--white);
  color: var(--text-medium);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.phase-tab.active {
  background: var(--candy-pink);
  color: var(--text-dark);
}

.week-card {
  margin: 0 16px 10px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.week-card:active {
  transform: scale(0.98);
}

.week-card.current {
  border-left: 4px solid var(--candy-pink-dark);
}

.week-card.completed {
  opacity: 0.75;
}

.week-card.locked {
  opacity: 0.5;
}

.week-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.week-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  padding: 3px 10px;
  border-radius: 10px;
}

.week-number.phase-1 { background: var(--candy-pink-dark); }
.week-number.phase-2 { background: var(--candy-blue-dark); }
.week-number.phase-3 { background: var(--soft-pink-dark); }
.week-number.phase-4 { background: var(--fresh-green-dark); }

.week-status {
  font-size: 11px;
  font-weight: 600;
}

.week-status.done { color: var(--fresh-green-dark); }
.week-status.current { color: var(--candy-pink-dark); }
.week-status.locked { color: var(--text-light); }

.week-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.week-desc {
  font-size: 12px;
  color: var(--text-medium);
  line-height: 1.4;
}

.week-meta {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-light);
}

.week-meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* 周详情面板 */
.week-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.week-detail-panel {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: var(--bg-main);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  padding-bottom: 30px;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.detail-handle {
  width: 40px;
  height: 4px;
  background: #DDD;
  border-radius: 2px;
  margin: 10px auto;
}

.detail-header {
  padding: 0 20px 16px;
}

.detail-week-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.detail-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
}

.detail-section {
  padding: 0 20px;
  margin-bottom: 16px;
}

.detail-section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 任务列表（详情） */
.detail-task {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  box-shadow: var(--shadow-soft);
}

.detail-task-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--candy-pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--candy-pink-dark);
  flex-shrink: 0;
}

.detail-task-num.done {
  background: var(--fresh-green);
  color: var(--white);
}

.detail-task-text {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.4;
  flex: 1;
  padding-top: 3px;
}

/* 考核标准 */
.assessment-box {
  background: var(--soft-pink-light);
  border-radius: var(--radius-md);
  padding: 14px;
}

.assessment-standard {
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.assessment-items {
  font-size: 12px;
  color: var(--text-medium);
  line-height: 1.6;
}

.assessment-pass {
  margin-top: 8px;
  font-size: 11px;
  color: var(--soft-pink-dark);
  font-weight: 600;
}

/* ============================================
   打卡页
   ============================================ */
.checkin-type-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
}

.checkin-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-medium);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkin-tab.active {
  background: var(--candy-pink);
  color: var(--text-dark);
}

.checkin-tab .emoji {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

/* 打卡表单 */
.checkin-form {
  margin: 0 16px 12px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: block;
}

.form-label .required {
  color: var(--soft-pink-dark);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #EEE;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-dark);
  background: var(--white);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

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

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

.form-row {
  display: flex;
  gap: 8px;
}

.form-row .form-group {
  flex: 1;
}

/* 图片上传 */
.img-upload-area {
  width: 100%;
  min-height: 120px;
  border: 2px dashed var(--candy-pink);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--candy-pink-light);
}

.img-upload-area:active {
  transform: scale(0.98);
}

.img-upload-icon {
  font-size: 36px;
}

.img-upload-text {
  font-size: 12px;
  font-weight: 600;
}

.img-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.img-preview {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-preview .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

/* 打卡记录列表 */
.checkin-record {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin: 0 16px 8px;
  box-shadow: var(--shadow-soft);
}

.record-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.record-icon.daily { background: var(--candy-pink-light); }
.record-icon.weekly { background: var(--candy-blue-light); }
.record-icon.practice { background: var(--soft-pink-light); }

.record-content {
  flex: 1;
}

.record-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.record-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.record-note {
  font-size: 12px;
  color: var(--text-medium);
  margin-top: 4px;
  line-height: 1.4;
}

/* 连续打卡 */
.streak-card {
  margin: 12px 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--soft-pink) 0%, var(--candy-pink) 100%);
  text-align: center;
  box-shadow: var(--shadow-medium);
}

.streak-number {
  font-size: 40px;
  font-weight: 900;
  color: var(--white);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.streak-label {
  font-size: 13px;
  color: var(--white);
  font-weight: 600;
  margin-top: 4px;
}

.streak-days {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.streak-day {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.streak-day.active {
  background: var(--white);
  color: var(--soft-pink-dark);
}

.streak-day.inactive {
  background: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.6);
}

/* ============================================
   错题本页
   ============================================ */
.error-card {
  margin: 0 16px 10px;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--soft-pink-dark);
}

.error-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.error-type-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}

.error-date {
  font-size: 11px;
  color: var(--text-light);
}

.error-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.error-detail {
  font-size: 12px;
  color: var(--text-medium);
  line-height: 1.5;
}

.error-detail-row {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.error-detail-label {
  font-weight: 600;
  color: var(--text-dark);
  flex-shrink: 0;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-text {
  font-size: 14px;
  color: var(--text-light);
}

/* ============================================
   资源页 (嵌入profile页或独立)
   ============================================ */
.resource-card {
  margin: 0 16px 10px;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 12px;
  align-items: center;
}

.resource-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.resource-info {
  flex: 1;
}

.resource-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.resource-desc {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.resource-action {
  font-size: 18px;
  color: var(--text-light);
}

/* 博主卡片 */
.blogger-card {
  margin: 0 16px 8px;
  padding: 12px 14px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.blogger-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--candy-pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.blogger-info {
  flex: 1;
}

.blogger-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.blogger-desc {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.blogger-platform {
  font-size: 10px;
  color: var(--candy-blue-dark);
  font-weight: 600;
}

/* ============================================
   我的/档案页
   ============================================ */
.profile-header {
  padding: 24px 16px 16px;
  text-align: center;
  background: linear-gradient(135deg, var(--candy-pink) 0%, var(--candy-blue) 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.profile-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 4px 14px;
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

/* 等级展示 */
.level-path {
  margin: 12px 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.level-path-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 10px 0;
}

.level-path-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #E0E0E0;
  z-index: 0;
}

.level-node {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}

.level-node-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0 auto 4px;
  background: #E0E0E0;
}

.level-node-circle.active {
  background: var(--candy-pink);
  box-shadow: 0 0 0 3px var(--candy-pink-light);
}

.level-node-circle.current {
  background: var(--candy-pink-dark);
  animation: pulse 1.5s infinite;
}

.level-node-name {
  font-size: 9px;
  color: var(--text-medium);
  font-weight: 600;
}

.level-node.active .level-node-name {
  color: var(--text-dark);
}

/* 数据统计 */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 16px 12px;
}

.profile-stat-card {
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.profile-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
}

.profile-stat-label {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* 菜单列表 */
.menu-list {
  margin: 0 16px 12px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #F5F5F5;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:active {
  background: #F9F9F9;
}

.menu-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

.menu-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.menu-arrow {
  font-size: 14px;
  color: var(--text-light);
}

/* ============================================
   弹窗
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  width: 85%;
  max-width: 360px;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 20px 20px 10px;
  text-align: center;
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.modal-body {
  padding: 10px 20px 20px;
  text-align: center;
}

.modal-text {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  gap: 8px;
  padding: 0 20px 20px;
}

.modal-footer .btn {
  flex: 1;
}

/* 庆祝弹窗 */
.celebrate-modal {
  background: linear-gradient(135deg, var(--candy-pink-light) 0%, var(--candy-blue-light) 100%);
}

.celebrate-icon {
  font-size: 64px;
  animation: celebrate 0.6s ease;
}

@keyframes celebrate {
  0% { transform: scale(0) rotate(0); }
  50% { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ============================================
   Toast
   ============================================ */
#toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

.toast {
  padding: 10px 20px;
  background: rgba(0,0,0,0.75);
  color: var(--white);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2s forwards;
  white-space: nowrap;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-10px); }
}

/* ============================================
   工具包模板
   ============================================ */
.toolkit-item {
  margin: 0 16px 8px;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toolkit-item:active {
  transform: scale(0.98);
}

.toolkit-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.toolkit-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.toolkit-content-box {
  margin: 8px 16px 12px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.toolkit-text {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.6;
  white-space: pre-wrap;
  font-family: 'PingFang SC', monospace;
}

/* ============================================
   考核页
   ============================================ */
.assessment-page {
  padding: 16px;
}

.assessment-intro {
  padding: 16px;
  background: var(--soft-pink-light);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.assessment-intro-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.assessment-intro-text {
  font-size: 12px;
  color: var(--text-medium);
  line-height: 1.5;
}

.assessment-question {
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
}

.assessment-q-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.assessment-q-desc {
  font-size: 12px;
  color: var(--text-medium);
  margin-bottom: 10px;
}

.assessment-options {
  display: flex;
  gap: 8px;
}

.assessment-option {
  flex: 1;
  padding: 10px;
  border: 2px solid #EEE;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.assessment-option.selected {
  border-color: var(--candy-pink);
  background: var(--candy-pink-light);
  color: var(--candy-pink-dark);
}

/* ============================================
   滚动条隐藏
   ============================================ */
.app-content::-webkit-scrollbar,
.badges-row::-webkit-scrollbar,
.phase-tabs::-webkit-scrollbar,
.week-detail-panel::-webkit-scrollbar {
  display: none;
}

/* 通用浮动按钮 */
.fab {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--soft-pink) 0%, var(--soft-pink-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255,154,171,0.4);
  cursor: pointer;
  z-index: 50;
  transition: transform 0.2s ease;
}

.fab:active {
  transform: scale(0.9);
}

/* 考核结果 */
.assessment-result {
  text-align: center;
  padding: 20px;
}

.assessment-score {
  font-size: 48px;
  font-weight: 900;
  color: var(--candy-pink-dark);
  margin: 10px 0;
}

.assessment-result-text {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.assessment-result-text.pass {
  color: var(--fresh-green-dark);
}

.assessment-result-text.fail {
  color: var(--soft-pink-dark);
}

/* ============================================
   资源推荐页面
   ============================================ */
.resources-header-card {
  margin: 16px 16px 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--candy-pink) 0%, var(--candy-pink-light) 60%, var(--candy-blue-light) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.rhc-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}
.rhc-sub {
  font-size: 12px;
  color: var(--text-medium);
  margin-top: 6px;
  line-height: 1.5;
}

.resources-tabs {
  display: flex;
  gap: 6px;
  margin: 0 16px 14px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 5px;
  box-shadow: var(--shadow-soft);
}
.res-tab {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-medium);
  padding: 9px 2px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}
.res-tab.active {
  background: linear-gradient(135deg, var(--candy-pink) 0%, var(--candy-pink-dark) 100%);
  color: var(--text-dark);
  font-weight: 700;
}

.res-section-label {
  margin: 4px 16px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}
.res-group-title {
  margin: 14px 16px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  padding-left: 8px;
  border-left: 3px solid var(--candy-pink);
}
.res-hint {
  margin: 0 16px 10px;
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.5;
}
.empty-hint {
  margin: 0 16px 12px;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
}

.resource-card-v2 {
  margin: 0 16px 10px;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.2s;
}
.resource-card-v2.learned {
  opacity: 0.72;
}
.resource-icon-v2 {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--candy-pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.resource-info-v2 {
  flex: 1;
  min-width: 0;
}
.resource-name-v2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}
.resource-desc-v2 {
  font-size: 11px;
  color: var(--text-medium);
  margin-top: 3px;
  line-height: 1.5;
}
.resource-source-v2 {
  display: inline-block;
  margin-top: 5px;
  font-size: 10px;
  color: var(--candy-blue-dark);
  background: var(--candy-blue-light);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.resource-actions-v2 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.res-btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-medium);
  background: var(--bg-main);
  border: 1px solid #EEE;
  border-radius: 12px;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.res-btn.done {
  background: var(--fresh-green-light);
  color: var(--fresh-green-dark);
  border-color: var(--fresh-green);
}

.cat-chips {
  display: flex;
  gap: 8px;
  margin: 0 16px 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cat-chip {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-medium);
  background: var(--white);
  border: 1.5px solid transparent;
  border-radius: 16px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cat-chip.active {
  background: var(--cat-color, var(--candy-pink));
  color: var(--text-dark);
  border-color: var(--cat-color, var(--candy-pink-dark));
  font-weight: 700;
}

/* 化妆技巧干货卡片 */
.tip-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px 12px;
  margin: 0 16px 12px;
  border-left: 4px solid var(--candy-pink);
}
.tip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.tip-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--candy-pink-dark);
  background: var(--candy-pink-light);
  border-radius: 10px;
  padding: 3px 10px;
}
.tip-bookmark {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-medium);
  background: var(--bg-soft);
  border: none;
  border-radius: 10px;
  padding: 4px 10px;
  cursor: pointer;
}
.tip-bookmark.done {
  color: #fff;
  background: var(--candy-pink);
}
.tip-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.35;
}
.tip-content {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.7;
}

.aesthetic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 16px;
}
.aesthetic-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 14px 12px;
  border-top: 3px solid var(--lavender);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aesthetic-source {
  font-size: 10px;
  font-weight: 700;
  color: var(--lavender);
  letter-spacing: 0.5px;
}
.aesthetic-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}
.aesthetic-tag {
  font-size: 10px;
  color: var(--text-light);
  background: var(--bg-main);
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 10px;
}

.btn-follow {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--candy-pink-dark);
  background: var(--candy-pink-light);
  border: none;
  border-radius: 14px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-follow.followed {
  color: var(--white);
  background: var(--fresh-green-dark);
}

/* 资源卡片 / 博主卡片 跳转按钮 */
.blogger-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.btn-view {
  font-size: 11px;
  font-weight: 700;
  color: var(--candy-blue-dark);
  background: var(--candy-blue-light);
  border: none;
  border-radius: 14px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-view:active {
  transform: scale(0.96);
}
.resource-card-v2:active {
  transform: scale(0.99);
}
.aesthetic-card:active {
  transform: scale(0.99);
}
.aesthetic-view {
  font-size: 11px;
  font-weight: 700;
  color: var(--candy-blue-dark);
  align-self: flex-start;
  margin-top: 2px;
}

/* 安装到主屏横幅 */
#install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 76px;
  z-index: 200;
  background: linear-gradient(135deg, var(--candy-pink) 0%, var(--candy-blue) 100%);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  animation: bannerPop 0.3s ease;
}
@keyframes bannerPop {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.ib-text {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: #3a2f00;
  line-height: 1.3;
}
.ib-btn {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--fresh-green-dark);
  border: none;
  border-radius: 12px;
  padding: 7px 14px;
  cursor: pointer;
}
.ib-close {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  font-size: 13px;
  color: #3a2f00;
  background: rgba(255,255,255,0.6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

/* 内容更新提示横幅 */
#update-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  top: 8px;
  z-index: 220;
  background: linear-gradient(135deg, #A8E6CF 0%, #C9B1FF 100%);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  animation: bannerPop 0.3s ease;
}
.ub-text {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: #2a2240;
  line-height: 1.3;
}
.ub-btn {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--candy-pink-dark);
  border: none;
  border-radius: 12px;
  padding: 7px 14px;
  cursor: pointer;
}
.ub-close {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  font-size: 13px;
  color: #2a2240;
  background: rgba(255,255,255,0.6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

/* ==========================================
   备案信息底栏
   ========================================== */
.beian-footer {
  text-align: center;
  padding: 12px 16px 20px;
  font-size: 11px;
  color: #999;
  line-height: 1.6;
  background: transparent;
}
.beian-footer a {
  color: #aaa;
  text-decoration: none;
  transition: color .2s;
}
.beian-footer a:active {
  color: var(--candy-pink);
}
.beian-sep {
  margin: 0 6px;
  opacity: .5;
}

