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

:root {
    --primary-color: #8B4513;
    --primary-light: #D2691E;
    --secondary-color: #2C1810;
    --accent-color: #FFD700;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #FFF8F0;
    --bg-light: #FFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-bg-img.active {
    opacity: 1;
}

/* 百叶窗效果 */
.hero-bg-img.blinds-h {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1s ease;
}
.hero-bg-img.blinds-h.active {
    clip-path: inset(0 0 0 0);
}

.hero-bg-img.blinds-v {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s ease;
}
.hero-bg-img.blinds-v.active {
    clip-path: inset(0 0 0 0);
}

/* 淡入缩放效果 */
.hero-bg-img.zoom-in {
    transform: scale(1.2);
    opacity: 0;
    transition: transform 1.2s ease, opacity 0.8s ease;
}
.hero-bg-img.zoom-in.active {
    transform: scale(1);
    opacity: 1;
}

/* 滑动效果 */
.hero-bg-img.slide-left {
    transform: translateX(100%);
    opacity: 1;
    transition: transform 1s ease;
}
.hero-bg-img.slide-left.active {
    transform: translateX(0);
}

.hero-bg-img.slide-right {
    transform: translateX(-100%);
    opacity: 1;
    transition: transform 1s ease;
}
.hero-bg-img.slide-right.active {
    transform: translateX(0);
}

.hero-text {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.5);
    padding: 40px 50px;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    color: #3D2817;
}

.title-char {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
}

.title-char:nth-child(1) { animation-delay: 0s; }
.title-char:nth-child(2) { animation-delay: 0.1s; }
.title-char:nth-child(3) { animation-delay: 0.2s; }
.title-char:nth-child(4) { animation-delay: 0.3s; }
.title-char:nth-child(5) { animation-delay: 0.4s; }
.title-char:nth-child(6) { animation-delay: 0.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #8B4513;
    margin-bottom: 15px;
    letter-spacing: 5px;
}

.hero-desc {
    font-size: 1.1rem;
    color: #3E2723;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-tagline {
    font-size: 1.3rem;
    color: #8B4513;
    margin-top: 30px;
    margin-bottom: 40px;
    font-weight: 500;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    animation: floatAround 20s linear infinite;
}

.floating-element.coffee {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element.cocktail {
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

.floating-element.heart {
    bottom: 20%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -50px) rotate(90deg); }
    50% { transform: translate(0, -100px) rotate(180deg); }
    75% { transform: translate(-50px, -50px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* 区块标题 */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-hint {
    text-align: center;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-top: -40px;
    margin-bottom: 40px;
    font-weight: 500;
}

.hint-arrow {
    display: inline-block;
    animation: bounce 1s ease-in-out infinite;
    font-size: 1.2rem;
    margin-left: 5px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 20px;
    transition: all 0.3s;
    min-width: 250px;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-text {
    color: var(--text-light);
    letter-spacing: 1px;
}

/* 为什么选我们 */
.why-us {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-light) 100%);
}

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

.reason-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.reason-number {
    font-size: 4rem;
    font-weight: bold;
    color: rgba(139, 69, 19, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
}

.reason-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.reason-card p {
    color: var(--text-light);
    line-height: 1.8;
    letter-spacing: 1px;
}

.tagline {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 50px;
    font-weight: bold;
}

/* 套餐价格 */
.packages {
    padding: 100px 0;
    background: var(--bg-light);
}

.package-section {
    margin-bottom: 60px;
    padding: 40px;
    background: var(--bg-color);
    border-radius: 20px;
}

.package-section.highlight {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE4C4 100%);
    border: 2px solid var(--primary-light);
}

.package-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.package-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-tag {
    background: var(--bg-light);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.price-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-cards-img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.price-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    min-width: 200px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.price-card.recommended {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.price-card.recommended:hover {
    transform: scale(1.05) translateY(-10px);
}

.recommend-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: var(--secondary-color);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.price-detail {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.price-cups {
    font-size: 1.1rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 15px;
}

.price-suggest {
    font-size: 0.9rem;
    color: white;
    background: var(--gradient-primary);
    padding: 8px 20px;
    border-radius: 20px;
}

.package-note {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 10px;
}

/* 场景照片 */
.gallery {
    padding: 100px 0;
    background: var(--bg-color);
}

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

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c4 100%);
    font-size: 1.2rem;
    color: var(--text-light);
}

/* 场景照片 */
.gallery {
    padding: 100px 0;
    background: var(--light-bg);
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    background: #2a1810;
}

.gallery-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    cursor: pointer;
}

.gallery-img.active {
    opacity: 1;
}

/* 过渡效果 */
.gallery-img.slide-left {
    transform: translateX(100%);
}

.gallery-img.slide-left.active {
    transform: translateX(0);
}

.gallery-img.slide-right {
    transform: translateX(-100%);
}

.gallery-img.slide-right.active {
    transform: translateX(0);
}

.gallery-img.zoom {
    transform: scale(1.2);
}

.gallery-img.zoom.active {
    transform: scale(1);
}

.gallery-item:hover .gallery-img.active {
    transform: scale(1.05);
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.75);
    color: #FFD700;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
    z-index: 10;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3D2817 100%);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background: var(--gradient-gold);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.contact-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    min-width: 250px;
    transition: all 0.3s;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

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

.contact-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-value {
    height: 100px;
    font-size: 1.1rem;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-value p {
    margin-bottom: 5px;
}

.wechat-qr {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 页脚 */
.footer {
    background: #1a0f0a;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 30px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 1.8rem;
        flex-wrap: nowrap;
        gap: 5px;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 100%;
        max-width: 300px;
    }

    .price-cards {
        flex-direction: column;
        align-items: center;
    }

    .price-card {
        width: 100%;
        max-width: 280px;
    }

    .price-card.recommended {
        transform: none;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        max-width: 300px;
    }

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

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 图片大图预览 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s;
    user-select: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #FFD700;
    transform: translateY(-50%) scale(1.2);
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.slider-track img {
    cursor: pointer;
    transition: transform 0.3s;
}

.slider-track img:hover {
    transform: scale(1.05);
}
