/* ===== 五行体质说 - 主样式 ===== */

:root {
  --primary: #2d6a4f;        /* 墨绿 */
  --primary-light: #40916c;
  --primary-dark: #1b4332;
  --gold: #d4a373;
  --gold-light: #e9cba3;
  --bg-cream: #fefae0;
  --bg-light: #f8f9fa;
  --text: #2d3436;
  --text-light: #636e72;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 16px;
  --wx-wood: #27ae60;
  --wx-fire: #e74c3c;
  --wx-earth: #f39c12;
  --wx-metal: #bdc3c7;
  --wx-water: #2980b9;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== 页面容器 ===== */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--white);
}

.page {
  display: none;
  min-height: 100vh;
  animation: fadeIn 0.4s ease;
}

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

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

/* ==================================================================== */
/* 首页 - 全新设计 */
/* ==================================================================== */
#page-home {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 40%, #40916c 100%);
  color: var(--white);
}

.home-inner {
  padding: 32px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 品牌区 */
.home-brand {
  text-align: center;
  margin-bottom: 20px;
}

.home-logo {
  margin-bottom: 10px;
}

.home-logo-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  background: rgba(255,255,255,0.12);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-logo-icon span {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
}

.home-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 4px;
}

.home-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}

/* 今日五行养生卡片 */
.home-today {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
}

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

.today-icon {
  font-size: 20px;
}

.today-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.today-date {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.today-loading, .fashion-loading {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 12px 0;
}

.today-pillar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pillar-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.pillar-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 4px;
}

.pillar-wuxing {
  font-size: 12px;
  background: rgba(255,255,255,0.12);
  padding: 2px 10px;
  border-radius: 20px;
  color: rgba(255,255,255,0.9);
}

.today-yiji {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yiji-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.yiji-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.yiji-title {
  font-weight: 700;
  margin-right: 4px;
  flex-shrink: 0;
}

.yi .yiji-title { color: #6dff6d; }
.ji .yiji-title { color: #ff7b7b; }

.yiji-text {
  color: rgba(255,255,255,0.85);
}

/* 每日穿搭卡片 */
.home-fashion {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

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

.fashion-icon {
  font-size: 20px;
}

.fashion-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.fashion-colors {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.color-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  padding: 10px 12px;
  border-radius: 10px;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.color-info {
  display: flex;
  flex-direction: column;
}

.color-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.color-name {
  font-size: 15px;
  font-weight: 700;
}

.fashion-suggestion {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

/* 功能入口网格 */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.grid-item {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.grid-item:active {
  background: rgba(255,255,255,0.18);
  transform: scale(0.97);
}

.grid-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.grid-title {
  font-size: 13px;
  font-weight: 700;
}

.grid-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* ===== 详情弹窗（覆层） ===== */
.detail-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.25s ease;
}

.detail-sheet {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 30px;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

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

.detail-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.detail-sheet-header h3 {
  font-size: 17px;
  font-weight: 700;
}

.detail-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

/* ===== 详情弹窗 - 今日助运详表 ===== */
.detail-bazi-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}

.detail-bazi-table th,
.detail-bazi-table td {
  border: 1px solid #eee;
  padding: 8px 6px;
  text-align: center;
}

.detail-bazi-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 12px;
}

.detail-bazi-table td {
  font-size: 13px;
}

.detail-bazi-table .row-label {
  background: #f8f9fa;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-light);
}

.detail-bazi-table .highlight-gan {
  color: #e74c3c;
  font-weight: 700;
}

.detail-bazi-table .highlight-zhi {
  color: #2980b9;
  font-weight: 700;
}

.detail-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin: 12px 0 8px;
}

.detail-yiji {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.detail-yiji p {
  font-size: 13px;
  line-height: 1.8;
}

.detail-yiji strong {
  color: var(--primary);
}

.detail-clothing {
  background: #f0f9f4;
  border-radius: 10px;
  padding: 12px 14px;
}

.detail-clothing p {
  font-size: 13px;
  line-height: 1.8;
}

.detail-clothing .color-chip {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 2px;
}

/* ===== 通用按钮 ===== */
.btn-primary {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--primary-dark);
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.2s;
}

.btn-primary:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--bg-light);
  color: var(--text);
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.btn-secondary:active {
  background: #eee;
}

.home-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
  text-align: center;
}

/* ===== 页面头部 ===== */
.page-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.page-header h2 {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.result-header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}

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

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

/* ===== 输入页面 ===== */
#page-input {
  background: var(--white);
}

.input-form {
  padding: 24px 20px;
  flex: 1;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
}

.date-row, .time-row {
  display: flex;
  gap: 8px;
}

.input-select {
  flex: 1;
  padding: 12px 8px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  background: var(--white);
  color: var(--text);
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.input-select:focus {
  border-color: var(--primary);
  outline: none;
}

.time-colon {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
}

.gender-row {
  display: flex;
  gap: 16px;
}

.gender-option {
  flex: 1;
}

.gender-option input {
  display: none;
}

.gender-label {
  display: block;
  padding: 14px;
  text-align: center;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
}

.gender-option input:checked + .gender-label {
  border-color: var(--primary);
  background: rgba(45, 106, 79, 0.06);
  color: var(--primary);
}

.form-hint {
  background: #fef3e2;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #8d6e3f;
  line-height: 1.5;
}

/* ===== 加载页面 ===== */
#page-loading {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  justify-content: center;
  align-items: center;
}

.loading-container {
  text-align: center;
  color: var(--white);
  padding: 40px;
}

.loading-animation {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 32px;
}

.wx-circle {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.wx-wood {
  background: var(--wx-wood);
  top: 0; left: 50%; transform: translateX(-50%);
  animation-delay: 0s;
}

.wx-fire {
  background: var(--wx-fire);
  top: 50%; right: 0; transform: translateY(-50%);
  animation-delay: 0.3s;
}

.wx-earth {
  background: var(--wx-earth);
  bottom: 0; left: 50%; transform: translateX(-50%);
  animation-delay: 0.6s;
}

.wx-metal {
  background: var(--wx-metal);
  top: 50%; left: 0; transform: translateY(-50%);
  animation-delay: 0.9s;
}

.wx-water {
  background: var(--wx-water);
  top: 20%; left: 20%;
  animation-delay: 1.2s;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.loading-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.loading-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  margin: 0 auto;
  overflow: hidden;
}

.loading-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  animation: loadingProgress 8s ease forwards;
}

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

/* ===== 结果页 ===== */
#page-result {
  background: var(--bg-light);
}

.result-container {
  padding: 0 16px 220px;
}

/* 分享卡片 */
.share-card {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}

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

.card-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
}

.card-badge {
  font-size: 11px;
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--gold-light);
}

.card-bazi {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.bazi-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
}

.bazi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 2px;
}

.radar-container {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

#radar-chart {
  width: 280px;
  height: 200px;
}

.card-conclusion {
  text-align: center;
  margin: 12px 0;
}

.conclusion-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.conclusion-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.card-tips {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}

.tips-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gold-light);
}

.card-tips ul {
  list-style: none;
  padding: 0;
}

.card-tips li {
  font-size: 13px;
  line-height: 1.7;
  padding: 4px 0;
  position: relative;
  padding-left: 16px;
}

.card-tips li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 10px;
}

.card-footer {
  text-align: center;
  margin-top: 12px;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}

/* ===== 四柱详细表格（结果页） ===== */
.bazi-table-section {
  margin: 16px 0;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bazi-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.bazi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bazi-table th {
  background: var(--primary);
  color: var(--white);
  padding: 10px 8px;
  font-weight: 600;
  font-size: 12px;
  text-align: center;
}

.bazi-table th:first-child {
  border-radius: 14px 0 0 0;
}

.bazi-table th:last-child {
  border-radius: 0 14px 0 0;
}

.bazi-table td {
  padding: 10px 6px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.bazi-table tr:last-child td {
  border-bottom: none;
}

.bazi-table .row-label {
  background: #f8f9fa;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
}

.bazi-table .gan-cell {
  color: #e74c3c;
  font-weight: 700;
  font-size: 15px;
}

.bazi-table .zhi-cell {
  color: #2980b9;
  font-weight: 700;
  font-size: 15px;
}

.bazi-table .hide-gan-cell {
  font-size: 12px;
  color: var(--text-light);
}

.bazi-table .nayin-cell {
  color: #8e44ad;
  font-weight: 500;
}

.bazi-table .shishen-cell {
  font-weight: 600;
  color: var(--primary);
}

/* ===== 穿搭建议卡片（结果页） ===== */
.clothing-section {
  margin: 16px 0;
}

.clothing-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.clothing-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5;
}

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

.clothing-icon {
  width: 32px;
  height: 32px;
  background: rgba(45,106,79,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.clothing-body {
  flex: 1;
}

.clothing-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.clothing-detail {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

.clothing-example {
  background: linear-gradient(135deg, #f0f9f4, #fff);
  padding: 14px 16px;
  border-top: 1px solid #f0f0f0;
}

.clothing-example h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

/* ===== 详细分析 ===== */
.detail-section {
  margin-top: 16px;
}

.detail-tabs {
  display: flex;
  gap: 4px;
  background: var(--white);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
}

.tab-content {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.info-card h4 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 12px;
}

.analysis-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-line;
}

/* 五行柱状图 */
.wx-bar-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 8px 0;
}

.wx-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 50px;
}

.wx-bar-track {
  width: 24px;
  height: 120px;
  background: #f0f0f0;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.wx-bar-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  border-radius: 12px;
  transition: height 0.8s ease;
  height: 0%;
}

.wx-bar-item .wx-label {
  font-size: 12px;
  color: var(--text-light);
}

.wx-bar-item .wx-count {
  font-size: 14px;
  font-weight: 700;
}

/* ===== 日历切换按钮 ===== */
.calendar-toggle, .time-toggle {
  display: flex;
  gap: 0;
  background: #f0f0f0;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 16px;
}

.cal-btn, .time-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.cal-btn.active, .time-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cal-btn:active, .time-btn:active {
  transform: scale(0.97);
}

/* ===== 付费墙 ===== */
.paywall-area {
  margin: 16px 0;
}

.free-preview {
  background: var(--white);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.preview-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--primary-dark);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.preview-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.preview-conclusion {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.6;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(45,106,79,0.04);
  border-radius: 10px;
}

.preview-tips {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-light);
}

.preview-tips li {
  padding: 4px 0;
}

/* 解锁块 */
.unlock-block {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  color: var(--white);
}

.unlock-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.unlock-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.unlock-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

.unlock-price {
  margin-bottom: 16px;
}

.price-symbol {
  font-size: 20px;
  vertical-align: super;
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
}

.unlock-btn {
  background: var(--gold) !important;
  color: var(--primary-dark) !important;
  font-size: 16px;
  margin-bottom: 8px;
}

.unlock-note {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* ===== 邮箱弹窗 ===== */
.email-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.email-dialog-content {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  width: 88%;
  max-width: 380px;
  text-align: center;
}

.email-dialog-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.email-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.5;
}

.email-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 16px;
  text-align: center;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.email-input:focus {
  border-color: var(--primary);
}

.email-actions {
  display: flex;
  gap: 8px;
}

.email-actions .btn-primary {
  flex: 2;
}

.email-actions .btn-secondary {
  flex: 1;
}

.email-note {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 12px;
}

/* ===== 维度卡片（多维度分析） ===== */
.dimension-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

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

.dim-icon {
  width: 36px;
  height: 36px;
  background: rgba(45,106,79,0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.dim-body {
  flex: 1;
  min-width: 0;
}

.dim-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.dim-text {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-line;
  word-break: break-word;
}

.yangsheng-card {
  background: linear-gradient(135deg, #f0f9f4, #fff);
  border: 1px solid rgba(45,106,79,0.12);
}

.yangsheng-text {
  color: var(--primary-dark);
}

.overview-section {
  margin-bottom: 12px;
}

.overview-card {
  background: var(--white);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.overview-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

/* 底部操作（三按钮） */
.result-actions {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 16px;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== 响应式细节 ===== */
@media (max-width: 380px) {
  .home-grid {
    gap: 6px;
  }
  .grid-item {
    padding: 12px 4px;
  }
  .fashion-colors {
    flex-direction: column;
  }
}
