/* ============ 亚太盛世 JoyTrip - 全站样式（PC + 移动端响应式） ============ */
:root {
  --primary: #0aa2e8;
  --primary-dark: #0678b8;
  --accent: #ff7d2f;
  --text: #222b38;
  --text-light: #6b7686;
  --bg-gray: #f4f7fa;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 46, 87, .10);
  --shadow-hover: 0 12px 32px rgba(15, 46, 87, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 9px 22px; border-radius: 999px;
  border: none; cursor: pointer; font-size: 14px; transition: .25s;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #ff5a3c); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255, 122, 47, .4); }
.btn-ghost { border: 1px solid var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* ---------- 顶部通栏 ---------- */
.topbar {
  background: linear-gradient(90deg, #ff5a3c, #ff9a3c); color: #fff; font-size: 12.5px;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.topbar-right a { margin-left: 16px; opacity: .95; }
.topbar-right a:hover { opacity: 1; text-decoration: underline; }

/* ---------- 主导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; height: 64px; gap: 28px; }
.logo { display: flex; align-items: center; }
.logo-img {
  height: 46px; width: auto; max-width: 200px;
  object-fit: contain; display: block;
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 15px; border-radius: 8px; font-size: 15px; font-weight: 500;
  color: #33404f; transition: .2s;
}
.nav a:hover, .nav a.active { color: var(--primary); background: #e8f6fe; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2.5px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero 轮播 + 搜索 ---------- */
.hero { position: relative; padding-bottom: 90px; }
.hero-slides { position: relative; height: 460px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; transition: opacity .8s; color: #fff;
}
.hero-slide .container h1 { font-size: 52px; line-height: 1.25; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.hero-slide .container p { font-size: 18px; margin-top: 14px; opacity: .95; }
.hero-slide.active { opacity: 1; }
.slide-a { background: linear-gradient(120deg, #0a6bd8 0%, #12a3e8 55%, #56cdf0 100%); }
.slide-b { background: linear-gradient(120deg, #134e8e 0%, #2274c9 60%, #4aa8e8 100%); }
.slide-c { background: linear-gradient(120deg, #c94b1d 0%, #e8742c 60%, #f5a24a 100%); }

.hero-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 118px; display: flex; gap: 8px; z-index: 5; }
.hero-dots .dot { width: 26px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; }
.hero-dots .dot.active { background: #fff; width: 40px; }

.search-wrap { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 10; }
.search-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 22px 14px;
}
.search-tabs { display: flex; gap: 22px; border-bottom: 1px solid #eef1f5; margin-bottom: 14px; }
.search-tabs .tab {
  background: none; border: none; font-size: 15.5px; font-weight: 600; color: var(--text-light);
  padding: 4px 2px 10px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.search-tabs .tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.search-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.search-form .field { flex: 1; min-width: 150px; }
.search-form label { display: block; font-size: 12.5px; color: var(--text-light); margin-bottom: 5px; }
.search-form input {
  width: 100%; height: 44px; border: 1.5px solid #e3e8ee; border-radius: 10px;
  padding: 0 12px; font-size: 14.5px; outline: none; transition: .2s;
}
.search-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,162,232,.12); }
.btn-search {
  height: 44px; padding: 0 34px; font-size: 16px; color: #fff; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); cursor: pointer; transition: .25s;
}
.btn-search:hover { filter: brightness(1.08); transform: translateY(-1px); }
.search-hot { margin-top: 12px; font-size: 13px; color: var(--text-light); }
.search-hot a { margin: 0 10px 0 2px; color: var(--primary-dark); }
.search-hot a:hover { text-decoration: underline; }

/* ---------- 服务保障 ---------- */
.assurance { padding: 30px 0 6px; }
.assurance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.a-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid #eef1f5; border-radius: var(--radius); padding: 20px 12px;
  transition: .25s;
}
.a-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.a-icon { font-size: 30px; margin-bottom: 6px; }
.a-item b { font-size: 15.5px; }
.a-item small { color: var(--text-light); font-size: 12.5px; }

/* ---------- 通用 Section ---------- */
.section { padding: 56px 0; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: linear-gradient(135deg, #123055, #1b4a7e); color: #fff; }
.section-head { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; position: relative; padding-left: 14px; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 5px;
  border-radius: 3px; background: linear-gradient(var(--primary), var(--accent));
}
.section-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.stag {
  border: none; background: #eef1f5; color: var(--text-light); font-size: 13.5px;
  padding: 6px 16px; border-radius: 999px; cursor: pointer; transition: .2s;
}
.stag:hover { color: var(--primary); }
.stag.active { background: #e0f4ff; color: var(--primary); font-weight: 600; }
.section-dark .stag { background: rgba(255,255,255,.14); color: rgba(255,255,255,.85); }
.section-dark .stag.active { background: #fff; color: var(--primary-dark); }
.more { margin-left: auto; font-size: 14px; color: var(--primary); }
.more.light { color: #9fd6ff; }

/* ---------- 产品卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 3px 14px rgba(15,46,87,.08); transition: .28s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-img { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; font-size: 42px; }
.badge {
  position: absolute; left: 10px; top: 10px; background: #ff5a3c; color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px;
}
.badge.diamond { left: auto; right: 10px; background: rgba(255,255,255,.92); color: #b8860b; }
.badge.discount { background: #ff5a3c; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-body h3 {
  font-size: 14.5px; line-height: 1.5; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 43px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  font-size: 11.5px; color: var(--primary-dark); background: #e8f6fe;
  padding: 2px 8px; border-radius: 4px;
}
.card-price { margin-top: auto; font-size: 13px; color: var(--text-light); }
.card-price em { font-style: normal; font-size: 21px; font-weight: 800; color: #ff5a3c; }
.card-price s { margin-left: 6px; font-size: 12.5px; color: #a9b2bd; }
.rating { font-size: 13px; color: #f5a623; }
.rating small { color: var(--text-light); margin-left: 8px; }

/* 渐变占位图（无外部图片依赖，离线可看） */
.img-tour1 { background: linear-gradient(135deg,#ffb35c,#ff6f61); }
.img-tour2 { background: linear-gradient(135deg,#f7c873,#c98a2d); }
.img-tour3 { background: linear-gradient(135deg,#37c8c3,#1a8fa8); }
.img-tour4 { background: linear-gradient(135deg,#a8d86a,#5cb85c); }
.img-tour5 { background: linear-gradient(135deg,#8e9eab,#eef2f3); }
.img-tour6 { background: linear-gradient(135deg,#f2709c,#ff9472); }
.img-tour7 { background: linear-gradient(135deg,#e05252,#8f3a3a); }
.img-tour8 { background: linear-gradient(135deg,#66a6ff,#89f7fe); }
.img-hotel1 { background: linear-gradient(135deg,#3a4a6b,#5a7fb5); }
.img-hotel2 { background: linear-gradient(135deg,#4aa3d8,#2a6ea8); }
.img-hotel3 { background: linear-gradient(135deg,#7a5cc0,#b58ae0); }
.img-hotel4 { background: linear-gradient(135deg,#2fb6a3,#66d9c2); }
.img-cruise1 { background: linear-gradient(135deg,#12406e,#2a7ac9); }
.img-cruise2 { background: linear-gradient(135deg,#833ab4,#e91e63); }
.img-cruise3 { background: linear-gradient(135deg,#1d976c,#93f9b9); }
.img-cruise4 { background: linear-gradient(135deg,#141e30,#4a6a95); }

/* ---------- 自由行目的地块 ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pkg {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: 0 3px 14px rgba(15,46,87,.08); transition: .28s; display: flex; flex-direction: column;
}
.pkg:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.pkg-img {
  height: 120px; display: flex; align-items: flex-end; padding: 14px;
  color: #fff; font-size: 24px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.pkg b { padding: 12px 14px 4px; font-size: 14.5px; }
.pkg .card-price { padding: 0 14px 16px; }
.img-pkg1 { background: linear-gradient(135deg,#f5576c,#f093fb); }
.img-pkg2 { background: linear-gradient(135deg,#4facfe,#00f2fe); }
.img-pkg3 { background: linear-gradient(135deg,#fa709a,#fee140); }
.img-pkg4 { background: linear-gradient(135deg,#30cfd0,#330867); }
.img-pkg5 { background: linear-gradient(135deg,#43e97b,#38f9d7); }
.img-pkg6 { background: linear-gradient(135deg,#667eea,#764ba2); }
.img-pkg7 { background: linear-gradient(135deg,#f6d365,#fda085); }
.img-pkg8 { background: linear-gradient(135deg,#89f7fe,#66a6ff); }

/* ---------- 机票列表 ---------- */
.flight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.flight {
  display: flex; align-items: center; gap: 16px; background: #fff;
  border: 1px solid #eef1f5; border-radius: var(--radius); padding: 16px 20px; transition: .25s;
}
.flight:hover { box-shadow: var(--shadow); border-color: transparent; }
.air-logo {
  width: 46px; height: 46px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-uo { background: #e8452c; } .logo-br { background: #0b7d4f; }
.logo-mu { background: #c8102e; } .logo-hu { background: #d81e36; }
.flight-info { flex: 1; display: flex; flex-direction: column; }
.flight-info b { font-size: 15px; }
.flight-info span { font-size: 14px; color: var(--text); }
.flight-info small { color: var(--text-light); font-size: 12.5px; }

/* ---------- 攻略 ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guide {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 3px 14px rgba(15,46,87,.08); transition: .28s;
}
.guide:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.guide-img { height: 130px; }
.img-guide1 { background: linear-gradient(135deg,#83a4d4,#b6fbff); }
.img-guide2 { background: linear-gradient(135deg,#f7971e,#ffd200); }
.img-guide3 { background: linear-gradient(135deg,#1a2980,#26d0ce); }
.img-guide4 { background: linear-gradient(135deg,#e0eafc,#cfdef3); }
.guide-body { padding: 14px 16px 16px; }
.guide-body h3 {
  font-size: 14.5px; font-weight: 600; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-body small { display: block; margin-top: 8px; color: var(--text-light); font-size: 12.5px; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 26px; margin-bottom: 16px; }
.about-text p { color: var(--text-light); margin-bottom: 22px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.about-stats div { text-align: center; background: var(--bg-gray); border-radius: 12px; padding: 14px 6px; }
.about-stats b { display: block; font-size: 22px; color: var(--primary-dark); }
.about-stats span { font-size: 12.5px; color: var(--text-light); }
.about-visual { position: relative; height: 300px; }
.about-card {
  position: absolute; border-radius: 16px; padding: 18px 22px; color: #fff; font-weight: 700;
  font-size: 16px; box-shadow: var(--shadow);
}
.card1 { top: 0; left: 6%; right: 34%; height: 130px; background: linear-gradient(135deg,#0aa2e8,#4ac3ff); }
.card2 { top: 30px; right: 0; left: 52%; height: 120px; background: linear-gradient(135deg,#ff7d2f,#ff9a3c); }
.card3 { bottom: 0; left: 0; right: 46%; height: 120px; background: linear-gradient(135deg,#22b573,#5fd8a0); }
.card4 { bottom: 14px; right: 4%; left: 56%; height: 130px; background: linear-gradient(135deg,#7a5cc0,#a88ae0); }

/* ---------- 页脚 ---------- */
.footer { background: #1c2733; color: #aab6c2; margin-top: 20px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 48px 0 34px;
}
.f-col h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.f-col a { display: block; font-size: 13.5px; margin-bottom: 9px; transition: .2s; }
.f-col a:hover { color: #fff; }
.hotline { font-size: 13px; }
.phone { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.time { font-size: 12.5px; margin-bottom: 14px; }
.qr-row { display: flex; gap: 16px; }
.qr { text-align: center; }
.qr-box {
  width: 74px; height: 74px; background: #fff; color: #1c2733; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border-radius: 8px; margin-bottom: 5px;
}
.qr small { font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 12.5px; text-align: center; }

/* ============================================================
   列表页 / 详情页 附加样式
   ============================================================ */

/* ---------- 页头横幅 + 面包屑 ---------- */
.page-banner {
  background: linear-gradient(120deg, #0a6bd8, #22a8e8); color: #fff;
  padding: 30px 0 34px;
}
.page-banner.slim { padding: 16px 0; }
.breadcrumb { font-size: 13px; opacity: .9; margin-bottom: 8px; }
.breadcrumb a:hover { text-decoration: underline; }
.page-banner h1 { font-size: 30px; }
.page-banner p { margin-top: 6px; font-size: 14px; opacity: .92; }
.page-banner b { color: #ffd28a; font-size: 16px; }

/* ---------- 列表页布局 ---------- */
.tours-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 24px;
  padding: 26px 0 50px; align-items: start;
}
.filter-panel {
  background: #fff; border: 1px solid #eef1f5; border-radius: var(--radius);
  padding: 20px 18px; box-shadow: 0 3px 14px rgba(15,46,87,.06);
  position: sticky; top: 84px;
}
.filter-group { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px dashed #e8ecf1; }
.filter-group:last-of-type { border-bottom: none; margin-bottom: 10px; }
.filter-group h4 { font-size: 15px; margin-bottom: 10px; }
.filter-group label {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px;
  color: #4a5566; margin-bottom: 7px; cursor: pointer;
}
.filter-group label:hover { color: var(--primary); }
.filter-group input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.fchip {
  border: 1px solid #dfe5ec; background: #fff; border-radius: 999px;
  font-size: 12.5px; padding: 4px 12px; color: #5a6675; cursor: pointer; transition: .2s;
}
.fchip:hover { border-color: var(--primary); color: var(--primary); }
.fchip.active { background: #e0f4ff; border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
.price-inputs { display: flex; align-items: center; gap: 6px; }
.price-inputs input {
  width: 100%; height: 34px; border: 1.5px solid #e3e8ee; border-radius: 8px;
  padding: 0 8px; font-size: 13px; outline: none;
}
.price-inputs input:focus { border-color: var(--primary); }
.price-inputs span { color: var(--text-light); }
.filter-btn { width: 100%; margin-bottom: 8px; padding: 10px; }
.filter-reset {
  width: 100%; background: none; border: none; color: var(--text-light);
  font-size: 13px; cursor: pointer; padding: 4px;
}
.filter-reset:hover { color: var(--primary); }

/* 排序条 */
.sort-bar {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid #eef1f5; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px;
}
.sort {
  border: none; background: none; font-size: 14px; color: var(--text-light);
  padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: .2s;
}
.sort:hover { color: var(--primary); }
.sort.active { color: var(--primary-dark); background: #e8f6fe; font-weight: 600; }
.sort-count { margin-left: auto; font-size: 13px; color: var(--text-light); }

/* 横向线路卡 */
.tour-list { display: flex; flex-direction: column; gap: 16px; }
.tour-row {
  display: flex; gap: 18px; background: #fff; border: 1px solid #eef1f5;
  border-radius: var(--radius); overflow: hidden; transition: .25s; padding: 0;
}
.tour-row:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: transparent; }
.tour-img {
  position: relative; width: 240px; min-height: 150px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.day-tag {
  position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.55);
  color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 999px;
}
.tour-info { flex: 1; padding: 16px 0; display: flex; flex-direction: column; gap: 9px; }
.tour-info h3 {
  font-size: 17px; font-weight: 700; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tour-row:hover .tour-info h3 { color: var(--primary-dark); }
.tour-desc {
  font-size: 13.5px; color: var(--text-light);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tour-side {
  width: 150px; flex-shrink: 0; padding: 16px 18px; border-left: 1px dashed #e8ecf1;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.tour-score b { font-size: 19px; color: #f5a623; }
.tour-score small { display: block; font-size: 11.5px; color: var(--text-light); }
.tour-sold { font-size: 12px; color: var(--text-light); }
.tour-side .card-price { text-align: right; margin-top: auto; }

/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; }
.pagination span { color: var(--text-light); }
.page-btn {
  min-width: 38px; height: 38px; border: 1px solid #dfe5ec; background: #fff;
  border-radius: 10px; font-size: 14px; color: #4a5566; cursor: pointer; transition: .2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.page-btn.next { padding: 0 16px; }

/* ---------- 详情页 ---------- */
.detail-head { padding: 18px 0 6px; }
.detail-title h1 { font-size: 26px; line-height: 1.45; margin: 10px 0 8px; }
.d-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.d-tag {
  font-size: 12.5px; padding: 3px 10px; border-radius: 6px;
  background: #e8f6fe; color: var(--primary-dark); font-weight: 600;
}
.d-tag.hot { background: #fff0e8; color: #e8532c; }
.d-sub { color: var(--text-light); font-size: 14px; }
.d-meta { display: flex; gap: 20px; margin-top: 12px; font-size: 13.5px; color: #4a5566; }
.d-meta span:first-child { color: #f5a623; font-weight: 700; }

.detail-layout {
  display: grid; grid-template-columns: 1fr 330px; gap: 28px;
  padding: 20px 0 60px; align-items: start;
}

/* 图集 */
.gallery { margin-bottom: 10px; }
.gallery-main {
  height: 400px; border-radius: var(--radius); transition: .3s;
  display: flex; align-items: center; justify-content: center; font-size: 60px; color: rgba(255,255,255,.5);
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gthumb {
  width: 88px; height: 62px; border-radius: 10px; border: 2.5px solid transparent;
  cursor: pointer; transition: .2s; padding: 0;
}
.gthumb.active { border-color: var(--primary); }
.img-gal1 { background: linear-gradient(135deg,#ffb35c,#ff6f61); }
.img-gal2 { background: linear-gradient(135deg,#37c8c3,#1a8fa8); }
.img-gal3 { background: linear-gradient(135deg,#66a6ff,#89f7fe); }
.img-gal4 { background: linear-gradient(135deg,#f2709c,#ff9472); }
.img-gal5 { background: linear-gradient(135deg,#8e9eab,#eef2f3); }

/* 详情区块 */
.d-section {
  background: #fff; border: 1px solid #eef1f5; border-radius: var(--radius);
  padding: 24px 26px; margin-top: 22px; box-shadow: 0 3px 14px rgba(15,46,87,.05);
}
.d-section h2 { font-size: 19px; margin-bottom: 18px; padding-left: 12px; border-left: 4px solid var(--primary); }
.highlight-list { list-style: none; }
.highlight-list li { padding: 8px 0; font-size: 14.5px; border-bottom: 1px dashed #f0f2f5; }
.highlight-list li:last-child { border-bottom: none; }

/* 行程手风琴 */
.iti-item { border: 1px solid #e8ecf1; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.iti-item.open { border-color: #bfe4f8; }
.iti-head {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: #f8fafc; border: none; padding: 14px 16px; cursor: pointer; transition: .2s;
}
.iti-item.open .iti-head { background: #e8f6fe; }
.iti-day {
  width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #4ac3ff);
  color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.iti-head b { font-size: 14.5px; display: block; }
.iti-head small { color: var(--text-light); font-size: 12.5px; }
.iti-head > div { flex: 1; }
.iti-arrow { color: var(--text-light); transition: transform .3s; }
.iti-item.open .iti-arrow { transform: rotate(180deg); }
.iti-body {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
  padding: 0 18px; font-size: 14px; color: #4a5566;
}
.iti-item.open .iti-body { max-height: 400px; padding: 14px 18px 18px; }
.iti-body p { margin-bottom: 8px; }
.iti-body p:last-child { margin-bottom: 0; }
.iti-body b { color: var(--primary-dark); }

/* 费用说明 */
.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fee-box { border-radius: 12px; padding: 18px 20px; }
.fee-box.include { background: #f0faf4; }
.fee-box.exclude { background: #fdf3f1; }
.fee-box h3 { font-size: 15.5px; margin-bottom: 12px; }
.fee-box.include h3 { color: #1d9e5f; }
.fee-box.exclude h3 { color: #d94a3a; }
.fee-box ul { list-style: none; }
.fee-box li { font-size: 13.5px; padding: 5px 0 5px 18px; position: relative; color: #4a5566; }
.fee-box.include li::before { content: "·"; position: absolute; left: 4px; color: #1d9e5f; font-weight: 800; }
.fee-box.exclude li::before { content: "·"; position: absolute; left: 4px; color: #d94a3a; font-weight: 800; }

/* 预订须知 */
.notice-list p { font-size: 13.5px; color: #4a5566; padding: 7px 0; border-bottom: 1px dashed #f0f2f5; }
.notice-list p:last-child { border-bottom: none; }
.notice-list b { color: var(--text); }

/* 评价 */
.review-summary {
  display: flex; gap: 26px; align-items: center; background: #f8fafc;
  border-radius: 12px; padding: 18px 22px; margin-bottom: 18px;
}
.rs-score { text-align: center; }
.rs-score b { display: block; font-size: 42px; color: #f5a623; line-height: 1.1; }
.rs-score span { font-size: 12.5px; color: var(--text-light); }
.rs-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rs-bar { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.rs-bar span { width: 60px; color: var(--text-light); flex-shrink: 0; }
.rs-bar .bar { flex: 1; height: 7px; background: #e8ecf1; border-radius: 4px; overflow: hidden; }
.rs-bar .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb84d, #f5a623); border-radius: 4px; }
.rs-bar em { font-style: normal; font-weight: 700; color: #f5a623; width: 30px; text-align: right; }

.review { border-bottom: 1px solid #f0f2f5; padding: 16px 0; }
.review:last-of-type { border-bottom: none; }
.r-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.r-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #e0f4ff; color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.r-head b { font-size: 14px; display: block; }
.r-head small { color: var(--text-light); font-size: 12px; }
.r-stars { margin-left: auto; font-size: 13px; }
.review p { font-size: 14px; color: #4a5566; }
.more-reviews {
  width: 100%; margin-top: 14px; padding: 10px; border: 1.5px solid #dfe5ec; border-radius: 10px;
  background: #fff; color: var(--primary-dark); font-size: 14px; cursor: pointer; transition: .2s;
}
.more-reviews:hover { border-color: var(--primary); background: #f2faff; }

/* 预订侧栏 */
.booking-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.price-card {
  background: #fff; border: 1px solid #eef1f5; border-radius: var(--radius);
  padding: 22px 20px; box-shadow: 0 6px 24px rgba(15,46,87,.10);
}
.pc-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pc-price em { font-style: normal; font-size: 34px; font-weight: 800; color: #ff5a3c; }
.pc-price span { color: var(--text-light); font-size: 13px; }
.pc-price s { color: #a9b2bd; font-size: 14px; }
.pc-off { background: #fff0e8; color: #e8532c; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.pc-promo {
  margin: 12px 0 16px; background: #fffbe8; border: 1px dashed #f0c94a;
  border-radius: 10px; padding: 9px 12px; font-size: 12.5px; color: #9a7b1a;
}
.pc-field { margin-bottom: 16px; }
.pc-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 9px; }
.date-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.dchip {
  border: 1.5px solid #dfe5ec; background: #fff; border-radius: 9px; padding: 6px 2px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s; line-height: 1.3;
}
.dchip small { font-weight: 400; font-size: 11px; color: var(--text-light); }
.dchip:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.dchip.active { border-color: var(--primary); background: #e8f6fe; color: var(--primary-dark); }
.dchip.sold { opacity: .45; cursor: not-allowed; }
.pc-count .count-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px dashed #f0f2f5; font-size: 14px;
}
.pc-count .count-row:last-child { border-bottom: none; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid #dfe5ec;
  background: #fff; font-size: 15px; cursor: pointer; color: #4a5566; transition: .2s;
}
.stepper button:hover { border-color: var(--primary); color: var(--primary); }
.count-row em { font-style: normal; font-size: 13px; color: var(--text-light); }

.btn-book {
  width: 100%; padding: 14px; border: none; border-radius: 12px; cursor: pointer;
  font-size: 17px; font-weight: 700; color: #fff; margin-top: 4px;
  background: linear-gradient(135deg, #ff5a3c, #ff7d2f); transition: .25s;
}
.btn-book:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,90,60,.4); }
.btn-fav {
  width: 100%; padding: 10px; margin-top: 10px; border: 1.5px solid #dfe5ec;
  border-radius: 12px; background: #fff; font-size: 14px; cursor: pointer; color: #4a5566; transition: .2s;
}
.btn-fav:hover { border-color: var(--primary); color: var(--primary); }
.pc-tip { margin-top: 12px; font-size: 12px; color: var(--text-light); text-align: center; }

.service-card {
  background: linear-gradient(135deg, #123a63, #1b5c96); color: #fff;
  border-radius: var(--radius); padding: 20px 22px;
}
.service-card h4 { font-size: 16px; margin-bottom: 8px; }
.sc-line { font-size: 12.5px; opacity: .85; }
.sc-phone { font-size: 24px; font-weight: 800; margin: 6px 0; letter-spacing: 1px; }
.sc-time { font-size: 12px; opacity: .75; margin-bottom: 12px; }
.sc-badges { display: flex; gap: 7px; flex-wrap: wrap; }
.sc-badges span { background: rgba(255,255,255,.15); border-radius: 999px; padding: 3px 11px; font-size: 12px; }

/* 移动端吸底预订条 */
.mobile-book-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 98;
  background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; gap: 14px;
}
.mb-price em { font-style: normal; font-size: 24px; font-weight: 800; color: #ff5a3c; }
.mb-price span { font-size: 12px; color: var(--text-light); }
.mb-btn { margin-left: auto; padding: 12px 34px; font-size: 16px; }

/* ---------- 列表/详情响应式 ---------- */
@media (max-width: 1024px) {
  .tours-layout { grid-template-columns: 210px 1fr; }
  .detail-layout { grid-template-columns: 1fr 300px; }
  .gallery-main { height: 300px; }
}

@media (max-width: 768px) {
  .page-banner h1 { font-size: 22px; }
  .page-banner { padding: 20px 0 24px; }

  /* 列表页：筛选收起为抽屉按钮，布局单列 */
  .tours-layout { grid-template-columns: 1fr; padding: 16px 0 40px; }
  .filter-panel { position: static; display: none; }
  .filter-panel.open { display: block; }
  .sort-bar { flex-wrap: wrap; }
  .sort-count { width: 100%; margin-left: 0; order: 10; }
  .tour-row { flex-wrap: wrap; }
  .tour-img { width: 100%; height: 150px; min-height: 0; }
  .tour-info { padding: 13px 14px 4px; }
  .tour-side {
    width: 100%; border-left: none; border-top: 1px dashed #e8ecf1;
    flex-direction: row; align-items: center; padding: 10px 14px 13px;
  }
  .tour-side .card-price { margin: 0 0 0 auto; }
  .tour-score small, .tour-sold { display: none; }

  /* 详情页 */
  .detail-title h1 { font-size: 19px; }
  .d-meta { flex-wrap: wrap; gap: 10px 16px; }
  .detail-layout { grid-template-columns: 1fr; gap: 0; }
  .gallery-main { height: 210px; font-size: 40px; border-radius: 12px; }
  .gthumb { width: 64px; height: 46px; }
  .d-section { padding: 18px 16px; margin-top: 16px; }
  .d-section h2 { font-size: 17px; }
  .fee-grid { grid-template-columns: 1fr; }
  .review-summary { flex-direction: column; align-items: stretch; gap: 14px; }
  .rs-score b { font-size: 32px; }

  /* 侧栏移到主内容之后（HTML 顺序自然靠后），吸底预订条替代 */
  .booking-side { position: static; }
  .price-card .btn-book, .price-card .btn-fav { display: none; }
  .mobile-book-bar { display: flex; }
  .back-top { bottom: 76px; }
  body { padding-bottom: 62px; }
}

/* ============================================================
   登录 / 注册 / 会员中心 附加样式
   ============================================================ */

/* ---------- 登录注册页 ---------- */
.auth-body { background: #fff; }
.auth-wrap { display: grid; grid-template-columns: 1fr 1.1fr; min-height: calc(100vh - 130px); }
.auth-side {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a6bd8 0%, #12a3e8 60%, #4ac3ff 100%);
  display: flex; align-items: center;
}
.side-register { background: linear-gradient(135deg, #e8742c 0%, #ff5a3c 60%, #ff9a3c 100%); }
.auth-side-inner { position: relative; z-index: 2; padding: 8% 10%; color: #fff; }
.auth-side-inner h2 { font-size: 36px; line-height: 1.35; text-shadow: 0 3px 18px rgba(0,0,0,.2); }
.auth-side-inner > p { margin: 14px 0 26px; font-size: 16px; opacity: .92; }
.auth-side-inner ul { list-style: none; }
.auth-side-inner li { padding: 9px 0; font-size: 15px; border-bottom: 1px dashed rgba(255,255,255,.25); }
.auth-deco { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.auth-deco.c1 { width: 320px; height: 320px; right: -100px; top: -80px; }
.auth-deco.c2 { width: 220px; height: 220px; left: -60px; bottom: -70px; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 6%; }
.auth-box { width: 100%; max-width: 430px; }
.auth-box h1 { font-size: 27px; }
.auth-sub { color: var(--text-light); margin: 8px 0 22px; font-size: 14.5px; }

.auth-tabs { display: flex; gap: 26px; border-bottom: 1px solid #eef1f5; margin-bottom: 20px; }
.atab {
  background: none; border: none; font-size: 15.5px; font-weight: 600; color: var(--text-light);
  padding: 6px 2px 12px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.atab.active { color: var(--primary); border-bottom-color: var(--primary); }

.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.auth-field .req { color: #ff5a3c; font-style: normal; }
.input-ico {
  display: flex; align-items: center; gap: 10px; border: 1.5px solid #e3e8ee;
  border-radius: 11px; padding: 0 14px; height: 48px; transition: .2s;
}
.input-ico:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,162,232,.12); }
.input-ico span { font-size: 16px; }
.input-ico input { flex: 1; border: none; outline: none; font-size: 15px; background: none; }
.eye { background: none; border: none; font-size: 16px; cursor: pointer; opacity: .55; }
.eye:hover { opacity: 1; }
.field-tip { display: block; margin-top: 5px; font-size: 12px; min-height: 15px; color: #d94a3a; }
.field-tip.ok { color: #1d9e5f; }

.sms-row { display: flex; gap: 10px; }
.sms-row .input-ico { flex: 1; }
.btn-sms {
  min-width: 118px; border: 1.5px solid var(--primary); background: #fff; color: var(--primary);
  border-radius: 11px; font-size: 13.5px; cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn-sms:hover:not(:disabled) { background: #e8f6fe; }
.btn-sms:disabled { border-color: #dfe5ec; color: var(--text-light); cursor: not-allowed; }

.pwd-strength { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.pwd-strength i { flex: 1; height: 5px; border-radius: 3px; background: #e8ecf1; transition: .3s; }
.pwd-strength i.on-1 { background: #ff5a3c; }
.pwd-strength i.on-2 { background: #ffb84d; }
.pwd-strength i.on-3 { background: #1d9e5f; }
.pwd-strength small { font-size: 11.5px; color: var(--text-light); flex-shrink: 0; width: 62px; text-align: right; }

.auth-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; }
.remember { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-light); cursor: pointer; }
.remember input { accent-color: var(--primary); }
.forgot { font-size: 13px; color: var(--primary); }
.btn-auth {
  width: 100%; padding: 14px; border: none; border-radius: 12px; cursor: pointer;
  font-size: 16.5px; font-weight: 700; color: #fff; letter-spacing: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); transition: .25s;
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,162,232,.35); }
.auth-alt { margin-top: 28px; text-align: center; }
.auth-alt > span { display: block; font-size: 12.5px; color: #a9b2bd; position: relative; margin-bottom: 14px; }
.auth-alt > span::before, .auth-alt > span::after {
  content: ""; position: absolute; top: 50%; width: 32%; height: 1px; background: #eef1f5;
}
.auth-alt > span::before { left: 0; }
.auth-alt > span::after { right: 0; }
.social-row { display: flex; justify-content: center; gap: 16px; }
.social {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #e3e8ee; background: #fff;
  font-size: 19px; cursor: pointer; transition: .2s;
}
.social:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.social.wx:hover { border-color: #1dca5a; } .social.qq:hover { border-color: #12a3e8; }
.social.al:hover { border-color: #1677ff; }
.auth-switch { margin-top: 24px; text-align: center; font-size: 14px; color: var(--text-light); }
.auth-switch a { color: var(--primary); font-weight: 600; }
.auth-agree { margin-top: 10px; text-align: center; font-size: 12px; color: #a9b2bd; }
.auth-agree a { color: var(--text-light); }
.slim-footer { border-top: 1px solid #eef1f5; padding: 14px 0; }

/* ---------- 会员中心 ---------- */
.user-chip {
  font-size: 14px; font-weight: 600; color: var(--primary-dark); background: #e8f6fe;
  padding: 8px 16px; border-radius: 999px; transition: .2s;
}
.user-chip:hover { background: #d3efff; }

.member-head { margin-top: -8px; }
.mh-card {
  background: linear-gradient(120deg, #123a63, #1b5c96); color: #fff;
  border-radius: var(--radius); padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.mh-user { display: flex; align-items: center; gap: 16px; }
.mh-avatar {
  width: 66px; height: 66px; border-radius: 50%; background: linear-gradient(135deg, #ffb84d, #ff7d2f);
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800;
  border: 3px solid rgba(255,255,255,.4); flex-shrink: 0;
}
.mh-info b { font-size: 19px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mh-level {
  font-size: 12px; font-weight: 700; background: linear-gradient(135deg, #ffd28a, #f5a623);
  color: #6b4400; padding: 3px 10px; border-radius: 999px;
}
.mh-info small { display: block; margin-top: 5px; opacity: .8; font-size: 12.5px; }
.mh-stats { display: flex; gap: 8px; }
.mh-stats a {
  color: #fff; text-align: center; background: rgba(255,255,255,.12); border-radius: 12px;
  padding: 10px 18px; min-width: 78px; transition: .2s;
}
.mh-stats a:hover { background: rgba(255,255,255,.22); }
.mh-stats b { display: block; font-size: 20px; }
.mh-stats span { font-size: 12px; opacity: .85; }

.member-layout {
  display: grid; grid-template-columns: 210px 1fr; gap: 22px;
  padding: 22px 0 56px; align-items: start;
}
.mside {
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: 84px;
}
.mside-item {
  text-align: left; background: #fff; border: 1.5px solid #eef1f5; border-radius: 12px;
  padding: 13px 18px; font-size: 14.5px; color: #4a5566; cursor: pointer; transition: .2s;
}
.mside-item:hover { border-color: var(--primary); color: var(--primary); }
.mside-item.active { background: #e8f6fe; border-color: var(--primary); color: var(--primary-dark); font-weight: 700; }
.mside-item.exit { color: #d94a3a; }
.mside-item.exit:hover { border-color: #d94a3a; background: #fdf3f1; }

.panel { display: none; }
.panel.active { display: block; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h2 { font-size: 19px; padding-left: 12px; border-left: 4px solid var(--primary); }
.panel-tip { font-size: 13px; color: var(--text-light); }

/* 订单 */
.order-tabs { display: flex; gap: 6px; background: #fff; border: 1px solid #eef1f5; border-radius: 12px; padding: 8px; margin-bottom: 16px; }
.otab {
  flex: 1; border: none; background: none; font-size: 13.5px; color: var(--text-light);
  padding: 8px 6px; border-radius: 9px; cursor: pointer; transition: .2s; white-space: nowrap;
}
.otab i { font-style: normal; color: #ff5a3c; font-weight: 700; }
.otab:hover { color: var(--primary); }
.otab.active { background: #e8f6fe; color: var(--primary-dark); font-weight: 700; }
.order-card { background: #fff; border: 1px solid #eef1f5; border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; transition: .2s; }
.order-card:hover { box-shadow: var(--shadow); }
.oc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 18px; background: #f8fafc; font-size: 13px; color: var(--text-light);
}
.st { font-size: 12.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.st-unpaid { background: #fff0e8; color: #e8532c; }
.st-upcoming { background: #e8f6fe; color: #0678b8; }
.st-done { background: #f0faf4; color: #1d9e5f; }
.st-refund { background: #f4f0fa; color: #7a5cc0; }
.oc-body { display: flex; gap: 16px; padding: 16px 18px; align-items: center; }
.oc-img { width: 130px; height: 88px; border-radius: 10px; flex-shrink: 0; }
.oc-info { flex: 1; min-width: 0; }
.oc-info h3 { font-size: 15px; margin-bottom: 7px; }
.oc-info p { font-size: 12.5px; color: var(--text-light); }
.oc-side { text-align: right; flex-shrink: 0; }
.oc-side b { font-size: 19px; color: #ff5a3c; display: block; }
.oc-side small { font-size: 12px; color: var(--text-light); }
.oc-actions { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; align-items: flex-end; }
.mini-btn {
  display: inline-block; font-size: 12.5px; padding: 6px 16px; border-radius: 999px;
  border: 1.5px solid #dfe5ec; background: #fff; color: #4a5566; transition: .2s; cursor: pointer;
}
.mini-btn:hover { border-color: var(--primary); color: var(--primary); }
.mini-btn.primary { background: linear-gradient(135deg, #ff5a3c, #ff7d2f); border-color: transparent; color: #fff; }
.mini-btn.primary:hover { filter: brightness(1.06); color: #fff; }

/* 优惠券 */
.coupon-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.coupon {
  display: flex; align-items: center; background: #fff; border: 1px solid #eef1f5;
  border-radius: var(--radius); overflow: hidden; transition: .2s;
}
.coupon:hover { box-shadow: var(--shadow); }
.cp-left {
  width: 150px; flex-shrink: 0; text-align: center; color: #fff; padding: 18px 8px;
  background: linear-gradient(135deg, #ff5a3c, #ff9a3c);
  display: flex; flex-direction: column; gap: 2px;
  border-right: 2px dashed rgba(255,255,255,.5);
}
.cp-left em { font-style: normal; font-size: 26px; font-weight: 800; }
.cp-left span { font-size: 11.5px; opacity: .9; }
.cp-right { flex: 1; padding: 14px 18px; }
.cp-right b { font-size: 15px; display: block; }
.cp-right small { display: block; font-size: 12px; color: var(--text-light); }
.cp-use { margin-right: 18px; border: 1.5px solid #ff5a3c; color: #ff5a3c; background: #fff; border-radius: 999px; padding: 7px 18px; font-size: 13px; cursor: pointer; transition: .2s; flex-shrink: 0; }
.cp-use:hover:not(:disabled) { background: #ff5a3c; color: #fff; }
.cp-use:disabled { border-color: #dfe5ec; color: var(--text-light); cursor: not-allowed; }
.coupon.used .cp-left { background: linear-gradient(135deg, #9aa7b5, #b8c2cc); }
.coupon.expired .cp-left { background: linear-gradient(135deg, #c3cbd4, #dde3e9); }
.coupon.used .cp-right b, .coupon.expired .cp-right b { color: var(--text-light); }

/* 常用旅客 */
.pax-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pax-card { background: #fff; border: 1px solid #eef1f5; border-radius: var(--radius); padding: 18px 20px; transition: .2s; }
.pax-card:hover { box-shadow: var(--shadow); }
.pax-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pax-top b { font-size: 16px; }
.pax-type { font-size: 12px; background: #e8f6fe; color: var(--primary-dark); padding: 2px 10px; border-radius: 999px; }
.pax-type.child { background: #fff0e8; color: #e8532c; }
.pax-card p { font-size: 13px; color: var(--text-light); padding: 2px 0; }
.pax-actions { margin-top: 12px; display: flex; gap: 14px; }
.pax-actions a { font-size: 13px; color: var(--primary); }

/* 账户设置 */
.settings-form { background: #fff; border: 1px solid #eef1f5; border-radius: var(--radius); padding: 26px 28px; max-width: 620px; }
.sf-row { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px dashed #f0f2f5; }
.sf-row label:first-child { width: 90px; flex-shrink: 0; font-size: 14px; font-weight: 600; }
.sf-row input {
  flex: 1; max-width: 320px; height: 42px; border: 1.5px solid #e3e8ee; border-radius: 10px;
  padding: 0 14px; font-size: 14px; outline: none; transition: .2s;
}
.sf-row input:focus { border-color: var(--primary); }
.sf-row input:disabled { background: #f6f8fa; color: var(--text-light); }
.sf-avatar {
  width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #ffb84d, #ff7d2f);
  color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.sf-change { border: none; background: none; color: var(--primary); font-size: 12px; cursor: pointer; margin-left: 10px; }
.sf-static { flex: 1; font-size: 13.5px; color: var(--text-light); }
.sf-link { font-size: 13px; color: var(--primary); flex-shrink: 0; }
.switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; background: #ccd4dc; border-radius: 999px; cursor: pointer; transition: .3s;
}
.switch i::before {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  left: 3px; top: 3px; transition: .3s; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::before { transform: translateX(22px); }
.sf-save { margin-top: 22px; letter-spacing: 3px; }

/* ---------- 登录注册/会员响应式 ---------- */
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 34px 6% 50px; }
  .member-layout { grid-template-columns: 1fr; }
  .mside { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .mside-item { white-space: nowrap; padding: 10px 16px; }
  .mside-item.exit { margin-left: auto; }
  .oc-body { flex-wrap: wrap; }
  .oc-img { width: 100%; height: 130px; }
  .oc-side { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; }
  .oc-side b { font-size: 17px; }
  .oc-actions { margin: 0 0 0 auto; flex-direction: row; }
  .pax-list { grid-template-columns: 1fr; }
  .mh-card { padding: 18px; }
  .mh-stats { width: 100%; justify-content: space-between; }
  .mh-stats a { min-width: 0; padding: 8px 10px; flex: 1; }
  .order-tabs { overflow-x: auto; }
  .otab { padding: 8px 10px; }
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 30px; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: var(--primary); color: #fff; font-size: 19px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: .3s; box-shadow: var(--shadow); z-index: 99;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--primary-dark); }

/* ================= 移动端适配 ================= */
@media (max-width: 1024px) {
  .card-grid, .grid-4, .pkg-grid, .guide-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
}

@media (max-width: 768px) {
  .topbar-left { font-size: 11.5px; }
  .topbar-right a:nth-child(n+2) { display: none; }

  /* 汉堡菜单 */
  .hamburger { display: block; }
  .header-inner { height: 58px; gap: 12px; }
  .logo-img { height: 38px; max-width: 150px; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-primary { padding: 7px 14px; font-size: 13px; }
  .nav {
    position: fixed; top: 58px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.12); margin-left: 0;
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.open { max-height: 340px; }
  .nav a { padding: 13px 22px; border-radius: 0; border-bottom: 1px solid #f2f4f7; }
  .hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* Hero */
  .hero-slides { height: 340px; }
  .hero-slide .container h1 { font-size: 30px; }
  .hero-slide .container p { font-size: 14px; }
  .hero-dots { bottom: 190px; }
  .search-wrap { position: relative; bottom: auto; margin-top: -60px; }
  .search-box { padding: 14px 14px 12px; }
  .search-tabs { gap: 16px; margin-bottom: 10px; }
  .search-tabs .tab { font-size: 14px; }
  .search-form { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-search { width: 100%; }

  /* 布局压缩 */
  .section { padding: 36px 0; }
  .section-head h2 { font-size: 20px; }
  .section-tabs { display: none; }
  .assurance-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-grid, .grid-4, .pkg-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-img { height: 110px; font-size: 34px; }
  .pkg-img { height: 90px; font-size: 19px; }
  .card-body { padding: 11px 12px 13px; }
  .card-body h3 { font-size: 13px; min-height: 39px; }
  .flight-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); padding: 32px 0 24px; }
  .phone { font-size: 21px; }
}

@media (max-width: 420px) {
  .card-grid, .pkg-grid, .guide-grid { grid-template-columns: 1fr 1fr; }
  .hero-slides { height: 300px; }
  .hero-slide .container h1 { font-size: 25px; }
}
