/* style.css - 毕升漂流官网 最终优化版（含移动端精细修复 & Gzip 友好） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, 'Segoe UI', 'Noto Sans', -apple-system, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
    padding-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 头部导航 ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.nav-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
    color: #2F9E91;
}

.book {
    background: #FF8C42;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
}

.book:hover {
    background: #e07a2c;
    transform: scale(1.02);
}

.menu {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #2F9E91;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-nav li {
    margin: 12px 0;
}

.mobile-nav a {
    font-weight: 500;
    display: block;
    padding: 8px 0;
}

.mobile-nav a.active {
    color: #2F9E91;
}

.mobile-nav.show {
    display: block;
}

/* ========== 轮播图 ========== */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.carousel-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-slide > div {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.carousel-slide h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.carousel-slide p {
    font-size: 18px;
    margin-bottom: 24px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    transition: background 0.2s;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: #FF8C42;
    width: 24px;
    border-radius: 6px;
}

/* 标签样式 */
.tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin: 0 4px 8px 4px;
}

/* ========== 通用按钮与卡片 ========== */
.btn {
    background: #FF8C42;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 600;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn:hover {
    background: #e07a2c;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card h3 {
    font-size: 22px;
    color: #2F9E91;
    margin-bottom: 8px;
}

.price-tag {
    font-size: 24px;
    font-weight: bold;
    color: #FF8C42;
    margin: 10px 0;
}

/* ========== 内页通用Banner ========== */
.page-banner {
    background-size: cover;
    background-position: center 20%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.page-banner h1 {
    font-size: 48px;
    margin: 0;
}

/* ========== 攻略页专用 ========== */
.tip-item {
    background: #f8f9fa;
    padding: 20px;
    border-left: 5px solid #FF8C42;
    margin-bottom: 20px;
    border-radius: 12px;
}

.tip-item strong {
    display: inline-block;
    background: #2F9E91;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 16px;
    margin-bottom: 8px;
}

/* ========== 联系我们卡片 ========== */
.contact-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ========== 企业微信悬浮窗 ========== */
.wecom-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    cursor: pointer;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wecom-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* ========== 虚拟预约气泡 ========== */
.reservation-bubble {
    position: fixed;
    bottom: 80px;
    right: 90px;
    z-index: 9997;
    max-width: 260px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    font-family: system-ui, 'Segoe UI', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: default;
    pointer-events: auto;
}

.reservation-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    border-width: 10px 10px 0 0;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.reservation-bubble span {
    display: inline-block;
    animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.reservation-bubble:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* ========== 底部 ========== */
.site-footer {
    background: #333;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-grid a {
    color: #FF8C42;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #555;
    font-size: 14px;
}

/* ========== 移动端响应式精细修复 ========== */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .nav, .book {
        display: none;
    }
    .menu {
        display: block;
    }

    /* 轮播图 */
    .carousel-slide {
        min-height: 45vh;
        background-position: center 30%;
    }
    .carousel-slide::before {
        background: rgba(0, 0, 0, 0.25);
    }
    .carousel-slide > div {
        padding: 15px;
    }
    .carousel-slide h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }
    .carousel-slide p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    .carousel-slide .tag {
        font-size: 10px;
        padding: 2px 8px;
        margin: 0 3px 6px 3px;
    }
    .carousel-slide .btn {
        padding: 8px 16px;
        font-size: 13px;
        margin: 5px;
    }
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .arrow-left {
        left: 10px;
    }
    .arrow-right {
        right: 10px;
    }

    /* 全局间距压缩 */
    .section {
        padding: 30px 0;
    }
    .title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .card-content {
        padding: 16px;
    }
    .card h3 {
        font-size: 18px;
    }
    .price-tag {
        font-size: 18px;
        margin: 8px 0;
    }
    .btn, .book, .submit, button {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .btn-group {
        flex-direction: column;
        gap: 12px;
    }

    /* 内页banner修复 */
    .page-banner {
        min-height: 40vh;
        background-position: center 25%;
    }
    .page-banner h1 {
        font-size: 32px;
    }

    /* 底部内边距防止遮挡 */
    main {
        padding-bottom: 60px;
    }

    /* 气泡移动端 */
    .reservation-bubble {
        bottom: 70px;
        right: 70px;
        max-width: 200px;
        font-size: 12px;
        padding: 8px 12px;
    }
    .reservation-bubble::after {
        right: 15px;
        border-width: 8px 8px 0 0;
    }

    /* 联系我们卡片 */
    .contact-card {
        padding: 20px;
        margin-bottom: 20px;
    }
}