/* ===========================
   房贷计算器 · 移动优先样式 v2
   =========================== */

:root {
  --c-bg:        #f6f7f8;
  --c-card:      #ffffff;
  --c-text:      #1d2529;
  --c-text-2:    #4a555c;
  --c-text-3:    #8a949b;
  --c-line:      #e3e6e8;
  --c-line-2:    #c9ced2;
  --c-brand:     #2a5d87;
  --c-brand-2:   #1e4767;
  --c-a:         #2a5d87;
  --c-b:         #9a622f;
  --c-good:      #2e7d57;
  --c-danger:    #c14a3d;
  --c-purple:    #5c6672;
  --radius:      8px;
  --radius-sm:   5px;
  --shadow-sm:   0 1px 2px rgba(29, 37, 41, .05);
  --shadow-md:   0 4px 14px rgba(29, 37, 41, .07);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ---------- Header ---------- */
.app-header {
  padding: 16px 20px 13px;
  background: var(--c-brand-2);
  color: #fff;
}
.app-header .app-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: .3px; }
.app-header .app-subtitle { margin: 5px 0 0; font-size: 12px; opacity: .78; }

/* 文档流内标题（非深色头） */
.app-title { margin: 0; font-size: 20px; font-weight: 600; }
.app-subtitle { margin: 4px 0 0; font-size: 12px; color: var(--c-text-3); }

/* ---------- Main Tabs ---------- */
.main-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px 0;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 10;
}
.main-tabs::-webkit-scrollbar { display: none; }
.main-tab {
  flex: 1;
  min-width: 72px;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 10px 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-3);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.main-tab.active {
  color: var(--c-brand);
  border-bottom-color: var(--c-brand);
  font-weight: 600;
}

/* ---------- Main ---------- */
.app-main {
  padding: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Card ---------- */
.card {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--c-line);
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-title .muted-small {
  font-size: 12px;
  color: var(--c-text-3);
  font-weight: 400;
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.result-header .card-title { margin: 0; }
.action-row { display: flex; gap: 8px; }

/* ---------- Form Field ---------- */
.field { margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 14px;
  color: var(--c-text-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.field-hint { font-size: 12px; color: var(--c-text-3); margin: 6px 0 0; }
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f7f8f9;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  transition: border-color .15s, background .15s;
}
.input-wrap:focus-within { border-color: var(--c-brand); background: #fff; }
.field-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 17px;
  font-weight: 600;
  padding: 13px 0;
  outline: none;
  width: 100%;
  color: var(--c-text);
  -moz-appearance: textfield;
}
.field-input::-webkit-outer-spin-button,
.field-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.unit-suffix { font-size: 14px; color: var(--c-text-3); padding-left: 4px; font-weight: 500; }
.unit-toggle {
  background: var(--c-brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.unit-toggle:active { background: var(--c-brand-2); }

/* ---------- Years Chip ---------- */
.years-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; }
.year-chip {
  background: #eef0f2;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-2);
  cursor: pointer;
  transition: all .15s;
}
.year-chip.active { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }
.mt-8 { margin-top: 8px; }

/* ---------- Buttons ---------- */
.primary-btn {
  display: block;
  width: 100%;
  background: var(--c-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: none;
  transition: transform .1s;
}
.primary-btn:active { transform: translateY(1px); }
.ghost-btn {
  background: #eef0f2;
  color: var(--c-text-2);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.ghost-btn:active { background: #e3e6e8; }
.ghost-btn.block { display: block; width: 100%; margin-bottom: 10px; padding: 12px; font-size: 14px; }
.mini-btn {
  background: var(--c-brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.link-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px dashed var(--c-line-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--c-brand);
  cursor: pointer;
  margin-bottom: 12px;
  text-align: left;
}

/* ---------- Sub Section ---------- */
.sub-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
}
.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.sub-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge {
  background: var(--c-brand);
  color: #fff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 600;
}
.empty-hint {
  font-size: 12px;
  color: var(--c-text-3);
  margin: 0;
  padding: 10px;
  background: #f7f8f9;
  border-radius: 8px;
  text-align: center;
}

/* ---------- Prepay Item ---------- */
.prepay-list { display: flex; flex-direction: column; gap: 8px; }
.prepay-item {
  background: #f7f8f9;
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.prepay-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.prepay-row.full { grid-template-columns: 1fr; }
.prepay-item input,
.prepay-item select {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  width: 100%;
  font-family: inherit;
}
.prepay-item input:focus,
.prepay-item select:focus { border-color: var(--c-brand); }
.prepay-remove {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--c-danger);
  font-size: 16px;
  cursor: pointer;
  padding: 0 6px;
}

/* ---------- Result Compare ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.compare-cell {
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-line);
  background: #f7f8f9;
  text-align: center;
}
.highlight-a { border-color: var(--c-a); background: rgba(42, 93, 135, .06); }
.highlight-b { border-color: var(--c-b); background: rgba(154, 98, 47, .06); }
.compare-label { font-size: 13px; font-weight: 500; margin: 0 0 4px; }
.highlight-a .compare-label { color: var(--c-a); }
.highlight-b .compare-label { color: var(--c-b); }
.compare-value { font-size: 20px; font-weight: 700; margin: 0; color: var(--c-text); }
.compare-unit { font-size: 11px; color: var(--c-text-3); margin: 4px 0 0; }
.muted { color: var(--c-text-3); font-weight: normal; }

/* ---------- Stat ---------- */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.stat { background: #f7f8f9; border-radius: var(--radius-sm); padding: 10px 12px; }
.stat-label { font-size: 13px; color: var(--c-text-2); margin: 0 0 6px; font-weight: 500; }
.big-value { font-size: 18px; font-weight: 700; margin: 4px 0 0; color: var(--c-text); }
.stat-duo p { margin: 4px 0; font-size: 14px; color: var(--c-text); }
.stat-duo strong { font-size: 16px; color: var(--c-text); font-weight: 700; }
.muted-small {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
  background: rgba(42, 93, 135, .12);
  color: var(--c-a);
  font-weight: 500;
}
.muted-small.tag-a { background: rgba(42, 93, 135, .12); color: var(--c-a); }
.muted-small.tag-b { background: rgba(154, 98, 47, .12); color: var(--c-b); }

/* ---------- Banner ---------- */
.diff-banner {
  background: #eef4f0;
  border: 1px solid rgba(46, 125, 87, .25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}
.diff-text { margin: 0; font-size: 13px; color: #2e7d57; font-weight: 500; }
.saved-banner {
  background: #eef0f2;
  border: 1px solid rgba(92, 102, 114, .25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 10px;
}
.saved-row { display: flex; justify-content: space-between; font-size: 13px; color: #4a4f5a; }
.saved-row strong { color: var(--c-purple); font-size: 15px; }

/* ---------- Schedule ---------- */
.schedule-wrap { margin-top: 12px; }
.toggle-btn {
  width: 100%;
  background: #eef0f2;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--c-text-2);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}
.toggle-btn em { font-style: normal; color: var(--c-brand); font-weight: 700; }
.toggle-btn .chev { font-size: 18px; transition: transform .2s; }
.toggle-btn[aria-expanded="true"] .chev { transform: rotate(90deg); }

.schedule-table-wrap { margin-top: 8px; }
.schedule-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.tab-btn {
  flex: 1;
  background: #eef0f2;
  border: none;
  border-radius: 8px;
  padding: 7px;
  font-size: 13px;
  color: var(--c-text-2);
  cursor: pointer;
  font-weight: 500;
}
.tab-btn.active { background: var(--c-brand); color: #fff; }

.schedule-scroll {
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
}
.schedule-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.schedule-table th, .schedule-table td {
  padding: 8px 6px;
  text-align: right;
  border-bottom: 1px solid var(--c-line);
  font-variant-numeric: tabular-nums;
}
.schedule-table th {
  background: #f7f8f9;
  color: var(--c-text-2);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}
.schedule-table th:first-child, .schedule-table td:first-child {
  text-align: center;
  color: var(--c-text-3);
}
.schedule-table tr.prepay-row td { background: rgba(92, 102, 114, .06); }

/* ---------- Tip ---------- */
.tip { background: #f5efe2; color: #6b4a1e; border-radius: 6px; padding: 12px; font-size: 12px; line-height: 1.6; }
.tip p { margin: 0; }

/* ---------- Footer ---------- */
.app-footer { text-align: center; padding: 18px 0; color: var(--c-text-3); font-size: 12px; }

/* ---------- Helpers ---------- */
.hidden { display: none !important; }

/* ===========================================
   组合贷款子卡片
   =========================================== */
.loan-card {
  background: #f7f8f9;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid var(--c-brand);
  position: relative;
}
.loan-card.commercial { border-left-color: var(--c-a); }
.loan-card.provident  { border-left-color: var(--c-b); }
.loan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.loan-card-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.loan-type-tabs { display: flex; gap: 6px; }
.loan-type-tab {
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--c-text-2);
}
.loan-type-tab.active {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}
.loan-card .field { margin-bottom: 10px; }
.loan-card .field:last-child { margin-bottom: 0; }
.loan-remove {
  background: transparent;
  border: none;
  color: var(--c-danger);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
}
.breakdown {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f7f8f9;
  border-radius: var(--radius-sm);
}
.breakdown-item .name { font-weight: 500; }
.breakdown-item .v { font-weight: 700; color: var(--c-text); }
.breakdown-item .sub { font-size: 12px; color: var(--c-text-3); }

/* ===========================================
   Chip row（用于首套/二套等单选）
   =========================================== */
.chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.opt-chip {
  background: #eef0f2;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-2);
  cursor: pointer;
}
.opt-chip.active {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}

/* ===========================================
   税费
   =========================================== */
.tax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
}
.tax-row:last-of-type { border-bottom: none; }
.tax-row strong { font-weight: 700; color: var(--c-text); }
.tax-row em { color: var(--c-brand); font-style: normal; font-weight: 600; }
.tax-total {
  background: #edf1f4;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none !important;
}
.tax-total strong { color: var(--c-brand); font-size: 18px; }

/* ===========================================
   方案对比
   =========================================== */
.scenarios-list { display: flex; flex-direction: column; gap: 8px; }
.scenario-item {
  background: #f7f8f9;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.scenario-item .info { flex: 1; min-width: 0; }
.scenario-item .name { font-weight: 600; color: var(--c-text); margin: 0 0 4px; }
.scenario-item .meta { font-size: 12px; color: var(--c-text-3); margin: 0; }
.scenario-item .key {
  font-size: 13px;
  color: var(--c-brand);
  font-weight: 700;
  margin: 4px 0 0;
}
.scenario-item .actions { display: flex; gap: 6px; }
.scenario-item .icon-btn {
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  color: var(--c-text-2);
}
.scenario-item .icon-btn.danger { color: var(--c-danger); border-color: rgba(193, 74, 61, .3); }

.scenarios-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.compare-row {
  background: #f7f8f9;
  border-radius: var(--radius-sm);
  padding: 12px;
}
.compare-row h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-brand);
}
.compare-grid-table {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 6px 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.compare-grid-table .label { color: var(--c-text-2); }
.compare-grid-table .v { font-weight: 700; text-align: right; }
.compare-grid-table .best { color: var(--c-good); }
.compare-grid-table .worst { color: var(--c-danger); }
.compare-grid-table .header-row {
  font-weight: 600;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

/* ===========================================
   LPR 抽屉
   =========================================== */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(29, 37, 41, .45);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadein .2s ease;
}
.drawer {
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 720px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideup .25s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideup { from { transform: translateY(100%); } to { transform: translateY(0); } }
.drawer-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-header h3 { margin: 0; font-size: 16px; font-weight: 600; }
.close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--c-text-2);
  cursor: pointer;
  padding: 0 6px;
}
.drawer-tip {
  margin: 0;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--c-text-3);
  background: #f5efe2;
}
.lpr-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px 16px;
}
.lpr-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f7f8f9;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  cursor: pointer;
  transition: background .15s;
  border: 1.5px solid transparent;
}
.lpr-item:active { background: #e3e6e8; }
.lpr-item.current { border-color: var(--c-brand); background: rgba(42, 93, 135, .06); }
.lpr-item .date { font-size: 13px; color: var(--c-text-2); font-weight: 500; }
.lpr-item .rates { display: flex; gap: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.lpr-item .rate-5y { color: var(--c-brand); font-weight: 700; }
.lpr-item .rate-1y { color: var(--c-b); font-weight: 600; }
.lpr-item .note {
  background: var(--c-good);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
}

/* ===========================================
   Toast
   =========================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(29, 37, 41, .92);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 200;
  animation: toast-in .2s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===========================================
   桌面增强
   =========================================== */
@media (min-width: 720px) {
  .app-main { padding: 22px 20px; }
  .compare-value { font-size: 24px; }
  .scenarios-compare { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ===========================================
   打印样式
   =========================================== */
@media print {
  body { background: #fff; font-size: 12pt; color: #000; }
  .no-print { display: none !important; }
  .app-header { background: none !important; color: #000 !important; padding: 0 0 12px; border-bottom: 2px solid #000; }
  .app-title { color: #000; }
  .app-subtitle { color: #333; opacity: 1; }
  .card {
    box-shadow: none !important;
    border: 1px solid #888 !important;
    page-break-inside: avoid;
    margin-bottom: 10px;
    padding: 10px;
  }
  .compare-cell, .stat, .breakdown-item, .scenario-item, .compare-row {
    background: #fff !important;
    border: 1px solid #888 !important;
  }
  .schedule-scroll { max-height: none !important; overflow: visible !important; }
  .schedule-table th { background: #eee !important; color: #000 !important; }
  .hidden { display: block !important; }
  .schedule-table-wrap { display: block !important; }
  .schedule-table { font-size: 10pt; }
  .schedule-table th, .schedule-table td { padding: 4px 6px; }
  .result-header { page-break-after: avoid; }
  .tab-pane { display: block !important; }
  /* 打印时只展示单贷款结果页 */
  #tab-combined, #tab-tax, #tab-scenarios { display: none !important; }
}

/* ===========================================
   百度推广 · 落地页增强样式
   =========================================== */

/* ---------- Content Card (FAQ / 利率表) ---------- */
.content-card { padding: 16px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: #f7f8f9;
  border-radius: 6px;
  overflow: hidden;
}
.faq-item summary {
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '›';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 18px;
  color: var(--c-brand);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(270deg); }
.faq-item p {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.7;
}
.faq-item p strong { color: var(--c-text); font-weight: 600; }

/* ---------- 利率快查表 ---------- */
.rate-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  margin-bottom: 8px;
}
.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.rate-table th, .rate-table td {
  padding: 8px 6px;
  text-align: right;
  border-bottom: 1px solid var(--c-line);
}
.rate-table th {
  background: #f7f8f9;
  color: var(--c-text-2);
  font-weight: 600;
  white-space: nowrap;
}
.rate-table th:first-child, .rate-table td:first-child,
.rate-table th:nth-child(2), .rate-table td:nth-child(2) {
  text-align: center;
}
.rate-table-note {
  margin: 0;
  font-size: 11px;
  color: var(--c-text-3);
  line-height: 1.6;
}

/* ---------- 信任标识 ---------- */
.trust-block {
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 14px 14px;
  border: 1px solid var(--c-line);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  padding: 4px 0;
}
.trust-item {
  font-size: 12px;
  color: var(--c-text-2);
}

/* ---------- Footer 增强 ---------- */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-links a {
  color: var(--c-brand);
  text-decoration: none;
  font-size: 12px;
}
.footer-links a:active { color: var(--c-brand-2); }
.app-footer p { margin: 4px 0; }
.footer-tip { font-size: 11px; opacity: .8; }

/* ---------- 浮动 CTA ---------- */
.float-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(29, 37, 41, .12);
  border-top: 1px solid var(--c-line);
}
.float-btn-secondary,
.float-btn-primary {
  flex: 1;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.float-btn-secondary {
  background: #eef0f2;
  color: var(--c-text);
}
.float-btn-secondary:active { background: #e3e6e8; }
.float-btn-primary {
  background: var(--c-brand);
  color: #fff;
  box-shadow: none;
}
.float-btn-primary:active { background: var(--c-brand-2); }

/* 推广流量高亮（仅静态加重，不做闪烁动画） */
body.from-baidu .float-btn-primary { font-weight: 700; }

/* 底部留出浮动 CTA 空间 */
.app-main { padding-bottom: 80px; }

/* 桌面端隐藏/改浮动 CTA */
@media (min-width: 720px) {
  .float-cta {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: auto;
    flex-direction: column;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    padding: 0;
  }
  .float-btn-secondary { display: none; }
  .float-btn-primary {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(29, 37, 41, .18);
  }
  .app-main { padding-bottom: 14px; }
}

/* ===========================================
   SEO 内容增强样式（场景快选 / 实测案例 / 攻略 / HowTo）
   =========================================== */

.section-desc {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--c-text-3);
  line-height: 1.6;
}

/* ---------- 场景快选 ---------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.scenario-chip {
  background: #eef0f2;
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
  cursor: pointer;
  transition: all .15s;
}
.scenario-chip:active {
  background: var(--c-brand);
  color: #fff;
  transform: scale(.97);
}

/* ---------- 实测案例对比 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.case-card {
  background: #f7f8f9;
  border-radius: 6px;
  padding: 12px;
  border-left: 3px solid var(--c-brand);
}
.case-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}
.case-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.case-table th, .case-table td {
  padding: 6px 4px;
  text-align: right;
  border-bottom: 1px dashed var(--c-line);
}
.case-table th {
  background: transparent;
  color: var(--c-text-3);
  font-weight: 500;
}
.case-table th:first-child, .case-table td:first-child {
  text-align: left;
  color: var(--c-text-2);
}
.case-table th:nth-child(2), .case-table td:nth-child(2) { color: var(--c-a); }
.case-table th:nth-child(3), .case-table td:nth-child(3) { color: var(--c-b); }
.case-table tr.best-row { background: rgba(46, 125, 87, .08); }
.case-table tr.best-row td {
  text-align: center;
  font-size: 13px;
  color: #2e7d57;
  border-bottom: none;
  padding-top: 8px;
}
.case-table tr.best-row strong {
  color: var(--c-good);
  font-size: 15px;
  margin-left: 4px;
}
.case-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--c-text-3);
  line-height: 1.6;
}

/* ---------- 房贷攻略卡片 ---------- */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.guide-card {
  background: #f7f8f9;
  border-radius: 6px;
  padding: 12px 14px;
  border-left: 3px solid var(--c-purple);
  transition: background .15s;
}
.guide-card:hover { background: #eef0f2; }
.guide-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.guide-title a {
  color: var(--c-text);
  text-decoration: none;
}
.guide-title a:hover { color: var(--c-brand); }
.guide-excerpt {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.7;
}
.guide-meta {
  margin: 0;
  font-size: 11px;
  color: var(--c-text-3);
}

/* ---------- HowTo 流程步骤 ---------- */
.howto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.howto-step {
  display: flex;
  gap: 12px;
  background: #f7f8f9;
  border-radius: 6px;
  padding: 12px;
  position: relative;
}
.howto-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.howto-step h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}
.howto-step p {
  margin: 0;
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.6;
}

/* ---------- 桌面端：案例 3 列 + 攻略 2 列 ---------- */
@media (min-width: 720px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .scenario-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===========================================
   文章页样式（article.php）
   =========================================== */

.article-card .article-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: #1d2529;
  border-left: 3px solid #2a5d87;
  padding-left: 10px;
}
.article-card .article-section p {
  margin: 0 0 14px;
  color: #3c464d;
  line-height: 1.85;
}
.article-card .article-section strong { color: #1d2529; font-weight: 600; }
.article-card .article-section a {
  color: #2a5d87;
  text-decoration: none;
  border-bottom: 1px dashed #2a5d87;
}
.article-card .article-section a:hover { border-bottom-style: solid; }

.article-figure {
  margin: 16px 0;
  padding: 12px;
  background: #f7f8f9;
  border-radius: 6px;
  text-align: center;
}
.article-figure svg {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.article-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: #6a747b;
}

.article-cta {
  margin: 20px 0 0;
  padding: 16px;
  background: #edf1f4;
  border-radius: 6px;
  text-align: center;
  border: 1px dashed rgba(42, 93, 135, .3);
}
.article-cta p { margin: 0 0 10px; font-size: 14px; color: #1d2529; }
.article-cta-btn {
  display: inline-block;
  background: var(--c-brand);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 600;
  border: none !important;
}
.article-cta-btn:hover { opacity: .9; }

.article-h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #1d2529;
}

.related-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.related-list li {
  padding: 10px 12px;
  background: #f7f8f9;
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 3px solid #5c6672;
}
.related-list li:last-child { margin-bottom: 0; }
.related-list a {
  color: #1d2529;
  text-decoration: none;
  font-weight: 500;
}
.related-list a:hover { color: #2a5d87; }

/* ---------- footer 站点地图（4 列）---------- */
.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 720px;
  margin: 0 auto 14px;
  text-align: left;
}
.sitemap-col h4 {
  font-size: 12px;
  color: var(--c-text-3);
  margin: 0 0 8px;
  font-weight: 600;
}
.sitemap-col a {
  display: block;
  font-size: 12px;
  color: var(--c-text-2);
  text-decoration: none;
  padding: 3px 0;
}
.sitemap-col a:hover { color: var(--c-brand); }
@media (min-width: 720px) {
  .footer-sitemap { grid-template-columns: repeat(4, 1fr); }
}


/* ===========================================
   城市分站 · 政策快查卡
   =========================================== */
.city-policy { padding: 14px; }
.city-policy .card-title { margin-bottom: 12px; }
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.policy-item {
  background: #f8f9fa;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: 10px 12px;
}
.policy-label {
  font-size: 11px;
  color: var(--c-text-3);
  margin-bottom: 2px;
}
.policy-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.policy-value.highlight { color: #2a5d87; }
.policy-value.highlight-gjj { color: #9a622f; }
.policy-notes {
  background: #f5efe2;
  border-left: 3px solid #9a622f;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: #6b4a1e;
}
.policy-notes p { margin: 2px 0; }
.policy-notes strong { color: #58401c; }

/* 城市介绍 */
.city-intro {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text-2);
}
.city-tips { margin: 0; padding-left: 18px; list-style: none; }
.city-tips li {
  font-size: 13px;
  color: var(--c-text-2);
  padding: 6px 0;
  line-height: 1.6;
  border-bottom: 1px dashed var(--c-line);
  position: relative;
}
.city-tips li:last-child { border-bottom: 0; }
.city-tips li::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--c-brand);
  opacity: .55;
}

/* 典型小区案例 */
.cases-note {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--c-text-3);
  line-height: 1.6;
}
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.case-card {
  background: #f7f8f9;
  border: 1px solid #ccd9e4;
  border-radius: 6px;
  padding: 12px;
}
.case-header {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4px;
}
.case-meta { font-size: 12px; color: var(--c-text-3); margin-bottom: 4px; }
.case-note { font-size: 11px; color: var(--c-text-3); margin-bottom: 6px; line-height: 1.5; }
.case-amount { font-size: 13px; color: var(--c-text-2); padding: 4px 0; }
.case-monthly { font-size: 16px; color: var(--c-text); padding: 4px 0; }
.case-monthly .hl { color: #9a622f; font-size: 22px; font-weight: 800; }
.case-interest {
  font-size: 12px;
  color: var(--c-text-3);
  padding-top: 4px;
  border-top: 1px dashed #ccd9e4;
}

/* 行政区 + 跨城链接 */
.district-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.district-pill {
  display: inline-block;
  background: #eef0f2;
  color: var(--c-text);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 8px;
}
.city-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.city-link {
  display: block;
  background: #f7f8f9;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--c-text);
  text-decoration: none;
  text-align: center;
}
.city-link:active {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}

/* 顶部导航 */
.top-nav { margin-top: 6px; font-size: 12px; }
.top-nav a { color: var(--c-brand); text-decoration: none; }
.top-nav a:active { color: var(--c-brand-2); }


/* ===========================================
   表单组件（_partial_calc 共享）
   =========================================== */
.calc-card { padding: 16px; }
.form-row { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  background: #f7f8f9;
  border: 1.5px solid var(--c-line);
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}
.form-input:focus {
  outline: none;
  border-color: var(--c-brand);
  background: #fff;
}
.amount-group { display: flex; gap: 8px; align-items: stretch; }
.amount-group .form-input { flex: 1; }
.unit-toggle {
  display: flex;
  background: #eef0f2;
  border-radius: 6px;
  padding: 3px;
  border: 1.5px solid var(--c-line);
}
.unit-opt {
  padding: 0 14px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-3);
  border-radius: 7px;
  cursor: pointer;
  user-select: none;
}
.unit-opt.active {
  background: var(--c-brand);
  color: #fff;
}
.year-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.year-chip {
  flex: 1;
  min-width: 60px;
  text-align: center;
  padding: 9px 0;
  background: #eef0f2;
  color: var(--c-text-2);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}
.year-chip.active {
  background: var(--c-brand);
  color: #fff;
}
.rate-group { display: flex; gap: 8px; }
.rate-group .form-input { flex: 1; }
.lpr-btn {
  padding: 0 14px;
  background: #f5efe2;
  color: #7c4e25;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e8dcc3;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.primary-btn {
  width: 100%;
  padding: 14px;
  background: var(--c-brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  
}
.primary-btn:active { transform: translateY(1px); }

/* ===========================================
   结果区
   =========================================== */
.result-section { margin-top: 14px; }
.result-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.result-card {
  background: #fff;
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  border: 1px solid var(--c-line);
}
.result-card.card-a { background: #f0f3f6; }
.result-card.card-b { background: #f7f2ea; }
.result-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 2px;
}
.result-card-sub {
  font-size: 11px;
  color: var(--c-text-3);
  margin-bottom: 8px;
}
.result-monthly {
  font-size: 28px;
  font-weight: 800;
  color: var(--c-brand);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.result-card.card-b .result-monthly { color: #9a622f; }
.result-monthly small {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-3);
  margin-left: 2px;
}
.compare-totals {
  background: #fff;
  border-radius: 7px;
  padding: 10px 14px;
  border: 1px solid var(--c-line);
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--c-line);
}
.total-row:last-child { border-bottom: 0; }
.total-label { color: var(--c-text-2); font-weight: 600; }
.total-num { color: var(--c-text); font-variant-numeric: tabular-nums; }
.total-num span { font-weight: 700; }
.total-diff {
  background: #f0f5f1;
  margin: 4px -14px -10px;
  padding: 10px 14px;
  border-radius: 0 0 12px 12px;
  border-top: 1px solid #d9e9e0;
}
.total-diff .total-num { color: #2e7d57; font-weight: 700; }

.schedule-details {
  background: #fff;
  border-radius: 7px;
  padding: 10px 14px;
  margin-top: 10px;
  border: 1px solid var(--c-line);
}
.schedule-details summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-brand);
  cursor: pointer;
  list-style: none;
}
.schedule-details summary::-webkit-details-marker { display: none; }
.schedule-tabs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  margin-bottom: 8px;
}
.sched-tab {
  flex: 1;
  padding: 7px;
  background: #eef0f2;
  color: var(--c-text-2);
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.sched-tab.active {
  background: var(--c-brand);
  color: #fff;
}
.schedule-wrap {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--c-line);
  border-radius: 8px;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.schedule-table th, .schedule-table td {
  padding: 6px 8px;
  text-align: right;
  border-bottom: 1px solid var(--c-line);
}
.schedule-table th {
  background: #f7f8f9;
  color: var(--c-text-2);
  font-weight: 600;
  position: sticky;
  top: 0;
}
.schedule-table th:first-child, .schedule-table td:first-child { text-align: center; }

/* 响应式 */
@media (min-width: 720px) {
  .policy-grid { grid-template-columns: repeat(4, 1fr); }
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .city-links { grid-template-columns: repeat(5, 1fr); }
  .result-monthly { font-size: 32px; }
}


/* ===========================================
   首页 · 城市分站入口
   =========================================== */
.city-entries-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--c-text-3);
  line-height: 1.7;
}
.city-entries-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.city-tier {
  background: #f7f8f9;
  border-radius: 6px;
  padding: 10px 12px;
}
.city-tier-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-2);
  letter-spacing: 0.5px;
}
.city-tier-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.city-entry-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--c-text);
  text-decoration: none;
  transition: all .15s;
}
.city-entry-link .ce-name { font-weight: 600; }
.city-entry-link .ce-rate {
  font-size: 11px;
  font-weight: 700;
  color: #2a5d87;
  font-variant-numeric: tabular-nums;
}
.city-entry-link:active {
  background: var(--c-brand);
  border-color: var(--c-brand);
}
.city-entry-link:active .ce-name,
.city-entry-link:active .ce-rate { color: #fff; }

@media (min-width: 720px) {
  .city-tier-links { grid-template-columns: repeat(5, 1fr); }
  .city-entry-link { padding: 10px 12px; }
}


/* ===========================================
   首页 · 按省份分组
   =========================================== */
.province-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.province-block {
  background: #f7f8f9;
  border-radius: 6px;
  padding: 10px 12px;
}
.province-name {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  border-left: 3px solid var(--c-brand);
  padding-left: 8px;
}
.province-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.province-city {
  font-size: 12px;
  color: var(--c-text-2);
  text-decoration: none;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  white-space: nowrap;
}
.province-city:active {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}

/* ===========================================
   首页 · 按城市群分组
   =========================================== */
.region-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.region-block {
  background: #f7f8f9;
  border-radius: 8px;
  overflow: hidden;
}
.region-block summary {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  position: relative;
  padding-right: 32px;
}
.region-block summary::-webkit-details-marker { display: none; }
.region-block summary::after {
  content: '›';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 14px;
  color: var(--c-brand);
  transition: transform .2s;
}
.region-block[open] summary::after { transform: translateY(-50%) rotate(270deg); }
.region-cities {
  padding: 0 12px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.region-city {
  font-size: 12px;
  color: var(--c-text-2);
  text-decoration: none;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.region-city .ce-rate-sm {
  font-size: 10px;
  color: var(--c-brand);
  font-weight: 600;
}
.region-city:active {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}
.region-city:active .ce-rate-sm { color: #fff; }

@media (min-width: 720px) {
  .province-grid { grid-template-columns: repeat(2, 1fr); }
  .region-cities { padding: 0 16px 12px; }
}
