
:root {
    --coffee-dark: #3e2723;
    --coffee-medium: #5d4037;
    --coffee-light: #795548;
    --coffee-cream: #d7ccc8;
    --coffee-latte: #efebe9;
    --coffee-gold: #c68e17;
    --coffee-white: #fafafa;
}

* {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 } 

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.8;
    color: #4a4a4a;
    background: var(--coffee-latte); 
    overflow-x: hidden;
}

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

.section {
    padding: 100px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: var(--coffee-dark);
    position: relative;
    font-weight: 300;
    letter-spacing: 2px;
}

.section-title::after {
    content: '☕';
    display: block;
    font-size: 24px;
    margin-top: 15px;
    opacity: 0.6;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--coffee-dark), var(--coffee-medium));
    box-shadow: 0 4px 20px rgba(62, 39, 35, 0.3);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #f5f5dc;
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
}

.logo::before {
    content: '☕';
    margin-right: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--coffee-cream);
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

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

.nav-links a:hover {
    color: #fff;
}

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


.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--coffee-dark) 0%, var(--coffee-medium) 50%, var(--coffee-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 200px;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.hero h1 {
    font-size: 64px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    letter-spacing: 3px;
}


.carousel-section {
    background: linear-gradient(180deg, var(--coffee-latte) 0%, var(--coffee-cream) 50%, var(--coffee-latte) 100%);
    padding: 120px 0;
}

.carousel-container {
    position: relative;
    height: 600px;
    perspective: 1200px;
    overflow: visible;
}

.carousel-wrapper {
    position: relative;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(-350px);
    width: 350px;
    height: 500px;
    opacity: 0;
transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(62, 39, 35, 0.4);
}
.carousel-slide.vertical img {
    width: auto !important;
    height: 100% !important;
    object-fit: contain !important;
}
.carousel-slide .slide-info {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    background: linear-gradient(to top, rgba(62, 39, 35, 0.9), transparent);
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.carousel-slide .slide-info h3 {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 500;
}

.carousel-slide .slide-info p {
    font-size: 15px;
    opacity: 0.9;
}

.carousel-slide.active {
    transform: translate(-50%, -50%) translateX(0) scale(1.15);
    opacity: 1;
    z-index: 10;
}

.carousel-slide.prev {
    transform: translate(-50%, -50%) translateX(-400px) scale(0.75);
    opacity: 0.4;
    z-index: 5;
}

.carousel-slide.next {
    transform: translate(-50%, -50%) translateX(300px) scale(0.75);
    opacity: 0.4;
    z-index: 5;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--coffee-dark);
    color: #fff;
    border: none;
    width: 55px;
    height: 55px;
    font-size: 26px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: var(--coffee-gold);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 30px; }
.carousel-btn.next { right: 30px; }


.features-section {
    background: var(--coffee-dark);
    color: #fff;
}

.features-section .section-title {
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

.feature-item {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    padding: 45px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s;
}

.feature-item:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-item h3 {
    margin-bottom: 20px;
    color: var(--coffee-gold);
    font-size: 22px;
    position: relative;
    display: inline-block;
}

.feature-item h3::before {
    content: '☕';
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--coffee-cream);
    font-size: 15px;
    line-height: 1.8;
}


.about-section {
    background: linear-gradient(135deg, var(--coffee-cream), var(--coffee-latte));
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(62, 39, 35, 0.1);
}

.about-content p {
    margin-bottom: 25px;
    font-size: 18px;
    color: #5d4037;
    line-height: 2;
}

.about-content p:first-child::first-letter {
    font-size: 48px;
    float: left;
    margin-right: 12px;
    line-height: 1;
    color: var(--coffee-dark);
    font-weight: bold;
}


.contact-section {
    background: var(--coffee-medium);
    color: #fff;
}

.contact-section .section-title {
    color: #fff;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    padding: 50px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 17px;
    color: var(--coffee-cream);
}

.contact-info strong {
    color: var(--coffee-gold);
    font-weight: 500;
}


.footer {
    background: var(--coffee-dark);
    color: var(--coffee-cream);
    text-align: center;
    padding: 40px 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--coffee-gold), transparent);
}

.footer p {
    font-size: 15px;
    letter-spacing: 1px;
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .carousel-container {
        height: 350px;
    }
    
    .carousel-slide {
        width: 300px;
        height: 220px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .about-content {
        padding: 30px;
    }
}


.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--coffee-latte);
}

::-webkit-scrollbar-thumb {
    background: var(--coffee-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coffee-medium);
}

