/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 基础颜色定义 */
:root {
    --primary-color: #8B4513; /* 大地棕 */
    --secondary-color: #1E90FF; /* 科技蓝 */
    --light-color: #f4f4f4;
    --dark-color: #333;
    --success-color: #28a745;
    --error-color: #dc3545;
}

/* 图片加载失败占位符 */
img {
    display: block;
    width: 100%;
    height: auto;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar.scrolled {
    background-color: rgba(139, 69, 19, 0.9);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo .logo-img {
    max-height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}



/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: scale(1.05);
    background-color: #6b3b13;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 门店与渠道模块 */
.stores {
    padding: 3rem 0;
    background-color: var(--light-color);
    margin-top: 4rem; /* 为固定导航栏预留空间 */
}

.store-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: #e0e0e0;
    border: none;
    padding: 0.8rem 1.5rem;
    margin: 0.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.store-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.store-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.store-card:hover {
    transform: translateY(-5px);
}

.store-image {
    height: 200px;
    overflow: hidden;
}

.store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.store-card:hover .store-image img {
    transform: scale(1.05);
}

.store-info {
    padding: 1.5rem;
}

.store-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.store-details p {
    margin: 0.3rem 0;
    display: flex;
    align-items: flex-start;
}

.store-details i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    min-width: 20px;
}

.map-container {
    height: 300px;
    margin-top: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* 页脚样式 */
.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 0 1rem;
    }
    
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .store-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .tab-btn {
        white-space: nowrap;
    }
    
    .store-list {
        grid-template-columns: 1fr;
    }
    
    .stores {
        margin-top: 5rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
        height: auto;
        min-height: 300px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .stores-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .province-selector {
        margin-bottom: 2rem;
    }
    
    .store-list h3 {
        text-align: center;
    }
    
    .store-item {
        padding: 1.5rem;
    }
    
    .store-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .store-name {
        margin-bottom: 0.5rem;
    }
    
    .store-address {
        margin: 1rem 0;
    }
    
    
}

/* 小屏幕设备优化 */
@media (max-width: 480px) {
    .navbar .logo h1 {
        font-size: 1.2rem;
    }
    
    .stores {
        margin-top: 5.5rem;
    }
    
    .store-info {
        padding: 1rem;
    }
    
    .footer {
        padding: 1rem 0;
        font-size: 0.9rem;
    }
}
