/* ================================
   正奥石业官网 - 联系我们页样式
   ================================ */

/* Hero 区域 */
.contact-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #2D3436 0%, #4A4E52 100%);
    background-image:
        linear-gradient(135deg, rgba(45, 52, 54, 0.9) 0%, rgba(74, 78, 82, 0.85) 100%),
        url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(45, 52, 54, 0.7) 0%, rgba(45, 52, 54, 0.85) 100%);
}

.contact-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.contact-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.contact-hero .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact-hero .hero-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, #ffffff, transparent);
    margin: 0 auto;
}

/* 联系内容 */
.contact-content {
    padding: 2.5rem 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    min-height: calc(100vh - 400px - 180px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: stretch;
}

.contact-info,
.contact-form-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.title-decoration {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* 联系信息卡片 */
.contact-info {
    animation: fadeInLeft 1s ease;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    flex: 1;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--accent-color), #6ba3f5);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.3rem;
    color: white;
}

.contact-details {
    flex: 1;
}

.contact-details h3 {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 联系表单 */
.contact-form-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: fadeInRight 1s ease;
}

.contact-form {
    margin-top: 1.25rem;
    flex: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), #4a4e52);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 52, 54, 0.3);
}

.btn-submit i {
    font-size: 1rem;
}

/* CTA */
.contact-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1a1a 100%);
    text-align: center;
    color: white;
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-cta .btn {
    background-color: white;
    color: var(--primary-color);
}

.contact-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.contact-cta .btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式 */
@media screen and (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form-section {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    .contact-hero {
        height: 300px;
    }

    .contact-hero .hero-title {
        font-size: 2rem;
    }

    .contact-hero .hero-subtitle {
        font-size: 1.2rem;
    }

    .contact-content {
        padding: 2rem 0;
    }

    .contact-cards {
        gap: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-section {
        padding: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .contact-icon i {
        font-size: 1.15rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .contact-cta .btn {
        width: 100%;
    }
}
