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

:root {
  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --primary-light: #A29BFE;
  --accent: #FD79A8;
  --bg: #F8F9FE;
  --card: #FFFFFF;
  --text: #2D3436;
  --text-secondary: #636E72;
  --border: #E0E0E8;
  --success: #00B894;
  --shadow: 0 2px 16px rgba(108, 92, 231, 0.08);
  --radius: 16px;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding: 20px;
  padding-bottom: 40px;
}

/* ===== Screens ===== */
.screen {
  display: none;
  animation: fadeIn .35s ease;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

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

/* ===== Home ===== */
.home-icon {
  font-size: 64px;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 16px;
}

.home-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--primary);
  margin-bottom: 2px;
}

.home-domain {
  font-size: 14px;
  text-align: center;
  color: var(--primary-light);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 2px;
}

.home-subtitle {
  font-size: 16px;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
}

.highlight {
  color: var(--primary);
  font-weight: 700;
}

.home-desc {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

/* 痛点卡片 */
.pain-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.pain-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(108, 92, 231, 0.06);
}

.pain-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.pain-text {
  font-size: 13px;
  line-height: 1.5;
}

.pain-text strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.pain-text span {
  color: var(--text-secondary);
}

.home-badge {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 24px;
}

.home-badge span {
  color: var(--primary);
  font-weight: 600;
}

/* 首页品牌区 */
.home-branding {
  text-align: center;
  margin-top: 40px;
}
.home-logo {
  width: 260px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 6px;
}
.home-brand-name {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  font-weight: 500;
}

/* AI品牌色高亮 */
.brand-ai {
  color: #e63946;
}

/* 首页继续入口 */
.home-resume {
  margin-top: 20px;
  text-align: center;
}
.home-resume-divider {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* PWA安装提示 */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 100;
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.pwa-install-content span {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.pwa-install-btn {
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pwa-install-close {
  padding: 4px 8px;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}

.btn-primary:active {
  transform: scale(0.97);
  background: var(--primary-dark);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

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

.btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  margin-top: 10px;
}

.btn-secondary:active {
  background: var(--bg);
}

.btn-text {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  margin-top: 8px;
}

.btn-full {
  width: 100%;
}

/* ===== Quiz ===== */
.quiz-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-top: 20px;
}

.quiz-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
  transition: width .4s ease;
}

.quiz-progress-text {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  font-weight: 500;
}

.quiz-body {
  flex: 1;
}

.quiz-question {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  font-size: 15px;
  background: var(--card);
}

.quiz-option:active {
  transform: scale(0.98);
}

.quiz-option.selected {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.06);
}

.quiz-option .radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.quiz-option.selected .radio {
  border-color: var(--primary);
  background: var(--primary);
}

.quiz-option.selected .radio::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

/* ===== Result ===== */
.result-header {
  font-size: 56px;
  text-align: center;
  margin: 40px 0 16px;
}

.result-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.result-desc {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.6;
}

.result-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.result-tag {
  padding: 4px 12px;
  background: rgba(108, 92, 231, 0.08);
  color: var(--primary);
  font-size: 13px;
  border-radius: 20px;
  font-weight: 500;
}

/* 分析报告 */
.result-analysis {
  margin-bottom: 24px;
}

.analysis-card {
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}

.analysis-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.analysis-trait {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.analysis-why {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.result-next {
  margin-top: 24px;
  text-align: center;
  padding: 20px 0;
}

.btn-next {
  display: inline-block;
  padding: 12px 32px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.btn-next:active {
  transform: scale(0.97);
  background: var(--primary-dark);
}

/* 付费引导页 */
.bridge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 40px 20px;
}

.bridge-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.bridge-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.bridge-hint {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* 算命式体验 */
.divination-section {
  margin-bottom: 20px;
}

.divination-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.divination-card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  line-height: 1.7;
}

.revelation-card {
  border-left: 3px solid var(--primary);
}

.revelation-card p {
  font-size: 14px;
  color: var(--text);
}


/* ===== Plan ===== */
.back-bar {
  padding: 16px 0;
}

.back-btn {
  background: none;
  border: none;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 0;
}

.back-btn:active {
  color: var(--text);
}

.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 184, 148, 0.1);
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}

.plan-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.plan-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}

.plan-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.plan-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.plan-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.plan-card .result-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  background: rgba(0, 184, 148, 0.08);
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
}

.plan-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  padding: 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 14px;
  padding-top: 4px;
  color: var(--text);
}

/* 路线图 */
.plan-roadmap-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.roadmap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roadmap-day {
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.roadmap-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.roadmap-day-label {
  display: inline-block;
  padding: 2px 10px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  flex-shrink: 0;
}

.roadmap-goal {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.roadmap-tasks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.roadmap-tasks li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 0 3px 16px;
  position: relative;
  line-height: 1.5;
}

.roadmap-tasks li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--primary-light);
}

/* 周路线图 */
.roadmap-week {
  margin-bottom: 16px;
}

.roadmap-week-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 12px;
  background: rgba(108, 92, 231, 0.06);
  border-radius: 8px;
}

.roadmap-week-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.roadmap-week-goal {
  font-size: 13px;
  color: var(--text-secondary);
}

.roadmap-est {
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: auto;
  white-space: nowrap;
  background: rgba(108, 92, 231, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Phase Transition */
.phase-transition {
  animation: fadeIn .5s ease;
}
.phase-transition h3 {
  color: var(--text);
}
.phase-transition p {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.btn-start-now {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #E17055, #FD79A8);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  margin-top: 10px;
}

.btn-start-now:active {
  transform: scale(0.97);
}

.success-reminder {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
}

.plan-budget-prompt {
  margin-top: 8px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.06), rgba(253, 121, 168, 0.06));
  border-radius: var(--radius);
  text-align: center;
}


/* ===== Skills ===== */
.skills-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.skills-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.skills-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-half {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline:active {
  background: rgba(108, 92, 231, 0.06);
}

.btn-outline:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.skills-list {

  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
}

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

.skill-item.selected {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.04);
}

.skill-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.skill-item.selected .skill-check {
  border-color: var(--primary);
  background: var(--primary);
}

.skill-item.selected .skill-check::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.skill-info {
  flex: 1;
}

.skill-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.skill-purpose {
  font-size: 13px;
  color: var(--text-secondary);
}

.skill-price-tag {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.skills-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.skills-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
}

.skills-price {
  color: var(--primary);
  font-weight: 600;
}

.skills-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* 执行计划看板 */
.roadmap-dashboard {
  padding-bottom: 40px;
}

.rd-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.rd-icon {
  font-size: 40px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 92, 231, 0.08);
  border-radius: 14px;
}

.rd-info {
  flex: 1;
}

.rd-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.rd-phase {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.rd-section-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 进度条 */
.rd-progress {
  margin-bottom: 20px;
}
.rd-progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.rd-progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.rd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  transition: width .4s ease;
}
.rd-progress-text {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
}

/* 今日任务卡片 */
.rd-today {
  margin-bottom: 24px;
}
.rd-today-card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(108, 92, 231, 0.08);
  border: 1.5px solid var(--primary);
}
.rd-today-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.rd-today-day {
  display: inline-block;
  padding: 2px 10px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}
.rd-today-goal {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.rd-today-est {
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: auto;
  background: rgba(108, 92, 231, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.rd-task-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.rd-task-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  cursor: pointer;
}
.rd-task-list li .check-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  font-size: 11px;
}
.rd-task-list li.done .check-box {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.rd-task-list li.done .task-text {
  text-decoration: line-through;
  color: var(--text-secondary);
}
.rd-today-ai {
  margin-top: 8px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}
.rd-today-ai summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 0;
}
.rd-today-ai .ai-command-box {
  margin-top: 8px;
  padding: 10px;
  background: #FAFAFE;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: 'SF Mono', monospace;
  color: var(--text-secondary);
  max-height: 200px;
  overflow-y: auto;
}
.rd-today-ai .copy-ai-btn {
  margin-top: 6px;
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

/* 时间线 */
.rd-timeline {
  margin-bottom: 24px;
}
.rd-week-block {
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rd-week-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background .2s;
  user-select: none;
}
.rd-week-header:active {
  background: rgba(108, 92, 231, 0.04);
}
.rd-week-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.rd-week-dot.active {
  background: var(--primary);
}
.rd-week-dot.done {
  background: var(--success);
}
.rd-week-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.rd-week-goal {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}
.rd-week-progress {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.rd-week-arrow {
  font-size: 12px;
  color: var(--text-secondary);
  transition: transform .2s;
}
.rd-week-block.open .rd-week-arrow {
  transform: rotate(90deg);
}
.rd-week-body {
  display: none;
  border-top: 1px solid var(--border);
}
.rd-week-block.open .rd-week-body {
  display: block;
}
.rd-week-day {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px 10px 24px;
  border-bottom: 1px solid #F5F5FA;
  cursor: pointer;
  transition: background .2s;
}
.rd-week-day:last-child {
  border-bottom: none;
}
.rd-week-day:active {
  background: rgba(108, 92, 231, 0.03);
}
.rd-week-day .day-check {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all .2s;
}
.rd-week-day.done .day-check {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.rd-week-day .day-name {
  font-size: 13px;
  font-weight: 600;
  width: 45px;
  flex-shrink: 0;
  color: var(--text);
}
.rd-week-day.done .day-name {
  color: var(--text-secondary);
}
.rd-week-day .day-goal {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}
.rd-week-day.done .day-goal {
  text-decoration: line-through;
}

/* 技能包 */
.rd-tools {
  margin-bottom: 24px;
}
.skill-bank {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skill-bank-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.skill-bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
}
.skill-bank-header:active {
  background: rgba(108, 92, 231, 0.03);
}
.skill-bank-name {
  font-size: 14px;
  font-weight: 600;
}
.skill-bank-purpose {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.skill-bank-expand {
  font-size: 12px;
  color: var(--primary-light);
}
.skill-bank-command {
  display: none;
  padding: 10px 14px;
  background: #FAFAFE;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: 'SF Mono', monospace;
  color: var(--text-secondary);
  max-height: 250px;
  overflow-y: auto;
}
.skill-bank-item.open .skill-bank-command {
  display: block;
}
.rd-copy-all {
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.rd-copy-all:active {
  opacity: .8;
}

.rd-footer {
  margin-top: 24px;
}

/* 机会不等人提示 */
.opportunity-prompt {
  margin-top: 32px;
  text-align: center;
}
.opp-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}
.opp-content {
  padding: 10px 0;
}
.opp-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.opp-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.opp-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* PWA引导（在看板底部） */
.pwa-reminder {
  margin-top: 16px;
  text-align: center;
}
.pay-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

.pay-qr-header {
  text-align: center;
  margin-bottom: 20px;
}

.pay-qr-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0, 184, 148, 0.1);
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
}

.pay-qr-image {
  width: 220px;
  height: auto;
  max-height: 320px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  object-fit: contain;
}

.pay-info {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.pay-tip {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

.pay-mode {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-align: center;
}

.pay-detail {
  text-align: left;
  margin-bottom: 24px;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.pay-total {
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
  border-bottom: none;
}

.btn-pay {
  background: var(--accent);
  margin-bottom: 12px;
}

.btn-pay:active {
  background: #E86A9A;
}

/* ===== Success ===== */
.success-icon {
  font-size: 64px;
  text-align: center;
  margin: 50px 0 16px;
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.success-sub {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.commands-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.command-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(108, 92, 231, 0.04);
  font-size: 14px;
  font-weight: 600;
}

.command-header .copy-btn {
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.command-body {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: #FAFAFE;
  max-height: 200px;
  overflow-y: auto;
}

.success-actions {
  margin-top: 24px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 999;
  animation: toastIn .3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== 7天路线图 ===== */
.r7-header { text-align: center; padding: 8px 0 16px; }
.r7-title-icon { font-size: 48px; margin-bottom: 8px; }
.r7-title { font-size: 22px; font-weight: 700; color: var(--text); margin: 4px 0; }
.r7-subtitle { font-size: 13px; color: var(--text-secondary); }

.r7-progress { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.r7-progress-track { flex: 1; height: 6px; background: var(--bg-secondary); border-radius: 3px; overflow: hidden; }
.r7-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #A29BFE); border-radius: 3px; transition: width .4s ease; width: 0%; }
.r7-progress-text { font-size: 13px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }

.r7-days { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 16px; }

.r7-day-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; transition: all .2s; position: relative; overflow: hidden;
  cursor: default;
}
.r7-day-card.unlocked { border-color: var(--primary-light); cursor: pointer; }
.r7-day-card.unlocked:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(108,92,231,.1); }
.r7-day-card.completed { border-color: var(--success); background: rgba(0,184,148,.04); }
.r7-day-card.locked { opacity: .55; }

.r7-day-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 8px;
}
.r7-day-badge.free { background: rgba(0,184,148,.12); color: var(--success); }
.r7-day-badge.paid { background: rgba(108,92,231,.12); color: var(--primary); }
.r7-day-badge.done { background: rgba(0,184,148,.08); color: var(--success); }
.r7-day-badge.locked-badge { background: rgba(150,150,150,.1); color: #999; }

.r7-day-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.r7-day-goal { font-size: 13px; color: var(--text-secondary); }

.r7-day-content { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.r7-day-card.open .r7-day-content { display: block; }

.r7-day-tasks { list-style: none; padding: 0; margin: 0 0 12px; }
.r7-day-tasks li {
  display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; font-size: 13px;
  color: var(--text-secondary); border-bottom: 1px solid var(--bg-secondary);
}
.r7-day-tasks li:last-child { border-bottom: none; }
.r7-task-check {
  width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--success); margin-top: 1px; cursor: pointer;
  transition: all .2s;
}
.r7-day-tasks li.done .r7-task-check { background: var(--success); border-color: var(--success); color: #fff; }
.r7-day-tasks li.done .r7-task-text { text-decoration: line-through; color: #aaa; }

.r7-ai-box {
  background: #F8F7FF; border-radius: 10px; padding: 12px; font-size: 12px;
  color: var(--text-secondary); font-family: monospace; white-space: pre-wrap;
  max-height: 120px; overflow-y: auto; line-height: 1.5; margin-bottom: 8px;
}
.r7-copy-btn {
  background: var(--primary); color: #fff; border: none; border-radius: 6px;
  padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.r7-copy-btn:active { opacity: .8; }

.r7-unlock-bar {
  position: sticky; bottom: 0; background: var(--bg); padding: 14px 0;
  border-top: 1px solid var(--border); z-index: 10;
}
.r7-unlock-info { text-align: center; font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.r7-unlock-btns { display: flex; gap: 10px; }

.btn-half { flex: 1; }

.r7-footer { text-align: center; padding: 16px 0; }

/* 锁图标动画 */
@keyframes lockShake {
  0%,100% { transform: rotate(0); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}
.r7-day-card.locked:active .r7-day-badge { animation: lockShake .3s ease; }


/* ===== 技能分组 ===== */
.skill-group-header {
  font-size: 14px; font-weight: 700; color: var(--text); 
  padding: 16px 0 8px 4px; margin-top: 8px;
  border-top: 1px solid var(--border);
}
.skill-group-header:first-child { border-top: none; margin-top: 0; }

.skill-core {
  border-left: 3px solid var(--primary);
  background: linear-gradient(90deg, rgba(108,92,231,.06) 0%, transparent 100%);
}
.skill-essential {
  border-left: 3px solid #F39C12;
  background: linear-gradient(90deg, rgba(243,156,18,.06) 0%, transparent 100%);
}

.skill-bonus {
  border-left: 3px solid #27AE60;
  background: linear-gradient(90deg, rgba(39,174,96,.04) 0%, transparent 100%);
  opacity: .85;
}
.btn-full { width: 100%; }
