/* ============================================
   高端伴游网站 - 全新样式表
   主色调：香槟金 #c9a87c
   布局：Flexbox + CSS Variables
   响应式：768px 断点
   ============================================ */

/* ========== CSS 变量 ========== */
:root {
    --primary: #c9a87c;
    --primary-light: rgba(201, 168, 124, 0.15);
    --primary-dark: #b8956a;
    --dark-bg: #2d2640;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --white: #ffffff;
    --border-light: #f0f0f0;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* ========== 全局重置 ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.6;
    overflow-y: scroll;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ========== 工具类 ========== */
.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 40px 0;
}

/* ========== 头部导航 ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}

.header .logo img {
    height: 40px;
}

.header-nav {
    display: flex;
    gap: 0;
}

.header-nav li a {
    display: block;
    padding: 0 20px;
    height: 66px;
    line-height: 66px;
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition);
}

.header-nav li a:hover,
.header-nav li.active a {
    color: var(--primary);
}

.header-nav li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ========== Hero 区域 ========== */
.hero-banner {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #3d3454 100%);
    padding: 10px 0 10px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
}

.hero-banner .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    text-align: center;
    color: var(--white);
    margin-bottom: 10px;
}

.hero-title h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.hero-title .hero-heading {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
	color: rgb(255 255 255);
}
.hero-title h1 span {
    color: var(--primary);
}

.hero-title p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

/* Hero 搜索框 */
.hero-search {
    display: flex;
    max-width: 700px;
    margin: 35px auto 0;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero-search select,
.hero-search input {
    border: none;
    outline: none;
    font-size: 14px;
    padding: 14px 16px;
}

.hero-search select {
    width: 140px;
    border-right: 1px solid #eee;
    background: #fafafa;
    color: var(--text-dark);
    cursor: pointer;
}

.hero-search input {
    flex: 1;
}

.hero-search button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 35px;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

.hero-search button:hover {
    background: var(--primary-dark);
}

/* Hero 数据统计 */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-item .num {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-item .label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    display: block;
}

/* ========== 通用标题 ========== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.section-title h2 {
    font-size: 22px;
    color: var(--text-dark);
    position: relative;
    padding-left: 14px;
}

.section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title .more {
    font-size: 13px;
    color: var(--text-light);
    transition: var(--transition);
}

.section-title .more:hover {
    color: var(--primary);
}

.hot-tag {
    display: inline-block;
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ========== 服务卡片横滑区 ========== */
.service-scroll-wrap {
    position: relative;
}

.service-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.service-scroll::-webkit-scrollbar {
    height: 4px;
}

.service-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.service-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.service-card {
    flex: 0 0 auto;
    width: 170px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #000;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-img img {
    transform: scale(1.05);
}

.card-img .card-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 2;
}

.card-img .card-stats {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 8px;
    border-radius: 12px;
}

.card-img .card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    z-index: 2;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info {
    padding: 10px;
    text-align: center;
}

.card-info .price {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

/* ========== 双栏布局区 ========== */
.two-col {
    display: flex;
    gap: 20px;
}

.col-left {
    flex: 1;
    min-width: 0;
}

.col-right {
    width: 360px;
    flex-shrink: 0;
}

/* ========== 新闻列表 ========== */
.news-list-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    transition: var(--transition);
    cursor: pointer;
}

.news-list-item:hover {
    padding-left: 6px;
}

.news-date {
    width: 56px;
    height: 56px;
    background: #f8f5f0;
    border-radius: 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.news-date .day {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.news-date .month {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

.news-title {
    font-size: 15px;
    color: var(--text-dark);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-title:hover {
    color: var(--primary);
}

/* ========== 侧边栏 ========== */
.sidebar-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sidebar-box h3 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-hot li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #fafafa;
}

.sidebar-hot li:last-child {
    border-bottom: none;
}

.sidebar-hot .rank {
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-right: 10px;
    flex-shrink: 0;
    background: #bdc3c7;
}

.sidebar-hot li:nth-child(1) .rank { background: #e74c3c; }
.sidebar-hot li:nth-child(2) .rank { background: #f39c12; }
.sidebar-hot li:nth-child(3) .rank { background: #2ecc71; }

.sidebar-hot li a {
    font-size: 14px;
    color: var(--text-dark);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-hot li a:hover {
    color: var(--primary);
}

/* ========== 关于我们 ========== */
.about-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.about-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.about-content img {
    width: 280px;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.about-text p {
    line-height: 1.9;
    color: var(--text-gray);
}

/* ========== FAQ 手风琴 ========== */
.faq-section {
    background: #fafafa;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #f5f5f5;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.faq-head:hover {
    background: #fdfaf7;
}

.faq-head .faq-icon {
    margin-right: 10px;
    font-size: 16px;
    color: var(--primary);
}

.faq-head .faq-arrow {
    transition: var(--transition);
    color: var(--primary);
    transform: rotate(0deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-body-inner {
    padding: 0 28px 22px;
    line-height: 1.9;
    color: var(--text-gray);
}

/* ========== 友情链接 ========== */
.link-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-pill {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.link-pill:hover {
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ========== 页脚 ========== */
.footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 桌面端4列 */
  gap: 24px;
  margin-bottom: 32px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    padding: 5px 0;
    font-size: 13px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-qrcode {
    text-align: center;
}

.footer-qrcode img {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.footer-qrcode p {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* ========== 响应式设计 (≤768px) ========== */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .section {
        padding: 25px 0;
    }

    .header-nav {
        display: none;
    }

    .hero-banner {
        padding: 5px 0 14px;
    }

    .hero-title h1 {
        font-size: 24px;
    }

    .hero-search {
        flex-wrap: wrap;
        border-radius: 10px;
        margin: 25px auto 0;
    }

    .hero-search select {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .hero-search input {
        width: 100%;
    }

    .hero-search button {
        width: 100%;
    }

    .hero-stats {
        gap: 20px;
        margin-top: 25px;
    }

    .hero-stats .stat-item .num {
        font-size: 24px;
    }

    .two-col {
        flex-direction: column;
    }

    .col-right {
        width: 100%;
    }

    .about-content {
        flex-direction: column;
    }

    .about-content img {
        width: 100%;
    }

    .service-card {
        width: 145px;
    }

    .footer-grid {
    grid-template-columns: repeat(2, 1fr); /* 变为2列，自动形成2×2 */
    gap: 20px 16px; /* 可选：行间距20px, 列间距16px */
    }

    .faq-head {
        padding: 15px 18px;
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 18px;
    }
}



/* 伴游故事体验卡片网格 */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.story-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333;
}
.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.story-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.story-card:hover .story-img img {
  transform: scale(1.05);
}
.story-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary, #9b59b6);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.story-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.story-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-date {
  font-size: 12px;
  color: #b0b0b0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.story-date::before {
  content: '📅';
  font-size: 13px;
}

@media (max-width: 600px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
  .story-img {
    height: 180px;
  }
}
/* 伴游故事结束 */

/* ========== 平台三大保障板块 ========== */
.guarantee-section {
  background: #fff;
  padding: 60px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.section-title .subtitle {
  font-size: 15px;
  color: #999;
  margin: 0;
}

/* 网格布局 */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* 单个保障卡片 */
.guarantee-item {
  text-align: center;
  padding: 30px 20px 24px;
  border-radius: 16px;
  background: #fdf8ff;       /* 淡紫底色，呼应主色调 */
  transition: transform 0.3s, box-shadow 0.3s;
}
.guarantee-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(156, 103, 224, 0.12);
}

/* 图标圆形区 */
.guarantee-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--primary, #9b59b6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  line-height: 1;
}

/* ---- 两种图标方案：二选一 ---- */
/* 方案一：使用 emoji 占位（不需要图片文件） */
.guarantee-item:nth-child(1) .guarantee-icon::after { content: '✅'; }
.guarantee-item:nth-child(2) .guarantee-icon::after { content: '📸'; }
.guarantee-item:nth-child(3) .guarantee-icon::after { content: '🤝'; }

/* 方案二：使用图片图标（推荐）
   将下面代码取消注释，同时删除上面三行 emoji 代码
   并确保图片路径正确：
.guarantee-icon img {
  max-width: 44px;
  max-height: 44px;
}
*/

/* 卡片文字 */
.guarantee-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #333;
}
.guarantee-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* 移动端适配 */
@media (max-width: 600px) {
  .guarantee-section {
    padding: 40px 0;
  }
  .section-title h2 {
    font-size: 24px;
  }
  .guarantee-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }
  .guarantee-item {
    padding: 10px 16px 10px;
  }
  .guarantee-icon {
    width: 64px;
    height: 45px;
    font-size: 28px;
  }
}

/* 三大保障区结束 */

/* ========== 伴游推荐板块 ========== */
.companion-section {
  background: #fff;
  padding: 60px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}
.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}
.section-title .subtitle {
  font-size: 15px;
  color: #999;
  margin: 0 0 8px;
}
.section-title .more {
  display: inline-block;
  margin-top: 8px;
  color: var(--primary, #9b59b6);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.section-title .more:hover {
  border-bottom-color: var(--primary, #9b59b6);
}
/* ---- 视频验证小标 ---- */
.companion-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary, #9b59b6);
  color: #fff;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
  white-space: nowrap;
  z-index: 2;
}
/* ---- 简介文字 ---- */
.companion-desc {
  font-size: 13px;
  color: #999;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 悬停时紫色边框感 */
.companion-card:hover {
  outline: 1px solid rgba(155, 89, 182, 0.25);
}
/* ========== 伴游推荐板块结束 ========== */
/* 伴游卡片网格 */
.companion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.companion-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.companion-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(156, 103, 224, 0.12);
}
.companion-img {
  position: relative;
  width: 100%;
  padding-top: 60%; /* 竖版照片比例，可调 */
  overflow: hidden;
  background: #f2f2f2;
}
.companion-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.companion-card:hover .companion-img img {
  transform: scale(1.05);
}
.companion-city {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
}
.companion-info {
  padding: 14px 12px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.companion-name {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin: 0;
}
.companion-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #888;
}
.companion-tag {
  background: #eaf7ea;
  color: #2e7d32;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}
.companion-price {
  font-size: 14px;
  color: #666;
  margin-top: auto;
}
.price-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary, #9b59b6);
  margin-right: 2px;
}

/* 移动端 */
@media (max-width: 600px) {
  .companion-section {
    padding: 40px 0;
  }
  .companion-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .companion-card {
    border-radius: 12px;
  }
  .companion-img {
    padding-top: 50%;
  }
  .companion-name {
    font-size: 15px;
  }
}
/* ========== 伴游推荐板块结束 ========== */

/* ========== 热门目的地板块 ========== */
.city-section {
  background: #fff;      /* 淡紫灰底，和品牌色呼应 */
  padding: 60px 0;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

/* ---- 城市卡片 ---- */
.city-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #ddd;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}
.city-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(107, 70, 193, 0.18);
}

/* 图片容器 */
.city-img {
  position: relative;
  width: 100%;
  padding-top: 75%;         /* 4:3 横版比例 */
  overflow: hidden;
  background: #e0e0e0;
}
.city-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.city-card:hover .city-img img {
  transform: scale(1.08);
}

/* 图片暗色渐变叠层 */
.city-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* 城市名浮在图片底部 */
.city-label {
  position: absolute;
  bottom: 65px;
  left: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}
.city-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.city-arrow {
  font-size: 16px;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s;
}
.city-card:hover .city-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* 描述文字 */
.city-desc {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  z-index: 3;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .city-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 500px) {
  .city-section {
    padding: 40px 0;
  }
  .city-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .city-card {
    border-radius: 12px;
  }
  .city-name {
    font-size: 17px;
  }
  .city-desc {
    font-size: 12px;
    bottom: 12px;
  }
  .city-label {
    bottom: 54px;
    left: 12px;
  }
}
/* ========== 热门目的地板块结束 ========== */


/* ========== 使用流程板块 ========== */
.steps-section {
  background: #fff;                /* 纯白底，和上下板块形成清晰分隔 */
  padding: 15px 0;
}

.steps-grid {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- 步骤卡片 ---- */
.step-card {
  flex: 1;
  min-width: 220px;               /* 保证单列时也有合理宽度 */
  max-width: 280px;
  background: #fdfcff;
  border: 1px solid #f0e6f6;
  border-radius: 20px;
  padding: 32px 24px 28px;
  position: relative;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(107, 70, 193, 0.1);
  border-color: #d4b3ec;
}

/* 大号 emoji 图标 */
.step-icon {
  font-size: 44px;
  margin-bottom: 12px;
  display: block;
}

/* 数字标号（背景水印效果） */
.step-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 48px;
  font-weight: 800;
  color: #f3edfa;
  opacity: 0.6;
  pointer-events: none;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 10px;
  color: #2d1f3e;
}

.step-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .step-card {
    max-width: 400px;
    width: 100%;
  }
}

/* ========== 热门目的地——修复重叠样式 ========== */
/* 底部信息容器（替代旧的 .city-label） */
.city-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 3;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.city-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.city-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  line-height: 1.3;
}
.city-arrow {
  font-size: 16px;
  color: #fff;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s;
}
.city-card:hover .city-arrow {
  opacity: 1;
  transform: translateX(0);
}
/* 城市描述（注意：覆盖掉旧 .city-desc 的绝对定位样式） */
.city-card .city-desc {
  position: static;          /* 取消旧的 absolute */
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  margin: 0;
  bottom: auto;              /* 清除旧值 */
  left: auto;
  right: auto;
}
/* 移动端适配 */
@media (max-width: 500px) {
  .city-caption {
    padding: 12px;
  }
  .city-name {
    font-size: 17px;
  }
  .city-card .city-desc {
    font-size: 12px;
  }
}



/* ========== 服务分类入口区 ========== */
.service-category-section {
  background: #fff;
  padding: 15px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* 4列 */
  gap: 24px;
  margin-top: 32px;
}

/* 单个分类卡片 */
.category-card {
  position: relative;
  background: #fdf8ff;              /* 淡紫底色呼应主色调 */
  border-radius: 16px;
  padding: 32px 20px 28px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #f0e6f6;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(107, 70, 193, 0.12);
}

/* 图标 */
.category-icon {
  font-size: 44px;
  margin-bottom: 16px;
}


/* 标题 */
.category-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2d1f3e;
}

/* 描述 */
.category-card p {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* 角标 */
.category-tag {
  display: inline-block;
  background: linear-gradient(90deg, #ff6b6b, #ff8e53);
  color: #fff;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  position: absolute;
  top: 12px;
  right: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .category-card {
    padding: 24px 16px 20px;
  }
  .category-card h3 {
    font-size: 16px;
  }
}

@media (max-width: 500px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);  /* 始终保持两列 */
    gap: 10px;
  }
  .category-card {
    padding: 18px 10px 14px;
  }
  .category-icon {
    font-size: 32px;
    margin-bottom: 8px;
  }
  .category-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .category-card p {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 6px;
  }
  .category-tag {
    top: 6px;
    right: 6px;
    font-size: 10px;
    padding: 2px 8px;
  }
}
/* ========== 服务分类入口区结束 ========== */


/* ========== 移动端导航 ========== */

/* ========== 移动端导航 ========== */
@media (max-width: 768px) {

  /* header 需要相对定位作为菜单的锚点 */
  .header {
    position: relative;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  /* 汉堡按钮 */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
  }

  /* 导航菜单：默认隐藏，展开后限制高度滚动 */
  .header-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0;
    margin: 0;
    z-index: 1000;

    /* 🔑 关键：限制高度，防止撑满屏幕 */
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header-nav.active {
    display: flex;
  }

  .header-nav li {
    border-bottom: 1px solid #f0f0f0;
  }

  .header-nav li a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    color: #333;
  }

  .header-nav li.active a {
    color: #e60012;
    font-weight: bold;
    background: #fafafa;
  }
}
/* ========== 移动端导航结束 ========== */

/* ========== hero-search 模块独立样式 ========== */
.hero-search {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px;
    background: #2d2640;
    border-radius: 12px;
}

.hero-search__group {
    margin-bottom: 20px;
}

.hero-search__group:last-child {
    margin-bottom: 0;
}

.hero-search__label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #e0c88c;
    margin-bottom: 10px;
}

.hero-search__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-search__tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
    line-height: 1.4;
    white-space: nowrap;
}

.hero-search__tag:hover {
    background: #e0c88c;
    color: #1e1a2f;
}

/* 手机端微调 */
@media (max-width: 480px) {
    .hero-search {
        padding: 16px 12px;
    }

    .hero-search__tag {
        padding: 5px 12px;
        font-size: 13px;
    }

    .hero-search__label {
        font-size: 14px;
    }
}

/* 首页避坑 */
.story-card--text {
  background: #fff;
  border: 1px solid #e9e4dd;
  border-radius: 10px;
  padding: 20px;
  transition: box-shadow 0.2s;
}
.story-card--text:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.story-card--text .story-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  background: #f4f1ea;
  border-radius: 12px;
  font-size: 12px;
  color: #8b7a6b;
}
/* 首页避坑结束 */
/* 首页立即预约按钮三步指引下方的预约按钮 */
.by-step-booking {
  text-align: center;
  margin-top: 36px;          /* 与上方保持距离 */
}

.by-step-booking a {
  display: inline-block;
  background: #ffffff;       /* 白色背景，融入整体 */
  color: #4b5563;           /* 中性深灰文字 */
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 36px;
  border-radius: 30px;      /* 胶囊形 */
  border: 1px solid #d1d5db; /* 淡灰边框 */
  transition: all 0.2s ease;
}

.by-step-booking a:hover {
  border-color: #9ca3af;
  color: #1f2937;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}/* 三步指引下方的预约按钮结束 */



/* ========== 右侧在线客服 ========== */


.side-wrapper {
  position: fixed;
  right: 0;
  bottom: 500px;       /* ✅ 提高位置，避免太靠下 */
  z-index: 9999;
}

/* 竖排按钮 */
.side-toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  padding: 14px 0;
  background: #2563eb;
  color: #fff;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  box-shadow: -2px 2px 12px rgba(0,0,0,0.15);
  transition: background 0.2s, right 0.35s ease;
  user-select: none;
  white-space: nowrap;
}
.side-toggle:hover {
  background: #1d4ed8;
}

/* ✅ 展开时按钮向左移动，留出面板空间 */
.side-wrapper.open .side-toggle {
  right: 183px;
}

/* 客服面板 - 初始隐藏在右侧 */
.side-panel {
  position: absolute;
  right: -200px;        /* 完全隐藏在屏幕外 */
  top: 0;
  width: 180px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.side-wrapper.open .side-panel {
  right: 4px;          /* ✅ 滑入到按钮左侧 */
  pointer-events: auto;
}

.side-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.side-panel__item {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.side-panel__item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transform: translateX(-2px);
}

.side-panel__icon {
  font-size: 16px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  color: #4b5563;
}
.side-panel__text {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-left: 4px;
}

.side-panel__link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

/* 备用占位 */
.side-panel__placeholder {
  opacity: 0.5;
  cursor: not-allowed;
  user-select: none;
}
.side-panel__placeholder:hover {
  transform: none;
  border-color: #e5e7eb;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* 微信弹窗 */
.side-panel__wechat .side-panel__popup {
  position: absolute;
  right: 160px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 15;
  white-space: nowrap;
}
.side-panel__wechat:hover .side-panel__popup {
  opacity: 1;
  visibility: visible;
}
.side-panel__popup img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
}
.side-panel__popup p {
  margin: 0;
  font-size: 11px;
  color: #4b5563;
}

/* 返回顶部默认隐藏 */
.side-panel__top {
  display: none;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
  .side-wrapper {
    bottom: 304px;        /* ✅ 移动端提高 */
  }

  .side-toggle {
    width: 34px;
    padding: 12px 0;
    font-size: 13px;
  }
  .side-wrapper.open .side-toggle {
    right: 150px;
  }

  .side-panel {
    width: 150px;
  }
  .side-wrapper.open .side-panel {
    right: 0px;
  }

  .side-panel__item {
    height: 36px;
    padding: 0 10px;
  }
  .side-panel__icon {
    font-size: 15px;
    width: 24px;
  }
  .side-panel__text {
    font-size: 12px;
  }

  .side-panel__wechat .side-panel__popup {
    right: 130px;
    padding: 10px;
  }
  .side-panel__popup img {
    width: 80px;
    height: 80px;
  }
}

/* 在线客服结束 */
/* ==================== 移动端导航开始 ==================== */
/* ==================== 汉堡按钮样式 ==================== */

/* ==================== 移动端导航开始 ==================== */