/* 基础样式已在common.css中定义 */

/* 横幅样式 */

/* 横幅样式 */
.banner {
    background: linear-gradient(rgba(26, 115, 232, 0.8), rgba(26, 115, 232, 0.9)), 
                url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    text-align: center;
    margin-top: 70px;
}

.banner h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: white;
    color: #1a73e8;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
    background-color: #1a73e8;
    color: white;
    border: 1px solid white;
}

/* 通用部分样式 */
section {
    padding: 80px 0;
}

section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1a73e8;
}

/* 关于我们部分样式 */
.about {
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 优势部分样式 */
.advantage-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    width: 23%;
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.card h4 {
    color: #1a73e8;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card p {
    flex-grow: 1;
}

/* 园区风采样式 */
.campus-showcase {
    background-color: #fff;
    padding: 80px 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 115, 232, 0.9);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 500;
}

/* 入驻企业展示样式 */
.enterprises-showcase {
    background-color: #f9f9f9;
}

.enterprise-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.logo-item {
    background-color: white;
    width: 150px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: 600;
    color: #1a73e8;
}

/* 联系部分样式 */
.contact-section {
    text-align: center;
}

.contact-section p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* 订阅部分样式 */
.subscribe {
    background-color: #f9f9f9;
    text-align: center;
    padding: 60px 0;
}

.subscribe h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a73e8;
}

.subscribe p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #666;
}

.subscribe-input {
    padding: 15px 20px;
    width: 350px;
    max-width: 80%;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.subscribe-input:focus {
    border-color: #1a73e8;
}

.subscribe-btn {
    padding: 15px 30px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-btn:hover {
    background-color: #0d47a1;
}

/* 搜索框样式 */
.search-input {
    padding: 12px 15px;
    width: calc(100% - 40px);
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #1a73e8;
}

.search-btn {
    padding: 12px 15px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #0d47a1;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-info, .footer-links {
    flex: 1;
}

.footer-info h4, .footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        width: 90%;
    }
    
    .card {
        width: 48%;
        margin-bottom: 20px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 其他响应式样式保持不变 */
    .banner h2 {
        font-size: 2.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 30px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 576px) {
    /* 手机端进一步优化 */
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .nav-links {
        top: 55px;
    }
    
    .card {
        width: 100%;
    }
    
    .banner h2 {
        font-size: 1.8rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 200px;
    }
}