/* 三门青蟹·塘口拾鲜 - 微信小店预览样式（青蓝水墨风） */

:root {
    --primary-color: #4A9B9B;
    --primary-light: #2C5F5F;
    --secondary-color: #262626;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-color: #f0f7f7;
    --card-bg: #fff;
    --border-color: #d0e3e3;
    --shadow: 0 2px 8px rgba(74,155,155,0.08);
    --shadow-hover: 0 4px 16px rgba(74,155,155,0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* 店铺头部 - 青蓝水墨风（与详情页统一） */
.shop-header {
    background: linear-gradient(135deg, #E8F4F8 0%, #F0F8F5 100%);
    color: #2C5F5F;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    border-bottom: 1px solid #d0e3e3;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(74,155,155,0.3);
}

.brand-info h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--primary-light);
}

.brand-subtitle {
    font-size: 13px;
    color: var(--text-light);
}

.wechat-tip {
    background: rgba(74,155,155,0.1);
    color: var(--primary-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid rgba(74,155,155,0.2);
}

/* 系列导航 */
.series-nav {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 90px;
    z-index: 99;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.series-tab {
    flex: 1;
    min-width: 100px;
    padding: 15px 20px;
    text-align: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.series-tab:hover {
    color: var(--primary-color);
    background: rgba(74, 155, 155, 0.05);
}

.series-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 商品列表 */
.products-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.series-section {
    margin-bottom: 40px;
}

.series-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.series-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.series-desc {
    color: var(--text-light);
    font-size: 14px;
}

/* 商品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 商品卡片 */
.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
}

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

.product-card.featured {
    border: 2px solid var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.product-image {
    height: 180px;
    background: linear-gradient(135deg, #E8F4F8 0%, #F0F8F5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img.product-img {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: contain;
    object-position: center;
}

.image-placeholder {
    font-size: 60px;
    opacity: 0.6;
}

.crab-svg {
    width: 100px;
    height: 120px;
    opacity: 0.9;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--secondary-color);
}

.product-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.5;
}

.product-spec {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding: 6px 10px;
    background: var(--bg-color);
    border-radius: 6px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-main {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-alt {
    font-size: 14px;
    color: var(--text-light);
}

.price-note {
    font-size: 12px;
    color: var(--text-muted);
}

/* 店铺底部 - 青蓝水墨风（与详情页统一） */
.shop-footer {
    background: linear-gradient(135deg, #E8F4F8 0%, #F0F8F5 100%);
    color: #2C5F5F;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid #d0e3e3;
}

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

.footer-brand p:first-child {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-light);
}

.footer-address {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.footer-promise {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-note {
    font-size: 12px;
    color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .brand {
        flex-direction: column;
    }
    
    .wechat-tip {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .series-nav {
        top: 0;
    }
    
    .series-tab {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .image-placeholder {
        font-size: 40px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 15px;
    }
    
    .product-desc {
        font-size: 12px;
    }
    
    .price-main {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
