/* Contact Page Styles */
.contact-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 4rem 1rem;
    background: linear-gradient(to bottom, #f8f8f8, #ffffff);
}

/* Hero Section */
.contact-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: url('../images/slide2.jpg') center/cover;
    position: relative;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #333;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 2rem;
}

/* Contact Form */
.contact-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 1s ease;
}

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

.form-group label {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #f8f8f8;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #666;
    outline: none;
}

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

.submit-btn {
    background: #333;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #444;
    transform: translateY(-2px);
}

/* Contact Information */
.contact-info {
    animation: slideInRight 1s ease;
}

.info-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #666;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #333;
}

/* 美化社交链接样式 */
.social-links-contact {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
}

.social-links-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #a67c52;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links-contact a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(166, 124, 82, 0.3);
}

.social-links-contact a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Map Section */
.map-section {
    margin-top: 4rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.map-container {
    width: 100%;
    height: 400px;
    border: none;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* 美化留言表格的样式 */
.wpcf7 {
    max-width: 100%;
}

.wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wpcf7 p {
    margin: 0;
}

.wpcf7 label {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-top: 0.5rem;
    position: relative;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e9e9e9;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #555;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) inset;
}

.wpcf7 input[type="text"]:hover,
.wpcf7 input[type="email"]:hover,
.wpcf7 textarea:hover {
    border-color: #d1d1d1;
    background-color: #fff;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    border-color: #666;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.1);
    outline: none;
}

.wpcf7 textarea {
    height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.wpcf7 input[type="submit"] {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: #fff;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.wpcf7 input[type="submit"]:hover {
    background: linear-gradient(135deg, #444 0%, #555 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.wpcf7 input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wpcf7-response-output {
    margin: 1.5rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: center;
}

/* 错误和验证状态 */
.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
    padding-left: 0.5rem;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
    border-color: #e74c3c;
    background-color: #fff8f8;
}

.wpcf7 form.invalid .wpcf7-response-output {
    background-color: #fff0f0;
    border: 1px solid #ffcccc;
    color: #e74c3c;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: #f0fff0;
    border: 1px solid #ccffcc;
    color: #2ecc71;
}

/* 美化隐藏字段容器 */
.hidden-fields-container {
    display: none;
}

/* 添加动画效果 */
@keyframes formFieldFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wpcf7 p {
    animation: formFieldFadeIn 0.5s ease forwards;
}

.wpcf7 p:nth-child(2) { animation-delay: 0.1s; }
.wpcf7 p:nth-child(3) { animation-delay: 0.2s; }
.wpcf7 p:nth-child(4) { animation-delay: 0.3s; }
.wpcf7 p:nth-child(5) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        order: 2;
    }
    
    .contact-info {
        order: 1;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 textarea {
        padding: 0.9rem 1rem;
    }
    
    .wpcf7 input[type="submit"] {
        padding: 1rem 1.8rem;
    }
}

@media (max-width: 576px) {
    .contact-container {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .contact-form,
    .info-card {
        padding: 1.5rem;
    }
    
    .wpcf7 form {
        gap: 1.2rem;
    }
    
    .wpcf7 label {
        font-size: 1rem;
    }
}