﻿/* 重置和基础样式 */
* {
    box-sizing: border-box;
}

.main-container {
    width: 100%;
    margin: 0 auto;
}

.container-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部横幅区域 */
.hero-banner {
    width: 100%;
    height: 599px;
    background-image: url(../images/pinpaihezuo/pinpaihezuo_1_1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 赞助墙区域 */
.sponsorship-section {
    background-color: #f3f5f3;
    padding: 109px 0 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 54px;
}

.section-title {
    font-size: clamp(24px, 4vw, 28px);
    font-weight: bold;
    margin: 0 0 24px;
    color: #333;
}

.section-subtitle {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 28px;
}

.divider {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.divider img {
    max-width: 100%;
    height: auto;
}

/* 赞助商网格布局 */
.sponsors-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1591px;
    margin: 0 auto;
}

.sponsor-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.sponsor-item {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 139px;
}

.sponsor-item.empty {
    /* 用于占位的空白项 */
}

.sponsor-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* 合作洽谈区域 */
.partnership-section {
    padding: 75px 0;
    background-color: #fff;
}

.partnership-content {
    max-width: 1200px;
    margin: 0 auto;
}

.partnership-header {
    margin-bottom: 50px;
}

.partnership-title {
    font-size: clamp(24px, 4vw, 28px);
    font-weight: bold;
    margin: 0 0 33px;
    color: #333;
}

.partnership-subtitle {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 33px;
}

.partnership-expectations {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

.expectations-label {
    color: #999999;
    font-size: 20px;
}

.expectations-value {
    font-size: 20px;
    color: #333;
}

/* 表单样式 */
.contact-form {
    position: relative;
}

.form-title {
    font-size: 18px;
    margin: 0 0 40px;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-wide {
    grid-column: span 2;
}

.form-group-full {
    grid-column: 1 / -1;
    margin-bottom: 30px;
}

.form-group label {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: normal;
}

.input-wrapper,
.textarea-wrapper {
    position: relative;
    border: 1px solid #B5B5B5;
    border-radius: 4px;
}

.form-input {
    width: 100%;
    height: 70px;
    padding: 20px 15px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    outline: none;
}

.form-textarea {
    width: 100%;
    min-height: 170px;
    padding: 20px 15px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    outline: none;
    resize: vertical;
}

.input-placeholder,
.textarea-placeholder {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #999999;
    font-size: 16px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.textarea-placeholder {
    top: 30px;
    transform: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #9AFF00;
}

.form-submit {
    display: flex;
    justify-content: flex-start;
}

.submit-btn {
    background-color: #9AFF00;
    border: none;
    padding: 20px 40px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #8AE600;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .sponsor-row {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .sponsor-item:first-child {
        display: none;
    }
}

@media (max-width: 992px) {
    .sponsor-row {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-banner {
        height: 400px;
    }
    
    .sponsorship-section {
        padding: 60px 0 40px;
    }
    
    .partnership-section {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .sponsor-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group-wide {
        grid-column: span 1;
    }
    
    .partnership-expectations {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 300px;
    }
    
    .sponsor-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sponsorship-section {
        padding: 40px 0 30px;
    }
    
    .partnership-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .partnership-header {
        margin-bottom: 30px;
    }
}

/* 动画效果 */
.sponsor-item {
    transition: transform 0.3s ease;
}

.sponsor-item:hover {
    transform: scale(1.05);
}

.form-input,
.form-textarea {
    transition: border-color 0.3s ease;
}

/* 无障碍优化 */
.form-input:focus,
.form-textarea:focus,
.submit-btn:focus {
    outline: 2px solid #9AFF00;
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .hero-banner {
        height: 200px;
    }
    
    .submit-btn {
        background-color: #fff !important;
        border: 1px solid #333 !important;
        color: #333 !important;
    }
}