﻿/* ==================== 联系页面通用样式 ==================== */

/* Hero区 */
.contact-hero {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}
.contact-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #E85D04 0%, #F37021 50%, #ff6b25 100%);
    opacity: 0.15;
}
.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.contact-hero-content h1 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: 4px;
}
.contact-hero-content p {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}
.contact-hero-line {
    width: 60px;
    height: 4px;
    background: #E85D04;
    margin: 0 auto;
    border-radius: 2px;
}

/* 通用区域 */
.contact-info-section {
    padding: 80px 0;
    background: #fff;
}
.contact-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}
.contact-form-section .section-header h2,
.contact-form-section .section-header p {
    color: #fff !important;
}
.contact-map-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.section-header p {
    font-size: 16px;
    color: #666;
}

/* 联系信息卡片 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.contact-info-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(232, 93, 4, 0.15);
    border-color: #E85D04;
}
.contact-info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E85D04, #F37021);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: #fff;
}
.contact-info-card h3 {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 400;
}
.contact-info-card p {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}
.contact-info-card span {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

/* 联系表单 */
.contact-form {
    max-width: 720px;
    margin: 0 auto;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #E85D04;
    background: rgba(255,255,255,0.12);
}
.btn-submit {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #E85D04, #F37021);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}
.btn-submit:hover {
    background: linear-gradient(135deg, #d04d00, #E85D04);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4);
}

/* 地图占位 */
.map-placeholder {
    height: 400px;
    background: #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-inner {
    text-align: center;
    color: #999;
}
.map-inner i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 16px;
}
.map-inner p {
    font-size: 18px;
    font-weight: 600;
}

/* 百度地图 */
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    height: 480px;
}
.baidu-map {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 媒体矩阵 */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.media-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.media-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.media-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: #fff;
}
.media-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.media-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}
.media-card span {
    font-size: 12px;
    color: #999;
}

/* 合作 */
.coop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.coop-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.coop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(232, 93, 4, 0.12);
    border-color: #E85D04;
}
.coop-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #E85D04, #F37021);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #fff;
}
.coop-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.coop-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.advantage-item {
    text-align: center;
    padding: 24px;
}
.advantage-item i {
    font-size: 40px;
    color: #E85D04;
    margin-bottom: 12px;
}
.advantage-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.advantage-item p {
    font-size: 14px;
    color: #666;
}

/* 分享 */
.share-steps {
    max-width: 640px;
    margin: 0 auto;
}
.share-step {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s;
}
.share-step:hover {
    border-color: #E85D04;
    box-shadow: 0 4px 20px rgba(232, 93, 4, 0.1);
}
.step-num {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #E85D04, #F37021);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}
.step-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.step-content p {
    font-size: 14px;
    color: #666;
}

.leaderboard {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}
.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px;
    padding: 14px 24px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    align-items: center;
    transition: background 0.2s;
}
.leaderboard-row:hover {
    background: #faf7f2;
}
.leaderboard-row:last-child {
    border-bottom: none;
}

/* 移动端适配 */
@media (max-width: 1024px) {
    .contact-grid,
    .coop-grid,
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .contact-hero-content h1 { font-size: 36px; }
    .contact-grid,
    .coop-grid,
    .advantage-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 60px 1fr 80px 80px;
        font-size: 13px;
        padding: 12px 16px;
    }
}