/* style/contact.css */

/* --- Base Styles & Layout --- */
.page-contact {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Fixed header spacing */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, #CC0000 0%, #800000 100%); /* Brand red gradient */
    color: #ffffff;
    text-align: center;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.page-contact__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.page-contact__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700; /* Gold for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-contact__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    filter: grayscale(100%); /* Keep original color but make it subtle */
}

/* --- CTA Buttons --- */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-contact__cta-button--primary {
    background: #FFD700; /* Gold button */
    color: #CC0000; /* Red text */
}

.page-contact__cta-button--primary:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-button--secondary {
    background: #CC0000; /* Red button */
    color: #ffffff; /* White text */
    border: 2px solid #FFD700; /* Gold border */
}

.page-contact__cta-button--secondary:hover {
    background: #a30000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Section Styling --- */
.page-contact__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for section titles */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

/* Sections with specific backgrounds */
.page-contact__methods-section, 
.page-contact__faq-section {
    background-color: #0d0d0d; /* Dark background for these sections */
    color: #f0f0f0;
    padding: 80px 20px;
}

.page-contact__form-section, 
.page-contact__brand-section, 
.page-contact__blog-section {
    background-color: #1a1a1a; /* Another dark background */
    color: #f0f0f0;
    padding: 80px 20px;
}

.page-contact__methods-container,
.page-contact__form-container,
.page-contact__faq-container,
.page-contact__brand-container,
.page-contact__blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.page-contact__method-card {
    background-color: #1a1a1a; /* Card background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333333;
}

.page-contact__method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-contact__method-icon {
    width: 100%;
    max-width: 250px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 25px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__method-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFD700; /* Gold title */
    font-weight: bold;
}

.page-contact__method-text {
    font-size: 1em;
    color: #c0c0c0;
    margin-bottom: 25px;
}

.page-contact__method-button {
    display: inline-block;
    padding: 12px 25px;
    background: #CC0000; /* Red button */
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-contact__method-button:hover {
    background: #a30000;
    transform: translateY(-2px);
}

/* --- Contact Form Section --- */
.page-contact__contact-form {
    max-width: 700px;
    margin: 50px auto 0 auto;
    background-color: #0d0d0d; /* Form background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #333333;
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFD700; /* Gold label */
    font-size: 1.1em;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #444444;
    border-radius: 6px;
    background-color: #2a2a2a; /* Input background */
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #888888;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFD700; /* Gold focus */
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__submit-button {
    display: block;
    width: 100%;
    padding: 15px 30px;
    background: #FFD700; /* Gold button */
    color: #CC0000; /* Red text */
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__submit-button:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- FAQ Section --- */
.page-contact__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

/* FAQ容器样式 */
.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a1a1a; /* FAQ item background */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #333333;
}

/* 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 25px; /* Adjust padding for dark background */
    opacity: 0;
    color: #c0c0c0;
    font-size: 1em;
}

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

/* 问题样式 */
.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #1a1a1a;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    border-bottom: 1px solid transparent; /* No bottom border by default */
}

.page-contact__faq-item.active .page-contact__faq-question {
    border-bottom-color: #333333; /* Border when active */
    border-radius: 8px 8px 0 0; /* Adjust border-radius for active state */
}

.page-contact__faq-question:hover {
    background-color: #2a2a2a;
}

/* 问题标题样式 */
.page-contact__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* 防止h3标签阻止点击事件 */
    color: #FFD700; /* Gold question text */
}

/* 切换图标 */
.page-contact__faq-toggle {
    font-size: 28px; /* Larger icon */
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold toggle icon */
    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; /* Larger hit area */
    height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
    color: #CC0000; /* Red when active */
}

/* --- Brand Section --- */
.page-contact__brand-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #c0c0c0;
}

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

.page-contact__brand-item {
    background-color: #0d0d0d; /* Brand item background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333333;
}

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

.page-contact__brand-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 25px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__brand-item-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFD700; /* Gold title */
    font-weight: bold;
}

.page-contact__brand-item-text {
    font-size: 1em;
    color: #c0c0c0;
}

/* --- Blog Section --- */
.page-contact__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-contact__blog-item {
    background-color: #0d0d0d; /* Blog item background */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid #333333;
    display: flex;
    flex-direction: column;
}

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

.page-contact__blog-item-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-contact__blog-link {
    text-decoration: none;
    color: inherit;
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-contact__blog-item-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFD700; /* Gold title */
    font-weight: bold;
    flex-grow: 1;
}

.page-contact__blog-item-excerpt {
    font-size: 0.95em;
    color: #c0c0c0;
    margin-bottom: 15px;
}

.page-contact__blog-item-date {
    font-size: 0.85em;
    color: #888888;
    text-align: right;
    margin-top: auto;
}

.page-contact__blog-view-all {
    text-align: center;
    margin-top: 60px;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__hero-description,
    .page-contact__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
    }

    .page-contact__main-title {
        font-size: 2.2em;
    }

    .page-contact__hero-description {
        font-size: 0.95em;
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-contact__cta-button {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        padding: 12px 25px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 0.9em;
        margin-bottom: 40px;
    }

    .page-contact__methods-grid,
    .page-contact__brand-content,
    .page-contact__blog-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__brand-section,
    .page-contact__blog-section {
        padding: 60px 15px;
    }

    .page-contact__methods-container,
    .page-contact__form-container,
    .page-contact__faq-container,
    .page-contact__brand-container,
    .page-contact__blog-container {
        padding: 0 15px;
    }

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

    .page-contact__form-label {
        font-size: 1em;
    }

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

    .page-contact__submit-button {
        padding: 12px 20px;
        font-size: 1.1em;
    }

    /* FAQ Mobile */
    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-question h3 {
        font-size: 1em;
    }
    .page-contact__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px !important;
    }

    /* Images Mobile */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__hero-image-wrapper,
    .page-contact__method-card,
    .page-contact__brand-item,
    .page-contact__blog-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-contact__method-icon,
    .page-contact__brand-image {
        max-width: 100%;
        height: auto;
    }
    .page-contact__blog-item-image {
        height: 180px; /* Adjust height for mobile */
    }
}