/* 品牌列表页特定样式 */

.brands-page {
    padding: 4rem 0;
}

.brands-page h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.brand-search {
    text-align: center;
    margin-bottom: 3rem;
}

.brand-search input {
    width: 50%;
    max-width: 500px;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* 新增的品牌和表单容器样式 */
.brands-and-form-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.brands-section {
    width: 65%;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.brand-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

.brand-card:hover::before {
    transform: scaleX(1);
}

.brand-card img {
    max-width: 120px;
    max-height: 80px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.brand-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* 表单部分样式 */
.form-section {
    width: 30%;
    text-align: center;
}

.form-section h2 {
    margin-bottom: 1rem;
    text-align: left;
}

#contactForm {
    max-width: 100%;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .brands-and-form-container {
        flex-direction: column;
    }
    
    .brands-section, .form-section {
        width: 100%;
    }
    
    .form-section {
        order: 2;
    }
    
    .brands-section {
        order: 1;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}