/* 周易风水页面样式 */

.intro-section {
  padding: 60px 0 40px;
}

.intro-section h1 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.yijing-intro {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.yijing-intro h2 {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

.yijing-intro p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-indent: 2em;
  font-size: 1.05rem;
}

.divination-section {
  padding: 40px 0 80px;
}

.divination-section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.instruction {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.upload-container {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.upload-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
  color: white;
  border: none;
  padding: 32px 48px;
  border-radius: 16px;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.upload-btn svg {
  opacity: 0.9;
}

.preview-container {
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-container img {
  max-width: 100%;
  max-height: 400px;
  display: block;
  margin: 0 auto;
}

.analysis-result {
  max-width: 900px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease;
}

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

.image-info,
.hexagram-calculation,
.interpretation {
  background: var(--card-bg);
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.image-info h3,
.hexagram-calculation h3,
.interpretation h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.info-item .label {
  font-weight: 600;
  color: var(--text-secondary);
}

.info-item .value {
  color: var(--text-primary);
  font-weight: 500;
}

.yao-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.yao-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 1.1rem;
}

.hexagram-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.gua-section {
  text-align: center;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.gua-section h4 {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
}

.gua-symbol {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 12px;
  font-weight: bold;
}

.gua-name {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 600;
}

.main-hexagram {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-radius: 12px;
  margin-bottom: 20px;
}

.main-hexagram h4 {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 12px;
}

.hexagram-name {
  font-size: 2rem;
  color: var(--accent);
  font-weight: bold;
}

.change-info {
  text-align: center;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.interpretation-text {
  line-height: 1.8;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.interpretation-text h4 {
  color: var(--accent);
  font-size: 1.3rem;
  margin: 24px 0 12px;
}

.interpretation-text p {
  margin-bottom: 16px;
  text-indent: 2em;
}

@media (max-width: 768px) {
  .intro-section h1 {
    font-size: 2rem;
  }

  .yijing-intro {
    padding: 24px;
  }

  .hexagram-display {
    grid-template-columns: 1fr;
  }

  .upload-btn {
    padding: 24px 32px;
  }

  .image-info,
  .hexagram-calculation,
  .interpretation {
    padding: 20px;
  }
}
