﻿/* 基础变量与重置 */
:root {
    --primary-color: #0b164a;
    --accent-color: #1a73e8;
    --text-main: #333333;
    --text-light: #666666;
    --bg-gray: #f8f9fa;
    --border-color: #eaeaea;
    --bg-light-blue: #f0f5ff;
}

/* 左右分栏网格 */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* 名片占左边稍宽，二维码占右边 */
    gap: 30px;
    align-items: stretch;
}

/* ========== 左侧名片 ========== */
.contact-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .contact-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    }

.avatar {
    width: 80px;
    height: 80px;
    background-color: var(--bg-light-blue);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

    .avatar svg {
        width: 40px;
        height: 40px;
        fill: var(--accent-color);
    }

.contact-name {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 4px;
}

.contact-role {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 20px;
}

.contact-tag {
    display: inline-block;
    background-color: var(--bg-light-blue);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(26, 115, 232, 0.2);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
}

.method-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bg-gray);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

    .method-item:hover {
        background-color: #ffffff;
        border-color: var(--accent-color);
        box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
        transform: translateY(-2px);
    }

.method-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    color: var(--accent-color);
    width: 24px;
    text-align: center;
}

.method-text {
    font-size: 0.95rem;
    font-weight: 500;
    word-break: break-all;
}

/* ========== 右侧二维码区 ========== */
.qrcode-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.qrcode-item {
    text-align: center;
    width: 100%;
}

.qrcode-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 5px;
    background: #fff;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.qrcode-label {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
}

@media (min-width: 992px) {
    a[href^="tel:"] {
        pointer-events: none; /* 让桌面端点击无效，但文字仍可选 */
        cursor: default;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr; /* 手机端变单列 */
        gap: 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .qrcode-section {
        flex-direction: row; /* 手机端两个二维码并排显示 */
        flex-wrap: wrap;
        gap: 20px;
        padding: 24px 20px;
    }

    .qrcode-item {
        flex: 1;
        min-width: 120px;
    }

    .qrcode-img {
        width: 110px;
        height: 110px;
    }
}