/* 疾病费用看板（feature/cost-dashboard） */
.cost-guide-hero, .cost-guide-detail-hero {
  background: linear-gradient(160deg, #0a1f38 0%, #06182b 100%);
  color: #fff;
  padding: 4rem 0 3rem;
}
.cost-guide-hero .eyebrow, .cost-guide-detail-hero .eyebrow {
  display: inline-block;
  color: #d7b56d;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .76rem;
  margin-bottom: .8rem;
}
.cost-guide-hero h1, .cost-guide-detail-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 .8rem;
  font-weight: 700;
}
.cost-guide-hero .hero-lead, .cost-guide-detail-hero .hero-lead {
  color: rgba(255,255,255,.78);
  max-width: 720px;
  line-height: 1.7;
  margin: 0;
}
.back-link {
  display: inline-block;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.2rem;
  text-decoration: none;
}
.back-link:hover { color: #d7b56d; }
.cost-guide-detail-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}
.cost-guide-detail-stats .stat strong {
  display: block;
  font-size: 1.6rem;
  color: #d7b56d;
}
.cost-guide-detail-stats .stat span {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
}

/* 索引网格 */
.cost-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: .5rem;
}
.cost-guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(215,181,109,.28);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255,255,255,.96), rgba(245,248,252,.9));
  color: #0a1f38;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cost-guide-card:hover {
  border-color: #d7b56d;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(10,31,56,.12);
}
.cost-guide-card h3 {
  margin: 0;
  font-size: 1.18rem;
  color: #0a1f38;
}
.cost-guide-card-count {
  font-size: .82rem;
  color: #5f7078;
}
.cost-guide-card-range {
  margin: .3rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #b8862b;
}
.cost-guide-card-range--muted { color: #9aa7b0; font-weight: 400; font-size: .9rem; }
.cost-guide-card-unit {
  font-size: .72rem;
  color: #8a98a2;
  letter-spacing: .04em;
}
.cost-guide-card-arrow {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  color: #d7b56d;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}
.cost-guide-card:hover .cost-guide-card-arrow { opacity: 1; transform: translateX(3px); }

.cost-guide-source {
  margin-top: 2rem;
  font-size: .82rem;
  color: #8a98a2;
  line-height: 1.6;
}

/* AI 翻译提示 */
.cost-guide-ai-note {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0 0 1.4rem;
  padding: .75rem 1rem;
  background: rgba(215,181,109,.12);
  border: 1px solid rgba(215,181,109,.4);
  border-radius: 10px;
  color: #6b5a2c;
  font-size: .85rem;
  line-height: 1.6;
}
.cost-guide-ai-note .ai-note-icon {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1.4;
  color: #b8862b;
}
.cost-guide-ai-note .ai-note-text { flex: 1 1 auto; }

/* 详情表 */
.cost-guide-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(10,31,56,.08);
  border-radius: 12px;
}
.cost-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.cost-guide-table thead th {
  background: #0a1f38;
  color: #fff;
  text-align: left;
  padding: .8rem 1rem;
  font-weight: 600;
  white-space: nowrap;
}
.cost-guide-table th.num, .cost-guide-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-guide-table tbody td {
  padding: .7rem 1rem;
  border-top: 1px solid rgba(10,31,56,.06);
  vertical-align: top;
}
.cost-guide-table tbody tr:nth-child(even) { background: rgba(10,31,56,.03); }
.cost-guide-table .item-name { font-weight: 500; color: #0a1f38; min-width: 200px; }
.cost-guide-table .note { color: #5f7078; font-size: .82rem; }
.cost-guide-table .note .excluded { display: block; color: #a8521f; }
.cost-guide-table .note .pricing { display: block; margin-top: .2rem; }
.cost-guide-cta {
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  background: rgba(215,181,109,.12);
  border: 1px solid rgba(215,181,109,.38);
  border-radius: 12px;
  color: #0a1f38;
  line-height: 1.7;
}

/* 搜索区 */
.cost-guide-search {
  display: flex;
  gap: .6rem;
  margin: 1.6rem 0 0;
  flex-wrap: wrap;
}
.cost-guide-search input[type="search"] {
  flex: 1 1 280px;
  min-width: 0;
  padding: .75rem 1rem;
  border: 1px solid rgba(10,31,56,.18);
  border-radius: 10px;
  font-size: .95rem;
  color: #0a1f38;
  background: #fff;
}
.cost-guide-search input[type="search"]:focus {
  outline: none;
  border-color: #d7b56d;
  box-shadow: 0 0 0 3px rgba(215,181,109,.18);
}
.cost-guide-search button {
  flex: 0 0 auto;
  padding: .75rem 1.4rem;
  border: none;
  border-radius: 10px;
  background: #0a1f38;
  color: #fff;
  font-size: .92rem;
  cursor: pointer;
  transition: background .18s ease;
}
.cost-guide-search button:hover { background: #143a5e; }
.cost-guide-result-count {
  margin: 1rem 0 0;
  font-size: .85rem;
  color: #5f7078;
}
.cost-guide-result-count strong { color: #0a1f38; }

/* 最近搜索 */
.cost-guide-recent {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.cost-guide-recent-label {
  font-size: .82rem;
  color: #5f7078;
  margin: 0;
}
.cost-guide-recent-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .8rem;
  border: 1px solid rgba(10,31,56,.16);
  border-radius: 999px;
  background: #fff;
  color: #0a1f38;
  text-decoration: none;
  font-size: .84rem;
  transition: border-color .18s ease, background .18s ease;
}
.cost-guide-recent-chip:hover {
  border-color: #d7b56d;
  background: rgba(215,181,109,.1);
}
.cost-guide-empty {
  margin: 2rem 0 0;
  padding: 2rem;
  text-align: center;
  border: 1px dashed rgba(10,31,56,.18);
  border-radius: 12px;
  color: #5f7078;
}

/* 收藏 */
.cost-guide-table .fav-col {
  width: 56px;
  text-align: center;
}
.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(10,31,56,.16);
  border-radius: 50%;
  background: #fff;
  color: #b8862b;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.fav-btn:hover { border-color: #d7b56d; transform: scale(1.06); }
.fav-btn--saved {
  background: rgba(215,181,109,.18);
  border-color: #d7b56d;
  color: #b8862b;
}
.fav-btn.fav-signin {
  color: #5f7078;
  border-style: dashed;
}
.fav-cell { margin: 0; }

/* 详情页筛选 / 排序条 */
.cost-guide-filter {
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
  box-shadow: 0 1px 3px rgba(13,43,85,.04);
}
.cg-filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(150px, 1fr) auto auto;
  gap: .75rem;
  align-items: end;
}
/* app.css 的 `form label{margin:16px 0}` 会给筛选字段加 16px 上下外边距，
   而按钮没有外边距，导致 align-items:end 下按钮比输入框低一截、看起来不在同一行。
   这里归零，使输入框/下拉/按钮底部严格对齐。 */
.cost-guide-filter .cg-filter-field { margin: 0; }
.cg-filter-field { display: flex; flex-direction: column; gap: .3rem; }
.cg-filter-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #5f7078;
  text-transform: uppercase;
}
.cg-filter-field input[type="search"],
.cg-filter-field select {
  height: 42px;
  border: 1px solid #cfd8e3;
  border-radius: 9px;
  padding: 0 .8rem;
  font-size: .95rem;
  color: #0d2b55;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.cg-filter-field input[type="search"]:focus,
.cg-filter-field select:focus { border-color: #d7b56d; outline: none; }
.cg-filter-apply {
  height: 42px;
  padding: 0 1.4rem;
  border: none;
  border-radius: 9px;
  background: #0d2b55;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cg-filter-apply:hover { background: #102f63; }
.cg-filter-clear {
  height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 .9rem;
  border-radius: 9px;
  border: 1px solid #cfd8e3;
  color: #5f7078;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
}
.cg-filter-clear:hover { border-color: #d7b56d; color: #0d2b55; }
.cg-filter-count {
  margin: .4rem 0 0;
  font-size: .85rem;
  color: #5f7078;
}
/* >720px 时右侧悬浮客服栏（宽 82px + 18px 间距）会压住筛选条最右侧的按钮，
   与 /doctors 一致：给内容区右侧预留 106px，避免「应用/清除」被遮挡。 */
@media (min-width: 721px) {
  .cost-guide-filter { padding-right: 106px; }
}
@media (max-width: 680px) {
  .cg-filter-row {
    grid-template-columns: 1fr auto auto;
    gap: .5rem;
  }
  .cg-kw { grid-column: 1 / -1; }
}
