/* ===== AI 识番 ===== */
.page-ai-classify .page-main {
  min-height: 60vh;
}

.page-ai-classify .classify-section {
  padding: 0 1rem 2rem;
}

.page-ai-classify .classify-container {
  max-width: 42rem;
  margin: 0 auto;
}

.page-ai-classify .input-panel {
  margin-bottom: 1.5rem;
}

.page-ai-classify .form-actions {
  margin-top: 1.25rem;
  text-align: center;
}

.page-ai-classify .btn-large {
  padding: 0.75rem 2rem;
  font-size: 1.05rem;
}

/* 示例链接 */
.page-ai-classify .example-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(212, 167, 106, 0.12);
  border: 1px solid rgba(139, 115, 85, 0.25);
  border-radius: 8px;
}

.page-ai-classify .example-label {
  color: #8b7355;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.page-ai-classify .example-btn {
  padding: 0.4rem 0.85rem;
  background: #fffef9;
  border: 1px solid #d4a76a;
  border-radius: 20px;
  color: #5c4b37;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.page-ai-classify .example-btn:hover {
  background: #d4a76a;
  color: #fff;
}

/* 手动补充 */
.page-ai-classify .manual-panel {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #fff8e7;
  border: 2px dashed #d4a76a;
  border-radius: 12px;
  animation: ai-classify-slide-in 0.3s ease;
}

@keyframes ai-classify-slide-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-ai-classify .manual-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #8b7355;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8dcc8;
}

.page-ai-classify .manual-notice p {
  margin: 0;
  font-weight: 500;
}

.page-ai-classify .form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(139, 115, 85, 0.35);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 5rem;
  box-sizing: border-box;
}

/* 结果卡片 */
.page-ai-classify .result-panel {
  margin-top: 2rem;
}

.page-ai-classify .result-card {
  padding: 1.5rem;
  background: linear-gradient(145deg, #fffef9 0%, #f5ebe0 100%);
  border: 1px solid rgba(139, 115, 85, 0.25);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(60, 40, 20, 0.08);
}

.page-ai-classify .result-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}

.page-ai-classify .result-header.is-success {
  border-bottom-color: rgba(34, 139, 34, 0.35);
}

.page-ai-classify .result-header.is-fail {
  border-bottom-color: rgba(180, 80, 80, 0.35);
}

.page-ai-classify .result-icon {
  font-size: 2rem;
  line-height: 1;
}

.page-ai-classify .result-title-group {
  flex: 1;
}

.page-ai-classify .result-title {
  margin: 0;
  font-size: 1.25rem;
  color: #3d3428;
}

.page-ai-classify .result-subtitle {
  color: #7a6a58;
  font-size: 0.95rem;
  margin: 0.35rem 0 0;
}

.page-ai-classify .confidence-section {
  margin-bottom: 1.5rem;
}

.page-ai-classify .confidence-bar {
  height: 10px;
  background: rgba(139, 115, 85, 0.15);
  border-radius: 6px;
  overflow: hidden;
}

.page-ai-classify .confidence-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 0.4s ease;
}

.page-ai-classify .confidence-fill.high {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.page-ai-classify .confidence-fill.medium {
  background: linear-gradient(90deg, #eab308, #ca8a04);
}

.page-ai-classify .confidence-fill.low {
  background: linear-gradient(90deg, #f97316, #ea580c);
}

.page-ai-classify .confidence-text {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #5c4b37;
}

.page-ai-classify .result-section {
  margin-bottom: 1.25rem;
}

.page-ai-classify .section-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #5c4b37;
}

.page-ai-classify .section-content {
  margin: 0;
  line-height: 1.75;
  color: #3d3428;
}

.page-ai-classify .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-ai-classify .tag-item {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: rgba(212, 167, 106, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #5c4b37;
}

.page-ai-classify .tag-empty {
  color: #999;
  font-size: 0.9rem;
}

.page-ai-classify .work-info-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.page-ai-classify .work-cover {
  flex-shrink: 0;
}

.page-ai-classify .work-cover img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e8dcc8;
}

.page-ai-classify .work-detail {
  flex: 1;
  line-height: 1.8;
  color: #5c4b37;
}

.page-ai-classify .work-detail p {
  margin: 0.25rem 0;
}

.page-ai-classify .result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(139, 115, 85, 0.2);
}

/* 错误 */
.page-ai-classify .error-panel {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  text-align: center;
}

.page-ai-classify .error-message {
  margin: 0.5rem 0 1rem;
  color: #b91c1c;
}

/* 帮助区 */
.page-ai-classify .help-section {
  padding: 2rem 1rem 3rem;
  background: rgba(60, 40, 20, 0.03);
}

.page-ai-classify .help-title {
  text-align: center;
  margin: 0 0 1.5rem;
  color: #5c4b37;
}

.page-ai-classify .help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.page-ai-classify .help-card {
  padding: 1.25rem;
  background: #fffef9;
  border: 1px solid rgba(139, 115, 85, 0.2);
  border-radius: 10px;
  text-align: center;
}

.page-ai-classify .help-card h4 {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #3d3428;
}

.page-ai-classify .help-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #7a6a58;
  line-height: 1.55;
}

.page-ai-classify .help-icon {
  font-size: 1.75rem;
}

@media (max-width: 600px) {
  .page-ai-classify .work-info-inner {
    flex-direction: column;
  }

  .page-ai-classify .work-cover img {
    width: 100%;
    height: auto;
    max-width: 200px;
  }

  .page-ai-classify .example-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
