:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-font-color: #FFFF00;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light background */
    background-color: var(--secondary-color); /* Body background is white */
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-contact__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-title--light {
    color: var(--text-color-light);
}

.page-contact__section-intro {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color-dark);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__section-intro--light {
    color: var(--text-color-light);
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
    background: linear-gradient(135deg, var(--primary-color), #00A859); /* Blend primary color */
    color: var(--text-color-light);
    overflow: hidden; /* Prevent image overflow */
}

.page-contact__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px var(--shadow-color);
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-contact__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-color-light);
}

.page-contact__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-login-bg); /* Use specified login button color */
    color: var(--button-font-color); /* Use specified font color */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
    background: #FFD700; /* A slightly different yellow for hover */
    color: var(--button-login-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Area Image Size Lower Bound */
.page-contact__info-item img, .page-contact__form-section img, .page-contact__faq-section img {
    min-width: 200px;
    min-height: 200px;
}

/* Contact Info Section */
.page-contact__info-section {
    padding: 80px 0;
    background-color: var(--secondary-color); /* White background */
}

.page-contact__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__info-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-contact__info-item img {
    width: 100%;
    max-width: 250px; /* Adjust max-width for smaller contact info images */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__info-heading {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-contact__info-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

.page-contact__info-detail a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-contact__info-detail a:hover {
    text-decoration: underline;
}

.page-contact__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-contact__btn-primary:hover {
    background: #00A859; /* Slightly lighter green */
    transform: translateY(-2px);
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Dark section */
    color: var(--text-color-light);
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for contrast */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-contact__form-group {
    margin-bottom: 25px;
}

.page-contact__form-label {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color-light);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color-light);
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.page-contact__submit-button {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--button-register-bg); /* Use specified register button color */
    color: var(--button-font-color); /* Use specified font color */
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__submit-button:hover {
    background: #FFD700; /* A slightly different yellow for hover */
    color: var(--button-register-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: var(--secondary-color); /* White background */
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

/* FAQ容器样式 */
.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-color);
}

/* FAQ默认状态 - 答案隐藏 */
.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    color: var(--text-color-dark);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-contact__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-contact__faq-question:active {
    background: #eeeeee;
}

/* 问题标题样式 */
.page-contact__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* 防止h3标签阻止点击事件 */
    color: var(--primary-color);
}

/* 切换图标 */
.page-contact__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* 防止图标阻止点击事件 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Plus sign to X or minus */
}

/* Social Section */
.page-contact__social-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-align: center;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-contact__social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color-light);
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s ease, color 0.3s ease;
}

.page-contact__social-icon:hover {
    transform: translateY(-5px);
    color: var(--button-font-color); /* Yellow hover */
}

.page-contact__social-icon img {
     /* Display size */
     /* Display size */
    min-
    min-
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.page-contact__social-icon img:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 40px;
    }
    .page-contact__hero-description {
        font-size: 18px;
    }
    .page-contact__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__hero-title {
        font-size: 32px;
    }

    .page-contact__hero-description {
        font-size: 16px;
    }

    .page-contact__cta-button {
        padding: 12px 30px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__social-section {
        padding: 60px 0;
    }

    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__section-title {
        font-size: 28px;
    }
    .page-contact__section-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-contact__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-contact__info-item img {
        max-width: 100%;
        min-width: 200px;
        min-height: 200px;
    }

    .page-contact__contact-form {
        padding: 30px 20px;
    }

    .page-contact__form-label {
        font-size: 16px;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
        font-size: 15px;
    }

    .page-contact__submit-button {
        padding: 15px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-contact__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-contact__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-contact__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
    }
    
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Social icons on mobile */
    .page-contact__social-links {
        gap: 15px;
    }
    .page-contact__social-icon img {
        
        
        min-
        min-
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 28px;
    }
    .page-contact__hero-description {
        font-size: 15px;
    }
    .page-contact__cta-button {
        font-size: 16px;
        padding: 10px 25px;
    }
    .page-contact__section-title {
        font-size: 24px;
    }
    .page-contact__info-heading {
        font-size: 20px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea,
    .page-contact__submit-button {
        font-size: 14px;
    }
}