/* 大道文明 - 设计系统变量 */
:root {
  --tdwz-primary: #667eea;
  --tdwz-secondary: #764ba2;
  --tdwz-accent: #f093fb;
  --tdwz-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --tdwz-gradient-solid: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --tdwz-card-radius: 20px;
  --tdwz-card-radius-sm: 14px;
  --tdwz-input-radius: 12px;
  --tdwz-shadow-sm: 0 4px 16px rgba(102, 126, 234, 0.12);
  --tdwz-shadow-md: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
  --tdwz-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6);
  --tdwz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 移动端触控优化：去除点击高亮、确保可点击区域 */
a,
button,
input,
select,
textarea,
[role="button"] {
  -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
  tap-highlight-color: rgba(102, 126, 234, 0.2);
}

/* 触摸设备上优化滑动 */
html {
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-attachment: fixed;
  color: #333;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  /* 刘海屏/全面屏安全区域 */
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.main-content {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

/* 首页专用样式 */
body:has(.services-grid) .main-content {
  padding: 20px 0 60px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  padding-top: max(20px, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 0 0 20px 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08), 
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  border-radius: 20px 20px 0 0;
  opacity: 0.6;
}

.header:hover {
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12), 
    0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

.logo span {
  white-space: nowrap;
}

.logo:hover {
  transform: scale(1.05);
}

/* Logo 图标：使用自定义图片替代太极图 */
.logo i {
  display: inline-block;
  width: 4.4rem;
  height: 4.4rem;
  margin-right: 0;
  margin-bottom: 0;
  font-size: 0;
  line-height: 0;
  background: url('assets/logo-icon.png') no-repeat center / contain;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  color: transparent;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  border-radius: 3px 3px 0 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -2px 8px rgba(102, 126, 234, 0.3);
}

.nav-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.nav-link:hover {
  color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.08));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.nav-link:hover::after {
  opacity: 1;
}

.nav-link.active {
  color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.12));
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.nav-link.active::before {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active::after {
  opacity: 1;
}

.nav-link i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: scale(1.1);
}

.nav-link.active i {
  color: #667eea;
  animation: navIconPulse 2s ease-in-out infinite;
}

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

/* 语言切换 - 分段控件风格 */
.lang-switcher {
  display: inline-flex;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 4px;
  gap: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.lang-switcher select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(102, 126, 234, 0.28);
  color: #4338ca;
  padding: 8px 34px 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 138px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
  background-image:
    linear-gradient(45deg, transparent 50%, #667eea 50%),
    linear-gradient(135deg, #667eea 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.lang-switcher select optgroup {
  color: #4b5563;
  font-style: normal;
  font-weight: 700;
}
.lang-switcher select:hover {
  border-color: rgba(102, 126, 234, 0.6);
}
.lang-switcher select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18);
}
.lang-switcher button {
  background: transparent;
  border: none;
  color: #555;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}
.lang-switcher button:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}
.lang-switcher button.active {
  background: rgba(102, 126, 234, 0.2);
  color: #4338ca;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}
body.dark-theme .lang-switcher {
  background: rgba(0,0,0,0.25);
}
body.dark-theme .lang-switcher select {
  background-color: rgba(22, 33, 62, 0.95);
  color: #e0e7ff;
  border-color: rgba(165, 180, 252, 0.45);
  background-image:
    linear-gradient(45deg, transparent 50%, #c7d2fe 50%),
    linear-gradient(135deg, #c7d2fe 50%, transparent 50%);
}
body.dark-theme .lang-switcher button {
  color: rgba(255,255,255,0.75);
}
body.dark-theme .lang-switcher button:hover {
  color: #a5b4fc;
  background: rgba(255,255,255,0.12);
}
body.dark-theme .lang-switcher button.active {
  background: rgba(102, 126, 234, 0.5);
  color: #e0e7ff;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.header-actions .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
  padding: 10px 20px;
  min-height: 44px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
  transform: translateY(-1px) scale(1);
}

.btn-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(245, 87, 108, 0.4);
}

.btn-secondary:active {
  transform: translateY(0) scale(1);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  border: 2px solid #667eea;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.btn-outline:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-outline:active {
  transform: translateY(0) scale(1);
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* 八字排盘快速工具 */
.bazi-quick-tool {
  background: rgba(255, 255, 255, 0.95);
  margin: 30px 0;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.quick-tool-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  text-align: center;
}

.quick-tool-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.quick-tool-header p {
  font-size: 1.1rem;
  opacity: 0.95;
}

.quick-tool-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.input-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.calendar-type-switch {
  display: flex;
  gap: 10px;
  background: #f5f7fa;
  padding: 5px;
  border-radius: 12px;
}

.radio-tab {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.radio-tab input {
  display: none;
}

.radio-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.date-time-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.input-row.gender-location {
  grid-template-columns: 1fr 2fr;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
}

.input-group input[type='number'],
.input-group select,
.input-group input[type='text'],
.input-group input[type='date'],
.input-group input[type='email'] {
  padding: 14px 18px;
  border: 2px solid #e8ecf0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-family: inherit;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 
    0 0 0 4px rgba(102, 126, 234, 0.1),
    0 4px 12px rgba(102, 126, 234, 0.15);
  background: white;
  transform: translateY(-1px);
}

.input-group input:hover,
.input-group select:hover {
  border-color: #b8c5e0;
}

.year-input {
  width: 100%;
}

.gender-group {
  grid-column: span 2;
}

.location-group {
  grid-column: span 2;
}

.gender-buttons {
  display: flex;
  gap: 10px;
}

.gender-btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  border: 2px solid #e0e5ec;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.gender-btn input {
  display: none;
}

.gender-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.gender-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
}

.options-row {
  display: flex;
  gap: 20px;
  padding: 15px 0;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #555;
}

.checkbox-option input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.btn-calculate {
  width: 100%;
  padding: 18px 32px;
  margin-top: auto;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 24px rgba(102, 126, 234, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-calculate::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-calculate:hover::before {
  width: 300px;
  height: 300px;
}

.btn-calculate:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 32px rgba(102, 126, 234, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-calculate:active {
  transform: translateY(-1px) scale(1);
}

.btn-calculate i {
  margin-right: 10px;
}

.result-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e3e9f2 100%);
  border-radius: 15px;
  padding: 40px;
  min-height: 400px;
}

.preview-placeholder {
  text-align: center;
  color: #666;
}

.preview-placeholder i {
  color: #667eea;
  margin-bottom: 20px;
  opacity: 0.6;
}

.preview-placeholder p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.8;
}

.preview-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.feature-tag {
  background: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-tag i {
  color: #667eea;
}

.quick-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px 40px 40px;
  background: rgba(255, 255, 255, 0.5);
}

.quick-action-btn {
  padding: 12px 24px;
  background: white;
  border: 2px solid #e0e5ec;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-action-btn:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.quick-action-btn i {
  font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 968px) {
  .quick-tool-content {
    grid-template-columns: 1fr;
  }

  .result-preview {
    min-height: 300px;
  }

  .preview-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .quick-tool-header h2 {
    font-size: 1.8rem;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .gender-group,
  .location-group {
    grid-column: span 1;
  }

  .quick-actions {
    flex-direction: column;
  }
}

/* Features section */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #333;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--tdwz-primary), #6a11cb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 2rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.feature-desc {
  color: #666;
  margin-bottom: 20px;
}

/* Chat demo section */
.chat-demo {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.chat-container {
  max-width: 800px;
  margin: 40px auto 0;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.chat-messages {
  padding: 30px;
  max-height: 400px;
  overflow-y: auto;
}

.message {
  display: flex;
  margin-bottom: 25px;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.ai-message .message-avatar {
  background: linear-gradient(135deg, var(--tdwz-primary), #6a11cb);
  color: white;
}

.user-message .message-avatar {
  background: #e0e0e0;
  color: #333;
}

.message-content {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 15px;
  max-width: 70%;
}

.ai-message .message-content {
  background: linear-gradient(135deg, var(--tdwz-primary), #6a11cb);
  color: white;
  border-radius: 15px 15px 15px 0;
}

.user-message .message-content {
  background: #e0e0e0;
  color: #333;
  border-radius: 15px 15px 0 15px;
  margin-left: auto;
}

.user-message {
  flex-direction: row-reverse;
}

.user-message .message-avatar {
  margin-right: 0;
  margin-left: 15px;
}

.chat-input {
  display: flex;
  padding: 20px;
  border-top: 1px solid #eee;
}

.chat-input input {
  flex: 1;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

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

.chat-input button {
  margin-left: 15px;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, rgba(51, 51, 51, 0.95), rgba(30, 30, 30, 0.98));
  backdrop-filter: blur(20px);
  color: white;
  padding: 60px 0 24px;
  border-radius: 30px 30px 0 0;
  margin-top: 60px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  border-radius: 30px 30px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--tdwz-primary);
}

.footer-section p {
  color: #bbb;
  margin-bottom: 20px;
}

.footer-section a {
  display: block;
  color: #bbb;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section a:hover {
  color: var(--tdwz-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

.footer-admin-link {
  margin-top: 12px;
  font-size: 0.9rem;
}

.admin-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: var(--tdwz-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-link:hover {
  color: #a5b4fc;
}

/* Enhanced Styles for Modals, Notifications, and Interactive Elements */

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.modal {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--tdwz-card-radius);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.5);
  animation: modalFadeIn 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tdwz-gradient);
  border-radius: var(--tdwz-card-radius) var(--tdwz-card-radius) 0 0;
}

.modal.modal-lg {
  max-width: 800px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.modal-body {
  padding: 30px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e8ecf0;
  border-radius: var(--tdwz-input-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--tdwz-transition);
  background: rgba(255,255,255,0.95);
}

.form-group input:hover,
.form-group select:hover {
  border-color: #c5d0e0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--tdwz-primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.forgot-password {
  color: var(--tdwz-primary);
  text-decoration: none;
}

.auth-divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.auth-divider span {
  background: white;
  padding: 0 15px;
  color: #999;
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #eee;
}

/* 社交一键登录 */
.social-auth-section {
  margin-bottom: 20px;
}
.social-auth-hint {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
  text-align: center;
}
.social-auth-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.social-auth-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  border: 2px solid #e8ecf0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: var(--tdwz-transition);
  font-size: 0.9rem;
  color: #555;
  min-width: 90px;
}
.social-auth-btn:hover {
  border-color: var(--tdwz-primary);
  background: rgba(102, 126, 234, 0.06);
  color: var(--tdwz-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}
.social-auth-btn i {
  font-size: 1.8rem;
}
.social-auth-btn[data-provider="wechat"] i { color: #07c160; }
.social-auth-btn[data-provider="qq"] i { color: #12b7f5; }
.social-auth-btn[data-provider="weibo"] i { color: #e6162d; }
.social-auth-btn:hover i { color: inherit; }
.social-coming-soon {
  font-size: 0.8rem;
  color: #999;
  text-align: center;
  margin-top: 10px;
}
/* 注册可选信息折叠 */
.register-optional {
  margin: 16px 0;
  padding: 12px 16px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.15);
}
.register-optional summary {
  cursor: pointer;
  font-weight: 500;
  color: #667eea;
  list-style: none;
  user-select: none;
}
.register-optional summary::-webkit-details-marker { display: none; }
.register-optional summary::before {
  content: '▸ ';
  margin-right: 4px;
}
.register-optional[open] summary::before { content: '▾ '; }
.register-optional-fields {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(102, 126, 234, 0.2);
}

.social-auth {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.auth-footer {
  text-align: center;
  color: #666;
  margin-top: 20px;
}

.auth-footer a {
  color: var(--tdwz-primary);
  text-decoration: none;
  font-weight: 500;
}

/* Image generator styles */
.image-generator {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.prompt-input {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.image-preview {
  background: #f9f9f9;
  border-radius: 15px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.image-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.option {
  flex: 1;
  min-width: 150px;
}

.option label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.option select {
  width: 100%;
}

.generated-image-success {
  text-align: center;
}

.generated-image-success i {
  font-size: 3rem;
  color: #4caf50;
  margin-bottom: 15px;
}

.image-desc {
  font-style: italic;
  color: #666;
  margin: 10px 0;
}

/* Code assistant styles */
.code-assistant {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.code-input,
.code-output {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.language-select {
  display: flex;
  align-items: center;
  gap: 15px;
}

.language-select select {
  flex: 1;
}

.code-output pre {
  background: #1e1e1e;
  color: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.code-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Data analysis styles */
.data-analysis {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.upload-area {
  border: 2px dashed #ddd;
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s;
  margin-bottom: 20px;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--tdwz-primary);
}

.upload-area i {
  font-size: 3rem;
  color: #999;
  margin-bottom: 15px;
}

.sample-data {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.preview-table {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
}

.preview-table table {
  width: 100%;
  border-collapse: collapse;
}

.preview-table th,
.preview-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.preview-table th {
  background: #f0f0f0;
  font-weight: 600;
}

.analysis-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analysis-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.analysis-result {
  text-align: center;
  padding: 30px;
}

.analysis-result i {
  font-size: 3rem;
  color: var(--tdwz-primary);
  margin-bottom: 20px;
}

.chart-placeholder {
  height: 200px;
  background: linear-gradient(90deg, var(--tdwz-primary), #6a11cb);
  border-radius: 10px;
  margin-top: 20px;
  opacity: 0.2;
}

/* Tool selection styles */
.tool-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.tool-option {
  background: #f9f9f9;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.tool-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--tdwz-primary);
}

.tool-option.selected {
  border-color: var(--tdwz-primary);
  background: #f0f7ff;
}

.tool-option i {
  font-size: 2.5rem;
  color: var(--tdwz-primary);
  margin-bottom: 15px;
}

.modal-footer {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 10px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateX(150%);
  transition: transform 0.3s ease;
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-content i {
  font-size: 1.2rem;
}

.notification-success .notification-content i {
  color: #4caf50;
}

.notification-error .notification-content i {
  color: #f44336;
}

.notification-info .notification-content i {
  color: var(--tdwz-primary);
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.notification-close:hover {
  background: #f5f5f5;
  color: #333;
}

/* Typing indicator */
.typing-indicator .message-content {
  background: transparent !important;
  padding: 0 !important;
}

.typing-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #999;
  margin: 0 2px;
  animation: typingAnimation 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingAnimation {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Message timestamp */
.message-timestamp {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  text-align: right;
}

.user-message .message-timestamp {
  color: rgba(0, 0, 0, 0.5);
}

/* Profile styles */
.profile-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.profile-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--tdwz-primary);
}

.profile-details h4 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.member-since {
  color: #666;
  font-size: 0.9rem;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  margin: 25px 0;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 15px;
}

.stat {
  text-align: center;
}

.stat h5 {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.stat p {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-danger {
  background: #f44336;
  color: white;
}

.btn-danger:hover {
  background: #d32f2f;
}

/* Pricing plans */
.pricing-plans {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}

.plan {
  flex: 1;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--tdwz-card-radius);
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--tdwz-shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--tdwz-transition);
}

.plan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tdwz-gradient);
  border-radius: var(--tdwz-card-radius) var(--tdwz-card-radius) 0 0;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--tdwz-shadow-lg);
}

.plan.featured {
  border: 2px solid var(--tdwz-primary);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.04));
  box-shadow: var(--tdwz-shadow-lg), 0 0 0 1px rgba(102, 126, 234, 0.2);
}

.plan.featured::before {
  height: 5px;
  opacity: 1;
}

.badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tdwz-primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.plan h4 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 600;
  background: var(--tdwz-gradient-solid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
}

.plan.featured .price {
  background: var(--tdwz-gradient-solid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price span {
  font-size: 1rem;
  color: #666;
}

.plan ul {
  list-style: none;
  text-align: left;
  margin-bottom: 25px;
}

.plan li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan li i.fa-check {
  color: #4caf50;
}

.plan li i.fa-times {
  color: #f44336;
}

/* Video demo styles */
.video-container {
  background: #1a1a1a;
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  margin-bottom: 25px;
}

.video-placeholder i {
  font-size: 5rem;
  color: #666;
  margin-bottom: 15px;
}

.video-placeholder p {
  color: #999;
  margin-bottom: 5px;
}

.video-desc {
  color: #666 !important;
  font-size: 0.9rem;
}

.video-info ul {
  padding-left: 20px;
  color: #666;
}

.video-info li {
  margin-bottom: 8px;
}

/* Dark theme adjustments */
body.dark-theme .modal {
  background: #2d2d2d;
  color: #f0f0f0;
}

body.dark-theme .modal-header h3 {
  color: #f0f0f0;
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select,
body.dark-theme .bazi-input-section input,
body.dark-theme .bazi-input-section select,
body.dark-theme .tool-input-section input,
body.dark-theme .tool-input-section textarea,
body.dark-theme .tool-input-section select,
body.dark-theme .input-group input,
body.dark-theme .input-group select {
  background: #ffffff !important;
  border-color: #d1d9e6 !important;
  color: #000 !important;
}

body.dark-theme .form-group label,
body.dark-theme .bazi-input-section label,
body.dark-theme .tool-input-section label,
body.dark-theme .tool-input-section .form-group label {
  color: #000 !important;
}

body.dark-theme .auth-divider span {
  background: #2d2d2d;
}

body.dark-theme .notification {
  background: #3d3d3d;
  color: #f0f0f0;
}

body.dark-theme .preview-table {
  background: #3d3d3d;
}

body.dark-theme .preview-table th {
  background: #4d4d4d;
}

body.dark-theme .tool-option {
  background: #3d3d3d;
}

body.dark-theme .tool-option.selected {
  background: #4d4d4d;
}

/* 浅色主题：确保各版块信息框文字清晰可读 */
body:not(.dark-theme) .tool-input-section,
body:not(.dark-theme) .tool-result-section,
body:not(.dark-theme) .bazi-input-section,
body:not(.dark-theme) .bazi-result-section,
body:not(.dark-theme) .service-card,
body:not(.dark-theme) .plan,
body:not(.dark-theme) .interpretation,
body:not(.dark-theme) .interpretation-content,
body:not(.dark-theme) .bazi-column,
body:not(.dark-theme) .wuxing-analysis,
body:not(.dark-theme) .shensha-section,
body:not(.dark-theme) .shen-item,
body:not(.dark-theme) .dayun-item,
body:not(.dark-theme) .bazi-pillar,
body:not(.dark-theme) .feature-card,
body:not(.dark-theme) .modal {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #222 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
}

body:not(.dark-theme) .tool-input-section label,
body:not(.dark-theme) .tool-result-section label,
body:not(.dark-theme) .bazi-input-section label,
body:not(.dark-theme) .form-group label,
body:not(.dark-theme) .service-card-title,
body:not(.dark-theme) .service-card-desc,
body:not(.dark-theme) .plan h4,
body:not(.dark-theme) .plan li,
body:not(.dark-theme) .interpretation h4,
body:not(.dark-theme) .interpretation-content,
body:not(.dark-theme) .interpretation-content p,
body:not(.dark-theme) .interpretation-content li,
body:not(.dark-theme) .bazi-column h4,
body:not(.dark-theme) .pillar-label,
body:not(.dark-theme) .wuxing-analysis h4,
body:not(.dark-theme) .wuxing-label,
body:not(.dark-theme) .shensha-section h4,
body:not(.dark-theme) .placeholder-result h4,
body:not(.dark-theme) .placeholder-result li,
body:not(.dark-theme) .modal-header h3,
body:not(.dark-theme) .feature-card h3,
body:not(.dark-theme) .feature-card p {
  color: #222 !important;
}

body:not(.dark-theme) .result-header h3,
body:not(.dark-theme) .price,
body:not(.dark-theme) .plan.featured .price {
  color: #222 !important;
  -webkit-text-fill-color: #222 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

body:not(.dark-theme) .service-card-desc,
body:not(.dark-theme) .plan li,
body:not(.dark-theme) .price span {
  color: #444 !important;
}

/* 信息采集框：浅色和深色主题均使用黑色字体 */
body .form-group input,
body .form-group textarea,
body .form-group select,
body .bazi-input-section input,
body .bazi-input-section select,
body .tool-input-section input,
body .tool-input-section textarea,
body .tool-input-section select,
body .input-group input,
body .input-group select,
body #register-fields input,
body #register-fields select {
  color: #000 !important;
}

body .form-group label,
body .bazi-input-section label,
body .tool-input-section label,
body .tool-input-section .form-group label,
body #register-fields label {
  color: #000 !important;
}

body:not(.dark-theme) .form-group input,
body:not(.dark-theme) .form-group textarea,
body:not(.dark-theme) .form-group select,
body:not(.dark-theme) .bazi-input-section input,
body:not(.dark-theme) .bazi-input-section select {
  background: #ffffff !important;
  border-color: #d1d9e6 !important;
  color: #000 !important;
}

body:not(.dark-theme) .auth-divider span {
  background: #ffffff !important;
  color: #555 !important;
}

body:not(.dark-theme) .profile-stats,
body:not(.dark-theme) .stat h5,
body:not(.dark-theme) .member-since {
  background: #f5f7fa !important;
  color: #444 !important;
}

body:not(.dark-theme) .stat p {
  color: #222 !important;
}

body:not(.dark-theme) .preview-table,
body:not(.dark-theme) .tool-option {
  background: #f8fafc !important;
  color: #222 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body:not(.dark-theme) .tool-option.selected {
  background: #eef2ff !important;
  border-color: var(--tdwz-primary) !important;
}

body:not(.dark-theme) .notification {
  background: #ffffff !important;
  color: #222 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

body:not(.dark-theme) .hero-subtitle,
body:not(.dark-theme) .section-subtitle,
body:not(.dark-theme) .index-value-prop {
  color: #444 !important;
}

/* 首页主卖点文案：毛玻璃底条 + 实色字 + 轻微动效 */
.index-value-prop-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 28px;
  padding: 0 16px;
}

.index-value-prop-hero {
  display: inline-block;
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff !important;
  margin: 0;
  padding: 16px 28px;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  animation: indexValuePropPulse 2.5s ease-in-out infinite;
}

body:not(.dark-theme) .index-value-prop-hero {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

@keyframes indexValuePropPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.15) inset; }
  50% { opacity: 0.96; transform: scale(1.02); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2) inset; }
}

/* ========== 商业转化：首屏 Hero + 信任条 + 吸底 CTA ========== */
.index-hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  margin-bottom: 1.5rem;
}
.index-hero-title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.index-hero-highlight {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.2) 100%);
  padding: 0.15em 0.5em;
  border-radius: 8px;
  margin-left: 0.15em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.index-hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.75rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.index-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.btn-hero-cta {
  padding: 14px 28px;
  font-size: 1.05rem;
  min-height: 52px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.35);
}
.btn-hero-cta:hover {
  box-shadow: 0 10px 32px rgba(102, 126, 234, 0.45);
}
.index-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}
.index-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.index-trust-item i {
  color: rgba(255,255,255,0.95);
  font-size: 1rem;
}
body:not(.dark-theme) .index-hero-title,
body:not(.dark-theme) .index-hero-sub,
body:not(.dark-theme) .index-trust-item { color: #fff; }
body:not(.dark-theme) .index-hero-highlight { background: rgba(255,255,255,0.3); }

/* 首页「推荐」套餐卡片 */
.service-card-featured {
  border: 2px solid rgba(102, 126, 234, 0.4);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.service-card-featured:hover {
  box-shadow: 0 20px 48px rgba(102, 126, 234, 0.28), 0 0 56px rgba(102, 126, 234, 0.15);
}
.service-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 移动端吸底 CTA 条：仅首页、小屏显示 */
.sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}
.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: rgba(255,255,255,0.95);
  color: #667eea;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sticky-cta-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: #5a67d8;
}
.sticky-cta-btn i { font-size: 1.1rem; }
@media (max-width: 768px) {
  body:has(.index-hero) .sticky-cta-bar { display: block; }
  .main-content { padding-bottom: 80px; }
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #667eea;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 101;
}

.mobile-menu-toggle:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.1);
}

.mobile-menu-toggle i {
  display: block;
}

/* 移动端菜单遮罩：默认完全隐藏，仅 .active 时显示 */
.mobile-menu-overlay {
  display: none;
}

.mobile-menu-overlay.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 1;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

/* 移动端导航菜单：默认完全隐藏，仅 .active 时显示 */
.mobile-nav {
  display: none;
}

.mobile-nav.active {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
  overflow-y: auto;
  padding: 80px 0 20px;
}

.mobile-nav-header {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  position: relative;
}

.mobile-nav-header .logo {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-nav-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.12));
  color: #667eea;
  transform: translateX(5px);
}

.mobile-nav-link i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.mobile-nav-actions {
  padding: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 移动端菜单内语言切换 - 浅色背景适配 */
.mobile-nav-actions .lang-switcher {
  background: rgba(102, 126, 234, 0.12);
  align-self: stretch;
  justify-content: center;
}
.mobile-nav-actions .lang-switcher select {
  width: 100%;
  min-width: 0;
}
.mobile-nav-actions .lang-switcher button {
  color: #5a67d8;
  flex: 1;
}
.mobile-nav-actions .lang-switcher button:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.15);
}
.mobile-nav-actions .lang-switcher button.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.35), rgba(118, 75, 162, 0.3));
  color: #4338ca;
}

.mobile-nav-actions .btn {
  width: 100%;
  justify-content: center;
}

/* RTL 优化（如阿拉伯语） */
html[dir='rtl'] .header,
html[dir='rtl'] .main-content,
html[dir='rtl'] .footer,
html[dir='rtl'] .modal,
html[dir='rtl'] .notification {
  direction: rtl;
}

html[dir='rtl'] .header-actions {
  flex-direction: row-reverse;
}

html[dir='rtl'] .nav,
html[dir='rtl'] .mobile-nav-links {
  direction: rtl;
}

html[dir='rtl'] .nav-link,
html[dir='rtl'] .mobile-nav-link {
  flex-direction: row-reverse;
}

html[dir='rtl'] .notification {
  right: auto;
  left: 20px;
}

html[dir='rtl'] .mobile-nav.active {
  right: auto;
  left: 0;
}

/* 按钮文本在移动端隐藏 */
.btn-text {
  display: inline;
}

/* Responsive */
@media (max-width: 768px) {
  /* 隐藏汉堡菜单按钮（移动端直接展示导航） */
  .mobile-menu-toggle {
    display: none !important;
  }

  /* 头部：纵向排列，第1行 logo+按钮，第2行导航条 */
  .header {
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .logo {
    font-size: 1.4rem;
    flex: 1;
    min-width: 0;
  }

  .logo i {
    width: 3.2rem;
    height: 3.2rem;
  }

  /* 操作按钮在 logo 右侧同一行，显示文字 */
  .header-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
  }

  .header-actions .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    min-height: 40px;
  }

  .header-actions .btn .btn-text {
    display: inline;
  }

  /* 导航栏：独占一行，横向滚动，显示不下的向右滑动 */
  .nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding-bottom: 2px;
    width: 100%;
    order: 3; /* 放到最后一行 */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 0.82rem;
    flex-shrink: 0;
    white-space: nowrap;
    gap: 4px;
  }

  .nav-link i {
    font-size: 0.85rem;
  }

  /* 导航栏右侧渐变+箭头提示可继续滑动 */
  .nav::after {
    content: '\f054'; /* Font Awesome chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: sticky;
    right: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 8px 0 20px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.95) 40%);
    color: #667eea;
    font-size: 0.7rem;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  /* 滚动到底时隐藏箭头 */
  .nav.nav-scrolled-end::after {
    opacity: 0;
  }

  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .main-content {
    padding: 24px 0 40px;
  }

  /* 防止 iOS 输入框聚焦时自动缩放 */
  .form-group input,
  .form-group select,
  .form-group textarea,
  .input-group input,
  .input-group select {
    font-size: 16px !important;
  }

  .mobile-nav.active {
    padding-top: max(80px, calc(60px + env(safe-area-inset-top)));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .mobile-nav-link {
    padding: 16px 20px;
  }

  .mobile-menu-toggle {
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
  }

  .footer {
    padding: 40px 0 max(24px, env(safe-area-inset-bottom));
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }

  .footer-content {
    gap: 24px;
    margin-bottom: 24px;
  }

  .preview-table {
    -webkit-overflow-scrolling: touch;
  }

  .notification {
    top: max(20px, env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    margin: 0 auto;
    max-width: 100%;
  }

  #wechat-qr-modal {
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }

  /* 头部第一行：logo + 按钮横向排列 */
  .header > .logo,
  .header > .header-actions {
    flex-shrink: 0;
  }

  .main-content {
    padding: 24px 0;
  }

  .bazi-input-section,
  .bazi-result-section {
    padding: 24px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-large {
    width: 100%;
    max-width: 300px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .message-content {
    max-width: 80%;
  }

  /* Enhanced responsive */
  .modal.modal-lg {
    max-width: 95%;
  }

  .pricing-plans {
    flex-direction: column;
  }

  .tool-selection {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    flex-direction: column;
    gap: 20px;
  }

  .image-options {
    flex-direction: column;
  }

  .analysis-buttons {
    justify-content: center;
  }
}

/* 八字排盘样式：信息框与结果块等高 */
.bazi-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-top: 30px;
  align-items: stretch;
}
.bazi-input-section,
.bazi-result-section {
  min-height: 480px;
}

/* 首页样式 */
.hero-section {
  text-align: center;
  padding: 60px 0 40px;
  margin-bottom: 50px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-title i {
  font-size: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #666;
  line-height: 1.8;
}

.services-section {
  margin-bottom: 72px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.service-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  border-radius: 24px 24px 0 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 48px 80px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.85),
    0 0 48px rgba(102, 126, 234, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
  border-color: rgba(255, 255, 255, 0.8);
}

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

.service-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.5) 0%, rgba(102, 126, 234, 0.15) 50%, rgba(118, 75, 162, 0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
  box-shadow:
    0 4px 0 rgba(102, 126, 234, 0.2),
    0 8px 20px rgba(102, 126, 234, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.service-card-icon i {
  font-size: 2.25rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-icon {
  transform: scale(1.08) translateY(-2px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(102, 126, 234, 0.22) 50%, rgba(118, 75, 162, 0.18) 100%);
  box-shadow:
    0 6px 0 rgba(102, 126, 234, 0.25),
    0 14px 32px rgba(102, 126, 234, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2d2d2d;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-card:hover .service-card-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card-desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 22px;
  flex: 1;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.service-card-link {
  color: #667eea;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.12) 0%, rgba(102, 126, 234, 0.06) 100%);
  box-shadow: 0 2px 0 rgba(102, 126, 234, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.service-card:hover .service-card-link {
  color: #5a67d8;
  gap: 10px;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.1) 100%);
  box-shadow: 0 3px 0 rgba(102, 126, 234, 0.2), 0 4px 12px rgba(102, 126, 234, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.service-card:hover .service-card-link i {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-title i {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }

  .service-card {
    padding: 28px 22px;
    min-height: 140px;
  }

  .service-card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
  }

  .service-card-icon i {
    font-size: 2rem;
  }

  .service-card-title {
    font-size: 1.35rem;
  }

  .service-card-desc {
    font-size: 0.9rem;
  }

  .tdwz-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tdwz-row .btn {
    width: 100%;
  }
}

/* 其他工具通用样式 */
/* 工具页（命卦/姓名/车牌/吉日等）：信息框与结果块等高 */
.tool-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-top: 30px;
  align-items: stretch;
}
.tool-input-section,
.tool-result-section {
  min-height: 480px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--tdwz-card-radius);
  padding: 32px;
  box-shadow: var(--tdwz-shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: var(--tdwz-transition);
}

.tool-input-section::before,
.tool-result-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tdwz-gradient);
  border-radius: var(--tdwz-card-radius) var(--tdwz-card-radius) 0 0;
}

.tool-input-section:hover,
.tool-result-section:hover {
  box-shadow: var(--tdwz-shadow-lg);
  transform: translateY(-2px);
}

.placeholder-result {
  text-align: center;
  padding: 40px 20px;
}

.placeholder-icon {
  margin-bottom: 20px;
  color: var(--tdwz-primary);
}

.placeholder-result h4 {
  margin-bottom: 15px;
  color: #333;
}

.placeholder-result ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.placeholder-result li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.method-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

.method-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.yao-selection {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.yao-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

.yao-options {
  display: flex;
  gap: 10px;
}

.btn-yao {
  padding: 8px 15px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-yao:hover {
  border-color: var(--tdwz-primary);
}

.btn-yao.yang {
  background: var(--tdwz-primary);
  color: white;
  border-color: var(--tdwz-primary);
}

.btn-yao.yin {
  background: #6a11cb;
  color: white;
  border-color: #6a11cb;
}

.upload-area {
  border: 2px dashed #ddd;
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s;
  margin-bottom: 20px;
}

.upload-area:hover {
  border-color: var(--tdwz-primary);
}

.upload-area i {
  font-size: 3rem;
  color: #999;
  margin-bottom: 15px;
}

.account-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  margin-top: 30px;
}

.account-sidebar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--tdwz-card-radius);
  padding: 28px;
  box-shadow: var(--tdwz-shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.account-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tdwz-gradient);
  border-radius: var(--tdwz-card-radius) var(--tdwz-card-radius) 0 0;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.profile-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--tdwz-primary);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.profile-info h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.account-type {
  color: #666;
  font-size: 0.9rem;
  margin-top: 5px;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-nav-link {
  padding: 12px 15px;
  text-decoration: none;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  transition: all 0.3s;
}

.account-nav-link:hover,
.account-nav-link.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.08));
  color: var(--tdwz-primary);
  font-weight: 500;
}

.account-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--tdwz-card-radius);
  padding: 32px;
  box-shadow: var(--tdwz-shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.account-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tdwz-gradient);
  border-radius: var(--tdwz-card-radius) var(--tdwz-card-radius) 0 0;
}

.account-tab {
  display: none;
}

.account-tab.active {
  display: block;
}

/* Admin page helpers (reuses existing palette) */
.admin-card {
  padding: 14px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  margin-bottom: 12px;
}

.admin-muted {
  color: #666;
}

.is-hidden {
  display: none !important;
}

.admin-login-hint {
  margin-top: 10px;
  font-size: 0.9rem;
}

.admin-form-full {
  max-width: 100%;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
}

.admin-form-group-tight {
  margin-bottom: 0;
}

.admin-mt-12 {
  margin-top: 12px;
}

.admin-my-12 {
  margin: 12px 0;
}

.admin-mb-12 {
  margin-bottom: 12px;
}

.admin-mb-16 {
  margin-bottom: 16px;
}

.admin-hr {
  margin: 18px 0;
}

.admin-page-info {
  align-self: center;
}

.profile-form,
.settings-form {
  max-width: 500px;
}

.checkbox-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.history-list,
.saved-list {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* 紫微斗数结果样式 */
.ziwei-result {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.stars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.star-item {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s;
}

.star-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.star-item i {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--tdwz-primary);
}

/* 六爻占卜结果样式 */
.divination-result {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.hexagram-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.yao-line {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

.yao-number {
  min-width: 50px;
  font-weight: 600;
  color: #666;
}

.yao-symbol {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.hexagram-name {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 15px;
}

/* 姓名测试结果样式 */
.name-result {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.five-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.grid-item {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.grid-label {
  display: block;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}

.grid-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tdwz-primary);
}

.grid-desc {
  display: block;
  color: #666;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* 风水分析结果样式 */
.fengshui-result {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tdwz-primary), #6a11cb);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  color: white;
}

.score-value {
  font-size: 2rem;
  font-weight: 700;
}

.score-level {
  font-size: 1.1rem;
  margin-top: 5px;
}

.fengshui-suggestion ul {
  list-style: none;
  padding: 0;
}

.fengshui-suggestion li {
  padding: 10px 15px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fengshui-suggestion li:before {
  content: '•';
  color: var(--tdwz-primary);
  font-size: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .tool-container {
    grid-template-columns: 1fr;
  }

  .account-container {
    grid-template-columns: 1fr;
  }

  .stars-grid,
  .five-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stars-grid,
  .five-grid {
    grid-template-columns: 1fr;
  }

  .yao-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .yao-options {
    width: 100%;
    justify-content: space-between;
  }
}
.bazi-input-section {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bazi-input-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  border-radius: 20px 20px 0 0;
}

.bazi-input-section:hover {
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.bazi-input-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.bazi-input-section input[type='date'],
.bazi-input-section select,
.bazi-input-section input[type='text'],
.bazi-input-section input[type='email'] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e8ecf0;
  border-radius: var(--tdwz-input-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--tdwz-transition);
  background: rgba(255,255,255,0.95);
}

.bazi-input-section input:focus,
.bazi-input-section select:focus {
  outline: none;
  border-color: var(--tdwz-primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

/* 注册表单美化 */
#register-fields {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
}

.register-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
  border: 2px solid rgba(255, 193, 7, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideDown 0.3s ease-out;
}

.register-warning i {
  color: #ff9800;
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.register-warning p {
  margin: 0;
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.register-warning strong {
  color: #ff9800;
  font-weight: 600;
}

/* 必填标记 */
.required {
  color: #e74c3c;
  font-weight: 600;
}

/* 只读字段样式 */
input[readonly],
select[disabled] {
  background-color: #f5f5f5 !important;
  cursor: not-allowed !important;
  opacity: 0.8;
}

input[readonly]:focus,
select[disabled]:focus {
  border-color: #e0e5ec !important;
  box-shadow: none !important;
}

.gender-option:has(input[disabled]) {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

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

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

.forgot-password-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #667eea;
  text-decoration: none;
}
.forgot-password-link:hover { text-decoration: underline; }

.sms-code-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.sms-code-row input {
  flex: 1;
  min-width: 0;
}
.sms-code-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.optional-hint {
  font-size: 0.85em;
  color: #999;
  font-weight: normal;
}

#register-fields label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

#register-fields input[type="text"],
#register-fields input[type="date"],
#register-fields select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e5ec;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: #333;
}

#register-fields input[type="text"]:focus,
#register-fields input[type="date"]:focus,
#register-fields select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 注册表单中的性别选项样式 */
#register-fields .gender-options {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

#register-fields .gender-option {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #e8ecf0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #555;
}

#register-fields .gender-option:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

#register-fields .gender-option input[type="radio"] {
  margin: 0;
  cursor: pointer;
  accent-color: #667eea;
}

#register-fields .gender-option:has(input[type="radio"]:checked) {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  color: #667eea;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

#register-fields .gender-option span {
  display: flex;
  align-items: center;
  gap: 6px;
}

#register-fields .gender-option i {
  font-size: 1.1rem;
}

.gender-options {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.gender-options label {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #e8ecf0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gender-options label:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.gender-options input[type="radio"] {
  margin: 0;
  cursor: pointer;
  accent-color: #667eea;
}

.gender-options input[type="radio"]:checked {
  accent-color: #667eea;
}

.gender-options label:has(input[type="radio"]:checked) {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  color: #667eea;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: normal;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.checkbox-label:hover {
  background: rgba(102, 126, 234, 0.05);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #667eea;
  border-radius: 4px;
}

.checkbox-label input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

#calculate-bazi {
  width: 100%;
  margin-top: 20px;
}

.bazi-result-section {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 结果块内卡片与信息框等高协调：卡片填满结果区并设最小高度 */
.bazi-result-section .interpretation {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.bazi-result-section .interpretation-content {
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
}

.bazi-result-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  border-radius: 20px 20px 0 0;
}

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

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  position: relative;
}

.result-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.result-header h3 {
  font-size: 2.2rem;
  color: #333;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.bazi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 35px;
}

.bazi-column {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bazi-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 15px 15px 0 0;
}

.bazi-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.bazi-column h4 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  position: relative;
}

.bazi-column h4 i {
  color: #667eea;
  font-size: 1.2rem;
}

.bazi-pillar {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.bazi-pillar:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.pillar-label {
  font-weight: 600;
  color: #666;
  min-width: 70px;
  font-size: 0.95rem;
}

.pillar-content {
  font-size: 2rem;
  font-weight: 800;
  color: #333;
  margin-left: auto;
  font-family: 'Noto Sans SC', sans-serif;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shen-grid,
.dayun-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shen-item,
.dayun-item {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.shen-item:hover,
.dayun-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shen-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
  opacity: 0.7;
}

.wuxing-analysis {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 35px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.wuxing-analysis::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #90ee90, #87ceeb, #ff6347, #d2b48c);
  border-radius: 15px 15px 0 0;
}

.wuxing-analysis h4 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.wuxing-analysis h4 i {
  color: #ff6347;
  font-size: 1.2rem;
}

.wuxing-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wuxing-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.wuxing-bar:hover {
  transform: scale(1.02);
}

.wuxing-label {
  font-weight: 700;
  min-width: 45px;
  text-align: center;
  font-size: 1.1rem;
  color: #555;
}

.wuxing-bar-container {
  flex: 1;
  height: 24px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.wuxing-bar-fill {
  height: 100%;
  border-radius: 12px;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.wuxing-bar-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.wuxing-fill-jin { background: linear-gradient(135deg, #ffd700, #ffed4e); }
.wuxing-fill-mu { background: linear-gradient(135deg, #90ee90, #32cd32); }
.wuxing-fill-shui { background: linear-gradient(135deg, #87ceeb, #4682b4); }
.wuxing-fill-huo { background: linear-gradient(135deg, #ff6347, #dc143c); }
.wuxing-fill-tu { background: linear-gradient(135deg, #d2b48c, #daa520); }

.wuxing-value {
  min-width: 55px;
  font-weight: 700;
  text-align: right;
  font-size: 1.1rem;
  color: #333;
}

.shensha-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 35px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.shensha-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f, #4ecdc4, #45b7d1);
  border-radius: 15px 15px 0 0;
}

.shensha-section h4 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.shensha-section h4 i {
  color: #ff6b6b;
  font-size: 1.2rem;
}

.shensha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
}

.shensha-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.shensha-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f, #4ecdc4, #45b7d1);
  border-radius: 12px 12px 0 0;
}

.shensha-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.shensha-item i {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #667eea;
}

.shensha-item span {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}
}

.shensha-item i {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.shensha-item.good {
  color: #4caf50;
  border: 2px solid #4caf50;
}

.shensha-item.neutral {
  color: #ff9800;
  border: 2px solid #ff9800;
}

.shensha-item.bad {
  color: #f44336;
  border: 2px solid #f44336;
}

.interpretation {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* 各版块结果块内卡片与信息框协调：统一最小高度 */
.bazi-result-section .interpretation,
.tool-result-section .interpretation {
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.bazi-result-section .interpretation-content,
.tool-result-section .interpretation-content {
  flex: 1;
  min-height: 280px;
  max-height: none;
}
.bazi-result-section .placeholder-result,
.tool-result-section .placeholder-result {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.interpretation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 15px 15px 0 0;
}

.interpretation h4 {
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.interpretation h4 i {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.3rem;
  animation: pulse 2s ease-in-out infinite;
}

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

/* 命理解读区域：支持约 5 万字，可滚动，支持纯文本与富文本 */
.interpretation-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  padding: 32px;
  border-radius: 16px;
  line-height: 2;
  white-space: pre-wrap;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  color: #444;
  transition: all 0.3s ease;
  /* 支持 5 万字长文：最大高度内滚动，不截断 */
  max-height: 72vh;
  min-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


.interpretation-content:hover {
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.interpretation-content p {
  margin-bottom: 18px;
  text-align: justify;
  position: relative;
  padding-left: 20px;
}

.interpretation-content p:first-of-type {
  margin-top: 0;
}

.interpretation-content p::before {
  content: '❖';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

/* 姓名分析结果：简洁排版 */
.interpretation-content .name-result-compact p::before {
  content: none;
}

/* 姓名分析结果时减少顶部留白 */
.interpretation:has(.name-result-wrap) h4 {
  margin-bottom: 10px;
}

.interpretation-content:has(.name-result-wrap) {
  padding-top: 6px;
}

.name-result-wrap {
  margin-top: 0;
  padding-top: 0;
}

.name-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 0.98rem;
}

.name-result-meta span {
  display: inline;
}

.name-result-meta .meta-label {
  color: #888;
  margin-right: 4px;
}

.name-result-meta .meta-val {
  color: #333;
  font-weight: 500;
}

.name-result-text {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 1rem;
  color: #444;
  text-align: justify;
}

/* 车牌分析结果：简洁双模块 */
.interpretation-content .plate-result-wrap p::before {
  content: none;
}

.interpretation:has(.plate-result-wrap) h4 {
  margin-bottom: 10px;
}

.interpretation-content:has(.plate-result-wrap) {
  padding-top: 6px;
}

.plate-result-wrap {
  margin-top: 0;
  padding-top: 0;
}

.plate-result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.06));
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.12);
}

.plate-result-header .plate-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  color: #fff;
  font-size: 1.4rem;
}

.plate-result-header .plate-label {
  font-size: 0.9rem;
  color: #888;
  margin-right: 4px;
}

.plate-result-header .plate-val {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.08em;
}

.plate-result-analysis {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 1rem;
  color: #444;
  text-align: justify;
  padding: 16px 18px;
  background: rgba(248, 250, 252, 0.9);
  border-radius: 12px;
  border-left: 4px solid rgba(102, 126, 234, 0.4);
}

/* 命理解读富文本格式：标题、列表等 */
.interpretation-content h1, .interpretation-content h2, .interpretation-content h3,
.interpretation-content h4, .interpretation-content h5, .interpretation-content h6 {
  margin: 1.2em 0 0.6em;
  color: #333;
  line-height: 1.4;
}
.interpretation-content h1 { font-size: 1.5rem; }
.interpretation-content h2 { font-size: 1.35rem; }
.interpretation-content h3 { font-size: 1.2rem; }
.interpretation-content ul, .interpretation-content ol {
  margin: 0.8em 0;
  padding-left: 1.8em;
}
.interpretation-content li { margin-bottom: 0.4em; }
.interpretation-content hr { margin: 1.5em 0; border: 0; border-top: 1px solid rgba(0,0,0,0.1); }
.interpretation-content blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  border-left: 4px solid #667eea;
  background: rgba(102, 126, 234, 0.06);
  border-radius: 0 8px 8px 0;
}

/* 算法信息卡片 */
.algorithm-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.info-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.info-card i {
  font-size: 2.5rem;
  color: var(--tdwz-primary);
  margin-bottom: 15px;
}

.info-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.info-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.algorithm-note {
  margin-top: 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(240, 247, 255, 0.9), rgba(235, 245, 255, 0.8));
  border-radius: 12px;
  border-left: 4px solid #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.algorithm-note:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateX(2px);
}

.algorithm-note p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  margin: 0;
}

.algorithm-note i {
  color: var(--tdwz-primary);
  flex-shrink: 0;
}

.result-actions {
  display: flex;
  gap: 10px;
}

.wuxing-summary {
  margin-top: 15px;
  padding: 12px 15px;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
}

.wuxing-summary p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.95rem;
}

.wuxing-summary strong {
  color: #333;
}

.interpretation-content .algorithm-note {
  margin-top: 15px;
  background: #f9f9f9;
  border-left-color: #ff9800;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }
}

@media (max-width: 992px) {
  .bazi-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bazi-input-section,
  .bazi-result-section {
    min-height: 0;
  }
  .tool-input-section,
  .tool-result-section {
    min-height: 0;
  }

  .bazi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shensha-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .algorithm-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .algorithm-info {
    grid-template-columns: 1fr;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .result-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* 480px 以下：小屏手机优化 */
@media (max-width: 480px) {
  .container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .header {
    padding: 10px 0;
    gap: 6px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo i {
    width: 2.8rem;
    height: 2.8rem;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.75rem;
    gap: 3px;
  }

  .nav-link i {
    font-size: 0.75rem;
  }

  .header-actions .btn {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .main-content {
    padding: 16px 0 32px;
  }

  .quick-tool-content {
    padding: 20px 16px;
  }

  .quick-tool-header {
    padding: 24px 16px;
  }

  .quick-tool-header h2 {
    font-size: 1.5rem;
  }

  .bazi-container {
    flex-direction: column;
    gap: 20px;
  }

  .dayun-item,
  .tdwz-dayun-item-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dayun-item .btn,
  .tdwz-dayun-item-row .btn {
    width: 100%;
  }

  /* 微信支付二维码弹窗：小屏全宽 */
  #wechat-qr-modal > div {
    max-width: 100%;
    margin: 16px;
  }

  #wechat-qr-img {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 576px) {
  .bazi-grid {
    grid-template-columns: 1fr;
  }

  .shensha-grid {
    grid-template-columns: 1fr;
  }

  .bazi-column {
    padding: 15px;
  }

  .result-header h3 {
    font-size: 1.5rem;
  }

  .bazi-column h4 {
    font-size: 1.2rem;
  }

  .bazi-pillar {
    padding: 12px 16px;
  }

  .pillar-content {
    font-size: 1.5rem;
  }

  .wuxing-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .wuxing-bar-container {
    width: 100%;
    height: 20px;
  }

  .wuxing-value {
    align-self: flex-end;
    margin-top: -25px;
  }

  .interpretation-content {
    padding: 18px;
    font-size: 0.95rem;
    max-height: 60vh;
  }

  .shensha-item {
    padding: 15px 10px;
  }

  .shensha-item i {
    font-size: 1.3rem;
  }
}

/* TDWZ small utilities (avoid inline styles) */
.tdwz-center-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  flex-direction: column;
  gap: 12px;
}

.tdwz-hero {
  text-align: center;
  max-width: 520px;
  padding: 24px;
}

.tdwz-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tdwz-dayun-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tdwz-max-520 {
  max-width: 520px;
}

.tdwz-mt-16 {
  margin-top: 16px;
}

.tdwz-mt-8 {
  margin-top: 8px;
}

.tdwz-m0 {
  margin: 0;
}

.tdwz-m0-0-8 {
  margin: 0 0 8px;
}

.tdwz-m0-0-12 {
  margin: 0 0 12px;
}

.tdwz-scroll-220 {
  max-height: 220px;
  overflow: auto;
}

.tdwz-scroll-420 {
  max-height: 420px;
  overflow: auto;
}

.tdwz-flex-1-min-220 {
  flex: 1;
  min-width: 220px;
}

.tdwz-inline-flex {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tdwz-justify-center {
  justify-content: center;
}

.tdwz-hidden {
  display: none;
}

/* ===================== Pricing Page（商业强化） ===================== */
.pricing-hero {
  text-align: center;
  padding: 2rem 16px 2rem;
  margin-bottom: 0.5rem;
}
.pricing-hero h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.pricing-hero p {
  color: var(--text-muted, #666);
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}
.pricing-hero-sub { margin-bottom: 6px !important; }
.pricing-hero-benefit {
  font-size: 0.9rem;
  color: var(--text-muted, #555);
  margin: 0 0 4px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pricing-hero-benefit i { color: #27ae60; }
.pricing-free-badge {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(102,126,234,.15), rgba(118,75,162,.12));
  border: 1px solid rgba(102,126,234,.3);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text, #333);
  box-shadow: 0 2px 12px rgba(102,126,234,.12);
}
.pricing-free-badge i { color: #667eea; margin-right: 6px; }
.pricing-credits-detail { font-size: 12px; color: var(--text-muted, #888); }

.pricing-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 12px;
}
.pricing-section { margin-bottom: 32px; }
.pricing-section-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-left: 4px;
  color: var(--text, #333);
}
.pricing-section-title i { margin-right: 6px; }

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.pricing-cards-single { grid-template-columns: 1fr; max-width: 380px; }

.pricing-card {
  position: relative;
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 16px;
  padding: 24px 20px 20px;
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(102,126,234,.15);
}
.pricing-card-pro {
  border-color: rgba(240,147,43,.35);
  background: linear-gradient(160deg, var(--bg, #fff) 60%, rgba(240,147,43,.06));
}
.pricing-card-trial {
  border-color: rgba(102,126,234,.4);
  background: linear-gradient(160deg, var(--bg, #fff) 60%, rgba(102,126,234,.07));
}
.pricing-card-recommend {
  border: 2px solid rgba(102,126,234,.5);
  box-shadow: 0 8px 32px rgba(102,126,234,.22), 0 0 0 1px rgba(102,126,234,.15);
  transform: scale(1.02);
}
.pricing-card-recommend:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 48px rgba(102,126,234,.28), 0 0 0 1px rgba(102,126,234,.2);
}
.pricing-recommend-tag {
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px 6px 14px;
  border-radius: 0 16px 0 14px;
  box-shadow: 0 2px 12px rgba(102,126,234,.4);
}

.pricing-card-tier {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted, #888);
}
.pricing-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #333);
  margin-bottom: 12px;
  line-height: 1.4;
}
.pricing-badge {
  display: inline-block;
  background: #ff4757;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}
.pricing-card-price {
  margin-bottom: 16px;
  line-height: 1;
}
.pricing-price-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text, #222);
  letter-spacing: -1px;
}
.pricing-price-unit {
  font-size: 14px;
  color: var(--text-muted, #999);
  margin-left: 2px;
}
.pricing-feat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.pricing-feat-list li {
  font-size: 13px;
  color: var(--text-muted, #666);
  padding: 3px 0;
}
.pricing-feat-list li i {
  color: #27ae60;
  width: 18px;
  text-align: center;
  margin-right: 4px;
}

.pricing-buy-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #0070ba, #003087);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.pricing-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,112,186,.3);
}
.pricing-buy-btn:active { transform: translateY(0); }
.pricing-buy-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.pricing-buy-btn i { margin-right: 6px; }

.pricing-card-pro .pricing-buy-btn {
  background: linear-gradient(135deg, #f0932b, #e17055);
}
.pricing-card-pro .pricing-buy-btn:hover {
  box-shadow: 0 6px 20px rgba(240,147,43,.35);
}

.pricing-card-lifetime {
  border: 2px solid #d63031;
  background: linear-gradient(160deg, var(--bg, #fff) 40%, rgba(214,48,49,.08));
  box-shadow: 0 8px 32px rgba(214,48,49,.15);
}
.pricing-card-lifetime:hover {
  box-shadow: 0 16px 48px rgba(214,48,49,.22);
  transform: translateY(-5px);
}
.pricing-card-lifetime .pricing-buy-btn {
  background: linear-gradient(135deg, #d63031, #e17055);
  font-size: 16px;
  padding: 14px;
}
.pricing-card-lifetime .pricing-buy-btn:hover {
  box-shadow: 0 8px 24px rgba(214,48,49,.4);
}
.pricing-card-lifetime .pricing-price-num {
  background: linear-gradient(135deg, #d63031, #e17055);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-card-trial .pricing-buy-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.pricing-card-trial .pricing-buy-btn:hover {
  box-shadow: 0 6px 20px rgba(102,126,234,.35);
}

.pricing-order-box {
  max-width: 600px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 12px;
  text-align: center;
}
.pricing-order-inner i { color: #667eea; margin-right: 6px; }
.pricing-order-inner span { font-size: 13px; color: var(--text-muted, #666); }
.pricing-order-actions { margin-top: 12px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.pricing-compare {
  max-width: 700px;
  margin: 0 auto 32px;
  padding: 0 12px;
}
.pricing-compare h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text, #333);
}
.pricing-compare h3 i { color: #667eea; margin-right: 6px; }
.pricing-compare-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border, #e8e8e8);
}
.pricing-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 400px;
}
.pricing-compare-table th {
  background: var(--bg-alt, #f8f9fa);
  padding: 10px 12px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid var(--border, #eee);
  color: var(--text, #333);
}
.pricing-compare-table th:first-child { text-align: left; }
.pricing-compare-table td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border, #f0f0f0);
  color: var(--text-muted, #666);
}
.pricing-compare-table td:first-child { text-align: left; font-weight: 500; color: var(--text, #333); }
.pricing-compare-table tbody tr:last-child td { border-bottom: none; }
.pricing-pay-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted, #999);
  text-align: center;
}
.pricing-pay-note i { color: #0070ba; margin-right: 4px; }

/* 购买套餐：顶部区域与功能对比在渐变背景上用白色文字 */
.pricing-hero h2 {
  -webkit-text-fill-color: #fff;
  color: #fff;
  background: none;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.pricing-hero p {
  color: rgba(255,255,255,.85);
}
.pricing-free-badge {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.3);
  color: #fff;
  backdrop-filter: blur(4px);
}
.pricing-free-badge i { color: #ffd700; }
.pricing-credits-detail { color: rgba(255,255,255,.7); }

.pricing-section-title {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.pricing-compare h3 {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.pricing-compare h3 i { color: #ffd700; }
.pricing-compare-table-wrap {
  border-color: rgba(255,255,255,.2);
}
.pricing-compare-table th {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-bottom-color: rgba(255,255,255,.15);
}
.pricing-compare-table td {
  color: rgba(255,255,255,.8);
  border-bottom-color: rgba(255,255,255,.08);
}
.pricing-compare-table td:first-child {
  color: #fff;
}
.pricing-pay-note {
  color: rgba(255,255,255,.7);
}
.pricing-pay-note i { color: #ffd700; }

/* 深色主题下微调：背景更暗，同样用白色文字 */
body.dark-theme .pricing-hero h2 { color: #f0f0f0; -webkit-text-fill-color: #f0f0f0; }
body.dark-theme .pricing-hero p { color: rgba(240,240,240,.7); }
body.dark-theme .pricing-free-badge { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #e0e0e0; }
body.dark-theme .pricing-section-title { color: #e0e0e0; }
body.dark-theme .pricing-compare h3 { color: #e0e0e0; }
body.dark-theme .pricing-compare-table th { background: rgba(255,255,255,.06); color: #ddd; }
body.dark-theme .pricing-compare-table td { color: rgba(255,255,255,.65); }
body.dark-theme .pricing-compare-table td:first-child { color: #ddd; }
body.dark-theme .pricing-pay-note { color: rgba(255,255,255,.5); }

@media (max-width: 600px) {
  .pricing-hero h2 { font-size: 22px; }
  .pricing-cards { grid-template-columns: 1fr; }
  .pricing-price-num { font-size: 28px; }
}
