:root {
    --card-bg: rgba(255, 255, 255, 0.78);
    --text-main: #111827;
    --text-sub: #6b7280;
    --accent: #7c83ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang SC", "Microsoft YaHei", sans-serif;
    overflow: hidden;
}

/* 背景 */
.page-bg {
    position: fixed;
    inset: 0;
    background: url("../images/bg.jpg") center / cover no-repeat;
    filter: blur(5px) brightness(0.85);
    transform: scale(1.05);
    z-index: -1;
}

/* 主卡片 */
.profile-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 24px;
    width: 520px;
    padding: 28px;
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    border-radius: 22px;
    box-shadow: 0 25px 45px rgba(0,0,0,.25);
}

/* 头像 */
.avatar-rect {
    width: 140px;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-rect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧信息 */
.info {
    flex: 1;
}

.nickname {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 14px;
    position: relative;
}

.copy-item {
    cursor: pointer;
    margin-bottom: 6px;
    user-select: none;
}

.copy-item span {
    color: var(--accent);
}

.copy-item:active {
    opacity: 0.6;
}

/* 复制提示 */
.copy-tip {
    position: absolute;
    top: -26px;
    right: 0;
    font-size: 12px;
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(4px);
    transition: all .2s ease;
    pointer-events: none;
}

.copy-tip.show {
    opacity: 1;
    transform: translateY(0);
}

/* 业务 */
.business-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
}

.business ul {
    list-style: none;
    font-size: 14px;
}

.business li {
    margin-bottom: 4px;
    padding-left: 14px;
    position: relative;
}

.business li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* 底栏 */
footer {
    position: fixed;
    bottom: 18px;
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #e5e7eb;
}

.icp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,.45);
}

.icp::before {
    content: "📄";
}

.icp a {
    color: #c7d2fe;
    text-decoration: none;
}

/* ========================= */
/* 📱 移动端适配（关键） */
/* ========================= */
@media (max-width: 640px) {
    body {
        overflow: auto;
    }

    .profile-card {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        flex-direction: column;
        width: calc(100% - 32px);
        margin: 40px auto 120px;
        padding: 24px;
    }

    .avatar-rect {
        width: 100%;
        height: 220px;
        border-radius: 16px;
    }

    .nickname {
        margin-top: 12px;
        text-align: center;
    }

    .contact {
        text-align: center;
    }

    .copy-tip {
        right: 50%;
        transform: translate(50%, 4px);
    }

    .business {
        margin-top: 10px;
    }

    footer {
        bottom: 12px;
        font-size: 12px;
    }
}
