:root {
  --primary: #4CAF7D;
  --primary-dark: #2E7D52;
  --primary-light: #E8F5EE;
  --accent: #FF8C42;
  --accent-light: #FFF3E8;
  --tcm: #8B4513;
  --tcm-light: #FFF8F0;
  --nutrition: #2196F3;
  --nutrition-light: #E3F2FD;
  --rehab: #9C27B0;
  --rehab-light: #F3E5F5;
  --text: #1A1A2E;
  --text-secondary: #666;
  --border: #E0E0E0;
  --bg: #F8FAF9;
  --card: #FFFFFF;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 16px;
  --radius-sm: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== LAYOUT ===== */
.app-header {
  background: linear-gradient(135deg, #1B4332 0%, #2E7D52 100%);
  padding: 20px 20px 28px; position: relative; overflow: hidden;
}
.app-header::after {
  content: ''; position: absolute; bottom: -20px; left: 0; right: 0;
  height: 40px; background: var(--bg); border-radius: 20px 20px 0 0;
}
.header-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo span { font-size: 24px; }
.header-logo h2 { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.header-date { text-align: right; }
.header-date .date-main { color: #fff; font-size: 16px; font-weight: 600; }
.header-date .date-jieqi { color: rgba(255,255,255,0.8); font-size: 12px; }
.date-picker {
  margin-top: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 12px;
  width: 130px;
}
.date-picker::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.8;
  cursor: pointer;
}
.header-greeting { color: rgba(255,255,255,0.9); font-size: 14px; }
.header-user-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); border-radius: 20px;
  padding: 4px 12px; color: #fff; font-size: 13px; margin-top: 4px;
}

/* ===== NAV ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #fff; border-top: 1px solid var(--border);
  display: flex; box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 8px 2px 12px; cursor: pointer; transition: all 0.2s; border: none;
  background: transparent; text-decoration: none; min-width: 0;
}
.nav-item .nav-icon { font-size: 20px; margin-bottom: 2px; transition: transform 0.2s; }
.nav-item .nav-label { font-size: 10px; color: var(--text-secondary); transition: color 0.2s; white-space: nowrap; }
.nav-item.active .nav-icon { transform: scale(1.15); }
.nav-item.active .nav-label { color: var(--primary); font-weight: 600; }

/* ===== PAGE CONTENT ===== */
.page { display: none; padding-bottom: 80px; }
.page.active { display: block; }
.content-wrap { padding: 0 16px; }

/* ===== CARDS ===== */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.card-title { font-size: 16px; font-weight: 600; }
.card-subtitle { font-size: 12px; color: var(--text-secondary); }

/* ===== SECTION TITLE ===== */
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 700; margin: 20px 0 12px;
}
.section-title::before {
  content: ''; width: 4px; height: 18px; border-radius: 2px;
  background: var(--primary);
}

/* ===== TODAY SCORE ===== */
.today-score-card {
  background: linear-gradient(135deg, #1B4332, #2E7D52);
  color: #fff; border-radius: var(--radius); padding: 22px;
  margin-bottom: 16px; position: relative; overflow: hidden;
}
.today-score-card::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.score-row { display: flex; align-items: center; justify-content: space-between; }
.score-left h3 { font-size: 14px; opacity: 0.85; margin-bottom: 6px; }
.score-num { font-size: 56px; font-weight: 700; line-height: 1; }
.score-num span { font-size: 20px; font-weight: 400; }
.score-level { font-size: 13px; opacity: 0.8; margin-top: 4px; }
.score-ring {
  width: 80px; height: 80px; position: relative;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring .ring-bg { fill: none; stroke: rgba(255,255,255,0.2); stroke-width: 8; }
.score-ring .ring-fg { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.5s ease; }
.score-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.score-tag {
  background: rgba(255,255,255,0.15); border-radius: 20px;
  padding: 4px 12px; font-size: 12px;
}

/* ===== JIEQI BANNER ===== */
.jieqi-banner {
  background: linear-gradient(135deg, #8B4513, #C0835A);
  border-radius: var(--radius); padding: 18px 20px;
  color: #fff; margin-bottom: 16px; display: flex;
  align-items: center; gap: 16px;
}
.jieqi-icon { font-size: 40px; }
.jieqi-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.jieqi-info p { font-size: 13px; opacity: 0.85; line-height: 1.5; }
.jieqi-badge {
  background: rgba(255,255,255,0.2); border-radius: 20px;
  padding: 3px 10px; font-size: 11px; display: inline-block; margin-top: 6px;
}

/* ===== 3 EXPERT CARDS ===== */
.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.expert-card {
  border-radius: var(--radius-sm); padding: 14px 10px; text-align: center;
  cursor: pointer; transition: all 0.2s; position: relative;
}
.expert-card.tcm { background: var(--tcm-light); border: 1.5px solid rgba(139,69,19,0.2); }
.expert-card.nutrition { background: var(--nutrition-light); border: 1.5px solid rgba(33,150,243,0.2); }
.expert-card.rehab { background: var(--rehab-light); border: 1.5px solid rgba(156,39,176,0.2); }
.expert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.expert-emoji { font-size: 28px; margin-bottom: 6px; }
.expert-name { font-size: 12px; font-weight: 600; }
.expert-card.tcm .expert-name { color: var(--tcm); }
.expert-card.nutrition .expert-name { color: var(--nutrition); }
.expert-card.rehab .expert-name { color: var(--rehab); }
.expert-badge {
  position: absolute; top: 6px; right: 6px;
  background: var(--accent); color: #fff; border-radius: 10px;
  padding: 1px 6px; font-size: 10px;
}

/* ===== ADVICE LIST ===== */
.advice-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.advice-item:last-child { border-bottom: none; }
.advice-dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: 5px; flex-shrink: 0;
}
.advice-content h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.advice-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.advice-tag {
  display: inline-block; border-radius: 12px; padding: 2px 8px;
  font-size: 11px; margin-top: 4px;
}

/* ===== FORM ===== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text);
}
.form-label .label-icon { font-size: 16px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text); background: #fff;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76,175,125,0.12);
}
.form-textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 20px; font-size: 13px;
  border: 1.5px solid var(--border); background: #fff; cursor: pointer;
  transition: all 0.2s; user-select: none;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.selected {
  background: var(--primary-light); border-color: var(--primary);
  color: var(--primary-dark); font-weight: 600;
}
.submit-btn {
  width: 100%; padding: 15px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 16px; font-weight: 700;
  border: none; cursor: pointer; margin-top: 8px;
  transition: all 0.2s; letter-spacing: 1px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(76,175,125,0.4); }
.submit-btn:active { transform: translateY(0); }

/* ===== CONSTITUTION CARDS ===== */
.constitution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.con-card {
  border-radius: var(--radius-sm); padding: 12px 8px; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: all 0.2s;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.con-card:hover { transform: translateY(-2px); }
.con-card.selected { border-color: var(--primary); background: var(--primary-light); }
.con-emoji { font-size: 26px; margin-bottom: 4px; }
.con-name { font-size: 12px; font-weight: 600; color: var(--text); }
.con-desc { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }

/* ===== PLAN PAGE ===== */
.plan-tabs {
  display: flex; background: #fff; border-radius: var(--radius);
  padding: 4px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.plan-tab {
  flex: 1; padding: 10px; text-align: center; border-radius: 12px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--text-secondary); transition: all 0.2s; border: none;
  background: transparent;
}
.plan-tab.active { background: var(--primary); color: #fff; }

.day-timeline { position: relative; padding-left: 24px; }
.day-timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 18px; }
.timeline-dot {
  position: absolute; left: -20px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 2px currentColor;
}
.timeline-time { font-size: 12px; color: var(--text-secondary); margin-bottom: 3px; }
.timeline-card {
  background: #fff; border-radius: var(--radius-sm);
  padding: 12px 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 3px solid currentColor;
}
.timeline-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.timeline-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.timeline-tag {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; color: #fff; margin-top: 6px;
}

/* ===== MONTH CALENDAR ===== */
.month-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 16px; }
.month-day {
  aspect-ratio: 1; border-radius: 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 13px;
  cursor: pointer; transition: all 0.2s; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.month-day.today { background: var(--primary); color: #fff; font-weight: 700; }
.month-day.has-plan { position: relative; }
.month-day.has-plan::after {
  content: ''; position: absolute; bottom: 3px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}
.month-day.header-day { background: transparent; box-shadow: none; font-weight: 600; font-size: 12px; color: var(--text-secondary); }

/* ===== FOOD PLATE ===== */
.food-plate {
  background: #fff; border-radius: var(--radius); padding: 16px;
  margin-bottom: 16px; box-shadow: var(--shadow);
}
.food-plate h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.food-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.food-item {
  border-radius: var(--radius-sm); padding: 12px;
  display: flex; align-items: center; gap: 10px;
}
.food-item.rec { background: var(--primary-light); }
.food-item.avoid { background: #FFF5F5; }
.food-emoji { font-size: 22px; }
.food-info h4 { font-size: 13px; font-weight: 600; }
.food-info p { font-size: 11px; color: var(--text-secondary); }

/* ===== STATS / REPORT ===== */
.stat-card {
  background: #fff; border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.stat-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.stat-bar-wrap { margin-bottom: 10px; }
.stat-bar-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.stat-bar-bg { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.stat-bar-fg { height: 100%; border-radius: 4px; transition: width 1.5s ease; }
.insight-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.insight-item:last-child { border-bottom: none; }
.insight-icon { font-size: 24px; flex-shrink: 0; }
.insight-text h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.insight-text p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===== ACUPOINT MODAL ===== */
.acupoint-sheet {
  max-height: 88vh; overflow-y: auto; padding-bottom: 30px;
}
.acupoint-legend {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 14px; flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-secondary); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.acupoint-views {
  display: flex; gap: 10px; justify-content: center; margin-bottom: 14px;
}
.acupoint-view-col {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; max-width: 145px;
}
.acupoint-view-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  padding: 2px 12px; border-radius: 10px; margin-bottom: 6px;
}
.acupoint-view-label.front { background: rgba(139,69,19,0.12); color: #8B4513; }
.acupoint-view-label.back { background: rgba(198,40,40,0.12); color: #C62828; }
.acupoint-figure-wrap { position: relative; width: 90px; height: 220px; margin-bottom: 6px; }

/* CSS 人体轮廓 */
.figure-front { width: 100%; height: 100%; position: relative; }
.fig-head {
  position: absolute; width: 30px; height: 36px; border-radius: 50% 50% 45% 45%;
  background: linear-gradient(160deg,#FFE4CC 0%,#F5D4B3 100%);
  left: 50%; transform: translateX(-50%); top: 0;
  box-shadow: inset -3px -3px 6px rgba(0,0,0,0.06), 1px 2px 4px rgba(0,0,0,0.08);
}
.fig-head::before {
  content: ''; position: absolute; width: 22px; height: 6px; border-radius: 3px;
  background: rgba(139,69,19,0.08); top: 16px; left: 50%; transform: translateX(-50%);
}
.fig-neck {
  position: absolute; width: 14px; height: 10px;
  background: linear-gradient(160deg,#FFE4CC,#F0C8A0);
  left: 50%; transform: translateX(-50%); top: 34px;
}
.fig-torso { position: absolute; top: 43px; left: 50%; transform: translateX(-50%); width: 54px; height: 72px; display: flex; gap: 0; }
.fig-torso-left-arm, .fig-torso-right-arm {
  width: 12px; height: 70px; background: linear-gradient(160deg,#FFE4CC,#F0C8A0);
  border-radius: 6px; position: relative;
}
.fig-torso-left-arm { left: -6px; transform: rotate(8deg); transform-origin: top center; }
.fig-torso-right-arm { right: -6px; transform: rotate(-8deg); transform-origin: top center; }
.fig-torso-core {
  flex: 1; background: linear-gradient(160deg,#FFE4CC 0%,#F5D4B3 60%);
  border-radius: 8px 8px 4px 4px; box-shadow: inset -2px -2px 5px rgba(0,0,0,0.05); position: relative;
}
.fig-torso-core::after {
  content: ''; position: absolute; width: 1px; height: 60%;
  background: rgba(139,69,19,0.08); left: 50%; top: 20%; transform: translateX(-50%);
}
.fig-legs { position: absolute; top: 113px; left: 50%; transform: translateX(-50%); width: 44px; height: 82px; display: flex; gap: 4px; }
.fig-leg { flex: 1; background: linear-gradient(160deg,#FFE4CC,#F0C8A0); border-radius: 6px 6px 3px 3px; }
.fig-feet { position: absolute; top: 194px; left: 50%; transform: translateX(-50%); width: 52px; height: 14px; display: flex; gap: 6px; }
.fig-foot { flex: 1; background: linear-gradient(160deg,#FFE4CC,#F0C8A0); border-radius: 4px 4px 5px 5px; height: 12px; margin-top: 2px; }

/* 后背轮廓 */
.figure-back { width: 100%; height: 100%; position: relative; }
.figure-back .fig-head { background: linear-gradient(160deg,#F5D4B3 0%,#E8C4A0 100%); }
.figure-back .fig-neck { background: linear-gradient(160deg,#F0C8A0,#E0B890); }
.figure-back .fig-torso-left-arm, .figure-back .fig-torso-right-arm { background: linear-gradient(160deg,#F0C8A0,#E0B890); }
.figure-back .fig-torso-core-back { background: linear-gradient(160deg,#F5D4B3 0%,#EDD0B0 60%); box-shadow: inset -2px -2px 5px rgba(0,0,0,0.07); }
.figure-back .fig-leg { background: linear-gradient(160deg,#F0C8A0,#E0B890); }
.figure-back .fig-foot { background: linear-gradient(160deg,#F0C8A0,#E0B890); }
.fig-spine {
  position: absolute; width: 2px; height: 108px;
  background: linear-gradient(to bottom, rgba(198,40,40,0.15), rgba(198,40,40,0.05));
  left: 50%; transform: translateX(-50%); top: 44px; border-radius: 1px;
}
.fig-label { position: absolute; font-size: 8px; color: rgba(139,69,19,0.35); font-weight: 600; pointer-events: none; letter-spacing: 1px; }
.fig-label-head { left: -12px; top: 10px; }
.fig-label-chest { right: -10px; top: 52px; }
.fig-label-belly { right: -10px; top: 84px; }
.fig-label-leg { right: -10px; top: 148px; }

/* 穴位点 */
.fig-dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  cursor: pointer; z-index: 5; transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2); border: 2px solid #fff;
}
.fig-dot:hover, .fig-dot.dot-active { transform: scale(1.5); box-shadow: 0 2px 8px rgba(0,0,0,0.3); z-index: 10; }
.fig-dot.dot-active { box-shadow: 0 0 0 3px rgba(139,69,19,0.3), 0 2px 8px rgba(0,0,0,0.25); animation: dotPulse 1.5s infinite; }
@keyframes dotPulse { 0%,100%{ box-shadow: 0 0 0 3px rgba(139,69,19,0.3), 0 2px 8px rgba(0,0,0,0.25); } 50%{ box-shadow: 0 0 0 5px rgba(139,69,19,0.15), 0 2px 12px rgba(0,0,0,0.3); } }
.fig-dot-baihui     { background:#8B4513; top: 0px; left: calc(50% - 6px); }
.fig-dot-yintang    { background:#A0522D; top: 16px; left: calc(50% - 16px); }
.fig-dot-taiyang    { background:#A0522D; top: 20px; left: calc(50% + 8px); }
.fig-dot-yingxiang  { background:#A0522D; top: 26px; left: calc(50% - 20px); }
.fig-dot-hegu-left  { background:#2E7D52; top: 68px; left: 2px; }
.fig-dot-hegu-right { background:#2E7D52; top: 68px; right: 2px; left: auto; }
.fig-dot-jianjing-left { background:#C62828; top: 46px; left: 6px; }
.fig-dot-zhongwan   { background:#8B4513; top: 54px; left: calc(50% - 6px); }
.fig-dot-shenque    { background:#8B4513; top: 68px; left: calc(50% - 6px); }
.fig-dot-guanyuan   { background:#8B4513; top: 88px; left: calc(50% - 6px); }
.fig-dot-xuehai-left { background:#C62828; top: 100px; left: 10px; }
.fig-dot-zusanli-left { background:#2E7D52; top: 155px; left: 14px; }
.fig-dot-zusanli-right { background:#2E7D52; top: 155px; right: 14px; left: auto; }
.fig-dot-yinlingquan-left { background:#2E7D52; top: 170px; left: 14px; }
.fig-dot-sanyinjiao-left { background:#2E7D52; top: 188px; left: 14px; }
.fig-dot-yongquan-left { background:#2E7D52; top: 206px; left: 18px; }
.fig-dot-taixi-left { background:#2E7D52; top: 206px; left: 30px; }
.fig-dot-baihui-back   { background:#C62828; top: 0px; left: calc(50% - 6px); }
.fig-dot-fengchi-left  { background:#C62828; top: 32px; left: 6px; }
.fig-dot-fengchi-right { background:#C62828; top: 32px; right: 6px; left: auto; }
.fig-dot-feishu-left   { background:#C62828; top: 52px; left: 10px; }
.fig-dot-feishu-right  { background:#C62828; top: 52px; right: 10px; left: auto; }
.fig-dot-jianjing-right { background:#C62828; top: 46px; right: 6px; left: auto; }
.fig-dot-mingmen       { background:#C62828; top: 88px; left: calc(50% - 6px); }
.fig-dot-shenshu-left  { background:#C62828; top: 108px; left: 10px; }
.fig-dot-shenshu-right { background:#C62828; top: 108px; right: 10px; left: auto; }

/* 穴位标签 */
.acupoint-tag-list { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.acupoint-tag-chip {
  padding: 2px 7px; border-radius: 10px; font-size: 10px; cursor: pointer;
  transition: all 0.15s; border: 1px solid rgba(139,69,19,0.2);
  background: rgba(139,69,19,0.06); color: #8B4513;
}
.acupoint-tag-chip:hover { background: rgba(139,69,19,0.15); transform: scale(1.05); }
.back-tags .acupoint-tag-chip { border-color: rgba(198,40,40,0.2); background: rgba(198,40,40,0.06); color: #C62828; }
.back-tags .acupoint-tag-chip:hover { background: rgba(198,40,40,0.15); }

/* 穴位详情 */
.acupoint-detail { background: linear-gradient(135deg, var(--tcm-light), #FFF8F0); border-radius: 14px; padding: 16px; border: 1px solid #E8D5C4; }
.acupoint-detail-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.acupoint-detail-icon {
  font-size: 32px; width: 48px; height: 48px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.acupoint-detail-header h4 { font-size: 17px; color: var(--tcm); margin-bottom: 2px; }
.acupoint-meridian { font-size: 12px; color: var(--text-secondary); background: rgba(139,69,19,0.1); padding: 2px 8px; border-radius: 10px; }
.acupoint-detail-section { margin-bottom: 10px; }
.acupoint-detail-label { font-size: 12px; color: var(--tcm); font-weight: 600; margin-bottom: 3px; }
.acupoint-detail-section p { font-size: 13px; color: var(--text); line-height: 1.6; }
.acupoint-sheet .modal-handle { background: var(--tcm); }

/* ACUPOINT HINT CARD */
.acupoint-hint-card { cursor: pointer; transition: all 0.2s; border: none; background: transparent; width: 100%; text-align: left; }
.acupoint-hint-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.acupoint-hint-inner { display: flex; align-items: center; justify-content: space-between; }
.acupoint-hint-left { display: flex; align-items: center; gap: 12px; }
.acupoint-hint-icon {
  font-size: 28px; width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--tcm-light), #FFF0E0); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.acupoint-hint-left h4 { font-size: 14px; color: var(--tcm); margin-bottom: 2px; }
.acupoint-hint-left p { font-size: 12px; color: var(--text-secondary); }
.acupoint-hint-arrow { font-size: 24px; color: var(--tcm); opacity: 0.5; }

/* 进度环 */
.progress-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.progress-item { text-align: center; }
.mini-ring { position: relative; width: 56px; height: 56px; margin: 0 auto 4px; }
.mini-ring svg { transform: rotate(-90deg); }
.mini-ring .ring-bg { fill: none; stroke: var(--border); stroke-width: 5; }
.mini-ring .ring-fg { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 1.5s ease; }
.mini-ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.progress-name { font-size: 11px; color: var(--text-secondary); }

/* ===== UTILS ===== */
.text-tcm { color: var(--tcm); }
.text-nutrition { color: var(--nutrition); }
.text-rehab { color: var(--rehab); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.bg-tcm { background: var(--tcm); }
.bg-nutrition { background: var(--nutrition); }
.bg-rehab { background: var(--rehab); }
.bg-primary { background: var(--primary); }
.bg-accent { background: var(--accent); }
.flex-center { display: flex; align-items: center; gap: 8px; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.tag-pill { display: inline-block; border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 500; }
.scroll-x { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { flex-shrink: 0; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.5); display: none;
  align-items: flex-end; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-sheet {
  background: #fff; border-radius: 24px 24px 0 0;
  width: 100%; max-height: 85vh; overflow-y: auto;
  padding: 24px 20px 40px; animation: slideUp 0.3s ease;
}
@keyframes slideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
.modal-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 20px; }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

/* ===== ANIMATIONS ===== */
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.03)} }
.pulse { animation: pulse 2s infinite; }

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
  body {
    background: #f5f5f5;
  }
  .app-header {
     
    margin-left: auto !important;
    margin-right: auto !important;
    left: 0 !important;
    right: 0 !important;
    position: relative !important;
  }
  .bottom-nav {
    max-width: 480px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}
