/* Premium Crystal Page Specific Styles */
.tools-crystal-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .tools-crystal-section {
    flex-direction: row;
    align-items: flex-start;
  }
}

.crystal-input-area {
  flex: 1;
  background: var(--background);
  padding: 30px;
  border-radius: 16px;
  min-width: 320px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(var(--theme-rgb), 0.1);
  position: relative;
  overflow: hidden;
}

.crystal-input-area::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #a18cd1 0%, #fbc2eb 100%);
}

/* Tabs */
.crystal-tabs {
  display: flex;
  margin-bottom: 25px;
  background: var(--classD, #f5f5f5);
  border-radius: 12px;
  padding: 5px;
}

.c-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 10px;
  font-size: 1.05rem;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s;
}

.c-tab-btn.active {
  background: #fff;
  color: var(--theme);
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.c-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.c-tab-content.active {
  display: block;
}

/* Quiz Styles */
.quiz-group .radio-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.quiz-group .radio-col label {
  background: var(--background);
  padding: 12px 15px;
  border: 1px solid var(--classC, #e0e0e0);
  border-radius: 8px;
  cursor: pointer;
  font-weight: normal;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-group .radio-col label:hover {
  border-color: var(--theme);
  background: rgba(var(--theme-rgb, 78,136,243), 0.02);
  transform: translateX(4px);
}

.quiz-group .radio-col input[type="radio"]:checked + label,
.quiz-group .radio-col label:has(input[type="radio"]:checked) {
  border-color: var(--theme);
  color: var(--theme);
  background: rgba(var(--theme-rgb, 78,136,243), 0.08);
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(var(--theme-rgb, 78,136,243), 0.1);
}

/* Result Area */
.crystal-result-area {
  flex: 2;
  background: var(--background-secondary);
  padding: 20px;
  border-radius: 8px;
  width: 100%;
}

.crystal-reason {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--background);
  border-left: 4px solid var(--theme);
  border-radius: 0 4px 4px 0;
}

/* Crystal Cards */
.crystal-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 992px) {
  .crystal-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.crystal-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* 占位图使用 CSS 渐变 */
.c-img-placeholder {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.c-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.c-name {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: var(--main);
}

.c-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.c-tag {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--background-secondary);
  color: var(--muted);
}
.c-tag.wx {
  background: rgba(var(--theme-rgb), 0.1);
  color: var(--theme);
}

.c-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
