/* ============================================================
   遇见西葡 IberiaPrivateTravel · 品牌层样式
   基于意大利站设计系统（italy-styles.css / italy-ui.css）做配色与组件覆盖，
   并新增 PRD 要求的本地化组件：底部悬浮三按钮、快速定制条、
   参数化对比表 / 体验表、面包屑、信任标识、FAQ 手风琴。
   版本：v=20261022a （改 CSS 必须同步升版号）
   ============================================================ */

/* ---------- 1. 配色覆盖（伊比利亚：赤陶红 + 金 + 大西洋蓝） ---------- */
:root {
  --blue: #1d4e6f;          /* 大西洋深蓝（主色 / 链接） */
  --blue-dark: #143a52;
  --blue-light: #eaf1f6;
  --terracotta: #b5341f;    /* 伊比利亚赤陶红（强调 / CTA） */
  --terracotta-dark: #93280f;
  --gold: #c39a2e;          /* 西班牙金 */
  --gold-light: #f3e9cf;
  --green: #3f7d5a;         /* 葡萄牙绿 */
  --ink: #23201d;
  --ink-soft: #5a5650;
  --line: #e8e2d8;
  --bg: #faf7f2;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(29, 78, 111, .08);
  --shadow-hover: 0 12px 30px rgba(29, 78, 111, .16);
  --maxw: 1180px;
}

/* Logo 旗标：用双色块代表西班牙(红黄)与葡萄牙(绿红) */
.logo .flag, .brand-mark {
  display: inline-block; width: 22px; height: 22px; border-radius: 5px;
  background: linear-gradient(135deg, var(--terracotta) 0 50%, var(--gold) 50% 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.brand-mark {
  width: 38px; height: 38px; font-size: 18px; line-height: 38px; text-align: center;
  color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--terracotta), var(--blue));
}
.site-header .logo { font-weight: 800; letter-spacing: .5px; }

/* 按钮主色走赤陶红（与意大利站金色区分，强化品牌识别） */
.btn-gold { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn-gold:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: #fff; }
.btn-outline-primary { color: var(--terracotta); border-color: var(--terracotta); }
.btn-outline-primary:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.tip-gold, .way-more { color: var(--terracotta); }
a { color: var(--blue); }

/* Hero 叠加伊比利亚暖色调，保证文字可读
   注意：italy-styles.css 里历史层 .hero::after 是 inset:auto 0 -40px 0 + height:180px 的「底部光带」，
   若只写 inset:0，height:180px 仍会赢（top/bottom 同时给值时长高优先），遮罩就只盖住顶部 180px，
   首屏下半段（信任点小字所在处）完全没有压暗 —— 必须显式 height:100%。 */
.hero::after {
  content: ""; position: absolute; inset: 0; height: 100%;
  background: linear-gradient(180deg, rgba(20,16,14,.44), rgba(20,16,14,.70));
}
/* Hero 收进正文栅格：与下方各模块左右对齐的圆角卡片，不再满幅铺到屏幕两边。
   .container 是 max-width:1200 + padding:20 → 内容宽 1160，所以卡片宽取 min(1160px, 100% - 40px)，
   卡内 .container 左右内边距归零，文字与下方模块的左边线严格对齐。 */
.hero {
  width: min(1160px, calc(100% - 40px));
  margin: 14px auto 0;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(18, 42, 62, .14);
}
.hero > .container { max-width: 100%; }
.hero .container { position: relative; z-index: 2; }
/* 首页大图：整屏均匀压暗 + 首尾加强，照片主体仍通透，白字在任何亮部都能读清 */
.hero--home::after { background:
  radial-gradient(74% 92% at 50% 50%, rgba(6,22,34,.50) 0%, rgba(6,22,34,.26) 64%, rgba(6,22,34,0) 100%),
  linear-gradient(180deg, rgba(6,22,34,.40) 0%, rgba(6,22,34,.26) 55%, rgba(6,22,34,.74) 100%); }
.hero-title { font-size: clamp(28px, 5vw, 48px); font-weight: 800; letter-spacing: 1px; margin-bottom: 0; }
/* 注意：这里必须用完整四值 margin，否则会覆盖 italy-ui 里 .hero-sub 的 margin-bottom，
   导致副标题最后一行与按钮贴在一起（视觉上像重叠）。 */
.hero-sub { font-size: clamp(15px, 2.4vw, 19px); max-width: 880px; margin: 16px auto 30px; opacity: .95; }
.hero--home .hero-actions { margin-top: 0; }
.hero--home .hero-points { margin-top: 26px; }
.hero--home {
  /* 高度以「内容 + 呼吸」为准，不再用 62vh：1080p 下会撑到 720px，上下各留 140px 死白 */
  min-height: clamp(350px, 40vh, 430px); display: flex; align-items: center;
  background-size: cover; background-position: center 46%; background-repeat: no-repeat;
  background-color: var(--blue-dark);
}
/* 移动端不让 Hero 占满整屏，避免首屏只看到图 */
@media (max-width: 767px) {
  .hero { width: calc(100% - 24px); margin-top: 10px; border-radius: 14px; }
  .hero--home { min-height: 0; padding: 34px 0 32px; background-position: center 46%; }
  .hero--home > .container { padding-top: 0; padding-bottom: 0; }
  .hero-title { letter-spacing: 0; }
  .hero--home::after { background: linear-gradient(180deg, rgba(8,28,42,.48) 0%, rgba(8,28,42,.52) 45%, rgba(8,28,42,.80) 100%); }
  .hero--home .hero-title, .hero--sub-img .hero-title { text-shadow: 0 2px 10px rgba(4,18,28,.75); }
  /* 窄屏副标题不再加半透明底板（整行铺满时像一条色块），改用更强的文字阴影保证可读 */
  .hero--home .hero-sub, .hero--sub-img .hero-sub {
    color: #fff; text-shadow: 0 1px 4px rgba(4,18,28,.9), 0 0 14px rgba(4,18,28,.6);
    max-width: 100%;
  }
  /* 两个主按钮并排，省掉一行高度，首屏更紧凑 */
  .hero--home .hero-actions { gap: .6rem; }
  .hero--home .hero-actions .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; padding-left: .6rem; padding-right: .6rem; }
  .hero--home .hero-points { gap: 8px 16px; }
  .hero--home .hero-points span { font-size: 12.5px; }
}
/* 内页 Banner（面包屑 + 标题，无大图）：固定高度、内容垂直居中。
   全部内页统一 200px，1 行 / 2 行副标题高度一致；与首页 400~480 的落差缩到 200 左右，
   切换页面时整页不会再「往上跳一大截」。 */
.hero--sub { min-height: 200px; display: flex; align-items: center; padding: 0; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.hero--sub-img { background-size: cover; background-position: center 50%; }
.hero--sub > .container { width: 100%; padding-top: 24px; padding-bottom: 24px; }
@media (max-width: 767px) {
  .hero--sub { min-height: 164px; }
  .hero--sub > .container { padding-top: 20px; padding-bottom: 20px; }
}
.hero--sub::after { display: none; }
/* 大图版内页 banner 加一层左深右浅的薄罩，白字压在任何照片上都能读清（原来只靠 text-shadow） */
.hero--sub-img::after {
  content: ""; display: block; position: absolute; inset: 0; height: 100%;
  background: linear-gradient(90deg, rgba(6,22,34,.66) 0%, rgba(6,22,34,.42) 45%, rgba(6,22,34,.10) 100%);
}
.hero--sub .breadcrumbs { padding: 0 0 8px; color: rgba(255,255,255,.75); }
.hero--sub .breadcrumbs a { color: rgba(255,255,255,.9); }
.hero--sub .breadcrumbs .sep { color: rgba(255,255,255,.4); }
.hero--sub .breadcrumbs .cur { color: #fff; }
.hero--sub .hero-title { font-size: clamp(24px, 4vw, 36px); }
.hero--sub .hero-sub { margin: 8px 0 0; max-width: 760px; }
.hero--sub-img .hero-title, .hero--sub-img .hero-sub,
.hero--sub-img .breadcrumbs { text-shadow: 0 2px 12px rgba(6,22,34,.6); }
.hero-points { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; }
.hero-points span { font-size: 14px; opacity: .96; }
.section--soft { background: var(--blue-light); }

/* ---------- 2. 面包屑（全站开启，强化结构化抓取） ---------- */
.breadcrumbs {
  font-size: 13px; color: var(--ink-soft); padding: 12px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.breadcrumbs a { color: var(--blue); }
.breadcrumbs .sep { color: #c3bcb0; }
.breadcrumbs .cur { color: var(--ink); font-weight: 600; }

/* ---------- 3. 信任标识带（Footer 上方全局信任条） ---------- */
.trust-band {
  background: var(--blue-dark); color: #fff; padding: 18px 0;
}
.trust-band .row { justify-content: center; }
.trust-item {
  display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 4px 14px;
}
.trust-item i { color: var(--gold); font-size: 20px; }
.trust-item strong { font-weight: 700; }
.trust-item span { opacity: .9; }

/* ---------- 4. 底部悬浮三按钮（PRD 4.1 核心转化组件） ---------- */
.iberia-fab {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: grid; grid-template-columns: 1fr 1.3fr;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(0,0,0,.12);
  padding-bottom: env(safe-area-inset-bottom);
}
.iberia-fab a, .iberia-fab button {
  appearance: none; border: 0; background: #fff; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 9px 4px; font-size: 12.5px; cursor: pointer; text-decoration: none;
  border-right: 1px solid var(--line);
}
.iberia-fab a:last-child, .iberia-fab button:last-child { border-right: 0; }
.iberia-fab i { font-size: 21px; color: var(--terracotta); }
.iberia-fab .fab-cta {
  background: var(--terracotta); color: #fff; font-weight: 700; font-size: 14px;
}
.iberia-fab .fab-cta i { color: #fff; }
.iberia-fab .fab-label { white-space: nowrap; }
/* 桌面端：悬浮条收窄为右侧胶囊，避免遮挡内容 */
@media (min-width: 992px) {
  .iberia-fab {
    left: auto; right: 18px; bottom: 22px; width: auto;
    grid-template-columns: none; grid-auto-flow: column;
    border-radius: 999px; border: 0; overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
  }
  .iberia-fab a, .iberia-fab button { flex-direction: row; gap: 8px; padding: 13px 18px; font-size: 14px; }
  .iberia-fab .fab-label { font-size: 14px; }
}
body { padding-bottom: 64px; }
@media (min-width: 992px) { body { padding-bottom: 0; } }

/* 微信弹窗（二维码 + 一键复制） */
.wechat-modal {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(20,16,14,.55); align-items: center; justify-content: center; padding: 20px;
}
.wechat-modal.open { display: flex; }
.wechat-card {
  background: #fff; border-radius: 16px; max-width: 340px; width: 100%;
  padding: 22px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.3);
}
.wechat-card h3 { font-size: 18px; margin-bottom: 6px; }
.wechat-card p { color: var(--ink-soft); font-size: 13.5px; }
.wechat-qr { width: 200px; height: 200px; margin: 14px auto; border: 1px solid var(--line); border-radius: 10px; }
.wechat-id {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg); border: 1px dashed var(--gold); border-radius: 10px;
  padding: 10px 12px; font-weight: 700; letter-spacing: .5px;
}
.wechat-id button {
  border: 0; background: var(--blue); color: #fff; border-radius: 8px;
  padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.wechat-card .close { margin-top: 14px; color: var(--ink-soft); font-size: 13px; cursor: pointer; }

/* ---------- 5. 首页快速定制条（PRD 4.2 Quick Customizer） ---------- */
.quick-customizer {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; border-radius: 16px; padding: 22px; margin-top: -18px; position: relative; z-index: 5;
  box-shadow: var(--shadow-hover);
}
.quick-customizer h3 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.quick-customizer .qc-sub { opacity: .85; font-size: 13.5px; margin-bottom: 16px; }
.qc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.qc-field { display: flex; flex-direction: column; gap: 6px; }
.qc-field label { font-size: 13px; opacity: .85; }
.qc-field select, .qc-field input {
  border: 0; border-radius: 10px; padding: 11px 12px; font-size: 14px; color: var(--ink);
  background: #fff; width: 100%;
}
.qc-submit {
  grid-column: 1 / -1; margin-top: 4px; border: 0; border-radius: 10px;
  background: var(--gold); color: #23201d; font-weight: 800; padding: 13px; font-size: 15px; cursor: pointer;
}
.qc-submit:hover { background: #d8ad3c; }
.qc-result { grid-column: 1/-1; margin-top: 10px; font-size: 13.5px; color: var(--gold-light); display: none; }
.qc-result.show { display: block; }
@media (max-width: 768px) { .qc-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 6. 参数化表格（对比表 / 体验表 · AI 友好） ---------- */
.experience-table-container, .compare-table-wrap { margin: 22px 0; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.data-table, .compare-table {
  width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); font-size: 14px; min-width: 0;
}
/* 窄栏（如两列并排）下也保留可读列宽，超出部分在容器内横向滚动，绝不撑破页面 */
.data-table, .compare-table { min-width: 560px; }
@media (max-width: 575px) {
  .data-table, .compare-table { min-width: 520px; }
  .data-table th, .data-table td, .compare-table th, .compare-table td { padding: 10px; font-size: 13px; }
}
/* Bootstrap 列是 flex 子项，默认 min-width:auto 会被表格撑宽，导致整页横向溢出 */
.row > [class*="col-"] { min-width: 0; }
.data-table thead, .compare-table thead { background: var(--blue); color: #fff; }
.data-table th, .compare-table th { text-align: left; padding: 13px 14px; font-weight: 600; }
.data-table tbody td, .compare-table tbody td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:nth-child(even), .compare-table tbody tr:nth-child(even) { background: #fbfaf7; }
.data-table strong, .compare-table strong { color: var(--terracotta); }
.compare-table .win { color: var(--green); font-weight: 700; }
.data-table th, .data-table td, .compare-table th, .compare-table td { word-break: break-word; }
.compare-table-wrap > h2 { font-size: 20px; font-weight: 800; margin: 0 0 12px; color: var(--ink); }
@media (max-width: 1199px) {
  .data-table th, .data-table td, .compare-table th, .compare-table td { padding: 10px; font-size: 13px; }
}

/* ---------- 7. FAQ 手风琴（GEO 抓取核心，含 FAQPage schema） ---------- */
.faq-section { margin: 28px 0; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; border: 0; background: #fff; cursor: pointer;
  padding: 16px 18px; font-size: 15.5px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q .chev { transition: transform .2s; color: var(--terracotta); font-size: 18px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a > div { padding: 0 18px 16px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.75; }
.faq-a strong { color: var(--ink); }

/* ---------- 8. 路线 / 体验 / 司导卡片 ---------- */
.prod-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.prod-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.prod-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.prod-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .prod-grid.cols-3, .prod-grid.cols-4 { grid-template-columns: 1fr 1fr; } }
/* 手机端：卡片改横向滑动（一屏一排，页面不拉长），保留少量滚动余量提示可滑 */
@media (max-width: 600px) {
  .prod-grid, .prod-grid.cols-2, .prod-grid.cols-3, .prod-grid.cols-4 {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch;
  }
  .prod-grid > * { scroll-snap-align: start; }
}

.tour-card, .exp-card, .city-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column;
}
.tour-card:hover, .exp-card:hover, .city-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.tour-card .thumb, .exp-card .thumb, .city-card .thumb {
  aspect-ratio: 16/10; background-size: cover; background-position: center; position: relative;
}
.tour-card .badge, .exp-card .badge {
  position: absolute; top: 12px; left: 12px; background: rgba(181,52,31,.92); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600;
}
.tour-card .body, .exp-card .body, .city-card .body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.tour-card h3, .exp-card h3, .city-card h3 { font-size: 17px; margin-bottom: 6px; }
.tour-card .meta, .exp-card .meta { color: var(--ink-soft); font-size: 13px; margin-bottom: 10px; }
.tour-card .price { margin-top: auto; font-weight: 800; color: var(--terracotta); font-size: 16px; }
.tour-card .price small { color: var(--ink-soft); font-weight: 400; font-size: 12px; }

/* Musement 当地体验卡片 */
.exp-card .thumb { min-height: 170px; }
.exp-card .thumb img { width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.exp-tag { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px;
  background: var(--gold-light); color: var(--terracotta); font-size: 12px; font-weight: 600; }
.exp-card .price { margin-top: auto; font-weight: 800; color: var(--terracotta); font-size: 17px; }
.exp-card .price small { display: block; margin-top: 3px; color: var(--ink-soft); font-weight: 400; font-size: 11.5px; line-height: 1.4; }
.exp-rank {
  position: absolute; right: 12px; bottom: 12px; background: rgba(6,22,34,.78); color: #fff;
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; letter-spacing: .2px;
}
.exp-city { margin: 28px 0 8px; }
.exp-city:first-child { margin-top: 0; }
.exp-city-title { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.exp-city-title i { color: var(--terracotta); }

/* 旅行百科文章正文 */
.article-body { max-width: 800px; margin: 0 auto; }
.article-body p { font-size: 16.5px; line-height: 1.95; color: var(--ink-2); margin: 0 0 16px; }
.article-body h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 34px 0 14px;
  padding-left: 12px; border-left: 4px solid var(--terracotta); }
.article-body ul { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.article-body li { font-size: 16px; line-height: 1.85; color: var(--ink-2); margin-bottom: 8px; list-style: disc; }
.article-body a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }

/* 四大核心业务卡片（首页） */
.way-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; box-shadow: var(--shadow); transition: .2s; height: 100%; }
.way-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.way-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-light); color: var(--terracotta); font-size: 26px; }
.way-card h3 { font-size: 17px; margin-bottom: 6px; }
.way-card p { color: var(--ink-soft); font-size: 13.5px; }
.way-more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 13.5px; }

/* ---------- 9. 行程亮点 / 每日路线 / 客户口碑 ---------- */
.feature-list { display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list i { color: var(--green); font-size: 18px; margin-top: 3px; }
.day-plan {
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 12px; background: #fff; box-shadow: var(--shadow);
  padding: 14px 20px; margin: 0 auto 14px; max-width: 900px; position: relative;
}
.day-plan::before { display: none; }
.day-plan h4 { font-size: 16px; margin-bottom: 4px; }
.day-plan p { color: var(--ink-soft); font-size: 14px; margin-bottom: 0; }

.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 800px){ .testi-grid { grid-template-columns: 1fr; } }
.testi-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.testi-card .stars { color: var(--gold); }
.testi-card p { font-size: 14px; margin: 8px 0; }
.testi-card .who { font-size: 13px; color: var(--ink-soft); }

.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; text-align: center; }
@media (max-width: 700px){ .stat-row { grid-template-columns: 1fr 1fr; } }
.stat-row .num { font-size: 30px; font-weight: 800; color: var(--terracotta); }
.stat-row .lab { font-size: 13px; color: var(--ink-soft); }

/* 车队展示 */
.fleet-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 800px){ .fleet-grid { grid-template-columns: 1fr; } }
.fleet-card { border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; background:#fff; box-shadow: var(--shadow); }
.fleet-card .thumb { aspect-ratio: 16/9; background-size: cover; background-position: center; }
.fleet-card .body { padding: 14px 16px; }
.fleet-card h4 { font-size: 16px; }

/* 通用区块标题居中 */
.section-head.text-center { text-align: center; }
.section-head.text-center .section-desc { margin-left: auto; margin-right: auto; }

/* 表单反馈 */
.form-ok { display:none; background: var(--green); color:#fff; padding:12px 14px; border-radius:10px; margin-top:14px; font-size:14px; }
.form-ok.show { display:block; }
.form-err { display:none; background: #fbe3de; color: var(--terracotta-dark); padding:12px 14px; border-radius:10px; margin-top:14px; font-size:14px; }
.form-err.show { display:block; }

/* ---------- 在线咨询面板（点开即对话，消息实时同步） ---------- */
.iberia-fab button { position: relative; }
.iberia-fab .fab-dot {
  position: absolute; top: 6px; right: 24px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 2px #fff;
}
@media (min-width: 992px) {
  .iberia-fab .fab-dot { top: 10px; right: 12px; }
}

.chat-panel {
  position: fixed; right: 20px; bottom: 98px; z-index: 260;
  width: 372px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(12, 32, 46, .28);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }

.chat-head {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px; color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue) 62%, #2a6a92);
}
.chat-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); font-size: 16px;
}
.chat-head strong { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: .2px; }
.chat-state { display: block; font-size: 11.5px; opacity: .85; margin-top: 1px; }
.chat-state::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #7ee2a8; margin-right: 5px; vertical-align: 1px;
}
.chat-state.off::before { background: #f0c46a; }
.chat-close {
  appearance: none; border: 0; background: rgba(255, 255, 255, .14); color: #fff;
  width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer;
}
.chat-close:hover { background: rgba(255, 255, 255, .26); }

.chat-log {
  flex: 1 1 auto; min-height: 250px; max-height: 360px; overflow-y: auto;
  padding: 14px 14px 6px; background: #f6f8fa; display: flex; flex-direction: column; gap: 10px;
  -webkit-overflow-scrolling: touch;
}
.chat-msg { display: flex; }
.chat-msg > div { max-width: 84%; }
.chat-msg .chat-bub { max-width: 100%; }
.chat-msg.me { justify-content: flex-end; }
.chat-bub {
  max-width: 100%; padding: 9px 12px; border-radius: 13px; font-size: 13.5px; line-height: 1.62;
  word-break: break-word; white-space: pre-wrap;
}
.chat-msg.them .chat-bub { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; color: var(--ink); }
.chat-msg.me .chat-bub { background: var(--blue); color: #fff; border-top-right-radius: 4px; }
.chat-msg.bot .chat-bub { background: #eef4f8; border: 1px dashed #c5d7e4; color: #33506a; border-top-left-radius: 4px; }
.chat-msg .chat-time { font-size: 10.5px; color: #9aa8b3; margin-top: 4px; }
.chat-msg.me .chat-time { text-align: right; }
.chat-msg .chat-who { font-size: 10.5px; color: var(--ink-soft); margin-bottom: 3px; }

.chat-quick {
  flex: 0 0 auto;
  display: flex; gap: 6px; padding: 8px 14px 0; overflow-x: auto; background: #fff;
  scrollbar-width: none;
}
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button {
  flex: 0 0 auto; appearance: none; border: 1px solid var(--line); background: #fbfcfd;
  color: var(--ink-soft); border-radius: 999px; padding: 5px 11px; font-size: 12px; cursor: pointer;
}
.chat-quick button:hover { border-color: #b9cfdd; color: var(--blue); background: var(--blue-light); }

.chat-form { flex: 0 0 auto; display: flex; gap: 8px; padding: 10px 14px 8px; background: #fff; }
.chat-form input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 10px 15px; font-size: 13.5px; outline: none; background: #fbfcfd; color: var(--ink);
}
.chat-form input:focus { border-color: #8fb6cd; background: #fff; }
.chat-form button[type=submit] {
  appearance: none; border: 0; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
  background: var(--terracotta); color: #fff; font-size: 15px; cursor: pointer;
  display: grid; place-items: center;
}
.chat-form button[type=submit]:disabled { opacity: .55; cursor: default; }

.chat-foot {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 14px 11px; background: #fff; font-size: 11px; color: #8b97a2;
}
.chat-wechat {
  appearance: none; border: 0; background: none; color: var(--green); font-size: 11.5px;
  cursor: pointer; padding: 0; text-decoration: underline;
}

@media (max-width: 991px) {
  .chat-panel {
    right: 0; left: 0; bottom: 0; width: 100%; max-width: none;
    height: 78vh; border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }
  .chat-panel.open { transform: none; }
  .chat-log { max-height: none; }
  body.chat-open { overflow: hidden; }
}

/* ============================ 免费占位预订组件（2026-10-26） ============================ */
.book-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 24px 20px; box-shadow: var(--shadow);
}
.book-loading { padding: 34px 10px; text-align: center; color: var(--ink-soft); }
.book-err { padding: 26px 10px; text-align: center; color: var(--ink-soft); }
.book-err button { margin-top: 10px; }
.book-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.book-sub { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 6px; }
.book-field-label { font-size: 12.5px; color: var(--ink-soft); margin: 12px 0 6px; display: block; }
.book-select, .book-input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; color: var(--ink); background: #fff;
}
.book-select:focus, .book-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.book-types { margin-top: 4px; }
.book-type-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.book-type-row:last-child { border-bottom: 0; }
.book-type-name { font-size: 14px; color: var(--ink); }
.book-type-name small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
.book-type-price { color: var(--ink-soft); font-size: 12.5px; white-space: nowrap; }
.stepper { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.stepper button {
  width: 30px; height: 30px; border: 1px solid var(--line); background: #fff;
  border-radius: 9px; font-size: 16px; line-height: 1; cursor: pointer; color: var(--ink);
}
.stepper button:hover { border-color: var(--blue); color: var(--blue); }
.stepper b { min-width: 32px; text-align: center; font-size: 15px; }
.book-chosen { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); min-height: 18px; }
.book-chosen .warn { color: var(--terracotta); }
.book-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 12px;
}
.book-total span { font-size: 13.5px; color: var(--ink-soft); }
.book-total b { font-size: 24px; color: var(--terracotta); }
.book-total b small { font-size: 12.5px; color: var(--ink-soft); font-weight: 400; }
.book-submit {
  width: 100%; margin-top: 14px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: #fff; border-radius: 12px; padding: 13px; font-size: 15.5px; font-weight: 600;
}
.book-submit:hover { filter: brightness(1.06); }
.book-submit:disabled { opacity: .55; cursor: not-allowed; }
.book-note { margin-top: 10px; font-size: 12px; color: var(--ink-soft); text-align: center; }
.book-ok { text-align: center; padding: 16px 4px 6px; }
.book-ok .ok-ico {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--blue-light); color: var(--green); font-size: 28px; line-height: 56px;
}
.book-ok h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.book-ok .ok-no { font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.book-ok .ok-no b { color: var(--terracotta); }
.book-ok p { font-size: 13.5px; color: var(--ink-soft); margin: 0 auto; max-width: 380px; }
@media (max-width: 575px) { .book-box { padding: 18px 16px 16px; } }

/* ================= 全站节奏压缩（2026-10-27 整改） =================
   目标：桌面端每页尽量不超过 4 屏；卡片栅格在手机端改横向滑动。 */
.section { padding: 44px 0; }
.section--tight { padding: 34px 0; }
@media (max-width: 991.98px) { .section { padding: 34px 0; } .section--tight { padding: 26px 0; } }
@media (max-width: 575.98px) { .section { padding: 26px 0; } }
.faq-section { margin: 16px 0 20px; }

/* 四大核心业务（首页）：专用栅格，手机端横向滑动 */
.way-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 991.98px) { .way-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .way-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .way-grid > * { scroll-snap-align: start; }
}

/* 口碑 / 车队：手机端同样横向滑动，避免 3 张卡竖着堆 800px */
@media (max-width: 800px) {
  .testi-grid, .fleet-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch;
  }
  .testi-grid > *, .fleet-grid > * { scroll-snap-align: start; }
}

/* 体验目录折叠面板：默认只展开第一个城市，页面长度可控 */
.exp-city {
  margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; overflow: hidden;
}
.exp-city-title {
  display: flex; align-items: center; cursor: pointer; user-select: none;
  padding: 15px 18px; margin: 0; list-style: none;
  font-size: 17px; font-weight: 800; color: var(--ink);
}
.exp-city-title::-webkit-details-marker { display: none; }
.exp-city-title:hover { background: var(--blue-light); }
.exp-city-title i.bi-geo-alt-fill { color: var(--terracotta); }
.exp-caret { margin-left: auto; font-size: 13px; color: var(--ink-soft); transition: transform .2s; }
.exp-city[open] .exp-caret { transform: rotate(180deg); }
.exp-city > .prod-grid { padding: 4px 18px 18px; }
@media (max-width: 600px) {
  .exp-city > .prod-grid { padding: 4px 12px 14px; }
  .exp-city-title { padding: 13px 14px; font-size: 16px; }
}

/* 城市内二级折叠（展开剩余项目） */
.exp-more { padding: 0 18px 18px; }
.exp-more > summary {
  display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  padding: 10px; border: 1px dashed var(--line); border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--terracotta); list-style: none;
}
.exp-more > summary::-webkit-details-marker { display: none; }
.exp-more > summary:hover { background: var(--blue-light); }
.exp-more[open] > summary { margin-bottom: 14px; }
@media (max-width: 600px) { .exp-more { padding: 0 12px 14px; } }

/* ---- 二级压缩：内容密度 ---- */
.section { padding: 40px 0; }
.section-head { margin-bottom: 12px; }
.section-title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: .45rem; }
.section-desc { font-size: 14px; }
.tour-card .body, .exp-card .body, .city-card .body { padding: 12px 14px; }
.tour-card h3, .exp-card h3, .city-card h3 { font-size: 16px; }
.tour-card .thumb, .exp-card .thumb, .city-card .thumb { aspect-ratio: 16/9; }
.fleet-card .thumb { aspect-ratio: 21/9; }
.way-card { padding: 18px 14px; }
.way-icon { width: 48px; height: 48px; margin-bottom: 10px; font-size: 23px; }
.faq-q { padding: 12px 16px; font-size: 15px; }
.faq-a > div { padding: 0 16px 14px; font-size: 14px; }
.faq-item { margin-bottom: 10px; }
.testi-card { padding: 15px 16px; }
.quick-customizer { padding: 16px 20px; }
.day-plan { padding: 12px 16px; }

/* 咨询表单紧凑化 */
.form-card { padding: 20px 22px; }
.form-card .form-hint { margin-bottom: .9rem; }
.form-label { margin-bottom: .25rem; }
.form-control { padding: .5rem .7rem; }

/* 长表格折叠（经典路线参数表等） */
.collapse-table > summary {
  display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  padding: 12px; border: 1px dashed var(--line); border-radius: 10px; background: #fff;
  font-size: 14px; font-weight: 600; color: var(--terracotta); list-style: none;
}
.collapse-table > summary::-webkit-details-marker { display: none; }
.collapse-table > summary:hover { background: var(--blue-light); }
.collapse-table > .experience-table-container { margin-top: 16px; }

/* ================= 标签筛选（产品统一用标签陈列） ================= */
.tagbar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 18px;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600;
  line-height: 1.2; cursor: pointer; transition: background .16s, color .16s, border-color .16s;
}
.filter-chip .n { font-size: 11.5px; font-weight: 500; color: var(--ink-soft); }
.filter-chip:hover { border-color: var(--terracotta); color: var(--terracotta); }
.filter-chip.is-active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.filter-chip.is-active .n { color: rgba(255,255,255,.82); }
.filter-grid > [hidden] { display: none !important; }
.filter-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); font-size: 14px; padding: 28px 0; }
.filter-foot { text-align: center; margin-top: 18px; }
.filter-foot .btn { font-size: 14px; padding: 8px 22px; }
@media (max-width: 600px) {
  .tagbar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tagbar::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; }
}

/* 一行式快捷链接（替代卡片式目的地入口） */
.quick-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 22px;
}
.quick-links-label { font-size: 12.5px; color: var(--ink-soft); margin-right: 2px; }
.quick-links a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--ink-2); background: #fff;
  border: 1px dashed var(--line); border-radius: 999px; padding: 6px 13px;
  transition: .16s;
}
.quick-links a i { font-size: 11px; color: var(--terracotta); transition: transform .16s; }
.quick-links a:hover { border-style: solid; border-color: var(--terracotta); color: var(--terracotta); }
.quick-links a:hover i { transform: translateX(2px); }

/* /faq/ 分组 */
.faq-group { margin-bottom: 26px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group-title {
  font-size: 17px; font-weight: 800; color: var(--ink);
  margin: 0 0 10px; padding-left: 10px; border-left: 3px solid var(--gold);
}

/* 常见问题页：桌面双栏，页面更短 */
@media (min-width: 992px) {
  .faq-columns { column-count: 2; column-gap: 34px; }
  .faq-columns .faq-group { break-inside: avoid; page-break-inside: avoid; }
}
