/* ============================================================
   线路详情页（lines/*.html）
   依赖 style.css 的变量与通用区块，仅补充详情页专用样式。
   ============================================================ */

/* ---------- 详情页独立页头（下滑固定，回顶恢复） ---------- */
/* .dbar-slot 恒定占位，页头转为 fixed 时不产生跳动 */
.dbar-slot { height: 62px; }
.dbar { height: 62px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease; }
.dbar.is-fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  box-shadow: 0 4px 18px rgba(16,49,42,.10); border-bottom-color: #e8f1ed; }
.dbar-inner { display: flex; align-items: center; gap: 14px; height: 62px; }
.dbar-back { display: inline-flex; align-items: center; gap: 3px; padding: 6px 4px 6px 0;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--primary);
  background: none; border: 0; cursor: pointer; }
.dbar-back svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; }
.dbar-back:hover { color: var(--accent); }
.dbar-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; color: var(--dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 顶部信息区 ---------- */
.line-hero { background: linear-gradient(180deg, var(--light) 0%, #fff 100%); padding: 26px 0 62px; }
.line-hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.line-hero-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.line-hero-media img { width: 100%; height: 330px; object-fit: cover; }
.line-hero-media em { position: absolute; left: 16px; top: 14px; font-style: normal; font-size: 13px; font-weight: 800;
  color: var(--primary-dark); background: rgba(255,255,255,.92); padding: 5px 14px; border-radius: 20px; }
.line-eyebrow { font-size: 12px; letter-spacing: 4px; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.line-hero-txt h1 { font-size: 34px; line-height: 1.35; margin-bottom: 12px; }
.line-sub { font-size: 14px; color: var(--gray); line-height: 1.9; margin-bottom: 16px; }
.line-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.line-tags span { font-size: 12.5px; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 4px 12px; border-radius: 8px; }
.line-blurb { font-size: 15px; color: #4c6a61; line-height: 1.95; margin-bottom: 24px; }
.line-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-line-ghost { background: #fff; color: var(--primary); border: 1px solid #cfe3dc; box-shadow: var(--shadow); }
.btn-line-ghost:hover { border-color: var(--primary); transform: translateY(-2px); }
.line-note { margin-top: 14px; font-size: 12.5px; color: #8ba49d; }

/* ---------- 行程秒懂表格 ---------- */
.quick-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.quick { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 14px; }
.quick thead th { background: var(--primary); color: #fff; font-weight: 700; text-align: left; padding: 14px 16px; white-space: nowrap; }
.quick thead th:first-child { width: 72px; text-align: center; }
.quick tbody td { padding: 13px 16px; border-bottom: 1px solid #eef4f1; color: #43605a; line-height: 1.8; vertical-align: top; }
.quick tbody td:first-child { text-align: center; font-weight: 800; color: var(--primary); white-space: nowrap; }
.quick tbody tr:nth-child(even) td { background: #fbfdfc; }
.quick tbody tr:last-child td { border-bottom: none; }
.quick-3 thead th:nth-child(2) { width: auto; }
.quick-4 thead th:nth-child(3) { width: 150px; }
.quick-4 thead th:nth-child(4) { width: 140px; }
.quick td.meals { white-space: nowrap; }
.quick td.meals i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 7px; font-style: normal; font-size: 12px; font-weight: 700; margin-right: 4px; }
.quick td.meals i.y { color: #14745c; background: #e6f3ef; }
.quick td.meals i.n { color: #98a8a3; background: #f1f5f3; }

/* ---------- 行程特色 ---------- */
.hl-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.hl-grid li { background: #fff; border: 1px solid #eef4f1; border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 18px; box-shadow: 0 6px 16px rgba(16,49,42,.06); }
.hl-grid h4 { font-size: 15px; line-height: 1.6; }
.hl-grid p { font-size: 13.5px; color: var(--gray); line-height: 1.85; margin-top: 4px; }
.hl-list ul { list-style: none; margin-top: 6px; }
.hl-list li { position: relative; padding-left: 15px; font-size: 13.5px; color: var(--gray); line-height: 1.85; }
.hl-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- 逐日行程 ---------- */
.days { position: relative; display: flex; flex-direction: column; gap: 18px; }
.days::before { content: ""; position: absolute; left: 33px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, rgba(11,110,90,.22), rgba(11,110,90,.05)); }
.day { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 18px; }
.day-no { display: flex; flex-direction: column; align-items: center; padding-top: 12px; }
.day-no b { width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 2px solid var(--primary);
  color: var(--primary); font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.day-no i { flex: 1; }
.day-body { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); border: 1px solid #eef4f1; }
.day-body h3 { font-size: 18px; line-height: 1.6; margin-bottom: 10px; }
.day-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.day-meta span { font-size: 12.5px; color: var(--gray); background: var(--light); border: 1px solid #e8f1ed; padding: 4px 10px; border-radius: 8px; line-height: 1.6; }
.day-meta .d-theme { color: #a4700d; background: #fdf6e7; border-color: #f5e5c2; font-weight: 700; }
.day-meta .d-meal { color: #14745c; background: #eaf6f1; border-color: #d3ece3; font-weight: 700; }
.day-meta .d-drive { color: #2c5f8a; background: #eef5fb; border-color: #d5e6f4; }
.day-body p { font-size: 14.5px; color: #46625b; line-height: 2; margin-bottom: 8px; }
.day-body p:last-child { margin-bottom: 0; }

/* ---------- 出行须知 ---------- */
.fee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; align-items: start; }
.fee-grid-single { max-width: 860px; margin: 0 auto; }
.fee-card { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); border: 1px solid #eef4f1; }
.fee-card h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 14px; }
.fee-card h3 i { width: 28px; height: 28px; border-radius: 9px; background: var(--primary-light); color: var(--primary);
  font-style: normal; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.fee-card ul { list-style: none; }
.fee-card li { position: relative; padding-left: 16px; font-size: 13.8px; color: #4c6a61; line-height: 1.95; margin-bottom: 9px; }
.fee-card li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .5; }
.fee-card li:last-child { margin-bottom: 0; }

/* ---------- 其他线路 ---------- */
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.other { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 14px; padding: 12px;
  box-shadow: var(--shadow); border: 1px solid #eef4f1; transition: .3s; }
.other:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.other img { width: 112px; height: 80px; object-fit: cover; border-radius: 10px; flex: none; }
.other b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.other span { font-size: 12.5px; color: var(--gray); }

/* ---------- 行程配图（单图） ---------- */
.day-photo { margin: 16px auto 6px; max-width: 620px; }
.day-photo img { display: block; width: 100%; height: 330px; object-fit: cover;
  border-radius: 12px; box-shadow: var(--shadow); }
.day-photo figcaption { margin-top: 8px; font-size: 12.5px; color: var(--gray); }

/* ---------- 逐日行程配图（三图拼排） ---------- */
.day-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 6px; }
.day-photos img { display: block; width: 100%; height: 200px; object-fit: cover;
  border-radius: 12px; box-shadow: 0 6px 16px rgba(16,49,42,.10); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .line-hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .line-hero-media img { height: 260px; }
  .line-hero-txt h1 { font-size: 28px; }
}
@media (max-width: 680px) {
  .dbar-slot, .dbar, .dbar-inner { height: 54px; }
  .dbar-title { font-size: 14px; }
  .line-hero { padding-bottom: 44px; }
  .line-hero-media img { height: 200px; }
  .line-hero-txt h1 { font-size: 23px; }
  .line-blurb { font-size: 14px; }
  .line-cta .btn { flex: 1; text-align: center; padding: 13px 18px; }
  .hl-grid { grid-template-columns: 1fr; }
  .day { grid-template-columns: 46px 1fr; gap: 12px; }
  .day-no b { width: 40px; height: 40px; font-size: 13px; }
  .days::before { left: 22px; }
  .day-body { padding: 18px 16px; }
  .day-photo img { height: 210px; }
  .day-body h3 { font-size: 16px; }
  .day-body p { font-size: 14px; line-height: 1.95; }
  .fee-grid { grid-template-columns: 1fr; }
  .others { grid-template-columns: 1fr; }
  .quick { min-width: 520px; font-size: 13px; }
}

/* ---------- 车辆体验 ---------- */
.ride-card { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid #eef4f1;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.ride-media { position: relative; min-height: 340px; }
.ride-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ride-media em { position: absolute; left: 16px; top: 14px; font-style: normal; font-size: 12.5px; font-weight: 800;
  color: var(--primary-dark); background: rgba(255,255,255,.92); padding: 5px 14px; border-radius: 20px; }
.ride-body { padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; }
.ride-body h3 { font-size: 21px; line-height: 1.5; margin-bottom: 8px; }
.ride-body > p { font-size: 14px; color: var(--gray); line-height: 1.9; margin-bottom: 18px; }
.ride-list { list-style: none; display: grid; gap: 11px; }
.ride-list li { position: relative; padding-left: 28px; font-size: 14px; color: #46625b; line-height: 1.8; }
.ride-list li b { color: var(--primary-dark); }
.ride-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--primary-light); }
.ride-list li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 3px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.ride-note { margin-top: 16px; font-size: 12.5px; color: #8ba49d; line-height: 1.8; }
@media (max-width: 960px) {
  .ride-card { grid-template-columns: 1fr; }
  .ride-media { min-height: 240px; }
  .ride-body { padding: 24px 24px 26px; }
}
@media (max-width: 680px) {
  .ride-media { min-height: 190px; }
  .ride-body { padding: 20px 18px 22px; }
  .ride-body h3 { font-size: 18px; }
  .ride-list li { font-size: 13.5px; }
}
@media (max-width: 960px) {
  .day-photos img { height: 158px; }
}
@media (max-width: 680px) {
  .day-photos { gap: 7px; }
  .day-photos img { height: 104px; border-radius: 10px; }
}
