﻿/**
 * Contact Us 联系我们 Page Styles
 * Contact Us 联系我们 页面样式
 * 
 * @package Milestrong
 * @since 2.0.0
 */

/* ============================================
   页面头部样式 - Page Header Styles
   ============================================ */

/* 页面头部容器 */
.page-contact-us .milestrong-page-header {
    height: 800px;
    align-items: flex-end; /* 内容靠下 */
}

/* 内容区域在 Banner 下方偏移 */
.page-contact-us .milestrong-page-header-content {
    padding-bottom: 120px; /* 距底部留白，视觉上在中下位置 */
}

/* 背景遮罩层透明度 */
.page-contact-us .milestrong-page-header-overlay {
    /* overlay removed */
}

/* 页面标题 */
.page-contact-us .milestrong-page-title {
    font-size: 48px;
}

/* 页面副标题 */
.page-contact-us .milestrong-page-subtitle {
    font-size: 20px;
    padding: 12px 40px;
    border-radius: 50px;
}

/* ============================================
   Contact Information 区块
   ============================================ */

.contact-information-section .contact-information-wrapper {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-information-section .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.contact-information-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-information-section .section-title {
    font-size: 60px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.contact-information-section .section-subtitle {
    font-size: 18px;
    color: #ffffff;
    margin: 0;
}

/* 左表单 + 右信息卡 两列布局 */
.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: stretch;
}

/* 右侧信息卡 */
.contact-info-card {
    background: #12141e;
    border-radius: 20px;
    padding: 24px 32px;
    border: 2.5px solid #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    height: 100%;
    overflow: hidden;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    border: none;
    flex: 1;
    justify-content: center;
}

/* 去掉横线分隔 */

.contact-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* SVG 内联图标 */
.contact-icon-svg svg {
    width: 100%;
    height: 100%;
    color: #ffffff;
    stroke: #ffffff;
}

.contact-info-content {
    width: 100%;
}

.contact-label {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0px;
    line-height: 1.3;
}

.contact-value {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    font-weight: 400;
}

/* 链接颜色纯白，hover 变蓝 */
.contact-value a {
    color: #fff;
    text-decoration: none;
    transition: color 0.25s;
}

.contact-value a:hover {
    color: #017fff;
}

/* 电话号码不单独变蓝 */
.contact-value.phone-value {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ============================================
   Global Partners 区块 - Become a Partner 标题装饰线
   ============================================ */

.partners-main-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    font-size: 44px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 25px;
    white-space: nowrap;
}

.partners-main-text::before,
.partners-main-text::after {
    content: '';
    display: block;
    width: 200px;
    height: 6px;
    background: #ffffff;
    flex-shrink: 0;
    margin-top: 10px;
}

/* ============================================
   Global Partners 区块整体排版
   ============================================ */

.global-partners-section .global-partners-wrapper {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.global-partners-section .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.global-partners-section .section-title {
    font-size: 60px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.global-partners-section .section-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    /* margin: 0 0 40px; */
}

.partners-content {
    text-align: center;
}

.partners-description {
    margin: 0 auto 32px;
    max-width: 760px;
}

.partners-description p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0 0 8px;
}

.partners-button {
    display: inline-block;
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.partners-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1,127,255,0.4);
    color: #ffffff;
}

/* ============================================
   Authorized Regional Partners 区块
   ============================================ */

.authorized-partners-section .authorized-partners-wrapper {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.authorized-partners-section .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.authorized-partners-section .section-title {
    font-size: 60px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 48px;
}

.authorized-partners-section .partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.authorized-partners-section .partner-card {
    background: #181822;
    border-radius: 16px;
    padding: 28px 28px 24px 28px;
    border: 1px solid #ffffff;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.authorized-partners-section .partner-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.authorized-partners-section .partner-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.authorized-partners-section .partner-name {
    font-size: 35px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    padding-right: 16px;
}

.authorized-partners-section .partner-flag {
    flex-shrink: 0;
    width: 133px;
    height: 107px;
    border-radius: 12px;
    overflow: hidden;
}

.authorized-partners-section .partner-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.authorized-partners-section .partner-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.authorized-partners-section .partner-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.authorized-partners-section .partner-detail-icon {
    flex-shrink: 0;
    width: 5%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 2px;
}

.authorized-partners-section .partner-detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.authorized-partners-section .partner-detail-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.authorized-partners-section .detail-label {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 0;
}

.authorized-partners-section .detail-value {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.6;
    word-break: break-word;
}

/* hover 交互：链接跳转 */
.authorized-partners-section .detail-value-link {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.2s;
}
.authorized-partners-section .detail-value-link:hover {
    color: #017fff;
}

/* hover 交互：点击复制 */
.authorized-partners-section .detail-value-copy {
    cursor: pointer;
    transition: color 0.2s;
}
.authorized-partners-section .detail-value-copy:hover {
    color: #017fff;
}

/* 复制成功 Toast */
.partner-copy-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(1, 127, 255, 0.92);
    color: #fff;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 99999;
    white-space: nowrap;
}
.partner-copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


   页面内容样式 - Page Content Styles
   ============================================ */

.page-contact-us .page-content-wrapper {
    padding: 80px 0;
    background: #fff;
}

.page-contact-us .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.page-contact-us .entry-content h2 {
    font-size: 30px;
    color: #2c3e50;
}

.page-contact-us .entry-content h3 {
    font-size: 24px;
    color: #2c3e50;
}

.page-contact-us .entry-content a {
    color: #667eea;
}

.page-contact-us .entry-content a:hover {
    color: #764ba2;
}

/* ============================================
   响应式设计 - Responsive Design
   ============================================ */

@media screen and (max-width: 1024px) {
    .page-contact-us .milestrong-page-header {
        height: 500px;
    }
    .page-contact-us .milestrong-page-header-content {
        padding-bottom: 80px;
    }
    .page-contact-us .milestrong-page-title { font-size: 40px; }
    .page-contact-us .milestrong-page-subtitle { font-size: 18px; }
    .contact-content-grid { grid-template-columns: 1fr; }
    .authorized-partners-section .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .global-partners-section .section-title { font-size: 50px; }
}

@media screen and (max-width: 768px) {
    .page-contact-us .milestrong-page-header {
        height: 350px;
    }
    .page-contact-us .milestrong-page-header-content {
        padding-bottom: 60px;
    }
    .page-contact-us .milestrong-page-title { font-size: 32px; }
    .page-contact-us .milestrong-page-subtitle { font-size: 16px; }
    .contact-information-section .section-title { font-size: 32px; }
    .global-partners-section .section-title { font-size: 36px; }
    .authorized-partners-section .section-title { font-size: 32px; }
    .authorized-partners-section .partners-grid { grid-template-columns: 1fr; }
    .partners-main-text { font-size: 20px; }
    .partners-main-text::before,
    .partners-main-text::after { width: 40px; }
    .page-contact-us .page-content-wrapper { padding: 40px 0; }
}

@media screen and (max-width: 480px) {
    .page-contact-us .milestrong-page-header { height: 280px; }
    .page-contact-us .milestrong-page-header-content { padding-bottom: 40px; }
    .page-contact-us .milestrong-page-title { font-size: 28px; }
    .page-contact-us .milestrong-page-subtitle { font-size: 14px; }
    .contact-information-section .section-title { font-size: 24px; }
    .global-partners-section .section-title { font-size: 28px; }
    .page-contact-us .page-content-wrapper { padding: 30px 0; }
}

/* 提交消息脱离文档流，不影响左侧表单高度（避免右侧卡片底部超出 Submit 按钮对齐线） */
.contact-form-container .form-submit-wrap {
    margin-top: 60px;
    text-align: center;
    position: relative;
}
.contact-form-container .form-submit-wrap #contact-form-messages,
.contact-form-container .form-submit-wrap #contact-form-inline-msg {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 8px;
    text-align: center;
}



