#tool {
  background: transparent;
  color: #332e29;
}

.animated-background,
.background-dot,
#tool .introduction-section {
  display: none !important;
}

#tool .container {
  max-width: none;
  padding: 28px;
}

#tool .main-content {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 0;
  align-items: start;
}

#tool .card-shadow {
  background: #ffffff;
  border: 1px solid #e6dfd4;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(51, 46, 41, 0.08);
  transition: none;
}

#tool .card-shadow:hover {
  transform: none;
  box-shadow: 0 18px 40px rgba(51, 46, 41, 0.08);
}

#tool .divination-section,
#tool .result-section,
#tool .introduction-section {
  padding: 24px;
  border-left: 0;
}

#tool .divination-section {
  position: sticky;
  top: 24px;
}

#tool .section-title,
#tool .interpretation-title {
  font-family: 'Noto Serif SC', serif;
  color: #332e29;
}

#tool .section-title {
  margin-bottom: 18px;
  padding-bottom: 0;
  font-size: 1.5rem;
}

#tool .section-title::after {
  display: none;
}

#tool .divination-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#tool .divination-form::after {
  content: '基于当前时间自动推算月课 / 日课 / 时课，适合日常轻量参考。';
  color: #8d8377;
  font-size: 0.95rem;
  line-height: 1.7;
}

#tool .divine-btn,
#tool .reset-btn,
#tool .share-btn {
  width: 100%;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 1rem;
  justify-content: center;
  box-shadow: none;
}

#tool .divine-btn {
  background: linear-gradient(135deg, #9d2932 0%, #b6454e 100%);
}

#tool .divine-btn:hover,
#tool .reset-btn:hover,
#tool .share-btn:hover {
  transform: none;
}

#tool .reset-btn {
  background: #332e29;
}

#tool .share-btn {
  background: #f8f2ea !important;
  color: #9d2932 !important;
  border: 1px solid #9d2932;
}

#tool .result-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee7dc;
}

#tool .divination-time {
  color: #8d8377;
}

#tool .trigram-cards {
  gap: 12px;
  margin-bottom: 18px;
}

#tool .trigram-card {
  background: #faf7f1;
  border: 1px solid #ebe2d6;
  border-radius: 18px;
  padding: 18px;
  box-shadow: none;
}

#tool .trigram-card:hover {
  transform: none;
  box-shadow: none;
}

#tool .trigram-title {
  color: #8d8377;
  letter-spacing: 0.08em;
}

#tool .trigram-value {
  color: #9d2932;
}

#tool .interpretation {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #ece6dc;
  border-radius: 18px;
  border-left: 1px solid #ece6dc;
}

#tool .interpretation-title {
  margin-bottom: 10px;
  color: #9d2932;
}

#tool .hour-msg {
  color: #5f5549;
}

#ritual-modal {
  background: rgba(51, 46, 41, 0.72);
  backdrop-filter: blur(10px);
}

#ritual-modal .ritual-content {
  background: #ffffff;
  border: 1px solid #e6dfd4;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 48px rgba(26, 26, 46, 0.18);
}

#ritual-modal .ritual-content::before {
  display: none;
}

#ritual-modal .ritual-header h2,
#ritual-modal .focus-instruction,
#ritual-modal .countdown-text,
#ritual-modal .ritual-tips p {
  color: #332e29;
  text-shadow: none;
}

#ritual-modal .focus-image {
  color: #9d2932;
  filter: none;
}

#ritual-modal .countdown-number,
#ritual-modal .breathing-count {
  color: #9d2932;
  text-shadow: none;
}

#ritual-modal .breathing-instruction {
  color: #5f5549;
}

#loading-overlay {
  background: rgba(51, 46, 41, 0.62);
  backdrop-filter: blur(8px);
}

#loading-overlay .loading-spinner {
  background: #ffffff;
  border: 1px solid #e6dfd4;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 16px 36px rgba(51, 46, 41, 0.16);
}

#loading-overlay .loading-spinner p {
  color: #5f5549;
}

#loading-overlay .spinner {
  border-color: #efe5da;
  border-top-color: #9d2932;
}

@media (max-width: 960px) {
  #tool .container {
    padding: 18px;
  }

  #tool .main-content {
    grid-template-columns: 1fr;
  }

  #tool .divination-section {
    position: static;
  }
}

@media (max-width: 640px) {
  #tool .divination-section,
  #tool .result-section {
    padding: 18px;
  }

  #tool .trigram-cards {
    grid-template-columns: 1fr;
  }

  #ritual-modal .ritual-content {
    padding: 18px;
  }
}
