/* ABOUTME: Main stylesheet for Cotti Coffee website */
/* ABOUTME: Original website style recreation */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

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

.nav-item {
    position: relative;
}

.nav-item a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item a:hover,
.nav-item.active a {
    color: #c49a6c;
}

.nav-item .fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown li {
    list-style: none;
}

.dropdown a {
    display: block;
    padding: 10px 24px;
    color: #666;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}

.dropdown a:hover {
    background: #f5f5f5;
    color: #c49a6c;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

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

.carousel-slides {
    width: 100%;
    height: 100%;
}

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

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 90%;
    max-width: 900px;
}

.slide-content h1 {
    font-size: 56px;
    font-weight: 400;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 20;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

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

.dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Coffee Showcase */
.coffee-showcase {
    width: 100%;
    position: relative;
}

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

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: #fff;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-logo {
    height: 60px;
    width: auto;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.text_title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

.contact-left {
    flex: 1;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-text .name {
    font-size: 14px;
    color: #999;
}

.contact-text .value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.contact-right {
    flex: 1;
}

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

.social-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.social-icon {
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.social-label {
    font-size: 12px;
    color: #666;
}

.social-qr {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px;
    z-index: 100;
    margin-top: 12px;
}

.social-qr-top {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px;
    z-index: 100;
    margin-bottom: 12px;
}

.social-item:hover .social-qr,
.social-item:hover .social-qr-top {
    display: block;
}

/* Divider */
.divider {
    height: 1px;
    background: #e5e5e5;
    margin-bottom: 30px;
}

/* User Privacy */
.user-privacy {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.user-privacy .text {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.user-privacy .text:hover {
    color: #c49a6c;
}

.user-privacy .border {
    color: #ddd;
}

/* Footer */
.footer {
    background: #f5f5f5;
    padding: 40px 0;
}

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

.copyright p {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    line-height: 1.8;
}

.beian-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian-link:hover {
    color: #c49a6c;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #c49a6c;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(196, 154, 108, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background: #b08a5f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(196, 154, 108, 0.5);
}

.back-to-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }
    
    .nav-list {
        gap: 24px;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .slide-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .nav-item a {
        padding: 16px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        background: #f9f9f9;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .carousel-controls {
        flex-direction: column;
        gap: 16px;
    }
    
    .social-grid {
        justify-content: center;
    }
    
    .text_title {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 24px;
    }
    
    .header-container {
        height: 60px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .contact-section {
        padding: 40px 0;
    }
    
    .social-grid {
        gap: 12px;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
    }
    
    .social-label {
        font-size: 10px;
    }
}
