/* 联系我们页面专用样式 */

/* ===== 页面容器 ===== */
.contact-page {
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    --contact-floating-logo-width: clamp(280px, 22vw, 520px);
    --contact-floating-logo-right: -380px;
    --contact-floating-logo-bottom: -180px;
    --contact-bg-y: calc(100% + 120px);
}

/* ===== 主要内容区域 ===== */
.contact-main-section {
    flex: 1;
    background: #fff url('/images/newimgs/contact/background.png') center var(--contact-bg-y) / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    position: relative;
    padding: 80px 0 40px 0;
}

.contact-main-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    width: min(62.5vw, calc(100vw - 48px));
    aspect-ratio: 1200 / 377;
    box-sizing: border-box;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.48) 48%, rgba(226, 214, 247, 0.54) 100%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
    border-radius: clamp(14px, 1.284vw, 24.65px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 18px 42px rgba(70, 42, 118, 0.14),
        0 6px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -1px 0 rgba(112, 40, 170, 0.08);
    background-clip: padding-box;
}

/* ===== 页面标题 ===== */
.page-header {
    position: absolute;
    left: 8.464%;
    top: 10.39%;
    margin: 0;
    text-align: left;
}

.page-title {
    font-size: clamp(20px, 1.75vw, 33.6px);
    font-weight: bold;
    color: #333;
    line-height: 1;
    margin: 0 0 clamp(5px, 0.45vw, 8.6px) 0;
    font-family: 'Swei Spring CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.page-subtitle {
    font-size: clamp(10px, 0.85vw, 16.4px);
    color: #4D4D4D;
    line-height: 1;
    margin: 0;
    letter-spacing: 0.08em;
    font-family: 'RobotoEnglish', 'SourceHanSans', sans-serif;
}

/* ===== 联系信息卡片 ===== */
.contact-info-cards {
    position: absolute;
    inset: 0;
}

/* 左侧信息区域（电话+地址） */
.info-section {
    position: absolute;
    left: 8.464%;
    top: 27.86%;
    width: 27.52%;
    display: flex;
    flex-direction: column;
    gap: clamp(26px, 2.2vw, 42px);
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: fit-content;
}

.info-section .info-card:first-child {
    width: 38.13%;
}

.info-section .info-card:nth-child(2) {
    width: 100%;
}

.card-icon {
    width: auto;
    height: clamp(19px, 1.72vw, 33px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: clamp(5px, 0.42vw, 8px);
}

.card-icon img {
    width: clamp(19px, 1.72vw, 33px);
    height: clamp(19px, 1.72vw, 33px);
    filter: brightness(0) saturate(100%) invert(27%) sepia(73%) saturate(2234%) hue-rotate(265deg) brightness(85%) contrast(95%);
}

/* 下划线容器 */
.card-divider {
    width: 100%;
    height: 1px;
    background: #7028aa;
    margin-bottom: clamp(7px, 0.625vw, 12px);
    align-self: stretch;
}

.card-content {
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: clamp(3px, 0.31vw, 6px);
}

.card-text {
    font-size: clamp(8px, 0.677vw, 13px);
    color: #7028aa;
    line-height: 1.45;
    margin: 0;
    font-family: 'SweiSpringSugar', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    white-space: nowrap;
}

/* 二维码卡片特殊样式 */
.qrcode-card {
    position: absolute;
    top: 37.4%;
    right: 8.2%;
    align-items: center;
}

.qrcode-card .card-icon {
    display: none;
}

.qrcode-card .card-divider {
    display: none;
}

.qrcode-card .card-content {
    align-items: center;
}

.qrcode-large {
    width: clamp(90px, 7.8125vw, 150px);
    height: clamp(90px, 7.8125vw, 150px);
    border-radius: clamp(4px, 0.416vw, 8px);
    margin-bottom: clamp(6px, 0.52vw, 10px);
}

.qrcode-text {
    text-align: center;
    font-size: clamp(8px, 0.677vw, 13px);
}

/* ===== 卡片右下角3D悬浮Logo ===== */
.contact-main-container .floating-logo {
    position: absolute;
    bottom: var(--contact-floating-logo-bottom);
    right: var(--contact-floating-logo-right);
    z-index: 20;
    pointer-events: none;
}

.contact-main-container .logo-floating {
    width: var(--contact-floating-logo-width);
    max-width: none;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    opacity: 0.9;
    animation: logoFloat 3s ease-in-out infinite;
}

.contact-main-container .logo-floating:hover {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* Logo悬浮动画效果 */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ===== 底部联系信息区域 - 使用公共底部CSS ===== */
/* 所有底部样式由common-footer.css控制 */

/* ===== 响应式设计 ===== */

/* 平板设备 */
@media (max-width: 1024px) {
    .contact-page {
        --contact-floating-logo-width: clamp(190px, 27vw, 280px);
        --contact-floating-logo-right: -20px;
        --contact-floating-logo-bottom: 12px;
    }

    .contact-main-container {
        width: min(900px, calc(100vw - 48px));
    }
    
    .info-card {
        flex: none;
        min-width: 0;
    }
    
}

/* 移动设备 */
@media (max-width: 768px) {
    .contact-page {
        --contact-floating-logo-width: clamp(150px, 32vw, 210px);
        --contact-floating-logo-right: -35px;
        --contact-floating-logo-bottom: 8px;
    }

    .contact-main-section {
        align-items: center;
        padding: 100px 20px 40px 20px;
    }

    .contact-main-container {
        width: 100%;
        max-width: 520px;
        aspect-ratio: auto;
        padding: 28px;
        border-radius: 16px;
    }

    .page-header {
        position: static;
        margin-bottom: 24px;
    }

    .page-title-section {
        padding: 100px 0 30px 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.8rem;
    }
    
    .contact-content-section {
        padding: 30px 0;
    }
    
    .contact-info-cards {
        position: static;
        inset: auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .info-section {
        position: static;
        width: 100%;
        gap: 22px;
    }

    .info-section .info-card:first-child,
    .info-section .info-card:nth-child(2) {
        width: 100%;
    }
    
    .info-card {
        flex: none;
        min-width: 0;
        width: 100%;
    }

    .card-icon {
        height: 28px;
        margin-bottom: 8px;
    }

    .card-icon img {
        width: 28px;
        height: 28px;
    }

    .qrcode-card {
        position: static;
        align-self: center;
    }
    
}

/* 小屏幕移动设备 */
@media (max-width: 480px) {
    .contact-page {
        --contact-floating-logo-width: 140px;
        --contact-floating-logo-right: -45px;
        --contact-floating-logo-bottom: 4px;
    }

    .page-title {
        font-size: 1.3rem;
    }
    
    .page-subtitle {
        font-size: 0.75rem;
    }
    
    .info-card {
        padding: 0;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    .qrcode-large {
        width: 120px;
        height: 120px;
    }
    
}

/* ===== 导航菜单选中状态 ===== */
.contact-page .nav-item.active .nav-link {
    color: #7028aa !important;
}

.contact-page .nav-item.active .nav-underline {
    width: 100% !important;
    background-color: #7028aa !important;
}
