/* ===================================
   CONTACT PAGE STYLES
   =================================== */

:root {
 --primary: #2563eb;
--primary-dark: #1e40af;
--accent: #f59e0b;
--green: #10b981;          
--green-light: #d1fae5;    
--green-dark: #047857;    
--dark: #0f172a;
--gray: #64748b;
--light: #f1f5f9;
--white: #ffffff;
--border: #e2e8f0;
--shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ===================================
   CONTACT HERO SECTION
   =================================== */
.contact-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.15) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--dark);
}

.contact-hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark);
}

.contact-hero-content p {
    font-size: 20px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray);
}

/* ===================================
   CONTACT INFO SECTION
   =================================== */
.contact-info-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 18px;
    color: var(--gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

/* Right Column - About Content and Contact Form */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* About Content in Contact Page */
.about-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 2px solid var(--border);
    line-height: 1.6;
    font-size: 16px;
    color: var(--gray);
    white-space: pre-wrap;
    word-wrap: break-word;
    box-shadow: var(--shadow);
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.about-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font-size: inherit;
    line-height: 1.6;
}

/* ===================================
   CONTACT DETAILS
   =================================== */
.contact-details {
    background: var(--light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    transition: all 0.3s ease;
	-webkit-user-select: text;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--green);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.contact-icon2 {
    width: 50px;
    height: 50px;
    background: var(--green);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.contact-item:hover .contact-icon {
    background: var(--green-dark);
    transform: scale(1.1);
}

.contact-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-text p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.contact-text a {
    color: var(--primary);
    font-weight: 500;
}

.contact-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===================================
   CONTACT FORM WRAPPER
   =================================== */
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border: 2px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Alert Box */
.alert-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    background-color: #fee2e2;
    color: #dc2626;
}

.alert-box svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: var(--dark);
    background: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* 验证码样式 */
.captcha-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-group input {
    flex: 1;
}

.captcha-img {
    width: 120px;
    height: 45px;
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.captcha-img:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.send-btn {
    width: 100%;
    padding: 16px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ===================================
   ABOUT SECTION (Contact Page)
   =================================== */
.contact-page-about {
    padding: 80px 0;
    background: var(--light);
}

.contact-page-about .about-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 2px solid var(--border);
    line-height: 1.6;
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 40px;
    white-space: pre-wrap;
    word-wrap: break-word;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.contact-page-about .about-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font-size: inherit;
    line-height: 1.6;
}

.cta-wrapper {
    display: flex;
    justify-content: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
    padding: 40px 60px;
    border-radius: 12px;
    text-align: center;
    color: var(--white);
    max-width: 600px;
    box-shadow: var(--shadow-lg);
}

.cta-box h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-box p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 25px;
}

.cta-box .btn {
    background: var(--white);
    color: #d97706;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta-box .btn:hover {
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    linear-gradient(135deg, #e7e7e7 0%, #ffffff 100%)
    text-align: center;
    color: var(--white);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 992px) {
    .contact-hero-content h1 {
        font-size: 36px;
    }

    .contact-hero-content p {
        font-size: 16px;
    }

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

    .right-column {
        gap: 20px;
    }

    .contact-details,
    .contact-form-wrapper,
    .about-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .pc-show { display: none; }
    .phone-show { display: block; }

    .contact-hero {
        padding: 60px 0;
    }

    .contact-hero-content h1 {
        font-size: 28px;
    }

    .contact-hero-content p {
        font-size: 14px;
    }

    .contact-info-section {
        padding: 50px 0;
    }

    .contact-details,
    .contact-form-wrapper,
    .about-content {
        padding: 25px;
    }

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

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

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

    .section-title p {
        font-size: 16px;
    }

    .contact-page-about {
        padding: 50px 0;
    }

    .about-content {
        padding: 30px;
    }

    .cta-box {
        padding: 30px;
    }

    .cta-box h3 {
        font-size: 24px;
    }

    .cta-box p {
        font-size: 16px;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        width: 35px;
        padding: 5px 0;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 100;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--dark);
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile Contact Menu */
    .mobile-contact-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        overflow-y: auto;
        padding: 80px 20px 20px;
    }

    .mobile-contact-menu.active {
        right: 0;
    }

    .mobile-menu-content {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .mobile-contact-item {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        background: var(--light);
        border-radius: 8px;
    }

    .mobile-contact-icon {
        width: 45px;
        height: 45px;
        background: var(--primary);
        color: var(--white);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mobile-contact-text h4 {
        font-size: 16px;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 8px;
    }

    .mobile-contact-text p {
        font-size: 14px;
        color: var(--gray);
        line-height: 1.6;
    }

    .mobile-contact-text a {
        color: var(--primary);
        font-weight: 500;
    }

    .mobile-contact-text a:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

    /* 移动端验证码样式 */
    .captcha-group {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .captcha-group input {
        width: 100%;
        flex: none;
    }

    .captcha-img {
        width: 100%;
        max-width: 150px;
        height: 50px;
    }
}
