/* ===== Offer输入区 ===== */
.offer-input-section { margin-bottom: 64px; }
.ois-header { margin-bottom: 32px; }
.ois-header h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.ois-header p { color: var(--text-secondary); }

.offer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr) 160px;
  gap: 20px;
  align-items: start;
}

.offer-col {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.oc-header {
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.oc-num { color: rgba(255,255,255,.8); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.oc-company-input {
  flex: 1; background: rgba(255,255,255,.2); border: none;
  color: #fff; font-size: 1rem; font-weight: 700;
  padding: 4px 8px; border-radius: 6px; outline: none;
}
.oc-company-input::placeholder { color: rgba(255,255,255,.6); }
.oc-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.oc-field { display: flex; flex-direction: column; gap: 4px; }
.oc-field label { font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.oc-field input, .oc-field select, .oc-field textarea {
  padding: 8px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .88rem;
  outline: none; transition: border-color var(--transition);
  background: var(--bg-white);
}
.oc-field input:focus, .oc-field select:focus, .oc-field textarea:focus { border-color: var(--primary); }
.oc-field textarea { resize: vertical; min-height: 60px; }

.add-offer-btn {
  border: 2px dashed var(--border); border-radius: var(--radius-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; min-height: 200px;
  transition: all var(--transition); color: var(--text-muted);
}
.add-offer-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.add-offer-btn span { font-size: 2rem; font-weight: 300; }
.add-offer-btn p { font-size: .88rem; font-weight: 500; }

/* ===== 比较结果 ===== */
.offer-result {
  display: none;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 64px;
}
.offer-result h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 32px; }
.result-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.result-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.result-section h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }

/* 收入条形图 */
.income-bars { display: flex; flex-direction: column; gap: 16px; }
.ib-item { display: flex; align-items: center; gap: 16px; }
.ib-label { width: 160px; font-size: .88rem; font-weight: 500; flex-shrink: 0; }
.ib-bar-wrap { flex: 1; background: var(--bg-gray); border-radius: 100px; height: 36px; overflow: hidden; }
.ib-bar {
  height: 100%; border-radius: 100px;
  display: flex; align-items: center; padding: 0 16px;
  color: #fff; font-weight: 700; font-size: .9rem;
  transition: width .8s ease;
}

/* 城市对比 */
.city-compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cc-card {
  border: 2px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; transition: all var(--transition);
}
.cc-company { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.cc-city { font-size: .85rem; color: var(--text-secondary); margin-bottom: 12px; }
.cc-income, .cc-cost, .cc-net { font-size: .9rem; margin-bottom: 6px; }
.cc-net { font-weight: 700; }
.cc-score { font-size: 1.1rem; font-weight: 800; margin-top: 12px; }

/* 雷达表格 */
.radar-table { border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.rt-header, .rt-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 12px 20px; align-items: center;
}
.rt-header { background: var(--bg-gray); font-size: .82rem; font-weight: 700; color: var(--text-muted); }
.rt-row { border-top: 1px solid var(--border); font-size: .9rem; }
.rt-row.total { background: var(--bg-gray); }
.rt-dim { font-weight: 500; }
.rt-val { text-align: center; }
.score-bar {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--color, var(--primary));
}
.score-bar::before {
  content: '';
  display: inline-block;
  width: calc(var(--pct, 50%) * 0.8);
  max-width: 80px;
  height: 6px;
  background: var(--color, var(--primary));
  border-radius: 3px;
  opacity: .3;
}

/* AI建议 */
.ai-advice {
  display: flex; gap: 16px;
  background: var(--bg-gray); border-radius: var(--radius-md); padding: 24px;
}
.aa-icon { font-size: 2rem; flex-shrink: 0; }
.aa-content p { font-size: .9rem; line-height: 1.7; margin-bottom: 8px; }
.aa-content ul { padding-left: 20px; }
.aa-content li { font-size: .88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 4px; }

/* 城市成本表 */
.city-cost-section { margin-bottom: 64px; }
.city-cost-section h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.city-cost-table { border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.cct-header, .cct-row {
  display: grid; grid-template-columns: 80px 1fr 1fr 1fr 1fr 1fr;
  padding: 12px 20px; align-items: center; gap: 8px;
}
.cct-header { background: var(--bg-gray); font-size: .8rem; font-weight: 700; color: var(--text-muted); }
.cct-row { border-top: 1px solid var(--border); font-size: .85rem; }
.cct-row:hover { background: var(--bg-gray); }
.cost-high { color: var(--danger); font-weight: 600; }
.cost-mid { color: var(--accent); font-weight: 600; }
.cost-low { color: var(--success); font-weight: 600; }
.difficulty-hard { color: var(--danger); font-size: .8rem; }
.difficulty-mid { color: var(--accent); font-size: .8rem; }
.difficulty-easy { color: var(--success); font-size: .8rem; }

/* 响应式 */
@media (max-width: 1024px) {
  .offer-columns { grid-template-columns: 1fr 1fr; }
  .add-offer-btn { display: none; }
  .city-compare { grid-template-columns: 1fr; }
  .cct-header, .cct-row { grid-template-columns: 80px 1fr 1fr 1fr; }
  .cct-header div:nth-child(5), .cct-row div:nth-child(5),
  .cct-header div:nth-child(6), .cct-row div:nth-child(6) { display: none; }
}
@media (max-width: 640px) {
  .offer-columns { grid-template-columns: 1fr; }
  .offer-result { padding: 24px; }
  .cct-header, .cct-row { grid-template-columns: 80px 1fr 1fr; }
  .cct-header div:nth-child(4), .cct-row div:nth-child(4) { display: none; }
}
