/* ========================= Contact Us Page Styles ========================= */

/* 通用 a 标签样式 */
a,
a:link,
a:visited,
a:hover,
a:active {
    color: white;
    text-decoration: none;
}

/* Hero Section */
.contact-hero-section {
    position: relative;
    width: 100%;
    height: calc((400/1918) * 100vw);
    min-height: 300px;
    background-image: url('/images/article_05.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top:80px; /* Header安全高度 */
    box-sizing: border-box;
}

/* 移动端响应式 */
@media (max-width: 1100px) {
    .contact-hero-section {
        padding-top: 60px; /* 移动端Header安全高度 */
    }
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--white);
    padding: calc((40/1918) * 100vw);
    width: 100%;
    max-width: 1730px;
    margin: 0 auto;
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: calc((48/1918) * 100vw);
    font-weight: bold;
    margin: 0 0 calc((15/1918) * 100vw) 0;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: calc((20/1918) * 100vw);
    margin: 0;
    opacity: 0.95;
}

/* Tab Navigation */
.contact-tabs {
    display: flex;
    gap: calc((80/1918) * 100vw);
    margin-bottom: calc((40/1918) * 100vw);
    border-bottom: 2px solid var(--brand-gray-light);
    justify-content: flex-start; /* 靠左对齐 */
    width: 100%;
}

.contact-tab {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: calc((24/1918) * 100vw);
    font-weight: 600;
    color: var(--text-gray-700);
    padding: calc((15/1918) * 100vw) 0;
    padding-bottom: calc((15/1918) * 100vw);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.contact-tab.active {
    color: var(--brand-primary);
}

.contact-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--brand-primary);
}

.contact-tab:hover {
    color: var(--brand-primary);
}

/* Main Content Wrapper */
.contact-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: calc((60/1918) * 100vw);
    width: 100%;
}

/* Top Row: Company Info + Shenzhen Office */
.contact-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc((60/1918) * 100vw);
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: calc((40/1918) * 100vw);
}

.shenzhen-office-column {
    display: flex;
    flex-direction: column;
}

/* Bottom Row: Online Message + Form */
.contact-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc((60/1918) * 100vw);
}

.message-title-column {
    display: flex;
    flex-direction: column;
}

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

/* Company Introduction */
.contact-intro {
    margin-bottom: calc((20/1918) * 100vw);
}

.contact-section-title {
    font-family: var(--font-heading);
    font-size: calc((18/1918) * 100vw);
    font-weight: 600;
    color: var(--text-gray-700);
    margin: 0 0 calc((15/1918) * 100vw) 0;
}

.contact-intro-text {
    font-family: var(--font-body);
    font-size: calc((18/1918) * 100vw);
    color: var(--text-gray-500);
    margin: 0;
    line-height: 1.6;
}

/* Contact Information Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: calc((25/1918) * 100vw);
}

.contact-info-item {
    display: flex;
    gap: calc((20/1918) * 100vw);
    padding: calc((20/1918) * 100vw);
    background-color: var(--brand-bg-light);
    border-radius: calc((8/1918) * 100vw);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-icon-wrapper {
    width: calc((50/1918) * 100vw);
    height: calc((50/1918) * 100vw);
    min-width: 40px;
    min-height: 40px;
    max-width: 50px;
    max-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 50%;
    color: var(--brand-primary);
}

.contact-icon {
    width: calc((28/1918) * 100vw);
    height: calc((28/1918) * 100vw);
    min-width: 24px;
    min-height: 24px;
    max-width: 28px;
    max-height: 28px;
}

.contact-info-content {
    flex: 1;
}

.contact-info-label {
    font-family: var(--font-heading);
    font-size: calc((18/1918) * 100vw);
    font-weight: 600;
    color: var(--text-gray-700);
    margin: 0 0 calc((8/1918) * 100vw) 0;
}

.contact-info-value {
    font-family: var(--font-body);
    font-size: calc((16/1918) * 100vw);
    color: var(--text-gray-500);
    margin: 0;
    line-height: 1.6;
}

.contact-info-value a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Form Section */
.contact-form-section {
    margin-top: calc((40/1918) * 100vw);
}

.form-section-title {
    font-family: var(--font-heading);
    font-size: calc((28/1918) * 100vw);
    font-weight: 600;
    color: var(--text-gray-700);
    margin: 0 0 calc((10/1918) * 100vw) 0;
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: color 0.3s ease;
}

.form-section-title:hover {
    color: var(--brand-primary);
}

.title-underline {
    display: block;
    width: 100%; /* 和文字一样长 */
    height: 3px;
    background-color: var(--brand-primary);
    margin-top: calc((8/1918) * 100vw);
}

.form-section-subtitle {
    font-family: var(--font-body);
    font-size: calc((16/1918) * 100vw);
    color: var(--text-gray-500);
    margin: 0 0 calc((30/1918) * 100vw) 0;
}

/* Form Image */
.form-image-wrapper {
    width: 100%;
    border-radius: calc((8/1918) * 100vw);
    overflow: hidden;
    margin-top: calc((20/1918) * 100vw);
}

.form-side-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: calc((20/1918) * 100vw);
    width: 100%;
}

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

.form-label {
    font-family: var(--font-body);
    font-size: calc((16/1918) * 100vw);
    color: var(--text-gray-700);
    margin-bottom: calc((8/1918) * 100vw);
    font-weight: 500;
}

.form-input,
.form-textarea {
    font-family: var(--font-body);
    font-size: calc((16/1918) * 100vw);
    padding: calc((12/1918) * 100vw) calc((16/1918) * 100vw);
    border: 2px solid var(--brand-gray-light);
    border-radius: calc((8/1918) * 100vw);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
    color: var(--text-gray-700);
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(80, 162, 111, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-gray-500);
    opacity: 0.7;
}

.form-textarea {
    resize: vertical;
    min-height: calc((120/1918) * 100vw);
}

.error-message {
    font-family: var(--font-body);
    font-size: calc((14/1918) * 100vw);
    color: #dc3545;
    margin-top: calc((6/1918) * 100vw);
    display: none;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
    border-color: #dc3545;
}

.form-group.error .error-message {
    display: block;
}

.success-message {
    font-family: var(--font-body);
    font-size: calc((16/1918) * 100vw);
    color: var(--brand-primary);
    background-color: rgba(80, 162, 111, 0.1);
    padding: calc((15/1918) * 100vw);
    border-radius: calc((4/1918) * 100vw);
    border-left: 4px solid var(--brand-primary);
    margin-top: calc((20/1918) * 100vw);
}

.form-submit-btn {
    /* 布局 */
    width: 100%;
    display: block;
    box-sizing: border-box;
    
    /* 间距 */
    padding: calc((12/1918) * 100vw) calc((40/1918) * 100vw);
    margin-top: calc((10/1918) * 100vw);
    margin-left: 0;
    margin-right: 0;
    
    /* 外观 */
    background-color: var(--brand-primary);
    color: white !important;
    border: none;
    border-radius: calc((8/1918) * 100vw);
    
    /* 字体 */
    font-family: var(--font-body);
    font-size: calc((16/1918) * 100vw);
    font-weight: 500;
    
    /* 交互 */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-submit-btn:hover {
    background-color: var(--brand-primary-dark);
    color: white !important;
    transform: translateY(-1px);
}

.form-submit-btn:active {
    color: white !important;
    transform: translateY(0);
}

/* Form Section in Bottom Row */
.message-title-column .contact-form-section {
    margin-top: 0;
}

/* Secondary Office Box */
.secondary-office-box {
    background-color: var(--brand-bg-light);
    padding: calc((40/1918) * 100vw);
    border-radius: calc((8/1918) * 100vw);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.office-heading {
    font-family: var(--font-body);
    font-size: calc((24/1918) * 100vw);
    font-weight: normal;
    color: var(--text-gray-700);
    margin: 0 0 calc((10/1918) * 100vw) 0;
}

.office-company {
    font-family: var(--font-heading);
    font-size: calc((24/1918) * 100vw);
    font-weight: 600;
    color: var(--text-gray-700);
    margin: 0 0 calc((25/1918) * 100vw) 0;
}

.office-detail {
    display: flex;
    gap: calc((8/1918) * 100vw);
    margin-bottom: calc((15/1918) * 100vw);
    font-family: var(--font-body);
    font-size: calc((16/1918) * 100vw);
    align-items: baseline;
}

.office-label {
    font-weight: 600;
    color: var(--text-gray-700);
    white-space: nowrap;
    flex-shrink: 0;
}

.office-value {
    color: var(--text-gray-500);
    line-height: 1.6;
    flex: 1;
}

.office-value a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* QR Code Section */
.qr-code-section {
    margin-top: calc((30/1918) * 100vw);
    text-align: left;
}

.qr-code-image {
    width: calc((180/1918) * 100vw);
    height: calc((180/1918) * 100vw);
    max-width: 180px;
    max-height: 180px;
    border: 2px solid var(--white);
    border-radius: calc((8/1918) * 100vw);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-code-label {
    font-family: var(--font-body);
    font-size: calc((16/1918) * 100vw);
    font-weight: 600;
    color: var(--brand-primary);
    margin-top: calc((12/1918) * 100vw);
    margin-bottom: 0;
}

/* ========================= Contact Page Responsive ========================= */

/* Tablet */
@media (max-width: 1024px) {
    .contact-top-row,
    .contact-bottom-row {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: calc((36/1918) * 100vw);
    }

    .hero-subtitle {
        font-size: calc((18/1918) * 100vw);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .contact-hero-section {
        height: 250px;
        min-height: 250px;
        background-size: cover;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .contact-tabs {
        gap: 30px;
    }

    .contact-tab {
        font-size: 18px;
        padding: 12px 0;
    }

    .contact-intro {
        display: flex;
        flex-direction: column;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }

    .contact-section-title {
        font-size: 16px;
        margin: 0 !important;
        padding-top: 15px !important;
    }

    .contact-intro-text {
        font-size: 16px;
        margin: 0 !important;
    }

    .form-section-title {
        font-size: 22px;
    }

    .form-section-subtitle {
        font-size: 14px;
    }

    .contact-info-label {
        font-size: 16px;
    }

    .contact-info-value {
        font-size: 14px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-input,
    .form-textarea {
        font-size: 16px;
        padding: 12px 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .office-heading {
        font-size: 20px;
    }

    .office-company {
        font-size: 22px;
    }

    .office-detail {
        font-size: 14px;
    }

    .contact-info-item {
        /* flex-direction: column !important; */
        align-items: flex-start !important;
        padding: 16px !important;
        gap: 12px !important;
    }

    .contact-icon-wrapper {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .contact-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
    }
    
    .contact-form {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .form-group {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        margin-bottom: 15px;
    }
    
    .form-submit-btn {
        width: 100% !important;
        max-width: 100%;
        font-size: 16px;
        padding: 14px 20px;
        min-height: 48px;
        border-radius: 8px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        display: block;
    }
    
    .message-form-column {
        width: 100%;
        max-width: 100%;
        padding: 0;
        overflow: hidden;
    }

    .secondary-office-box {
        padding: 24px;
    }

    .qr-code-image {
        width: 150px;
        height: 150px;
    }

    .qr-code-label {
        font-size: 14px;
    }

    /* Stack columns on mobile */
    .contact-top-row,
    .contact-bottom-row {
        grid-template-columns: 1fr;
    }
}

