:root {
  --bg-primary: #070A0F;
  --bg-secondary: #0B1118;
  --bg-card: rgba(16, 24, 32, 0.85);
  --bg-card-hover: rgba(20, 30, 42, 0.9);
  --gold-primary: #C9A86A;
  --gold-light: #D6B56D;
  --gold-dark: #8F6F3D;
  --blue-accent: #3E6B73;
  --blue-light: #405A64;
  --purple-accent: #6b4ba0;
  --text-primary: #F3EFE2;
  --text-secondary: #B8AD98;
  --text-muted: #9A9384;
  --border-color: rgba(201, 168, 106, 0.15);
  --border-gold: rgba(201, 168, 106, 0.35);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --font-display: 'Noto Serif SC', 'STSong', 'SimSun', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html, body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(62, 107, 115, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 168, 106, 0.06) 0%, transparent 50%),
    var(--bg-primary);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(201, 168, 106, 0.025) 0%, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(62, 107, 115, 0.025) 0%, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.app-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

@media (min-width: 1024px) {
  .app-container { padding-bottom: 20px; }
}

.nav-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: env(safe-area-inset-top) 20px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-primary);
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: radial-gradient(circle, rgba(212,168,67,0.15), transparent);
}

.nav-links {
  display: none;
  gap: 4px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none !important; }
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

.nav-links.nav-open {
  display: flex !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: rgba(7, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  padding: 12px;
  gap: 2px;
  border-bottom: 1px solid var(--border-color);
  z-index: 200;
}

.nav-links.nav-open .nav-link {
  padding: 12px 16px;
  border-radius: 4px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  border-radius: 6px;
  transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-primary);
  background: rgba(212, 168, 67, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-weight: 500;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  color: #1a1a1a;
  font-weight: 600;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(59, 111, 196, 0.3), rgba(59, 111, 196, 0.5));
  color: var(--blue-light);
  border: 1px solid rgba(59, 111, 196, 0.4);
}

.btn-secondary:hover {
  background: rgba(59, 111, 196, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn-block { width: 100%; }

.hero {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
}

@media (min-width: 768px) {
  .hero { padding: 80px 40px 60px; }
}

.hero-bagua {
  width: 280px;
  height: 280px;
  margin: 0 auto 30px;
  position: relative;
}

@media (min-width: 768px) {
  .hero-bagua { width: 340px; height: 340px; }
}

.bagua-ring {
  position: absolute;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  animation: rotate 60s linear infinite;
}

.bagua-ring:nth-child(1) { top: 0; left: 0; right: 0; bottom: 0; }
.bagua-ring:nth-child(2) { top: 20px; left: 20px; right: 20px; bottom: 20px; animation-direction: reverse; animation-duration: 45s; }
.bagua-ring:nth-child(3) { top: 50px; left: 50px; right: 50px; bottom: 50px; animation-duration: 30s; }

.bagua-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--gold-primary), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--bg-primary);
  font-weight: 700;
  box-shadow: 0 0 40px rgba(212, 168, 67, 0.4);
}

.bagua-char {
  position: absolute;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-light);
  font-weight: 600;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  font-size: 13px;
  color: var(--gold-primary);
  margin-bottom: 20px;
  background: rgba(212, 168, 67, 0.05);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 48px; }
}

.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
}

.hero-trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-trust span::before {
  content: '—';
  color: var(--gold-primary);
  margin-right: 6px;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 40px 60px; }
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.module-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.module-card:hover::before { opacity: 1; }

.module-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.module-qimen .module-icon {
  background: linear-gradient(135deg, rgba(59, 111, 196, 0.2), rgba(59, 111, 196, 0.05));
  border: 1px solid rgba(59, 111, 196, 0.3);
  color: var(--blue-light);
}

.module-liuren .module-icon {
  background: linear-gradient(135deg, rgba(107, 75, 160, 0.2), rgba(107, 75, 160, 0.05));
  border: 1px solid rgba(107, 75, 160, 0.3);
  color: #a78bfa;
}

.module-bazi .module-icon, .module-liuyao .module-icon {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.15), rgba(212, 168, 67, 0.03));
  border: 1px solid rgba(212, 168, 67, 0.2);
  color: var(--text-muted);
}

.module-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  font-family: var(--font-body);
}

.badge-open { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.badge-beta { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.badge-soon { background: rgba(107, 114, 128, 0.15); color: var(--text-muted); border: 1px solid rgba(107,114,128,0.3); }

.module-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.module-action {
  font-size: 14px;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.features-section {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

@media (min-width: 768px) {
  .features-section { padding: 40px; }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.feature-item {
  text-align: center;
  padding: 24px 16px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gold-primary);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.invite-section {
  margin: 0 20px 40px;
  padding: 40px 24px;
  background: rgba(16, 24, 32, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.invite-section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 12px;
  color: var(--gold-light);
}

.invite-section p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 14px;
}

.invite-benefits {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.invite-benefit {
  text-align: center;
}

.invite-benefit-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

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

.disclaimer {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  z-index: 100;
  padding: 6px 0 env(safe-area-inset-bottom);
}

@media (min-width: 1024px) {
  .mobile-nav { display: none; }
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  gap: 2px;
  transition: color 0.3s;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--gold-primary);
}

.mobile-nav-icon {
  font-size: 20px;
}

.page-container {
  padding: 24px 20px calc(140px + env(safe-area-inset-bottom));
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gold-light);
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

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

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

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(212,168,67,0.04);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.code-input-group {
  display: flex;
  gap: 12px;
}

.code-input-group .form-input {
  flex: 1;
}

.code-btn {
  padding: 12px 18px;
  background: rgba(212,168,67,0.1);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  color: var(--gold-primary);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.code-btn:hover:not(:disabled) {
  background: rgba(212,168,67,0.2);
}

.code-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  backdrop-filter: blur(20px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error { border-color: rgba(239,68,68,0.4); }

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--gold-light);
}

.qimen-pan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 360px;
  margin: 20px auto;
  aspect-ratio: 1;
  background: var(--border-gold);
  border-radius: 8px;
  padding: 2px;
}

.qimen-palace {
  background: var(--bg-secondary);
  border-radius: 4px;
  padding: 8px 6px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}

.palace-pos { font-size: 10px; color: var(--gold-primary); font-weight: 600; text-align: center; }
.palace-shen { color: #a78bfa; font-size: 10px; text-align: center; }
.palace-xing { color: var(--blue-light); font-size: 10px; text-align: center; }
.palace-men { color: var(--success); font-size: 11px; font-weight: 600; text-align: center; }
.palace-gan { font-size: 10px; color: var(--text-secondary); text-align: center; }

.loading-dots::after {
  content: '';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

.loading-steps {
  text-align: center;
  padding: 40px 20px;
}

.loading-step {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.3s;
}

.loading-step.active { color: var(--gold-primary); }
.loading-step.done { color: var(--success); }

.prediction-result {
  line-height: 1.8;
  font-size: 15px;
}

.prediction-result h3 {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 18px;
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.answer-box {
  background: linear-gradient(135deg, rgba(212,168,67,0.08), rgba(59,111,196,0.08));
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.answer-label {
  font-size: 12px;
  color: var(--gold-primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.answer-text {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-light);
  font-weight: 600;
  line-height: 1.6;
}

.option-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.option-card {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.option-card.selected {
  border-color: var(--success);
  background: rgba(34,197,94,0.08);
}

.option-card.rejected {
  border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.05);
  opacity: 0.7;
}

.option-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 6px;
  display: inline-block;
}

.option-tag.selected { background: rgba(34,197,94,0.2); color: var(--success); }
.option-tag.rejected { background: rgba(239,68,68,0.2); color: var(--danger); }

.option-text { font-size: 14px; color: var(--text-primary); }

.followup-chat {
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.chat-messages {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.chat-msg {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 85%;
}

.chat-msg.user {
  background: rgba(59,111,196,0.15);
  border: 1px solid rgba(59,111,196,0.3);
  margin-left: auto;
  color: var(--text-primary);
}

.chat-msg.assistant {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  margin-right: auto;
}

.chat-input-area {
  display: flex;
  gap: 8px;
}

.chat-input-area .form-input { flex: 1; }

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.quick-q {
  padding: 6px 12px;
  background: rgba(212,168,67,0.08);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.quick-q:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.feedback-area {
  margin-top: 24px;
  padding: 20px;
  background: rgba(212,168,67,0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.feedback-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.feedback-btn {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.feedback-btn:hover, .feedback-btn.selected {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212,168,67,0.08);
}

.record-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s;
}

.record-item:hover {
  border-color: var(--border-gold);
}

.record-info { flex: 1; }
.record-module { font-size: 12px; color: var(--gold-primary); margin-bottom: 4px; }
.record-question { font-size: 14px; margin-bottom: 6px; line-height: 1.5; }
.record-time { font-size: 12px; color: var(--text-muted); }
.record-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.status-pending { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-full { background: rgba(34,197,94,0.15); color: var(--success); }
.status-partial { background: rgba(59,111,196,0.15); color: var(--blue-light); }
.status-miss { background: rgba(239,68,68,0.15); color: var(--danger); }
.status-unclear { background: rgba(107,114,128,0.15); color: var(--text-muted); }

.user-info-card {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(212,168,67,0.06), rgba(59,111,196,0.06));
}

.user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
  background: radial-gradient(circle, rgba(212,168,67,0.2), rgba(10,14,26,0.8));
  color: var(--gold-primary);
}

.user-nickname {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 4px;
}

.user-phone { font-size: 13px; color: var(--text-muted); }

.credits-big {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--gold-primary);
  font-weight: 700;
  margin: 16px 0 4px;
}

.credits-label { font-size: 13px; color: var(--text-muted); }

.menu-list {
  list-style: none;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.3s;
  gap: 14px;
}

.menu-item:hover { background: rgba(212,168,67,0.04); }
.menu-icon { font-size: 20px; width: 28px; text-align: center; }
.menu-text { flex: 1; font-size: 15px; }
.menu-arrow { color: var(--text-muted); font-size: 14px; }
.menu-badge {
  background: var(--danger);
  color: white;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
}

.qr-container {
  text-align: center;
  padding: 30px 20px;
}

.qr-image {
  width: 220px;
  height: 220px;
  border: 4px solid var(--gold-primary);
  border-radius: 12px;
  margin: 0 auto 20px;
  background: white;
  padding: 8px;
}

.qr-image img { width: 100%; height: 100%; }

.invite-link-box {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.invite-link-box .form-input { flex: 1; font-size: 13px; }

.invite-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 20px 0;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 768px) {
  .admin-sidebar { display: block; }
}

.admin-sidebar-logo {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-primary);
  text-align: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.admin-nav-item {
  display: block;
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.admin-nav-item:hover, .admin-nav-item.active {
  color: var(--gold-primary);
  background: rgba(212,168,67,0.06);
}

.admin-main {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

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

.admin-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold-light);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .dashboard-grid { grid-template-columns: repeat(4, 1fr); }
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.dash-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold-primary);
}

.dash-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

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

.data-table th {
  text-align: left;
  padding: 12px;
  background: rgba(212,168,67,0.06);
  color: var(--gold-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
}

.data-table tr:hover td { background: rgba(212,168,67,0.03); }

.table-wrapper { overflow-x: auto; }

.admin-login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(20px);
}

.text-center { text-align: center; }
.text-gold { color: var(--gold-primary); }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-8 { margin-top: 32px; }

.option-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.type-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.type-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.type-btn.active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212,168,67,0.08);
}

/* ══════════════════════════════════════════════════════════════
   静虚流光 · Azure Stillness — Luxury Eastern UI Layer
   ══════════════════════════════════════════════════════════════ */

/* ── Star Field Canvas ── */
#starfield-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── Flowing Light Background ── */
@keyframes flow-light {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg,
    transparent 0%,
    rgba(201,168,106,0.015) 25%,
    transparent 50%,
    rgba(62,107,115,0.015) 75%,
    transparent 100%);
  background-size: 400% 400%;
  animation: flow-light 20s ease infinite;
  pointer-events: none;
  z-index: 0;
}

/* ── Compass Grid Lines ── */
.compass-lines {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120vmax; height: 120vmax;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
}

.compass-lines::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80vmax; height: 80vmax;
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
}

.compass-lines::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50vmax; height: 50vmax;
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
}

/* ── Card Hover Float ── */
.card {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(201,168,106,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 1px rgba(201,168,106,0.08);
}

/* ── Button Breathing Light ── */
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 8px rgba(201,168,106,0.15); }
  50% { box-shadow: 0 0 20px rgba(201,168,106,0.3); }
}

.btn-primary {
  animation: breathe 3.2s ease-in-out infinite;
}

.btn-primary:hover {
  animation: none;
  box-shadow: 0 4px 24px rgba(201,168,106,0.35);
  transform: translateY(-1px);
}

/* ── Loading Compass Animation ── */
@keyframes compass-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-compass {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  position: relative;
}

.loading-compass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px solid rgba(201,168,106,0.15);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: compass-spin 1.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.loading-compass::after {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid rgba(62,107,115,0.15);
  border-bottom-color: var(--blue-accent);
  border-radius: 50%;
  animation: compass-spin 2.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite reverse;
}

/* ── Enhanced Form Inputs ── */
.form-input, .form-textarea, .form-select {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201,168,106,0.12);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: rgba(201,168,106,0.4);
  background: rgba(201,168,106,0.02);
  box-shadow: 0 0 0 3px rgba(201,168,106,0.06), 0 4px 16px rgba(0,0,0,0.1);
}

/* ── Luxury Tag ── */
.tag-luxury {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(201,168,106,0.06);
  border: 1px solid rgba(201,168,106,0.15);
  border-radius: 4px;
  font-size: 12px;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
  font-family: var(--font-display);
}

/* ── Section Divider ── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px auto;
  max-width: 200px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,106,0.3), transparent);
}

.section-divider .divider-dot {
  width: 4px; height: 4px;
  background: var(--gold-primary);
  border-radius: 50%;
  opacity: 0.5;
}

/* ── Luxury Hero Title ── */
.hero-title-luxury {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

@media (min-width: 768px) {
  .hero-title-luxury { font-size: 56px; }
}

.hero-title-luxury::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.5;
}

/* ── Luxury Subtitle ── */
.hero-sub-luxury {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-top: 20px;
  line-height: 1.8;
}

/* ── Module Card Luxury ── */
.module-card-luxury {
  background: rgba(16,24,32,0.4);
  border: 1px solid rgba(201,168,106,0.08);
  border-radius: 2px;
  padding: 32px 28px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  display: block;
}

.module-card-luxury::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,106,0.4), transparent);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.module-card-luxury:hover {
  background: rgba(16,24,32,0.6);
  border-color: rgba(201,168,106,0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.module-card-luxury:hover::before {
  transform: scaleX(1);
}

.module-card-luxury .mod-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.module-card-luxury .mod-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.module-card-luxury .mod-badge {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid rgba(201,168,106,0.2);
  color: var(--gold-primary);
  letter-spacing: 0.5px;
}

.module-card-luxury .mod-badge-soon {
  border-color: rgba(148,163,184,0.2);
  color: var(--text-muted);
}

/* ── Stats Bar Luxury ── */
.stat-item-luxury {
  text-align: center;
  padding: 20px 16px;
  border: 1px solid rgba(201,168,106,0.06);
  background: rgba(16,24,32,0.3);
}

.stat-item-luxury .stat-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.05em;
}

.stat-item-luxury .stat-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.1em;
}

/* ── Invite Section Luxury ── */
.invite-luxury {
  background: rgba(16,24,32,0.4);
  border: 1px solid rgba(201,168,106,0.1);
  border-radius: 2px;
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.invite-luxury::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,106,0.3), transparent);
}

.invite-luxury h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.invite-luxury p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 24px;
}

/* ── Result Section Luxury ── */
.result-section-luxury {
  border-left: 2px solid rgba(201,168,106,0.2);
  padding-left: 20px;
  margin: 16px 0;
}

.result-section-luxury .result-label {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  opacity: 0.7;
}

.result-section-luxury .result-content {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Luxury Disclaimer ── */
.disclaimer-luxury {
  padding: 24px 20px 100px;
  text-align: center;
  font-size: 11px;
  color: rgba(154,147,132,0.6);
  border-top: 1px solid rgba(201,168,106,0.06);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

/* ── Mobile Optimization ── */
@media (max-width: 767px) {
  .hero-title-luxury { font-size: 28px; letter-spacing: 0.06em; }
  .hero-sub-luxury { font-size: 12px; letter-spacing: 0.08em; }
  .module-card-luxury { padding: 20px 16px; }
  .invite-luxury { padding: 24px 16px; }
  .card { padding: 16px; }
  .app-container { padding-left: 12px; padding-right: 12px; }
  .page-container { padding-left: 12px; padding-right: 12px; }
  .page-container h1, .page-container h2 { font-size: 22px !important; }
  .form-input, .form-input-luxury { font-size: 16px !important; }
  .btn, .btn-primary { font-size: 15px !important; padding: 12px 24px !important; }
  .mobile-nav { display: flex !important; }
  body { padding-bottom: 70px; }
}

/* ── Fade In Animation ── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim-fade-in {
  animation: fade-in-up 0.6s ease-out both;
}

.anim-fade-in-1 { animation-delay: 0.1s; }
.anim-fade-in-2 { animation-delay: 0.2s; }
.anim-fade-in-3 { animation-delay: 0.3s; }
.anim-fade-in-4 { animation-delay: 0.4s; }
.anim-fade-in-5 { animation-delay: 0.5s; }

/* ── Glow Text ── */
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(201,168,106,0.1); }
  50% { text-shadow: 0 0 20px rgba(201,168,106,0.2); }
}

.text-glow {
  animation: glow-pulse 4s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════
   明暗模式切换系统
   ═══════════════════════════════════════════════ */

/* ── 浅色模式变量 ── */
[data-theme="light"] {
  --bg-primary: #F5F0E8;
  --bg-secondary: #EDE8DE;
  --bg-card: rgba(255, 253, 248, 0.92);
  --bg-card-hover: rgba(255, 253, 248, 1);
  --gold-primary: #8F6F3D;
  --gold-light: #A07D42;
  --gold-dark: #7A5E30;
  --blue-accent: #2E6F73;
  --blue-light: #1F4F55;
  --purple-accent: #5B3D90;
  --text-primary: #1A1612;
  --text-secondary: #5C5347;
  --text-muted: #8A7E70;
  --border-color: rgba(143, 111, 61, 0.2);
  --border-gold: rgba(143, 111, 61, 0.4);
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
}

/* ── 浅色模式全局覆盖 ── */
[data-theme="light"] body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(62, 107, 115, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(143, 111, 61, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

[data-theme="light"] body::before {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(143, 111, 61, 0.03) 0%, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(62, 107, 115, 0.03) 0%, transparent 1px);
}

[data-theme="light"] body::after { display: none; }

[data-theme="light"] #starfield-canvas { opacity: 0.15; }
[data-theme="light"] #jiugong-svg { opacity: 0.05; }
[data-theme="light"] .compass-lines { opacity: 0.015; }

[data-theme="light"] .nav-top {
  background: rgba(245, 240, 232, 0.92);
  border-bottom-color: rgba(143, 111, 61, 0.15);
}

[data-theme="light"] .nav-logo-icon {
  background: radial-gradient(circle, rgba(143,111,61,0.1), transparent);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  background: rgba(143, 111, 61, 0.08);
}

[data-theme="light"] .mobile-nav {
  background: rgba(245, 240, 232, 0.95);
  border-top-color: rgba(143, 111, 61, 0.12);
}

[data-theme="light"] .btn-primary {
  animation: none;
}

[data-theme="light"] .card,
[data-theme="light"] .dash-card,
[data-theme="light"] .record-item {
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .form-select {
  background: rgba(0,0,0,0.02);
  border-color: rgba(143, 111, 61, 0.2);
}

[data-theme="light"] .disclaimer-luxury {
  color: #8A7E70;
  border-top-color: rgba(143, 111, 61, 0.1);
}

[data-theme="light"] .data-table td {
  border-bottom-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .menu-item {
  border-bottom-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .chat-msg.user {
  background: rgba(143, 111, 61, 0.1);
  border-color: rgba(143, 111, 61, 0.25);
}

/* ── 浅色模式首页覆盖 ── */
[data-theme="light"] .lp-hero-compass { opacity: 0.3; }
[data-theme="light"] .lp-hero::before { background: radial-gradient(ellipse at center, rgba(143,111,61,0.04) 0%, transparent 60%); }

[data-theme="light"] .stats-bar-v2 {
  background: rgba(143, 111, 61, 0.12);
  border-color: rgba(143, 111, 61, 0.12);
}
[data-theme="light"] .stats-bar-v2 .sb-item {
  background: rgba(255, 253, 248, 0.95);
}

[data-theme="light"] .scroll-books-border {
  border-color: rgba(143, 111, 61, 0.12);
  background: linear-gradient(180deg, rgba(143,111,61,0.02), transparent, rgba(143,111,61,0.02));
}
[data-theme="light"] .scroll-track span { color: #8F6F3D; }
[data-theme="light"] .scroll-books-label { color: #8F6F3D; }
[data-theme="light"] .scroll-books-note { color: #8A7E70; }
[data-theme="light"] .scroll-books::before { background: linear-gradient(90deg, var(--bg-primary), transparent); }
[data-theme="light"] .scroll-books::after { background: linear-gradient(270deg, var(--bg-primary), transparent); }

[data-theme="light"] .mod-v2 {
  background: linear-gradient(160deg, rgba(255,253,248,0.95), rgba(245,240,232,0.8));
  border-color: rgba(143, 111, 61, 0.15);
}
[data-theme="light"] .mod-v2:hover {
  border-color: rgba(143, 111, 61, 0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 0 0 1px rgba(143,111,61,0.1);
}
[data-theme="light"] .mod-v2-char { color: #8F6F3D; }
[data-theme="light"] .mod-v2-title { color: #1A1612; }
[data-theme="light"] .mod-v2-desc { color: #8A7E70; }
[data-theme="light"] .mod-v2-enter { color: #8F6F3D; }

[data-theme="light"] .pt-v2 {
  background: linear-gradient(160deg, rgba(255,253,248,0.9), rgba(245,240,232,0.7));
  border-color: rgba(143, 111, 61, 0.12);
}
[data-theme="light"] .pt-v2-icon { border-color: rgba(143,111,61,0.25); color: #8F6F3D; }
[data-theme="light"] .pt-v2-title { color: #1A1612; }
[data-theme="light"] .pt-v2-desc { color: #8A7E70; }

[data-theme="light"] .pricing-v2-card {
  background: linear-gradient(160deg, rgba(255,253,248,0.95), rgba(245,240,232,0.8));
  border-color: rgba(143, 111, 61, 0.15);
}
[data-theme="light"] .pricing-v2-title { color: #8F6F3D; }
[data-theme="light"] .pr-item { border-color: rgba(143,111,61,0.1); background: rgba(143,111,61,0.03); }
[data-theme="light"] .pr-num { color: #8F6F3D; }
[data-theme="light"] .pr-label { color: #5C5347; }
[data-theme="light"] .pr-sub { color: #8A7E70; }
[data-theme="light"] .pricing-v2-note { color: #8A7E70; }

[data-theme="light"] .flow-step { color: #8F6F3D; border-color: rgba(143,111,61,0.15); background: rgba(143,111,61,0.04); }
[data-theme="light"] .flow-arrow { color: #8F6F3D; }

[data-theme="light"] .pwa-phone-v2 {
  background: linear-gradient(160deg, rgba(245,240,232,0.8), rgba(237,232,222,0.6));
  border-color: rgba(143,111,61,0.2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.08);
}
[data-theme="light"] .pwa-screen { background: rgba(245,240,232,0.95); }
[data-theme="light"] .pwa-card { background: rgba(143,111,61,0.05); border-color: rgba(143,111,61,0.12); }
[data-theme="light"] .pwa-card-t { color: #5C5347; }
[data-theme="light"] .pwa-card-d { color: #8A7E70; }
[data-theme="light"] .pwa-nav { background: rgba(245,240,232,0.95); border-top-color: rgba(143,111,61,0.1); }
[data-theme="light"] .pwa-nav-i { color: #8A7E70; }
[data-theme="light"] .pwa-nav-i.act { color: #8F6F3D; }
[data-theme="light"] .pwa-text-v2 h3 { color: #1A1612; }
[data-theme="light"] .pwa-text-v2 p { color: #5C5347; }
[data-theme="light"] .pwa-text-v2 .pwa-note { color: #8F6F3D; border-left-color: rgba(143,111,61,0.25); }

[data-theme="light"] .lp-cta-v2-box {
  background: linear-gradient(160deg, rgba(255,253,248,0.95), rgba(245,240,232,0.8));
  border-color: rgba(143, 111, 61, 0.15);
}
[data-theme="light"] .lp-cta-v2-box h2 { color: #1A1612; }
[data-theme="light"] .lp-cta-v2-box p { color: #5C5347; }
[data-theme="light"] .lp-cta-note { color: #8A7E70; }

[data-theme="light"] .tag-open { border-color: rgba(22,163,74,0.4); color: #16a34a; background: rgba(22,163,74,0.08); }
[data-theme="light"] .tag-beta { border-color: rgba(143,111,61,0.35); color: #8F6F3D; background: rgba(143,111,61,0.08); }
[data-theme="light"] .tag-soon { border-color: rgba(138,126,112,0.25); color: #8A7E70; background: rgba(138,126,112,0.06); }

[data-theme="light"] .lp-btn-gold {
  box-shadow: 0 4px 16px rgba(143,111,61,0.2);
}
[data-theme="light"] .lp-btn-ghost {
  color: #8F6F3D;
  border-color: rgba(143,111,61,0.3);
}

/* ── 模式切换按钮 ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201,168,106,0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-primary);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 18px;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--gold-primary);
  background: rgba(201,168,106,0.08);
}
[data-theme="light"] .theme-toggle {
  border-color: rgba(143,111,61,0.25);
  color: #8F6F3D;
}
[data-theme="light"] .theme-toggle:hover {
  border-color: #8F6F3D;
  background: rgba(143,111,61,0.08);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

[data-theme="light"] .bazi-card,
[data-theme="light"] .bazi-section,
[data-theme="light"] .question-card,
[data-theme="light"] .result-card,
[data-theme="light"] .chat-window,
[data-theme="light"] .bazi-result-card,
[data-theme="light"] .bazi-chat-window,
[data-theme="light"] .bazi-loading-card,
[data-theme="light"] .liuren-board-container,
[data-theme="light"] .qimen-board-container,
[data-theme="light"] .qimen-result-card,
[data-theme="light"] .qimen-chat-window,
[data-theme="light"] .pan-container,
[data-theme="light"] .pan-info-bar,
[data-theme="light"] .section-card,
[data-theme="light"] .feedback-section,
[data-theme="light"] .incomplete-card,
[data-theme="light"] .msg.assistant .msg-bubble,
[data-theme="light"] .msg.system-msg .msg-bubble,
[data-theme="light"] .card,
[data-theme="light"] .ledger-table-wrap,
[data-theme="light"] .invite-stat,
[data-theme="light"] .reward-rules,
[data-theme="light"] .records-table-wrap,
[data-theme="light"] .redeem-form,
[data-theme="light"] .case-card,
[data-theme="light"] .feedback-card,
[data-theme="light"] .cost-bar,
[data-theme="light"] #loadingCard {
  background: rgba(255, 253, 248, 0.85) !important;
  border-color: rgba(143, 111, 61, 0.12) !important;
}
[data-theme="light"] .core-judgment-main {
  color: #8F6F3D !important;
}
[data-theme="light"] .question-text {
  color: #1A1612 !important;
}
[data-theme="light"] .core-judgment-detail {
  color: #5C5347 !important;
}
[data-theme="light"] .balance-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .action-card {
  background: rgba(255, 253, 248, 0.7) !important;
  border-color: rgba(143, 111, 61, 0.1) !important;
}
[data-theme="light"] .msg.user .msg-bubble {
  background: rgba(143, 111, 61, 0.1) !important;
}
[data-theme="light"] .chat-window-header {
  background: rgba(143, 111, 61, 0.04) !important;
  border-bottom-color: rgba(143, 111, 61, 0.1) !important;
}
[data-theme="light"] .chat-input-bar {
  background: rgba(143, 111, 61, 0.03) !important;
  border-top-color: rgba(143, 111, 61, 0.1) !important;
}
[data-theme="light"] .chat-input-bar textarea {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(143, 111, 61, 0.15) !important;
  color: #1A1612 !important;
}
[data-theme="light"] .chat-input-bar textarea:focus {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(143, 111, 61, 0.3) !important;
}
[data-theme="light"] .chat-send {
  background: linear-gradient(135deg, rgba(143,111,61,0.15), rgba(143,111,61,0.08)) !important;
  border-color: rgba(143,111,61,0.25) !important;
  color: #8F6F3D !important;
}
[data-theme="light"] .chat-empty-hint {
  color: #8A7E70 !important;
}

/* ========== 浅色模式：六壬课盘格子样式覆盖 ========== */
[data-theme="light"] .si-ke-cell,
[data-theme="light"] .san-chuan-item,
[data-theme="light"] .tdp-cell,
[data-theme="light"] .tj-item {
  background: rgba(143, 111, 61, 0.06) !important;
  border-color: rgba(143, 111, 61, 0.12) !important;
}
[data-theme="light"] .si-ke-cell .shang,
[data-theme="light"] .sc-zhi {
  color: #8F6F3D !important;
}
[data-theme="light"] .si-ke-cell .xia,
[data-theme="light"] .si-ke-cell .pending,
[data-theme="light"] .si-ke-label,
[data-theme="light"] .sc-label,
[data-theme="light"] .sc-lq,
[data-theme="light"] .sc-pending,
[data-theme="light"] .tdp-cell .dp,
[data-theme="light"] .tdp-cell .tp-pending,
[data-theme="light"] .tj-item .tj-zhi,
[data-theme="light"] .tj-item .tj-pending {
  color: #8A7E70 !important;
}
[data-theme="light"] .tdp-cell .tp {
  color: #1A1612 !important;
}
[data-theme="light"] .tdp-cell .tj,
[data-theme="light"] .tj-item .tj-name,
[data-theme="light"] .sc-jiang {
  color: #9C27B0 !important;
  opacity: 0.8 !important;
}
[data-theme="light"] .tdp-cell.kw {
  background: rgba(143, 111, 61, 0.02) !important;
  opacity: 0.5 !important;
}
[data-theme="light"] .tdp-cell.ym::after {
  color: #B8860B !important;
}
[data-theme="light"] .tdp-cell.zhi-pos::before {
  color: #2E7D32 !important;
}
[data-theme="light"] .tdp-title,
[data-theme="light"] .tianjiang-title {
  color: #8F6F3D !important;
  opacity: 0.9 !important;
}
[data-theme="light"] .tianjiang-section {
  border-top-color: rgba(143, 111, 61, 0.1) !important;
}
[data-theme="light"] .aux-tag {
  background: rgba(143, 111, 61, 0.05) !important;
  border-color: rgba(143, 111, 61, 0.12) !important;
  color: #5C5347 !important;
}
[data-theme="light"] .aux-info {
  color: #8A7E70 !important;
}
[data-theme="light"] .san-chuan-item.chu {
  border-left-color: rgba(76, 175, 80, 0.5) !important;
}
[data-theme="light"] .san-chuan-item.zhong {
  border-left-color: rgba(255, 193, 7, 0.5) !important;
}
[data-theme="light"] .san-chuan-item.mo {
  border-left-color: rgba(255, 87, 34, 0.5) !important;
}

/* ========== 浅色模式：奇门遁甲盘格子样式覆盖 ========== */
[data-theme="light"] .qimen-cell {
  background: rgba(143, 111, 61, 0.05) !important;
  border-color: rgba(143, 111, 61, 0.1) !important;
}
[data-theme="light"] .qimen-cell:hover {
  background: rgba(143, 111, 61, 0.1) !important;
}
[data-theme="light"] .qimen-cell.highlight-zhifu {
  background: linear-gradient(135deg, rgba(156,39,176,0.06), rgba(143,111,61,0.06)) !important;
  border-color: rgba(156,39,176,0.2) !important;
}
[data-theme="light"] .qimen-cell.highlight-zhishi {
  background: linear-gradient(135deg, rgba(255,87,34,0.06), rgba(143,111,61,0.06)) !important;
  border-color: rgba(255,87,34,0.2) !important;
}
[data-theme="light"] .qimen-cell.highlight-empty {
  background: rgba(143, 111, 61, 0.02) !important;
  opacity: 0.5 !important;
}
[data-theme="light"] .qimen-grid-wrap {
  background: rgba(143, 111, 61, 0.08) !important;
}

/* ========== 浅色模式：八字排盘格子样式覆盖 ========== */
[data-theme="light"] .bazi-pillar,
[data-theme="light"] .dayun-card,
[data-theme="light"] .liunian-card {
  background: rgba(143, 111, 61, 0.05) !important;
  border-color: rgba(143, 111, 61, 0.12) !important;
  color: #1A1612 !important;
}
[data-theme="light"] .bazi-gan {
  color: #8F6F3D !important;
}
[data-theme="light"] .bazi-zhi {
  color: #5C5347 !important;
}
[data-theme="light"] .shishen-tag {
  background: rgba(143, 111, 61, 0.08) !important;
  color: #8F6F3D !important;
}
[data-theme="light"] .canggan-text {
  color: #8A7E70 !important;
}
[data-theme="light"] .nayin-text {
  color: #8A7E70 !important;
}
[data-theme="light"] .plain-one-sentence {
  color: #8F6F3D !important;
}
[data-theme="light"] .plain-answer-text {
  color: #1A1612 !important;
}
[data-theme="light"] .plain-action-item {
  background: rgba(76, 175, 80, 0.05) !important;
  border-left-color: rgba(76, 175, 80, 0.3) !important;
}
[data-theme="light"] .plain-risk-item {
  background: rgba(255, 152, 0, 0.05) !important;
  border-left-color: rgba(255, 152, 0, 0.3) !important;
}
[data-theme="light"] .msg-core-label {
  color: #8A7E70 !important;
}
[data-theme="light"] .evidence-item {
  background: rgba(143, 111, 61, 0.03) !important;
  border-left-color: rgba(143, 111, 61, 0.2) !important;
  color: #5C5347 !important;
}
[data-theme="light"] .classic-ref {
  background: rgba(143, 111, 61, 0.02) !important;
  border-left-color: rgba(156,39,176,0.2) !important;
  color: #8A7E70 !important;
}
[data-theme="light"] .classic-ref .classic-book {
  color: #9C27B0 !important;
  opacity: 0.8 !important;
}
[data-theme="light"] .risk-line {
  color: #E65100 !important;
}
[data-theme="light"] .quick-q {
  background: rgba(143, 111, 61, 0.04) !important;
  border-color: rgba(143, 111, 61, 0.1) !important;
  color: #5C5347 !important;
}
[data-theme="light"] .quick-q:hover {
  background: rgba(143, 111, 61, 0.08) !important;
  border-color: rgba(143, 111, 61, 0.25) !important;
  color: #8F6F3D !important;
}
[data-theme="light"] .professional-toggle {
  background: rgba(143, 111, 61, 0.05) !important;
  border-color: rgba(143, 111, 61, 0.12) !important;
  color: #8F6F3D !important;
}
[data-theme="light"] .professional-detail-body {
  background: rgba(143, 111, 61, 0.02) !important;
  border-color: rgba(143, 111, 61, 0.08) !important;
  color: #5C5347 !important;
}
[data-theme="light"] .prof-detail-label {
  color: #8F6F3D !important;
}
