/* ============================================================
   honeymoon-budget-calc.css
   蜜月旅行预算计算器 · 浪漫玫红风格
   主色玫红 #E11D48 + 深玫 #881337 + 软粉 #FFE4E6 + 金色点缀 #D97706
   Design tokens（暗色覆盖在文末）
   ============================================================ */

.hbc {
  --hbc-primary: #e11d48;
  --hbc-primary-deep: #881337;
  --hbc-primary-soft: #ffe4e6;
  --hbc-gold: #d97706;
  --hbc-gold-soft: #fef3c7;
  --hbc-green: #059669;
  --hbc-green-soft: #d1fae5;
  --hbc-blue: #2563eb;
  --hbc-blue-soft: #dbeafe;
  --hbc-gray: #6b7280;
  --hbc-gray-soft: #f3f4f6;
  --hbc-ink: #1f2937;
  --hbc-ink-soft: #6b7280;
  --hbc-line: #e5e7eb;
  --hbc-bg: #fdf8f8;
  --hbc-card: #ffffff;
  --hbc-shadow: 0 2px 12px rgba(225, 29, 72, 0.06), 0 1px 3px rgba(225, 29, 72, 0.04);
  --hbc-shadow-lg: 0 20px 40px rgba(225, 29, 72, 0.10), 0 4px 16px rgba(225, 29, 72, 0.06);
  --hbc-radius: 16px;
  --hbc-radius-sm: 10px;
}

.hbc {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  color: var(--hbc-ink);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--hbc-bg);
  font-size: 14.5px;
  line-height: 1.7;
}

.hbc-wrap { position: relative; z-index: 1; }

/* ========== Hero ========== */
.hbc-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 44px 48px 38px;
  margin-bottom: 26px;
  background:
    radial-gradient(120% 140% at 12% 0%, var(--hbc-primary-soft) 0%, transparent 55%),
    radial-gradient(100% 130% at 88% 100%, var(--hbc-gold-soft) 0%, transparent 58%),
    linear-gradient(180deg, #fff 0%, var(--hbc-bg) 100%);
  border: 1px solid var(--hbc-line);
  text-align: center;
}
.hbc-hero::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--hbc-primary), var(--hbc-gold), var(--hbc-primary));
  opacity: .92;
}
.hbc-hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px; font-weight: 700;
  color: var(--hbc-primary);
  background: var(--hbc-primary-soft);
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: .5px;
}
.hbc-hero h1 {
  font-size: 30px; font-weight: 800;
  color: var(--hbc-primary-deep);
  margin: 0 0 12px;
  letter-spacing: .5px;
}
.hbc-hero h1 i {
  font-style: normal;
  background: linear-gradient(90deg, var(--hbc-primary), var(--hbc-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hbc-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--hbc-ink-soft);
  font-size: 14px;
  line-height: 1.9;
}
.hbc-hero p em {
  font-style: normal;
  font-weight: 700;
  color: var(--hbc-primary);
}
.hbc-hero p em.gold { color: var(--hbc-gold); }
.hbc-hero p em.green { color: var(--hbc-green); }
.hbc-hero p em.gray { color: var(--hbc-gray); }
.hbc-hero-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 18px;
}
.hbc-hero-chip {
  padding: 7px 15px;
  font-size: 12.5px; font-weight: 600;
  color: var(--hbc-primary-deep);
  background: #fff;
  border: 1px solid var(--hbc-primary-soft);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(225, 29, 72, .08);
}
.hbc-hero-chip b { color: var(--hbc-primary); font-weight: 800; }

/* ========== 卡片 ========== */
.hbc-card {
  background: var(--hbc-card);
  border-radius: var(--hbc-radius);
  box-shadow: var(--hbc-shadow);
  padding: 26px 28px;
  margin-bottom: 22px;
  border: 1px solid var(--hbc-line);
}
.hbc-card h2 {
  font-size: 17px; font-weight: 800;
  color: var(--hbc-primary);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--hbc-line);
  display: flex; align-items: center; gap: 10px;
}
.hbc-card h2 span {
  font-size: 12px; font-weight: 500;
  color: var(--hbc-ink-soft);
  margin-left: auto;
}

/* ========== 表单 ========== */
.hbc-row { display: flex; flex-wrap: wrap; gap: 16px; }
.hbc-row .hbc-field { margin-bottom: 0; flex: 1; min-width: 200px; }
.hbc-field { margin-bottom: 18px; }
.hbc-lab {
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--hbc-ink);
  margin-bottom: 7px;
}
.hbc-hint { font-size: 12px; font-weight: 400; color: var(--hbc-ink-soft); margin-left: 5px; }
.hbc-input, .hbc-select {
  width: 100%;
  padding: 10px 13px;
  font-size: 14px;
  border: 1.5px solid var(--hbc-line);
  border-radius: var(--hbc-radius-sm);
  background: #fff;
  color: var(--hbc-ink);
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  box-sizing: border-box;
}
.hbc-input:focus, .hbc-select:focus {
  outline: none;
  border-color: var(--hbc-primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, .14);
}
.hbc-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--hbc-ink-soft);
}
.hbc-note b { color: var(--hbc-primary); }

/* 分段选择 */
.hbc-seg { display: flex; flex-wrap: wrap; gap: 0; border: 1.5px solid var(--hbc-line); border-radius: var(--hbc-radius-sm); overflow: hidden; background: #fff; }
.hbc-seg-btn {
  padding: 10px 18px;
  font-size: 13px; font-weight: 600;
  background: #fff; cursor: pointer; border: none;
  border-right: 1.5px solid var(--hbc-line);
  color: var(--hbc-ink);
  transition: all .2s; font-family: inherit;
}
.hbc-seg-btn:last-child { border-right: none; }
.hbc-seg-btn:hover { background: var(--hbc-primary-soft); }
.hbc-seg-btn.on {
  background: linear-gradient(135deg, var(--hbc-primary), var(--hbc-primary-deep));
  color: #fff;
}
.hbc-seg-mini .hbc-seg-btn { padding: 8px 14px; font-size: 12.5px; }

/* ========== 按钮 ========== */
.hbc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 26px;
  font-size: 14px; font-weight: 700;
  border-radius: var(--hbc-radius-sm);
  border: none; cursor: pointer;
  transition: all .2s; font-family: inherit;
  white-space: nowrap;
}
.hbc-btn-go {
  background: linear-gradient(135deg, var(--hbc-primary), var(--hbc-primary-deep));
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, .35);
}
.hbc-btn-go:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(225, 29, 72, .45); }
.hbc-btn-ghost { background: #fff; color: var(--hbc-primary); border: 1.5px solid var(--hbc-primary-soft); }
.hbc-btn-ghost:hover { background: var(--hbc-primary-soft); }
.hbc-btn-gold {
  background: linear-gradient(135deg, var(--hbc-gold), #b45309);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, .3);
}
.hbc-btn-gold:hover { transform: translateY(-2px); }

/* ========== 结果 ========== */
.hbc-summary-ph {
  padding: 16px 18px;
  background: var(--hbc-gray-soft);
  border-radius: var(--hbc-radius-sm);
  color: var(--hbc-ink-soft);
  font-size: 13.5px;
}
.hbc-total {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch;
  margin-bottom: 22px;
}
.hbc-total-main {
  flex: 1.2; min-width: 260px;
  background: linear-gradient(135deg, var(--hbc-primary), var(--hbc-primary-deep));
  border-radius: var(--hbc-radius);
  color: #fff;
  padding: 22px 26px;
  box-shadow: 0 8px 24px rgba(225, 29, 72, .3);
}
.hbc-total-main .hbc-tt { font-size: 13px; opacity: .85; }
.hbc-total-main .hbc-num { font-size: 38px; font-weight: 800; line-height: 1.25; letter-spacing: .5px; }
.hbc-total-main .hbc-num small { font-size: 16px; font-weight: 600; margin-left: 4px; }
.hbc-total-main .hbc-per {
  margin-top: 6px; font-size: 13.5px; opacity: .92;
}
.hbc-total-main .hbc-per b { font-size: 18px; }
.hbc-total-side { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 12px; }
.hbc-mini {
  flex: 1;
  background: var(--hbc-bg);
  border: 1px solid var(--hbc-line);
  border-radius: var(--hbc-radius-sm);
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.hbc-mini span { font-size: 13px; color: var(--hbc-ink-soft); }
.hbc-mini b { font-size: 18px; font-weight: 800; color: var(--hbc-primary); }
.hbc-mini b.gold { color: var(--hbc-gold); }

/* 分项条 */
.hbc-items { display: flex; flex-direction: column; gap: 12px; }
.hbc-item { display: grid; grid-template-columns: 92px 1fr 96px 46px; gap: 12px; align-items: center; }
.hbc-item-name { font-size: 13.5px; font-weight: 700; color: var(--hbc-ink); }
.hbc-item-name small { display: block; font-size: 11.5px; font-weight: 400; color: var(--hbc-ink-soft); }
.hbc-item-bar { height: 14px; background: var(--hbc-gray-soft); border-radius: 999px; overflow: hidden; }
.hbc-item-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--hbc-primary), var(--hbc-gold));
  transition: width .5s ease;
  min-width: 3px;
}
.hbc-item-amt { text-align: right; font-size: 14px; font-weight: 800; color: var(--hbc-primary-deep); white-space: nowrap; }
.hbc-item-pct { font-size: 12px; color: var(--hbc-ink-soft); text-align: right; }

/* 省钱方案 */
.hbc-save { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hbc-save-card {
  border: 1px solid var(--hbc-line);
  border-radius: var(--hbc-radius-sm);
  padding: 18px;
  background: var(--hbc-bg);
  position: relative;
  transition: all .2s;
}
.hbc-save-card:hover { border-color: var(--hbc-green); box-shadow: var(--hbc-shadow); }
.hbc-save-card h4 { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--hbc-ink); display: flex; align-items: center; gap: 6px; }
.hbc-save-card p { margin: 0 0 10px; font-size: 12.5px; color: var(--hbc-ink-soft); }
.hbc-save-num { font-size: 20px; font-weight: 800; color: var(--hbc-green); }
.hbc-save-num small { font-size: 12px; font-weight: 600; color: var(--hbc-ink-soft); margin-left: 4px; }
.hbc-save-empty {
  padding: 16px; text-align: center;
  background: var(--hbc-green-soft); border-radius: var(--hbc-radius-sm);
  color: var(--hbc-green); font-size: 13px; font-weight: 600;
}

/* 参考价表 */
.hbc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hbc-table th, .hbc-table td { padding: 9px 10px; border-bottom: 1px solid var(--hbc-line); text-align: right; white-space: nowrap; }
.hbc-table th:first-child, .hbc-table td:first-child { text-align: left; }
.hbc-table thead th {
  background: var(--hbc-primary-soft);
  color: var(--hbc-primary-deep);
  font-weight: 700;
  font-size: 12.5px;
}
.hbc-table tbody tr:hover { background: var(--hbc-bg); }
.hbc-table td.hbc-tb-name { font-weight: 700; }
.hbc-table td.hbc-tb-hot { color: var(--hbc-primary); font-weight: 800; }
.hbc-table-wrap { overflow-x: auto; }

/* 免责 */
.hbc-disclaimer { padding: 4px 2px; }
.hbc-disclaimer p {
  font-size: 12.5px; color: var(--hbc-ink-soft);
  background: var(--hbc-gray-soft);
  border-left: 3px solid var(--hbc-gold);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0;
  line-height: 1.9;
}

/* ========== 响应式 ========== */
@media (max-width: 640px) {
  .hbc { padding: 18px 12px 40px; }
  .hbc-hero { padding: 30px 18px 26px; border-radius: 16px; }
  .hbc-hero h1 { font-size: 23px; }
  .hbc-card { padding: 20px 16px; }
  .hbc-row .hbc-field { min-width: 100%; }
  .hbc-item { grid-template-columns: 74px 1fr; grid-auto-rows: auto; row-gap: 4px; }
  .hbc-item-amt { grid-column: 2; text-align: left; }
  .hbc-item-pct { grid-column: 2; text-align: left; }
  .hbc-total-main .hbc-num { font-size: 30px; }
  .hbc-btn { width: 100%; justify-content: center; }
  .hbc-row .hbc-btn { min-width: 100%; }
}

/* ========== 打印 ========== */
@media print {
  .hbc .hbc-btn, .hbc-hero-chips, .hbc-seg, header, footer, nav { display: none !important; }
  .hbc { background: #fff; padding: 0; }
  .hbc-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .hbc-total-main { background: #fff !important; color: #000 !important; box-shadow: none; border: 2px solid var(--hbc-primary); }
  .hbc-total-main .hbc-num, .hbc-total-main .hbc-tt, .hbc-total-main .hbc-per { color: #000 !important; }
}

/* ========== 暗色模式 ========== */
:root[data-theme="dark"] .hbc,
html[data-theme="dark"] .hbc {
  --hbc-primary: #fb7185;
  --hbc-primary-deep: #fda4af;
  --hbc-primary-soft: #4c1024;
  --hbc-gold: #fbbf24;
  --hbc-gold-soft: #451a03;
  --hbc-green: #34d399;
  --hbc-green-soft: #064e3b;
  --hbc-blue: #60a5fa;
  --hbc-blue-soft: #1e3a8a;
  --hbc-gray: #9ca3af;
  --hbc-gray-soft: #1f2937;
  --hbc-ink: #e5e7eb;
  --hbc-ink-soft: #9ca3af;
  --hbc-line: #374151;
  --hbc-bg: #171316;
  --hbc-card: #1f1a1e;
  --hbc-shadow: 0 2px 12px rgba(0, 0, 0, .3);
  --hbc-shadow-lg: 0 20px 40px rgba(0, 0, 0, .4);
}
:root[data-theme="dark"] .hbc .hbc-hero,
html[data-theme="dark"] .hbc .hbc-hero {
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(225, 29, 72, .18) 0%, transparent 55%),
    radial-gradient(100% 130% at 88% 100%, rgba(217, 119, 6, .12) 0%, transparent 58%),
    linear-gradient(180deg, var(--hbc-card) 0%, var(--hbc-bg) 100%);
}
:root[data-theme="dark"] .hbc .hbc-hero-chip,
html[data-theme="dark"] .hbc .hbc-hero-chip { background: var(--hbc-card); box-shadow: none; }
:root[data-theme="dark"] .hbc .hbc-input,
:root[data-theme="dark"] .hbc .hbc-select,
html[data-theme="dark"] .hbc .hbc-input,
html[data-theme="dark"] .hbc .hbc-select { background: #141114; border-color: var(--hbc-line); }
:root[data-theme="dark"] .hbc .hbc-seg,
:root[data-theme="dark"] .hbc .hbc-seg-btn,
html[data-theme="dark"] .hbc .hbc-seg,
html[data-theme="dark"] .hbc .hbc-seg-btn { background: var(--hbc-card); }
:root[data-theme="dark"] .hbc .hbc-seg-btn.on,
html[data-theme="dark"] .hbc .hbc-seg-btn.on {
  background: linear-gradient(135deg, var(--hbc-primary), var(--hbc-primary-deep));
  color: #1f1a1e;
}
:root[data-theme="dark"] .hbc .hbc-total-main,
html[data-theme="dark"] .hbc .hbc-total-main {
  background: linear-gradient(135deg, #9f1239, #4c1024);
  color: #fff;
}
:root[data-theme="dark"] .hbc .hbc-total-main .hbc-num,
:root[data-theme="dark"] .hbc .hbc-total-main .hbc-tt,
:root[data-theme="dark"] .hbc .hbc-total-main .hbc-per { color: #fff; }
:root[data-theme="dark"] .hbc .hbc-mini,
html[data-theme="dark"] .hbc .hbc-mini { background: var(--hbc-card); }
:root[data-theme="dark"] .hbc .hbc-save-card,
html[data-theme="dark"] .hbc .hbc-save-card { background: var(--hbc-card); }
:root[data-theme="dark"] .hbc .hbc-table thead th,
html[data-theme="dark"] .hbc .hbc-table thead th { background: var(--hbc-primary-soft); color: var(--hbc-primary-deep); }
:root[data-theme="dark"] .hbc .hbc-table tbody tr:hover,
html[data-theme="dark"] .hbc .hbc-table tbody tr:hover { background: rgba(225, 29, 72, .06); }
