/* 豆豆谷饮品店 - 现代化样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6B8E7B;
    --secondary-color: #F4A261;
    --accent-color: #E76F51;
    --neutral-light: #F8F9FA;
    --neutral-dark: #2D3436;
    --gradient-bg: linear-gradient(135deg, #6B8E7B 0%, #A8DADC 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--neutral-dark);
    background: var(--neutral-light);
}

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

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.logo img {
    height: 150px;
    width: auto;
    object-fit: contain;
}

/* 移除旧的logo样式 */
.logo::before {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

main {
    margin-top: 120px;
    min-height: calc(100vh - 200px);
}

.hero {
    background: var(--gradient-bg);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 111, 81, 0.5);
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

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

.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-bg);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.ingredient-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ingredient-image:hover {
    transform: scale(1.1);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: #666;
    line-height: 1.6;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-ingredients {
    margin: 1rem 0;
    padding: 0.8rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.ingredients-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ingredient-item {
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #495057;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.ingredient-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-effects {
    margin: 1rem 0;
    padding: 0.8rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 10px;
    border: 1px solid #f8d7da;
}

.effects-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.effects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.effect-item {
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #856404;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.effect-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: #ffeaa7;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.order-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.order-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid;
    display: inline-block;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.whatsapp-btn:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
}

.wechat-btn {
    background: #07C160;
    color: white;
    border-color: #07C160;
}

.wechat-btn:hover {
    background: #06A94D;
    border-color: #06A94D;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .order-buttons {
        flex-direction: column;
    }
    
    .order-btn {
        min-width: auto;
        margin-bottom: 0.5rem;
    }
}

footer {
    background: var(--neutral-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.bg-pattern {
    position: relative;
    overflow: hidden;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><path d="M30 5L35 20L50 15L40 30L55 35L40 50L30 40L20 50L5 35L20 30L5 15L20 20Z" fill="rgba(107,142,123,0.05)"/></svg>') repeat;
    opacity: 0.1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        height: 120px;
    }
} 

/* ==================== 购物车系统样式 ==================== */

/* 购物车悬浮图标 */
.cart-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 15px 20px;
    box-shadow: 0 8px 25px rgba(107, 142, 123, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    justify-content: center;
}

.cart-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(107, 142, 123, 0.6);
    background: #5a7a6a;
}

.cart-icon {
    font-size: 1.5rem;
}

.cart-count {
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 24px;
}

.cart-total {
    font-size: 0.9rem;
    font-weight: bold;
}

/* 数量选择器 */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.quantity-selector label {
    font-weight: 500;
    color: var(--neutral-dark);
    min-width: 40px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-controls button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.quantity-controls button:hover {
    background: #5a7a6a;
    transform: scale(1.1);
}

.quantity-controls input {
    width: 50px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    font-weight: bold;
    background: white;
}

/* 购物车按钮样式 */
.cart-btn {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.cart-btn:hover {
    background: #e09347 !important;
    border-color: #e09347 !important;
    transform: translateY(-2px);
}

/* 订购按钮布局调整 */
.order-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.order-buttons .order-btn {
    flex: 1;
    min-width: 140px;
}

/* 购物车模态框 */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.cart-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cart-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 20px 20px 0 0;
}

.cart-header h3 {
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-body {
    padding: 1rem 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.cart-item-image {
    font-size: 2rem;
    min-width: 50px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    color: var(--neutral-dark);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-quantity button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-item-quantity span {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.cart-remove-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-footer {
    padding: 1rem 2rem 2rem 2rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cart-checkout-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
    max-width: 200px;
}

.cart-close-btn {
    background: #ccc;
    color: #333;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* 关闭按钮 */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cart-float {
        bottom: 15px;
        right: 15px;
        padding: 12px 15px;
        min-width: 100px;
    }
    
    .cart-content {
        width: 95%;
        margin: 10px;
    }
    
    .cart-header,
    .cart-body,
    .cart-footer {
        padding: 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cart-item-controls {
        width: 100%;
        justify-content: center;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .quantity-selector {
        justify-content: center;
    }
    
    .order-buttons {
        flex-direction: column;
    }
    
    .order-buttons .order-btn {
        min-width: auto;
    }
} 

/* 招牌产品特殊样式 */
.product-card.featured {
    position: relative;
    border: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, #fff 0%, #fff9f5 100%);
    box-shadow: 0 8px 30px rgba(244, 162, 97, 0.3);
}

.product-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
    z-index: 2;
}

.product-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.product-highlights .highlight {
    background: linear-gradient(135deg, var(--primary-color), #8fa88f);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-card.featured .product-name {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.product-card.featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(244, 162, 97, 0.4);
}

@media (max-width: 768px) {
    .product-badge {
        top: -8px;
        right: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .product-highlights .highlight {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}

/* 产品照片样式 */
.product-photo {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    padding: 12px;
    background: radial-gradient(ellipse at center, #ffffff 0%, #f8f6f3 70%, #f0ede8 100%);
}

.product-card.featured .product-photo {
    border: 3px solid transparent;
    background: radial-gradient(ellipse at center, #ffffff 0%, #f8f6f3 70%, #f0ede8 100%) padding-box,
                linear-gradient(135deg, var(--secondary-color), var(--accent-color)) border-box;
    box-shadow: 0 12px 35px rgba(244, 162, 97, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.product-card.featured:hover .product-photo {
    transform: scale(1.05);
    box-shadow: 0 15px 45px rgba(244, 162, 97, 0.4);
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .product-photo {
        height: 200px;
        padding: 10px;
        border-radius: 16px;
    }
    
    .product-card.featured:hover .product-photo {
        transform: scale(1.02);
    }
} 

/* 产品定制选项样式 */
.product-options {
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.option-group {
    margin-bottom: 1rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.option-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.option-btn {
    flex: 1;
    min-width: 80px;
    padding: 0.6rem 1rem;
    border: 2px solid #dee2e6;
    background: white;
    color: #6c757d;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.option-btn:hover {
    border-color: var(--secondary-color);
    background: #fff8f1;
    color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.2);
}

.option-btn.active {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
}

.option-btn.active:hover {
    background: #e09347;
    border-color: #e09347;
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.4);
}

/* 招牌产品的定制选项特殊样式 */
.product-card.featured .product-options {
    background: linear-gradient(135deg, #fff9f5 0%, #f5f0eb 100%);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.1);
}

.product-card.featured .option-btn.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}

.product-card.featured .option-btn.active:hover {
    background: linear-gradient(135deg, #e39442, #d95d42);
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.5);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .product-options {
        padding: 0.8rem;
        margin: 0.8rem 0;
    }
    
    .option-buttons {
        gap: 0.4rem;
    }
    
    .option-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .option-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    /* 支付按钮移动端优化 */
    button[onclick*="sendPayNowOrderToWhatsApp"],
    button[onclick*="sendWeChatOrderToWhatsApp"] {
        min-height: 48px !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    /* 所有按钮的移动端触摸优化 */
    .order-btn,
    .option-btn {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    /* 防止移动端双击缩放 */
    .payment-modal button,
    .address-modal button {
        touch-action: manipulation !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }
} 