.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

/* 统一页面背景色与新闻中心页面一致 */
body {
    background-color: var(--background-color) !important;
}

/* 验证码容器样式 */
.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-img {
    height: auto;
    width: auto;
    max-height: 80px;
    max-width: 220px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    padding: 5px;
    background-color: white;
    object-fit: contain;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#contact .contact-item h3 {
    color: #333 !important;
    margin-bottom: 15px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.contact-item p {
    color: #666;
    margin-bottom: 20px;
}

.contact-item img {
    max-width: 180px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #eaeaea;
    border-radius: 5px;
    padding: 5px;
    background-color: white;
}

.tmall-link {
    display: inline-block;
    background-color: #ff4400;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.tmall-link:hover {
    background-color: #e33e00;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Flash message styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

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

.btn-submit {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #3a7bc8;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .contact-info,
    .contact-form {
        width: 100%;
        margin: 0;
        padding: 0 15px;
    }

    .contact-item {
        padding: 20px 15px;
    }
}
