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

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;
}

.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;
  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;
  align-items: center;
  font-size: 1.9rem;
  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:hover {
  transform: scale(1.05);
}

.logo i {
  margin-right: 12px;
  font-size: 2.2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rotateYinYang 3s ease-in-out infinite;
}

@keyframes rotateYinYang {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.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; }
}

.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;
  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;
  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, #3a86ff, #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, #3a86ff, #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, #3a86ff, #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: #3a86ff;
}

.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: #3a86ff;
}

.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: #3a86ff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #bbb;
}

.footer-admin-link {
  margin-top: 10px;
  font-size: 0.85rem;
}

.admin-link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.admin-link:hover {
  color: #3a86ff;
}

/* 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: white;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn 0.3s ease;
}

.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);
  }
  body {
    margin: 0;
    font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0e0f1a, #12192c 50%, #0a0b16);
    color: #e5e7eb;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
}

.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: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3a86ff;
}

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

.forgot-password {
  color: #3a86ff;
  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;
}

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

.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: #3a86ff;
  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: #3a86ff;
}

.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: #3a86ff;
  margin-bottom: 20px;
}

.chart-placeholder {
  height: 200px;
  background: linear-gradient(90deg, #3a86ff, #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: #3a86ff;
}

.tool-option.selected {
  border-color: #3a86ff;
  background: #f0f7ff;
}

.tool-option i {
  font-size: 2.5rem;
  color: #3a86ff;
  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: #2196f3;
}

.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 #3a86ff;
}

.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: 20px;
  margin-top: 20px;
}

.plan {
  flex: 1;
  background: #f9f9f9;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  position: relative;
}

.plan.featured {
  border: 2px solid #3a86ff;
  background: #f0f7ff;
}

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

.plan h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

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

.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 {
  background: #3d3d3d;
  border-color: #555;
  color: #f0f0f0;
}

body.dark-theme .form-group label {
  color: #ccc;
}

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;
}

/* 移动端菜单按钮 */
.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;
}

/* 移动端菜单遮罩 */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.mobile-menu-overlay.active {
  opacity: 1;
}

/* 移动端导航菜单 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  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;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 80px 0 20px;
}

.mobile-nav.active {
  right: 0;
}

.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 .btn {
  width: 100%;
  justify-content: center;
}

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

/* Responsive */
@media (max-width: 768px) {
  /* 显示移动端菜单按钮 */
  .mobile-menu-toggle {
    display: block;
  }

  /* 显示移动端菜单遮罩 */
  .mobile-menu-overlay {
    display: block;
  }

  /* 隐藏桌面端导航 */
  .nav {
    display: none;
  }

  /* 显示移动端导航 */
  .mobile-nav {
    display: block;
  }

  /* 头部布局调整 */
  .header {
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo {
    font-size: 1.6rem;
    flex: 1;
  }

  .logo i {
    font-size: 1.8rem;
    margin-right: 8px;
  }

  .header-actions {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .header-actions .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-width: auto;
  }

  .header-actions .btn .btn-text {
    display: none;
  }
  .header {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
  }

  .nav-link {
    padding: 8px 14px;
    font-size: 0.85rem;
    flex: 1;
    min-width: 80px;
    justify-content: center;
  }

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

  .header-actions {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .header-actions .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    flex: 1;
    min-width: 80px;
  }

  .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;
}

/* 首页样式 */
.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: 60px;
}

.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(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  padding: 40px 30px;
  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;
  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: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

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

.service-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

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

.service-card:hover .service-card-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.service-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
  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: 1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

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

.service-card-link {
  color: #667eea;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.service-card:hover .service-card-link {
  color: #764ba2;
  gap: 12px;
}

.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;
  }

  .service-card {
    padding: 30px 20px;
  }
}

/* 其他工具通用样式 */
.tool-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-top: 30px;
}

.tool-input-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.tool-result-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

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

.placeholder-icon {
  margin-bottom: 20px;
  color: #3a86ff;
}

.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: #3a86ff;
}

.btn-yao.yang {
  background: #3a86ff;
  color: white;
  border-color: #3a86ff;
}

.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: #3a86ff;
}

.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: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.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: 2px solid #3a86ff;
}

.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: #f0f7ff;
  color: #3a86ff;
}

.account-content {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.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: #3a86ff;
}

/* 六爻占卜结果样式 */
.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: #3a86ff;
}

.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, #3a86ff, #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: #3a86ff;
  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;
}

.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'] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.bazi-input-section input:focus,
.bazi-input-section select:focus {
  outline: none;
  border-color: #3a86ff;
}

/* 注册表单美化 */
#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;
}

/* 只读字段样式 */
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;
}

#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;
}

.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;
}

.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); }
}

.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-line;
  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;
}

.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::before {
  content: '❖';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

/* 算法信息卡片 */
.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: #3a86ff;
  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: #3a86ff;
  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-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;
  }
}

@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;
  }

  .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;
}
