/* ============================================
   攀岩线路解读 - Climbing Route Analyzer
   ============================================ */

:root {
  --primary: #E8651A;
  --primary-dark: #C8500F;
  --primary-light: #FF8A4C;
  --primary-glow: rgba(232, 101, 26, 0.25);
  --accent: #2ECC71;
  --accent-dark: #27AE60;
  --warning: #F39C12;
  --danger: #E74C3C;
  --info: #3498DB;

  --bg-body: #0F1923;
  --bg-header: #162231;
  --bg-card: #1A2D3D;
  --bg-card-alt: #1E3345;
  --bg-input: #0D1520;
  --bg-hover: #223A4E;

  --border: #2A4055;
  --border-light: #344D63;

  --text-primary: #E8ECF1;
  --text-secondary: #8FA3B5;
  --text-muted: #5A7080;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);

  --transition: 0.3s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ========== Header ========== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { font-size: 28px; }

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.logo-text p {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-reset {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-reset:hover {
  background: var(--bg-hover);
  color: var(--primary);
  border-color: var(--primary);
}

/* Steps Bar */
.steps-bar {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px 12px;
  display: flex;
  align-items: center;
  gap: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
}

.step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  transition: var(--transition);
}

.step.active { color: var(--primary); }
.step.active span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.step.done { color: var(--accent); }
.step.done span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 6px;
  transition: var(--transition);
}

.step-line.done { background: var(--accent); }

/* ========== Main ========== */
.app-main {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px 100px;
}

/* ========== Step Panels ========== */
.step-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.step-panel.active { display: block; }

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

.panel-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.panel-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.panel-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-header h2 i { color: var(--primary); }

.panel-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ========== Upload Zone ========== */
.upload-zone {
  margin: 20px;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(232, 101, 26, 0.05);
}

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

.upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.upload-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.upload-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.upload-preview {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.upload-actions {
  padding: 0 20px 20px;
  display: flex;
  gap: 12px;
}

/* ========== Tips Box ========== */
.tips-box {
  margin: 0 20px 20px;
  padding: 16px;
  background: rgba(232, 101, 26, 0.08);
  border: 1px solid rgba(232, 101, 26, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.tips-box > i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.tips-box strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.tips-box ul {
  margin: 4px 0 0 16px;
}

.tips-box li { margin-bottom: 2px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  flex: 1;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-outline:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-light); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  flex: 1;
}

.btn-accent:hover { background: var(--accent-dark); }

/* ========== Forms ========== */
.param-form, .eval-form {
  padding: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-group .unit {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}

.form-group input[type="number"],
.form-group input[type="text"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font);
  transition: var(--transition);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238FA3B5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions {
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--border);
}

/* Toggle Group */
.toggle-group {
  display: flex;
  gap: 12px;
}

.toggle-btn {
  flex: 1;
  cursor: pointer;
}

.toggle-btn input { display: none; }

.toggle-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.toggle-btn input:checked + span {
  border-color: var(--primary);
  background: rgba(232, 101, 26, 0.1);
  color: var(--primary);
}

/* Range Slider */
input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  margin-top: 8px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== Wall Preview ========== */
.wall-preview {
  margin: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.wall-preview img {
  width: 100%;
  display: block;
}

/* ========== Wall Info Card ========== */
.wall-info-card {
  margin: 0 20px 16px;
  padding: 16px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.wall-info-card .wall-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(52, 152, 219, 0.15);
  color: var(--info);
  border-radius: 20px;
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ========== Route Cards ========== */
.route-list {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-card {
  background: var(--bg-card-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.route-card:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.route-color-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-sm);
}

.route-info { flex: 1; min-width: 0; }

.route-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.route-difficulty {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.diff-easy { background: rgba(46, 204, 113, 0.2); color: var(--accent); }
.diff-medium { background: rgba(243, 156, 18, 0.2); color: var(--warning); }
.diff-hard { background: rgba(231, 76, 60, 0.2); color: var(--danger); }
.diff-expert { background: rgba(155, 89, 182, 0.2); color: #9B59B6; }

.route-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.route-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.route-meta i { font-size: 11px; color: var(--text-muted); }

.route-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.route-arrow {
  color: var(--text-muted);
  font-size: 16px;
  align-self: center;
  flex-shrink: 0;
}

.route-card:hover .route-arrow { color: var(--primary); }

/* ========== Strategy Tabs ========== */
.strategy-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.strat-tab {
  flex: 1;
  padding: 14px 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.strat-tab:hover { color: var(--text-secondary); background: rgba(255,255,255,0.02); }

.strat-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ========== Strategy Content ========== */
.strategy-content {
  padding: 20px;
}

.strat-section {
  margin-bottom: 20px;
}

.strat-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.strat-section-title i { color: var(--primary); font-size: 14px; }

.strat-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.strat-list {
  list-style: none;
  padding: 0;
}

.strat-list li {
  padding: 8px 0 8px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.strat-list li:last-child { border-bottom: none; }

.strat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* Sequence Steps */
.sequence-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.sequence-steps li {
  counter-increment: step;
  padding: 10px 0 10px 36px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.sequence-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Body Analysis */
.analysis-section {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.body-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.body-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.tag-advantage { background: rgba(46, 204, 113, 0.15); color: var(--accent); }
.tag-challenge { background: rgba(231, 76, 60, 0.15); color: var(--danger); }
.tag-normal { background: rgba(52, 152, 219, 0.15); color: var(--info); }

.body-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.body-score-item {
  text-align: center;
  padding: 12px 8px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.body-score-item .score-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.body-score-item .score-value {
  font-size: 14px;
  font-weight: 700;
}

.score-good { color: var(--accent); }
.score-normal { color: var(--info); }
.score-weak { color: var(--warning); }

/* Extra Info */
.extra-info {
  padding: 0 20px 20px;
}

.info-block {
  padding: 16px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.info-block h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-block h4 i { color: var(--warning); }

.info-block p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== Evaluation Result ========== */
.eval-result {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.eval-score-hero {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, rgba(232, 101, 26, 0.1), rgba(46, 204, 113, 0.1));
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.eval-score-number {
  font-size: 64px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.eval-grade {
  font-size: 24px;
  font-weight: 700;
  margin-top: 4px;
}

.eval-score-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.eval-scores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.eval-score-card {
  text-align: center;
  padding: 12px 4px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.eval-score-card .label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.eval-score-card .value {
  font-size: 20px;
  font-weight: 700;
}

.eval-section {
  margin-bottom: 16px;
}

.eval-section h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eval-section h4.good i { color: var(--accent); }
.eval-section h4.improve i { color: var(--warning); }
.eval-section h4.plan i { color: var(--info); }
.eval-section h4.next i { color: var(--primary); }

.eval-section ul {
  list-style: none;
  padding: 0;
}

.eval-section li {
  padding: 6px 0 6px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
  line-height: 1.6;
}

.eval-section li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-weight: bold;
}

.eval-encouragement {
  text-align: center;
  padding: 20px;
  background: rgba(232, 101, 26, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 101, 26, 0.15);
  font-size: 15px;
  color: var(--text-primary);
  font-style: italic;
}

.eval-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* ========== Loading ========== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 35, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-overlay.active { display: flex; }

.loading-content { text-align: center; }

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ========== Toast ========== */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  pointer-events: auto;
  white-space: nowrap;
}

.toast-success { background: var(--accent); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
.toast-info { background: var(--info); color: #fff; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-12px); }
}

/* ========== Color Selection Cards ========== */
.color-prompt {
  text-align: center;
  padding: 20px 20px 10px;
}

.color-prompt-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.color-prompt p {
  color: var(--text-secondary);
  font-size: 15px;
}

.color-prompt strong {
  color: var(--primary);
}

.color-cards {
  padding: 10px 20px 20px;
}

.color-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 14px;
}

.color-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.color-card:active {
  transform: scale(0.95);
}

.color-card.selected {
  border-color: var(--primary);
  background: rgba(232, 101, 26, 0.08);
  box-shadow: 0 0 20px var(--primary-glow);
}

.color-card-swatch {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.color-card.selected .color-card-swatch {
  border-color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.color-card-check {
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s ease;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.color-card.selected .color-card-check {
  opacity: 1;
  transform: scale(1);
}

.color-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.color-card-diff {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-align: center;
}

.color-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ========== Route Detail (after color selection) ========== */
.route-detail {
  padding: 0 20px 20px;
  animation: fadeInUp 0.3s ease;
}

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

.route-detail-color-bar {
  height: 6px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.route-detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.route-detail-title h3 {
  font-size: 20px;
  font-weight: 700;
}

.route-grade {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
}

.route-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-item i {
  color: var(--primary);
  font-size: 14px;
  width: 18px;
  text-align: center;
}

.detail-crux {
  padding: 12px 14px;
  background: rgba(243, 156, 18, 0.08);
  border: 1px solid rgba(243, 156, 18, 0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.detail-crux i {
  color: var(--warning);
}

.detail-crux strong {
  color: var(--warning);
}

.detail-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 10px 0;
}

/* ========== Responsive ========== */
@media (max-width: 480px) {
  .header-content { padding: 10px 16px; }
  .logo-text h1 { font-size: 16px; }
  .steps-bar { padding: 0 12px 10px; }
  .step { font-size: 11px; }
  .step span { width: 20px; height: 20px; font-size: 10px; }
  .app-main { padding: 16px 12px 80px; }
  .panel-header { padding: 20px 16px 14px; }
  .panel-header h2 { font-size: 18px; }
  .upload-zone { margin: 16px; min-height: 200px; }
  .upload-actions { padding: 0 16px 16px; }
  .tips-box { margin: 0 16px 16px; }
  .param-form, .eval-form { padding: 16px; }
  .form-actions { padding: 14px 16px; }
  .route-list { padding: 0 16px 16px; }
  .strategy-content { padding: 16px; }
  .analysis-section { padding: 16px; }
  .extra-info { padding: 0 16px 16px; }
  .eval-result { padding: 16px; }
  .eval-scores-grid { grid-template-columns: repeat(3, 1fr); }
  .body-scores { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}
