/* ============================================
   灵虚命理 - 命理小程序样式
   神秘东方美学 + 现代简约
   ============================================ */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --gold: #f5c518;
  --bg: #0f0f1a;
  --text: #ffffff;
  --text-secondary: #a0a0b0;
  --border: rgba(255,255,255,0.1);
  --gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

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

#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

/* Pages */
.page {
  display: none;
  min-height: 100vh;
  padding-bottom: 40px;
}

.page.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ============================================
   首页样式
   ============================================ */
.page-home {
  padding: 60px 24px 40px;
  background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
}

.home-header {
  text-align: center;
  padding: 40px 0 50px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 64px;
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

.logo h1 {
  font-size: 32px;
  font-weight: 600;
  background: linear-gradient(135deg, #f5c518 0%, #e94560 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 8px;
}

.tagline {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 4px;
}

.home-modules {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.module-card {
  display: flex;
  align-items: center;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.module-card:active {
  transform: scale(0.98);
  background: rgba(255,255,255,0.05);
}

.module-icon {
  font-size: 40px;
  margin-right: 16px;
}

.module-info {
  flex: 1;
}

.module-info h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}

.module-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

.module-arrow {
  font-size: 24px;
  color: var(--text-secondary);
}

.home-footer {
  margin-top: 60px;
  text-align: center;
}

.home-footer p {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

/* ============================================
   通用页面头部
   ============================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 20px 20px;
  background: linear-gradient(180deg, rgba(22,33,62,0.8) 0%, transparent 100%);
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-header h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
}

.back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  transition: background 0.2s;
}

.back-btn:active {
  background: rgba(255,255,255,0.1);
}

.placeholder {
  width: 40px;
}

.page-content {
  padding: 0 20px;
}

/* ============================================
   上传区域
   ============================================ */
.upload-section {
  margin-bottom: 24px;
}

.upload-area {
  position: relative;
  padding: 48px 24px;
  border: 2px dashed var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:active,
.upload-area.dragover {
  border-color: var(--accent);
  background: rgba(233,69,96,0.05);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.upload-hint p {
  font-size: 16px;
  margin-bottom: 8px;
}

.upload-hint span {
  font-size: 12px;
  color: var(--text-secondary);
}

.image-preview {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.image-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   表单样式
   ============================================ */
.form-section {
  padding-top: 20px;
}

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

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

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b0'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.radio-group {
  display: flex;
  gap: 8px;
}

.radio-group.full {
  width: 100%;
}

.radio-btn {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.radio-btn.active {
  background: rgba(233,69,96,0.2);
  border-color: var(--accent);
  color: var(--text);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* ============================================
   主按钮
   ============================================ */
.primary-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 24px;
}

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

.primary-btn:not(:disabled):active {
  transform: scale(0.98);
}

/* ============================================
   选项区域
   ============================================ */
.upload-options {
  margin: 20px 0;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}

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

.option-row:last-child {
  margin-bottom: 0;
}

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

/* ============================================
   加载状态
   ============================================ */
.loading-section {
  text-align: center;
  padding: 60px 0;
}

.loading-animation {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.palm-outline,
.bazi-icon,
.compass-icon {
  font-size: 60px;
  opacity: 0.8;
}

.scanning-line {
  position: absolute;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 1.5s ease-in-out infinite;
  top: 50%;
}

@keyframes scan {
  0%, 100% { transform: translateY(-40px); opacity: 0; }
  50% { transform: translateY(40px); opacity: 1; }
}

.rotating {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

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

.compass-needle {
  position: absolute;
  width: 4px;
  height: 60px;
  background: linear-gradient(180deg, var(--accent) 50%, var(--gold) 50%);
  animation: compass 2s ease-in-out infinite;
}

@keyframes compass {
  0%, 100% { transform: rotate(-30deg); }
  50% { transform: rotate(30deg); }
}

.loading-steps {
  margin-top: 30px;
  text-align: left;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.step::before {
  content: '○';
  position: absolute;
  left: 0;
}

.step.active {
  color: var(--accent);
}

.step.active::before {
  content: '●';
}

/* ============================================
   结果区域
   ============================================ */
.result-section {
  padding-top: 20px;
}

.result-header {
  text-align: center;
  margin-bottom: 24px;
}

.result-header h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.birth-info,
.room-type {
  font-size: 13px;
  color: var(--text-secondary);
}

.result-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.result-card h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* 掌纹结果 */
.palm-info-card {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}

.palm-type,
.finger-type {
  text-align: center;
}

.palm-type .label,
.finger-type .label {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

.palm-type .value,
.finger-type .value {
  font-size: 16px;
  color: var(--accent);
}

.line-item {
  margin-bottom: 16px;
}

.line-item:last-child {
  margin-bottom: 0;
}

.line-name {
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 4px;
}

.line-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.tag.career {
  background: rgba(245,197,24,0.2);
  color: var(--gold);
}

.tag.love {
  background: rgba(233,69,96,0.2);
  color: var(--accent);
}

.tag.health {
  background: rgba(76,175,80,0.2);
  color: #4caf50;
}

.suggestion-item {
  margin-bottom: 16px;
}

.suggestion-item:last-child {
  margin-bottom: 0;
}

.suggestion-item p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 八字结果 */
.bazi-pai {
  margin-bottom: 20px;
}

.pai-title {
  text-align: center;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 12px;
}

.pai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pai-cell {
  text-align: center;
  padding: 12px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}

.pai-cell.header {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px;
}

.pai-cell.tian-gan {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid rgba(233,69,96,0.3);
}

.pai-cell.di-zhi {
  font-size: 14px;
  color: var(--gold);
  border: 1px solid rgba(245,197,24,0.3);
}

.five-elements {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.element {
  display: flex;
  align-items: center;
  gap: 12px;
}

.el-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  font-size: 14px;
}

.el-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.el-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.element[data-el="jin"] .el-fill { background: linear-gradient(90deg, #f5c518, #ffd700); }
.element[data-el="mu"] .el-fill { background: linear-gradient(90deg, #4caf50, #8bc34a); }
.element[data-el="shui"] .el-fill { background: linear-gradient(90deg, #2196f3, #03a9f4); }
.element[data-el="huo"] .el-fill { background: linear-gradient(90deg, #f44336, #ff5722); }
.element[data-el="tu"] .el-fill { background: linear-gradient(90deg, #795548, #a1887f); }

.el-name {
  width: 24px;
  font-size: 13px;
}

.missing-elements {
  font-size: 13px;
  color: var(--accent);
}

.fortune-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.fortune-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.fortune-item .year {
  font-size: 13px;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.fortune-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 风水结果 */
.fengshui-score {
  text-align: center;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg, rgba(255,255,255,0.1) 0deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.score-circle::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--bg);
  border-radius: 50%;
}

.score-value {
  position: relative;
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
}

.score-unit {
  position: relative;
  font-size: 12px;
  color: var(--text-secondary);
}

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

.issue-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(233,69,96,0.1);
  border-radius: 8px;
}

.issue-item.warning {
  background: rgba(245,197,24,0.1);
}

.issue-icon {
  font-size: 16px;
}

.issue-text {
  flex: 1;
}

.issue-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bagua-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.bagua-cell {
  padding: 12px 8px;
  text-align: center;
  font-size: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.bagua-cell small {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.bagua-cell.center {
  background: linear-gradient(135deg, rgba(233,69,96,0.2), rgba(245,197,24,0.2));
  border-color: var(--accent);
}

.bagua-analysis {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.suggestion-list .suggestion-item {
  padding: 12px;
  background: rgba(76,175,80,0.1);
  border-radius: 8px;
  border-left: 3px solid #4caf50;
}

.suggestion-list .suggestion-item p {
  margin-top: 0;
}

/* ============================================
   工具函数
   ============================================ */
.hidden {
  display: none !important;
}

/* ============================================
   付费弹窗样式
   ============================================ */
.pay-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pay-modal.active {
  opacity: 1;
  visibility: visible;
}

.pay-modal-content {
  width: 320px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  border: 1px solid rgba(245,197,24,0.3);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.pay-modal.active .pay-modal-content {
  transform: scale(1);
}

.pay-modal-header {
  text-align: center;
  padding: 30px 24px 16px;
  background: linear-gradient(180deg, rgba(245,197,24,0.1) 0%, transparent 100%);
}

.pay-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.pay-modal-header h3 {
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 4px;
}

.pay-module-name {
  font-size: 13px;
  color: var(--text-secondary);
}

.pay-modal-body {
  padding: 16px 24px 30px;
  text-align: center;
}

.pay-amount-display {
  margin-bottom: 8px;
}

.pay-currency {
  font-size: 18px;
  color: var(--accent);
  vertical-align: top;
}

.pay-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
}

.pay-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pay-options {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.pay-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-option:has(input:checked) {
  background: rgba(233,69,96,0.15);
  border-color: var(--accent);
}

.pay-option input {
  display: none;
}

.pay-option-icon {
  font-size: 18px;
}

.pay-option span:last-child {
  font-size: 13px;
}

.pay-confirm-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  font-size: 16px;
  margin-bottom: 12px;
}

.pay-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pay-reject-btn {
  color: var(--text-secondary);
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.pay-company {
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.qr-display {
  text-align: center;
  padding: 16px 0;
}
.qr-display img {
  border: 2px solid #eee;
  margin: 8px 0;
}
.qr-tip {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}
.qr-note {
  font-size: 12px;
  color: #666;
  margin: 6px 0 2px;
}
.qr-contact {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.pay-plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-plan:active {
  transform: scale(0.98);
}

.pay-plan.selected {
  border-color: var(--gold);
  background: rgba(245,197,24,0.08);
}

.pay-plan.featured {
  border-color: rgba(245,197,24,0.4);
}

.pay-plan-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pay-plan-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.pay-plan-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

.pay-plan-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
}

.pay-selected-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(233,69,96,0.1);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text);
}

.pay-selected-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

/* 解锁区生辰表单 */
.bazi-mini-form {
  margin-top: 12px;
}

.bazi-mini-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.bazi-mini-row input,
.bazi-mini-row select {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.bazi-mini-row input:focus,
.bazi-mini-row select:focus {
  border-color: var(--gold);
}

.bazi-mini-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.bazi-mini-row select option {
  background: var(--secondary);
  color: var(--text);
}

.pay-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-form input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.pay-form input::placeholder {
  color: var(--text-secondary);
}

.pay-form input:focus {
  border-color: var(--gold);
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row input,
.form-row select {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.form-row input:focus,
.form-row select:focus {
  border-color: var(--gold);
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.form-row select option {
  background: var(--secondary);
  color: var(--text);
}

/* ============================================
   解锁区域样式
   ============================================ */
.unlock-section {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(233,69,96,0.08), rgba(245,197,24,0.08));
  border-radius: 12px;
  border: 1px dashed rgba(245,197,24,0.3);
}

.unlock-divider {
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.unlock-divider::before,
.unlock-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: rgba(245,197,24,0.3);
}

.unlock-divider::before { left: 0; }
.unlock-divider::after { right: 0; }

.unlock-divider span {
  font-size: 12px;
  color: var(--gold);
  background: var(--bg);
  padding: 0 12px;
}

.unlock-info {
  text-align: center;
  margin-bottom: 16px;
}

.unlock-info p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.unlock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, var(--gold), #ffd700);
  color: #1a1a2e;
  font-weight: 600;
}

.unlock-icon {
  font-size: 16px;
}

/* ============================================
   面容分析样式
   ============================================ */
.face-info-card {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  margin-bottom: 16px;
}

.face-type {
  text-align: center;
}

.face-type .label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.face-type .value {
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
}

.three-stops {
  display: flex;
  justify-content: space-around;
  margin-bottom: 8px;
}

.stop-item {
  text-align: center;
}

.stop-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.stop-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

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

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}

.feature-label {
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(233,69,96,0.15);
  color: var(--accent);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.feature-item span:last-child {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.palace-item {
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.palace-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.palace-status {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
}

.palace-status.good {
  background: rgba(76,175,80,0.2);
  color: #4caf50;
}

.palace-status.warning {
  background: rgba(245,197,24,0.2);
  color: var(--gold);
}

.palace-analysis {
  width: 100%;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 4px;
}

.palace-item:has(.palace-analysis) {
  background: rgba(255,255,255,0.05);
}

/* ============================================
   Toast 提示
   ============================================ */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 24px;
  background: rgba(26,26,46,0.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-align: center;
}

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

.toast-success {
  border-color: rgba(76,175,80,0.5);
  background: rgba(76,175,80,0.15);
}

/* ============================================
   十神/大运 样式
   ============================================ */
.tenshen-item, .dayun-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  margin-bottom: 8px;
}

.tenshen-item:last-child, .dayun-item:last-child {
  margin-bottom: 0;
}

.tenshen-pillar {
  min-width: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
}

.tenshen-item span:last-child, .dayun-item span:last-child {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dayun-range {
  min-width: 60px;
  font-size: 12px;
  color: var(--accent);
}

/* ============================================
   会员卡样式
   ============================================ */
.member-card {
  margin: 30px 0 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(245,197,24,0.15), rgba(233,69,96,0.15));
  border-radius: 12px;
  border: 1px solid rgba(245,197,24,0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.member-card:active {
  transform: scale(0.98);
}

.member-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-icon {
  font-size: 28px;
}

.member-info {
  flex: 1;
}

.member-info h4 {
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 2px;
}

.member-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.member-arrow {
  font-size: 20px;
  color: var(--gold);
}

/* ============================================
   会员弹窗样式
   ============================================ */
.member-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.member-modal.active {
  opacity: 1;
  visibility: visible;
}

.member-modal-content {
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(245,197,24,0.3);
  border-bottom: none;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.member-modal.active .member-modal-content {
  transform: translateY(0);
}

.member-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.member-modal-header h3 {
  font-size: 18px;
  color: var(--gold);
}

.member-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-modal-body {
  padding: 20px 24px 40px;
}

.member-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.member-option.featured {
  background: linear-gradient(135deg, rgba(245,197,24,0.15), rgba(233,69,96,0.1));
  border-color: rgba(245,197,24,0.4);
}

.member-option-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-option-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.member-option-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.member-option-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
}

.member-company {
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 20px;
}

/* 首页公司信息 */
.company-info {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 8px;
}

