/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f9ff;
}

/* 顶部导航栏 */
.header {
    background-color: #e6f7ff;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 60px;
}

.header-right {
    position: absolute;
    right: 20px;
    font-size: 14px;
    color: #1890ff;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    margin-right: 10px;
}

.logo span {
    font-size: 18px;
    font-weight: bold;
    color: #1890ff;
}



/* 轮播图容器 */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 20px;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: 300px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 品牌矩阵部分 */
.brands-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.brands-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.brands-header h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.official-notice {
    font-size: 14px;
    color: #1890ff;
    text-decoration: none;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.brand-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    margin-right: 20px;
}

.brand-logo img {
    height: 80px;
}

.brand-info {
    flex: 1;
}

.brand-info h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.brand-info p {
    font-size: 14px;
    color: #999;
}

.agent-btn {
    background-color: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.agent-btn:hover {
    background-color: #ff7875;
}

.brands-footer {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

/* 底部横幅 */
.footer-banner {
    background-color: #1890ff;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 80px;
    margin-right: 15px;
}

.footer-text {
    display: flex;
    flex-direction: column;
}

.footer-text h3 {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 5px 0;
}

.footer-text p {
    font-size: 14px;
    color: #e6f7ff;
    margin: 0;
}

.bind-btn {
    background-color: #fff;
    color: #1890ff;
    border: none;
    border-radius: 25px;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.bind-btn:hover {
    background-color: #f0f9ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-item {
        height: 150px;
    }
    
    .header {
        padding: 0 10px;
    }
    
    .header-right {
        right: 10px;
    }
    
    .logo span {
        font-size: 16px;
    }
    
    .brands-section {
        padding: 0 10px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .brand-card {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        text-align: center;
    }
    
    .brand-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .brand-info {
        margin-bottom: 10px;
        text-align: center;
    }
    
    .brand-info h3 {
        font-size: 14px;
    }
    
    .brand-info p {
        display: none;
    }
    
    .agent-btn {
        align-self: center;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .footer-content {
        padding: 0 10px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .footer-left {
        flex-direction: row;
        align-items: center;
        margin-bottom: 0;
    }
    
    .footer-logo {
        height: 30px;
        margin-right: 10px;
        margin-bottom: 0;
    }
    
    .footer-text {
        align-items: flex-start;
    }
    
    .footer-text h3 {
        font-size: 14px;
        margin: 0;
    }
    
    .footer-text p {
        font-size: 12px;
        margin: 0;
    }
    
    .footer-right {
        align-self: center;
    }
    
    .bind-btn {
        padding: 6px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        height: 120px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .logo span {
        font-size: 14px;
    }
    
    .header-right {
        font-size: 12px;
    }
    
    .brands-header h2 {
        font-size: 16px;
        text-align: center;
    }
    
    .brands-grid {
        gap: 10px;
    }
    
    .brand-card {
        padding: 10px;
    }
    
    .brand-logo img {
        height: 55px;
    }
    
    .brand-info h3 {
        font-size: 12px;
    }
    
    .brand-info p {
        font-size: 10px;
    }
    
    .agent-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .footer-logo {
        height: 25px;
        margin-right: 8px;
    }
    
    .footer-text h3 {
        font-size: 12px;
    }
    
    .footer-text p {
        font-size: 10px;
    }
    
    .bind-btn {
        padding: 4px 12px;
        font-size: 10px;
    }
}