/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

html {
    scroll-behavior: smooth;
}

/* 防止移动端页面横向滚动抖动 */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 图片轮播组件 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    background: #000;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.carousel-slide.active img {
    transform: scale(1.02);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    padding: 30px 30px 40px; /* 加大底部留白，避免与指示点文字重叠 */
    text-align: left;
}

.slide-overlay h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.slide-overlay p {
    font-size: 1rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.8rem;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* 移除图片轮播左右箭头（按需隐藏） */
.carousel-btn {
    display: none !important;
}

/* 轮播指示点 */
.carousel-dots {
    position: absolute;
    bottom: 12px; /* 下移并收紧间距 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;  /* 缩小尺寸 */
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.15);
}

/* 导航标签页 */
.nav-tabs {
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 超过初始位置后改为固定吸附在顶部（通过 JS 添加 fixed 类） */
.nav-tabs.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* 占位符，避免切换为 fixed 时页面跳动 */
.nav-placeholder {
    height: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
    /* 隐藏横向滚动条（仍可在移动端横向滑动） */
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none;    /* Firefox */
}

.nav-container::-webkit-scrollbar { display: none; }

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 0.85rem;
    border-bottom: 3px solid transparent;
    min-width: 80px;
}

.nav-tab:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.nav-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.nav-icon {
    font-size: 1.2rem;
}

/* 出发日期选择 */
.departure-dates {
    margin: 40px 0;
}

.dates-grid {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.dates-grid::-webkit-scrollbar {
    height: 6px;
}

.dates-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dates-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dates-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.date-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 160px;
    flex-shrink: 0;
}

.date-option:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.date-option.active {
    border-color: #3498db;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.2);
}

/* 避免“两个同时选中”的视觉错觉：非选中项悬浮时不改变边框颜色，仅保留阴影/位移 */
.date-option:not(.active):hover {
    border-color: #e9ecef;
}

.date-option[data-available="0"] {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f9fa;
}

.date-option[data-available="0"]:hover {
    transform: none;
    border-color: #e9ecef;
    box-shadow: none;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.date-day {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.date-week {
    font-size: 0.8rem;
    color: #666;
    background: #f1f2f6;
    padding: 3px 6px;
    border-radius: 6px;
}

.date-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 8px;
}

/* 日期标签：铁发/报名中 */
.date-flag {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.date-flag.fixed {
    background: #eaf2ff;
    color: #1f6feb;
    border-color: #bdd6ff;
}

.date-flag.signup {
    background: #eafaf1;
    color: #2e7d32;
    border-color: #b8e6cc;
}

.date-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-count {
    font-size: 0.8rem;
    color: #666;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.available {
    background: #d4edda;
    color: #155724;
}

.status-badge.few {
    background: #fff3cd;
    color: #856404;
}

.status-badge.sold-out {
    background: #f8d7da;
    color: #721c24;
}

.selected-date-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
}

.selected-date-info p {
    margin: 8px 0;
    font-size: 1rem;
}

.selected-date-info span {
    font-weight: 700;
    font-size: 1.1rem;
}

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px;
    position: relative;
    z-index: 1;
}

/* 产品标题和价格区域 */
.product-header {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 20px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

/* 服务承诺横幅 */
.commitment-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: -10px 20px 10px; /* 贴近产品头部与日期模块之间 */
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border: 1px solid #d7eafc;
    color: #1b4f72;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(52, 152, 219, 0.12);
}

.commitment-banner .sep {
    opacity: 0.4;
}

@media (max-width: 768px) {
    .commitment-banner {
        margin: -5px 15px 8px;
        padding: 10px 12px;
        gap: 10px;
        text-align: center;
        flex-wrap: wrap;
        font-weight: 700;
    }
    .commitment-banner .sep {
        display: none;
    }
}

.badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #e3f2fd;
    color: #1976d2;
}

.badge-hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.main-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-label {
    font-size: 1rem;
    color: #666;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e74c3c;
}

.features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #495057;
}

.icon {
    font-size: 1.2rem;
}

/* 子价：大童/小童 */
.sub-prices {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.sub-price-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 140px;
}

.sub-price-name { color: #e74c3c; font-weight: 800; }
.sub-price-desc { font-size: 0.85rem; color: #666; }
.sub-price-value { color: #e74c3c; font-weight: 700; margin-top: 4px; }

/* 章节标题 */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 40px 0 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
}

.title-icon {
    font-size: 2rem;
}

.scroll-hint {
    font-size: 0.8rem;
    color: #999;
    font-weight: 400;
    margin-left: auto;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 日期滚动按钮 */
.date-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    background: white;
    color: #666;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.date-scroll-btn:hover {
    border-color: #3498db;
    color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.date-scroll-left {
    left: -50px;
}

.date-scroll-right {
    right: -50px;
}

/* 按需移除日期滑动左右箭头（最小改动，保持其余不变） */
.date-scroll-btn {
    display: none !important;
}

/* 行程安排 */
.itinerary-section {
    margin: 40px 0;
}

.day-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.day-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.day-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

.day-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.day-content {
    margin-left: 95px;
}

.optional-fee {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.fee-badge {
    background: #fd79a8;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
}

.fee-desc {
    font-size: 0.9rem;
    color: #856404;
}

.meals {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.meal-tag {
    background: #d4edda;
    color: #155724;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.free-services {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.free-tag {
    background: #e7f3ff;
    color: #0066cc;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 详细行程样式 */
.attraction-detail {
    margin-top: 15px;
}

.attraction-detail h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 15px 0 10px;
    font-weight: 700;
}

.attraction-detail h5 {
    color: #34495e;
    font-size: 1.1rem;
    margin: 12px 0 8px;
    font-weight: 600;
}

.attraction-detail h6 {
    color: #2c3e50;
    font-size: 1rem;
    margin: 8px 0 4px;
    font-weight: 600;
}

.highlight {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 8px 0;
    border-left: 3px solid #ff9800;
}

.highlight-box {
    background: #f8fffe;
    border: 1px solid #26a69a;
    border-radius: 10px;
    padding: 15px;
    margin: 12px 0;
}

.highlight-box .highlight {
    background: none;
    border: none;
    padding: 4px 0;
    margin: 4px 0;
    color: #00695c;
}

.evening-show,
.dinner-special,
.wildlife-experience,
.ocean-experience,
.activity-section,
.choice-section,
.farewell-section {
    background: #fafbfc;
    border-radius: 12px;
    padding: 15px;
    margin: 12px 0;
    border-left: 4px solid #3498db;
}

/* 行程概览：点线时间轴样式 */
.route-outline .activity-highlights {
    position: relative;
    list-style: none;
    margin: 8px 0;
    padding-left: 0;
}
.route-outline .activity-highlights::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e6eef5;
}
.route-outline .activity-highlights li {
    position: relative;
    padding: 12px 0 12px 40px;
    border-bottom: none; /* 覆盖 info-card 通用下边线 */
}
.route-outline .activity-highlights li::before {
    content: ""; /* 覆盖 info-card 通用项目符号 */
    position: absolute;
    left: 10px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3498db;
    box-shadow: 0 0 0 3px #eaf4ff;
}

.show-highlights,
.experience-list,
.shopping-list,
.activity-highlights {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.show-highlights li,
.experience-list li,
.shopping-list li,
.activity-highlights li {
    padding: 6px 0;
    border-bottom: 1px solid #ecf0f1;
    color: #2c3e50;
}

.show-highlights li:last-child,
.experience-list li:last-child,
.shopping-list li:last-child,
.activity-highlights li:last-child {
    border-bottom: none;
}

.choice-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 10px 0;
}

.choice-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.choice-option:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.choice-option h6 {
    margin: 0 0 8px;
    color: #2c3e50;
}

.choice-option p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.farewell-note {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-weight: 600;
    border: 1px solid #a5d6a7;
}

.tips {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #495057;
}

.tip-icon {
    font-size: 1rem;
    margin-right: 4px;
}

.attraction-section {
    margin: 15px 0;
    padding: 12px;
    background: #f8f9fb;
    border-radius: 10px;
    border-left: 3px solid #6c5ce7;
}

/* 费用说明区域 */
.price-info-section {
    margin: 40px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.info-card.animate-in {
    margin-bottom: 20px;
}

.info-card.included {
    border-left: 4px solid #27ae60;
}

.info-card.excluded {
    border-left: 4px solid #e74c3c;
}

.info-card.highlights {
    border-left: 4px solid #f39c12;
}

/* 儿童票价说明强调色 */
.info-card.child-ticket {
    border-left: 4px solid #6c5ce7;
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f2f6;
    position: relative;
    padding-left: 20px;
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card li::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 覆盖：行程概览时间轴（点+竖线）样式，放在通用 .info-card li 之后，保证优先生效 */
.info-card.route-outline .activity-highlights {
    position: relative;
    list-style: none;
    margin: 8px 0;
    padding-left: 0;
}
.info-card.route-outline .activity-highlights::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e6eef5;
}
.info-card.route-outline .activity-highlights li {
    position: relative;
    padding: 12px 0 12px 40px;
    border-bottom: none;
}
.info-card.route-outline .activity-highlights li::before {
    content: "";
    left: 10px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3498db;
    box-shadow: 0 0 0 3px #eaf4ff;
}

/* 温馨提示 */
.tips-section {
    margin: 40px 0;
}

.tips-content {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f2f6;
}

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

.tip-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

/* 折叠组件样式 */
.collapsible-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease;
  padding-right: 20px;
}

.collapsible-header:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.collapse-icon {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  color: #3498db;
  margin-left: auto;
  margin-right: 8px;
}

.collapsible-header.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.collapsible-content {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 1;
  visibility: visible;
  will-change: max-height, opacity;
}

.collapsible-content.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  border: none !important;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out, padding 0.3s ease-out;
}

/* 预订须知与退改规则区块复用 info-card 样式即可，无需额外复杂样式 */

/* 底部固定操作栏 */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-display .label {
    font-size: 0.9rem;
    color: #666;
}

.price-display .price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e74c3c;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-btn:active {
    transform: translateY(0);
}

/* 自定义弹窗样式（替代原生 alert，避免显示域名/IP） */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
}

.modal-dialog {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: modalPopIn 0.18s ease-out;
}

.modal-header {
    padding: 14px 18px;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 1px solid #f1f2f6;
}

.modal-content {
    padding: 16px 18px;
    color: #34495e;
    white-space: pre-wrap;
    line-height: 1.6;
}

.modal-actions {
    padding: 0 18px 16px;
    text-align: right;
}

.modal-close-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

@keyframes modalPopIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 弹窗打开时禁用页面滚动 */
body.no-scroll {
    overflow: hidden;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        height: 50vh;
        min-height: 300px;
    }
    
    .nav-container {
        padding: 0 10px;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 5px;
    }
    
    .nav-tab {
        font-size: 0.75rem;
        padding: 10px 6px;
        min-width: 70px;
        flex-shrink: 0;
    }
    
    .nav-icon {
        font-size: 1rem;
    }
    
    .dates-grid {
        gap: 12px;
        padding: 8px 0 16px;
    }
    
    .date-option {
        padding: 14px;
        min-width: 140px;
        padding-right: 84px;   /* 为右下角徽标预留空间 */
        padding-bottom: 42px;  /* 为底部徽标预留空间 */
    }
    
    .date-info {
        gap: 8px;
    }
    
    .date-day {
        font-size: 1.1rem;
    }
    
    .date-price {
        font-size: 1rem;
    }
    
    .choice-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .attraction-detail h4 {
        font-size: 1.1rem;
    }
    
    .attraction-detail h5 {
        font-size: 1rem;
    }
    
    .selected-date-info {
        padding: 15px;
    }
    
    .scroll-hint {
        font-size: 0.7rem;
    }
    
    .date-scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .date-scroll-left {
        left: -45px;
    }
    
    .date-scroll-right {
        right: -45px;
    }
    
    .slide-overlay h3 {
        font-size: 1.6rem;
    }
    
    .slide-overlay p {
        font-size: 1rem;
    }
    
    .carousel-btn {
        font-size: 1.4rem;
        padding: 8px 12px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .main-container {
        padding: 0 15px 100px;
        margin-top: 56px; /* 移动端导航高度略小 */
    }
    
    .product-header {
        margin: 15px 15px 20px;
        padding: 20px;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .features {
        gap: 10px;
    }
    
    .feature-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin: 30px 0 20px;
    }
    
    .day-card {
        padding: 20px;
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .day-content {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .bottom-action-bar {
        padding: 12px 15px;
    }
    
    .price-display .price {
        font-size: 1.5rem;
    }
    
    .action-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 40vh;
        min-height: 250px;
    }
    
    .nav-container {
        padding: 0 5px;
    }
    
    .nav-tab {
        font-size: 0.7rem;
        padding: 8px 4px;
        min-width: 60px;
    }
    
    .dates-grid {
        gap: 10px;
        padding: 6px 0 12px;
    }
    
    .date-option {
        padding: 12px;
        min-width: 120px;
        padding-right: 84px;   /* 为右下角徽标预留空间 */
        padding-bottom: 42px;  /* 为底部徽标预留空间 */
    }
    
    .evening-show,
    .dinner-special,
    .wildlife-experience,
    .ocean-experience,
    .activity-section,
    .choice-section,
    .farewell-section {
        padding: 12px;
        margin: 10px 0;
    }
    
    .attraction-detail h4 {
        font-size: 1rem;
    }
    
    .attraction-detail h5 {
        font-size: 0.95rem;
    }
    
    .date-scroll-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .date-scroll-left {
        left: -40px;
    }
    
    .date-scroll-right {
        right: -40px;
    }
    
    .slide-overlay {
        padding: 20px 15px 15px;
    }
    
    .slide-overlay h3 {
        font-size: 1.3rem;
    }
    
    .slide-overlay p {
        font-size: 0.9rem;
    }
    
    .product-header {
        margin: 10px 10px 15px;
        padding: 15px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .day-card {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

