/* ===================================
   联系我们页面样式 - contact.css
   北京颂宸行科技有限公司官网
   =================================== */

/* ===== 页面Banner ===== */
.page-banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    margin-top: 80px;
    overflow: hidden;
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-banner-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.page-banner-content p {
    font-size: 20px;
    margin-bottom: 24px;
    opacity: 0.95;
}

.breadcrumb {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb span {
    margin: 0 8px;
}

/* ===== 公司信息 ===== */
.contact-info-section {
    padding: 96px 0;
}

.company-logo-section {
    text-align: center;
    margin-bottom: 64px;
}

.company-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 24px;
}

.company-logo-section h2 {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.company-slogan {
    font-size: 20px;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 8px;
}

.company-motto {
    font-size: 18px;
    color: var(--text-medium);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.contact-card {
    background: white;
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-top-color: var(--primary-color);
}

.contact-icon {
    font-size: 56px;
    margin-bottom: 24px;
}

.contact-card h3 {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.contact-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.contact-note {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 12px;
}

/* ===== 位置信息 ===== */
.location-section {
    padding: 96px 0;
}

.location-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.location-card {
    background: white;
    padding: 48px 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.location-icon {
    font-size: 56px;
    margin-bottom: 24px;
}

.location-card h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.location-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.location-address {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
}

.location-search {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 12px 0;
}

.location-tip {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 12px;
}

/* ===== 表单区域 ===== */
.form-section {
    padding: 96px 0;
}

.form-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-form {
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 90, 160, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

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

.error-message {
    display: block;
    font-size: 14px;
    color: #e74c3c;
    margin-top: 6px;
    min-height: 20px;
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.form-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* 表单右侧信息 */
.form-info {
    background: white;
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.form-info h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.form-info ul {
    list-style: none;
    margin-bottom: 32px;
}

.form-info li {
    font-size: 15px;
    line-height: 2;
    color: var(--text-medium);
    padding-left: 8px;
}

.business-hours {
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.business-hours h4 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.business-hours p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-medium);
}

/* ===== 成功提交弹窗 ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
}

.modal-icon.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.modal-content h3 {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 12px;
}

.submitted-info {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
    text-align: left;
}

.submitted-info h4 {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.submitted-info p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.submitted-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

.modal-content .btn {
    margin-top: 24px;
    padding: 14px 48px;
}

/* ===== 响应式设计 ===== */

/* 平板端 */
@media (max-width: 1200px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .page-banner {
        height: 300px;
    }

    .page-banner-content h1 {
        font-size: 36px;
    }

    .company-logo {
        width: 150px;
    }

    .company-logo-section h2 {
        font-size: 28px;
    }

    .location-info {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-form {
        padding: 32px;
    }
}

/* 移动端 */
@media (max-width: 768px) {
    .page-banner {
        height: 250px;
        margin-top: 64px;
    }

    .page-banner-content h1 {
        font-size: 28px;
    }

    .page-banner-content p {
        font-size: 16px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-card {
        padding: 32px 24px;
    }

    .location-info {
        grid-template-columns: 1fr;
    }

    .location-card {
        padding: 32px 24px;
    }

    .contact-form {
        padding: 24px;
    }

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

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

    .form-actions .btn {
        max-width: 100%;
    }

    .modal-content {
        padding: 32px 24px;
        width: 95%;
    }

    .modal-icon {
        width: 64px;
        height: 64px;
        font-size: 36px;
    }

    .modal-content h3 {
        font-size: 24px;
    }
}
