﻿/* ==========================================
   【核心变量】全暖色调规范 彻底移除冷色
   ========================================== */
:root {
  /* 背景色系 全暖奶杏调 */
  --bg-light: #FFF8F0;
  --bg-base: #F9EDE0;
  --bg-deep: #F2DFCE;
  /* 卡片/表面色系 暖白柔化 */
  --surface: rgba(255, 253, 250, 0.92);
  --surface-strong: rgba(255, 250, 245, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.65);
  /* 文字色系 暖棕层级 无冷色 */
  --ink-base: #3A2A20;
  --ink-muted: #7A6454;
  --ink-light: #A68F7D;
  /* 线条/边框色系 暖棕柔化 */
  --line-light: rgba(150, 110, 80, 0.08);
  --line-base: rgba(150, 110, 80, 0.12);
  --line-strong: rgba(150, 110, 80, 0.18);
  /* 主色调 焦糖暖棕 全暖无冷色 */
  --accent: #C86A3D;
  --accent-dark: #94492D;
  --accent-light: #F2B88F;
  /* 辅助功能色 全暖调 无绿色 */
  --warm-gold: #D8A353;
  --warm-success: #A67C4E;
  --warm-warning: #E68A44;
  --warm-danger: #B55539;
  /* 阴影 暖调柔化 无冷色反光 */
  --shadow-soft: 0 12px 32px rgba(100, 60, 30, 0.06);
  --shadow-base: 0 20px 60px rgba(100, 60, 30, 0.1);
  --shadow-strong: 0 28px 72px rgba(100, 60, 30, 0.14);
  /* 圆角规范 统一柔和 */
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --radius-xs: 12px;
}

/* ==========================================
   【字体系统】柔和手写感圆体 易识别
   优先系统原生圆体，无外部依赖，全平台兼容
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  /* 核心字体：圆润手写感圆体，柔和不生硬，易识别 */
  font-family: "PingFang SC Rounded", "STYuanti SC", "Microsoft YaHei UI", "Hiragino Sans GB", "Varela Round", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--ink-base);
  /* 全暖背景渐变 无冷色 */
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-base) 45%, var(--bg-deep) 100%);
  position: relative;
  overflow-x: hidden;
}
/* 背景柔化装饰 全暖调 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: 
    linear-gradient(var(--line-base) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-base) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 95%);
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 12% 10%, rgba(200, 106, 61, 0.12), transparent 25%),
    radial-gradient(circle at 88% 8%, rgba(216, 163, 83, 0.1), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(200, 106, 61, 0.08), transparent 25%);
  z-index: 0;
}

/* ==========================================
   【字号层级规范】彻底解决字号混乱
   严格统一标题/正文/辅助文字层级，无交错
   ========================================== */
/* 大标题 首页主标题 */
h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-base);
  font-family: inherit;
}
/* 二级标题 板块标题 */
h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-base);
  font-family: inherit;
}
/* 三级标题 卡片标题 */
h3 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-base);
  font-family: inherit;
}
/* 四级小标题 卡片内标题 */
h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-base);
  font-family: inherit;
}
/* 正文文本 */
p, li {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-muted);
}
/* 辅助说明文本 */
.field-note, .input-hint, .status-note {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-light);
}
/* 标签/小字 统一大写规范，无乱交错 */
.section-label, .stage-label, .hero-kicker, .mini-pill {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

/* ==========================================
   【全局布局容器】解决排版失衡
   ========================================== */
.page-wrapper {
  position: relative;
  z-index: 1;
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  padding: 32px 0 60px;
}
.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}
/* 核心板块容器 统一规范 */
.hero, .panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.7);
  background: linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow-base);
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
}
.hero::before, .panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent 45%, rgba(200,106,61,0.04));
  pointer-events: none;
}
.hero::after, .panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,163,83,0.1), transparent 70%);
  pointer-events: none;
}
/* 首页hero区域 解决左右失衡 1:1均衡布局 */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 40px;
  animation: fadeUp 0.7s ease-out both;
}
.panel {
  padding: 32px;
  animation: fadeUp 0.7s ease-out both;
}
.panel:nth-of-type(2) { animation-delay: 0.06s; }
.panel:nth-of-type(3) { animation-delay: 0.12s; }
.hero > *, .panel > * {
  position: relative;
  z-index: 2;
}
.hero-copy, .hero-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================
   【导航栏 全新重写】暖调柔和
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 250, 245, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-light);
  padding: 0 20px;
}
.navbar-container {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-base);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.navbar-logo:hover {
  transform: scale(1.02);
}
.navbar-logo .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--warm-gold));
  display: grid;
  place-items: center;
  color: white;
  font-size: 18px;
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar-menu a {
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
}
.navbar-menu a:hover,
.navbar-menu a.active {
  background: rgba(200, 106, 61, 0.08);
  color: var(--accent-dark);
}
.navbar-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(200, 106, 61, 0.08);
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}
.navbar-profile:hover {
  background: rgba(200, 106, 61, 0.12);
  transform: scale(1.02);
}

/* ==========================================
   【标签/分类 统一规范】
   ========================================== */
.hero-kicker {
  color: var(--accent);
}
.section-label, .mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(200, 106, 61, 0.1);
  color: var(--accent-dark);
}
.stage-label, .aside-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(150, 110, 80, 0.08);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(200, 106, 61, 0.08);
  color: var(--accent-dark);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ==========================================
   【按钮系统 全暖调 统一规范】
   ========================================== */
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}
.button:hover, button:hover {
  transform: translateY(-3px);
}
.button-primary, button {
  color: #fff8f2;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 16px 32px rgba(148, 73, 45, 0.22);
}
.button-secondary, button.button-secondary {
  color: var(--accent-dark);
  border: 1px solid rgba(200, 106, 61, 0.15);
  background: rgba(200, 106, 61, 0.08);
  box-shadow: none;
}
.button-secondary:hover, button.button-secondary:hover {
  box-shadow: 0 12px 24px rgba(200, 106, 61, 0.12);
}
button:disabled, .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ==========================================
   【表单/输入框 全暖调 规范】
   ========================================== */
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
label > span {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-base);
}
textarea,
input[type="text"],
input[type="number"],
input[type="file"],
select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-base);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,253,250,0.7));
  color: var(--ink-base);
  font: inherit;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  transition: all 0.2s ease;
}
textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}
textarea:focus,
input:focus,
select:focus {
  outline: 2px solid rgba(200, 106, 61, 0.2);
  outline-offset: 2px;
  border-color: var(--accent-light);
}

/* ==========================================
   【卡片网格系统 解决元素挤在一起】
   ========================================== */
/* 数据概览网格 4列自适应 不挤 */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.promise-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-base);
  background: linear-gradient(180deg, rgba(255,255,255,0.8), var(--surface-soft));
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.promise-card:hover {
  transform: translateY(-4px);
}
.promise-card span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}
.promise-card strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-base);
  margin: 8px 0 4px;
}
.promise-card p {
  margin: 0;
  font-size: 14px;
}

/* 表单/双列网格 */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stage-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-base);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), var(--surface-soft));
  box-shadow: var(--shadow-soft);
}
.stage-card-primary {
  background: 
    radial-gradient(circle at top right, rgba(216, 163, 83, 0.18), transparent 25%),
    linear-gradient(160deg, rgba(255,250,244,0.97), rgba(250,236,221,0.85));
}
.stage-card strong {
  display: block;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  margin-top: 12px;
}

/* 首页设置区域 解决右侧挤在一起 */
.live-settings-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 12px;
}
.duration-field, .capture-kpi {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-base);
  background: linear-gradient(180deg, rgba(255,255,255,0.8), var(--surface-soft));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.duration-field span, .capture-kpi span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.duration-field strong, .capture-kpi strong {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink-base);
}
/* AI推荐档位 彻底解决文字重叠 */
.recommendation-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 8px 0;
}
.recommendation-strip div {
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: rgba(150, 110, 80, 0.05);
  text-align: center;
}
.recommendation-strip div span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.recommendation-strip div strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-base);
  line-height: 1;
}

/* 快速目标标签 */
.quick-goals-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
}
.quick-goal-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--accent-dark);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line-base);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.quick-goal-tag:hover {
  background: rgba(200, 106, 61, 0.08);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

/* ==========================================
   【专注页 实时面板 排版优化】
   ========================================== */
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}
.panel-head > div:first-child {
  max-width: 70%;
}
.panel-pulse {
  min-width: 220px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--accent-dark), var(--accent));
  color: white;
  text-align: right;
}
.panel-pulse span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.panel-pulse strong {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: white;
  margin: 6px 0;
}
.panel-pulse small {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* 进度条 */
.progress-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line-light);
  margin: 12px 0;
}
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warm-gold));
  transition: width 0.3s ease;
}
.session-progress-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.session-progress-meta div {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(150, 110, 80, 0.05);
}
.session-progress-meta span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.session-progress-meta strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-base);
  margin-top: 6px;
}

/* 实时内容双列布局 */
.adaptive-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-top: 24px;
}
.recommendation-card, .history-overview-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.live-status-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-base);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), var(--surface-soft));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.live-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.live-card-head strong {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-base);
}
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 52px;
  padding: 0 12px;
  border-radius: 16px;
  color: white;
  font-weight: 700;
  font-size: 24px;
}
.score-badge.focus {
  background: linear-gradient(135deg, var(--warm-success), #8A6238);
}
.score-badge.warn {
  background: linear-gradient(135deg, var(--warm-warning), #C16F28);
}
.score-badge.danger {
  background: linear-gradient(135deg, var(--warm-danger), #943A26);
}
.detail-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.detail-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(150, 110, 80, 0.08);
  color: var(--ink-muted);
}
.detail-reason {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}

/* 预览区域 */
.preview-surface {
  min-height: 100%;
}
.preview-frame {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-base);
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(250,245,238,0.85));
  overflow: hidden;
}
.preview-frame img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
.preview-placeholder {
  max-width: 320px;
  text-align: center;
  color: var(--ink-light);
  font-size: 14px;
}

/* 实时操作按钮 */
.live-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

/* ==========================================
   【历史记录卡片 解决挤在一起】
   ========================================== */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.history-entry {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-base);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), var(--surface-soft));
  box-shadow: var(--shadow-soft);
}
.history-entry.empty {
  display: grid;
  place-items: center;
  min-height: 140px;
  text-align: center;
  color: var(--ink-light);
}
.history-entry-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}
.history-entry-top h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-base);
}
.history-entry-top p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}
/* 历史记录4列数据 彻底解决拥挤 */
.history-entry-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.history-entry-meta div {
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  background: rgba(150, 110, 80, 0.05);
}
.history-entry-meta span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.history-entry-meta strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-base);
}

/* ==========================================
   【AI寄语卡片 暖调优化】
   ========================================== */
.ai-advice-card {
  background: linear-gradient(135deg, rgba(216, 163, 83, 0.12), rgba(200, 106, 61, 0.08)) !important;
  border: 1px solid rgba(216, 163, 83, 0.2) !important;
  padding: 24px !important;
  animation: fadeUp 0.6s ease-out;
}
.ai-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ai-icon {
  font-size: 1.4rem;
}
.ai-title {
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.ai-content {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-base);
  margin: 0;
  font-style: italic;
}

/* ==========================================
   【功能卡片 关于页用】
   ========================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-base);
  background: linear-gradient(180deg, rgba(255,255,255,0.8), var(--surface-soft));
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
}
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--warm-gold));
  display: grid;
  place-items: center;
  color: white;
  font-size: 28px;
  margin-bottom: 16px;
}
.feature-card h3 {
  margin-bottom: 8px;
}
.feature-card p {
  margin: 0;
  font-size: 14px;
}

/* ==========================================
   【折叠面板 规则页用】
   ========================================== */
.collapse-panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-base);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.collapse-header {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-base);
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
}
.collapse-header:hover {
  background: rgba(150, 110, 80, 0.04);
}
.collapse-header::after {
  content: "▼";
  font-size: 14px;
  color: var(--ink-muted);
  transition: transform 0.2s ease;
}
.collapse-header.active::after {
  transform: rotate(180deg);
}
.collapse-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.collapse-content.active {
  max-height: 2000px;
}
.collapse-body {
  padding: 0 22px 22px;
}

/* ==========================================
   【消息提示 全暖调】
   ========================================== */
.message {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.message.hidden {
  display: none !important;
}
.message.info {
  background: rgba(200, 106, 61, 0.08);
  border: 1px solid rgba(200, 106, 61, 0.12);
  color: var(--accent-dark);
}
.message.success {
  background: rgba(166, 124, 78, 0.1);
  border: 1px solid rgba(166, 124, 78, 0.14);
  color: var(--warm-success);
}
.message.error {
  background: rgba(181, 85, 57, 0.1);
  border: 1px solid rgba(181, 85, 57, 0.14);
  color: var(--warm-danger);
}

/* ==========================================
   【辅助类 兼容原有JS】
   ========================================== */
.hidden {
  display: none !important;
}
.secondary-panel {
  background: linear-gradient(145deg, rgba(255,250,244,0.94), rgba(255,255,255,0.7));
}
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.mini-metrics div {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(150, 110, 80, 0.05);
}
.mini-metrics span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.mini-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-base);
}
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.status-chip.ready {
  background: rgba(166, 124, 78, 0.12);
  color: var(--warm-success);
}
.status-chip.warning {
  background: rgba(230, 138, 68, 0.13);
  color: var(--warm-warning);
}
.aside-list, .suggestion-list {
  margin: 12px 0 0;
  padding-left: 18px;
}
.aside-list li + li, .suggestion-list li + li {
  margin-top: 8px;
}
.capture-probe {
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.summary-card {
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-base);
  background: linear-gradient(180deg, rgba(255,255,255,0.8), var(--surface-soft));
}
.summary-card span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}
.summary-card strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-base);
  margin: 8px 0 4px;
}
.meter {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line-light);
}
.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warm-gold));
}
.detail-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-base);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), var(--surface-soft));
  box-shadow: var(--shadow-soft);
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
pre {
  margin: 12px 0 0;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(150, 110, 80, 0.05);
  border: 1px solid var(--line-light);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, monospace;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ==========================================
   【动画】
   ========================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   【响应式适配 移动端不挤】
   ========================================== */
@media (max-width: 1080px) {
  .hero, .form-grid, .adaptive-grid {
    grid-template-columns: 1fr;
  }
  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel-pulse {
    width: 100%;
    text-align: left;
  }
  .live-settings-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .page-wrapper {
    margin-top: 60px;
    padding: 20px 0 40px;
  }
  .page-shell {
    width: calc(100% - 20px);
  }
  .navbar {
    padding: 0 12px;
  }
  .navbar-container {
    height: 60px;
  }
  .navbar-menu {
    display: none;
  }
  .hero, .panel {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }
  h1 {
    font-size: clamp(32px, 10vw, 48px);
  }
  .promise-grid, .history-entry-meta, .recommendation-strip {
    grid-template-columns: 1fr 1fr;
  }
  .session-progress-meta {
    grid-template-columns: 1fr;
  }
  .button, button {
    width: 100%;
  }
  .hero-actions, .live-action-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ========== 新增：专注中页面锁定遮罩 ========== */
.focus-lock-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}
.lock-card {
  background: var(--surface-strong);
  padding: 40px;
  border-radius: var(--radius-xl);
  text-align: center;
  max-width: 500px;
  box-shadow: var(--shadow-strong);
}
.lock-icon {
  font-size: 64px;
  margin-bottom: 20px;
}
.lock-card h2 {
  margin-bottom: 12px;
}
.lock-card p {
  margin-bottom: 24px;
}
.disabled-link {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== 新增：分心记录列表 ========== */
.distraction-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}
.distraction-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(181, 85, 57, 0.08);
  border: 1px solid rgba(181, 85, 57, 0.12);
  color: var(--warm-danger);
}
.empty-text {
  text-align: center;
  color: var(--ink-light);
  padding: 20px;
}

/* ========== 新增：专注小窝样式 ========== */
.den-preview {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--line-base);
}
.den-wall {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.den-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  z-index: 2;
}
.den-decoration {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.den-items-grid, .shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.den-item-card, .shop-item-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-base);
  background: var(--surface);
  text-align: center;
  transition: transform 0.3s ease;
}
.den-item-card:hover, .shop-item-card:hover {
  transform: translateY(-4px);
}
.shop-item-card.unlocked {
  opacity: 0.6;
}
.item-icon {
  margin-bottom: 12px;
}
.item-price {
  margin: 12px 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}


/* ==========================================
   【新增：专注模式卡片】
   ========================================== */
.mode-selection-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.mode-card {
  padding: 24px;
  border: 2px solid rgba(200, 106, 61, 0.15);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all 0.3s ease;
  cursor: pointer;
}

.mode-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-base);
  transform: translateY(-2px);
}

.mode-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.mode-icon {
  font-size: 32px;
  line-height: 1;
}

.mode-header h3 {
  font-size: 20px;
  margin: 0;
}

.mode-desc {
  color: var(--ink-muted);
  font-size: 13px;
  margin: 0 0 12px 0;
}

.mode-details {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(200, 106, 61, 0.1);
}

.mode-details label {
  display: block;
  margin-bottom: 12px;
}

.mode-details label span {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.mode-details select,
.mode-details input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line-base);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-family: inherit;
}

.mode-toggle-btn {
  background: rgba(200, 106, 61, 0.08);
  border: 1px solid rgba(200, 106, 61, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 13px;
  transition: all 0.2s ease;
}

.mode-toggle-btn:hover {
  background: rgba(200, 106, 61, 0.12);
  border-color: rgba(200, 106, 61, 0.3);
}

@media (max-width: 768px) {
  .mode-selection-group {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   【新增：数据卡片改进】
   ========================================== */
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.mini-metrics > div {
  padding: 12px;
  background: rgba(200, 106, 61, 0.05);
  border-radius: var(--radius-sm);
  text-align: center;
}

.mini-metrics span {
  display: block;
  font-size: 12px;
  color: var(--ink-light);
  margin-bottom: 6px;
}

.mini-metrics strong {
  display: block;
  font-size: 18px;
  color: var(--ink-base);
  font-weight: 700;
}

/* ==========================================
   【新增：折叠面板】
   ========================================== */
.collapse-panel {
  margin-bottom: 12px;
  border: 1px solid var(--line-base);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.collapse-header {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(200, 106, 61, 0.03));
  border: none;
  border-bottom: 1px solid var(--line-light);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-base);
  text-align: left;
  transition: all 0.2s ease;
}

.collapse-header:hover {
  background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(200, 106, 61, 0.05));
}

.collapse-header.active {
  background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(200, 106, 61, 0.08));
  border-bottom-color: var(--accent-light);
}

.collapse-content {
  display: none;
  max-height: 0;
  overflow: hidden;
}

.collapse-content.active {
  display: block;
  max-height: 2000px;
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 2000px;
  }
}

.collapse-body {
  padding: 16px 20px;
}

.collapse-body p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.collapse-body p:last-child {
  margin-bottom: 0;
}

.collapse-body ul {
  margin: 0;
  padding-left: 20px;
}

.collapse-body li {
  margin-bottom: 8px;
}

.collapse-body strong {
  color: var(--ink-base);
}
