/* 联系页面样式 */

.contact-container {
    min-height: calc(100vh - 200px);
    padding: 20px;
}

/* 联系我们标题区域 */
.contact-header {
    margin-bottom: 40px;
}

.contact-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.contact-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.contact-banner-content {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #000;
}

.contact-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 10px;
}

.contact-banner-content h1 {
    font-size: 32px;
    margin: 0;
    vertical-align: middle;
}

.contact-banner-logo {
    height: 35px;
    width: auto;
    vertical-align: middle;
    display: none;
}

.contact-banner-content p {
    font-size: 16px;
    letter-spacing: 1.5px;
    color: #727171;
    margin-top: 32px;
}

/* 联系表单容器 */
.contact-form-container {
    width: 80%;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
}

/* 表单样式 */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    gap: 24px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.required {
    color: #2E7D32;
    margin-right: 4px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1C635E;
}

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

/* 下拉框样式 */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* 复选框组 */
.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.form-checkbox {
    margin-top: 4px;
}

/* 隐私政策区域 */
.privacy-section {
    font-size: 14px;
    color: #000;
    line-height: 1.6;
}

/* 错误消息 */
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* 提交按钮 */
.submit-btn {
    background: #1C635E;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    align-self: flex-start;
    width: 100%;
}

.submit-btn:hover {
    background: #154d4a;
}

/* 成功消息 */
.success-message {
    text-align: center;
    padding: 60px 20px;
    background: #d4edda;
    border-radius: 8px;
    color: #155724;
}

.success-message p {
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 20px;
    }

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

    .contact-banner-content h1 {
        font-size: 24px;
    }

    .submit-btn {
        align-self: stretch;
    }
}

/* ==================== 下载弹框样式 ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 0;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .modal-header h2 {
        font-size: 20px;
    }
}