:root {
    --lilja-white: #FFFFFF;
    --lilja-blue: #A2C4E0;
    --bg-glass: rgba(255, 255, 255, 0.55);
    --border-glass: rgba(255, 255, 255, 0.7);
    --text-dark: #2C3E50;
    --text-gray: #607D8B;
    --icon-color: #4A657A;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }

body {
    /* 1. 指定你的 WebP 图片路径 */
    background-image: url('../assets/img/llyHIF2.webp');
    
    /* 2. 基础设置：不重复、不随滚动条滚动 */
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    /* 3. 电脑端默认设置：图片靠右对齐，垂直居中 */
    /* 这里的 95% 表示图片中心点在水平 95% 的位置，也就是极右侧 */
    background-position: 95% center; 
    
    /* 4. 图片大小：contain 表示完整显示图片不裁剪，高度占满或宽度合适 */
    background-size: contain;

    /* 兜底背景色（防止图片没加载出来时一片漆黑） */
    background-color: #e0eaf5;

    /* 原有属性保留 */
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

/* ================= 📱 手机端适配 ================= */
@media (max-width: 768px) {
    body {
        /* 手机端改回居中，并撑满全屏 */
        background-position: center center;
        background-size: cover;
        
        /* 增加一层淡淡的白色遮罩，防止背景图太杂乱导致看不清名片文字 */
        background-image: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)), 
                          url('../assets/img/llyHIF2.webp');
    }
}

/* ================= 全屏特效 ================= */
#floating-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0; pointer-events: none; overflow: hidden;
}
.floating-item { position: absolute; top: 0; left: 0; opacity: 0.6; }

/* ================= 核心名片卡 ================= */
.namecard-container {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 30px; /* 圆角改得更圆润，贴合胶囊风 */
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(162, 196, 224, 0.25);
    width: 100%; max-width: 420px; padding: 40px 30px 30px;
    position: relative; z-index: 10; text-align: center;
    animation: fadeIn 0.8s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* 顶部左右图标 */
.top-icons {
    position: absolute; top: 25px; left: 25px; right: 25px;
    display: flex; justify-content: space-between;
}
.icon-top { width: 24px; height: 24px; color: var(--icon-color); opacity: 0.7; }
.share-btn { cursor: pointer; transition: opacity 0.3s; }
.share-btn:hover { opacity: 1; color: var(--lilja-blue); }

/* 头部信息 */
.header-zone { margin-top: 10px; }
.avatar {
    width: 105px; height: 105px; border-radius: 50%;
    border: 4px solid var(--lilja-white); object-fit: cover;
    box-shadow: 0 0 20px rgba(162, 196, 224, 0.6);
}
.name-title { margin: 15px 0 5px; font-size: 1.8rem; letter-spacing: 2px; font-weight: 800; color: var(--text-dark); }
.subtitle { font-size: 0.85rem; color: var(--text-gray); font-weight: bold; margin-bottom: 15px; }

/* 邮箱标签 */
.email-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.6); border: 1px solid var(--border-glass);
    padding: 6px 15px; border-radius: 20px; margin-bottom: 25px; cursor: pointer; transition: all 0.3s ease;
}
.email-badge:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-2px); }
.email-text { font-family: 'Courier New', Courier, monospace; font-size: 0.85rem; font-weight: bold; }
.email-status { font-size: 0.7rem; color: #889bb3; margin-left: 8px; }

/* 社交矩阵 (纯享无边框极简风) */
.social-matrix { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.social-icon {
    width: 32px; height: 32px; border: none; background: transparent; 
    cursor: pointer; transition: transform 0.3s, filter 0.3s; padding: 0;
}
.social-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.social-icon:hover { transform: translateY(-3px) scale(1.1); filter: drop-shadow(0 4px 8px rgba(162, 196, 224, 0.6)); }

/* ================= 胶囊状导航菜单 (核心重构) ================= */
.menu-list { display: flex; flex-direction: column; gap: 16px; }
.menu-btn {
    width: 100%; padding: 18px 24px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: 50px; /* 完美的胶囊形状 */
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    transition: all 0.2s; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.menu-btn:hover { background: var(--lilja-white); transform: scale(1.02); box-shadow: 0 6px 20px rgba(162, 196, 224, 0.3); }

/* 按钮内部排版 */
.btn-icon-left { width: 22px; height: 22px; color: var(--icon-color); flex-shrink: 0; }
.btn-text { flex-grow: 1; text-align: center; font-size: 1.05rem; font-weight: bold; color: var(--text-dark); letter-spacing: 0.5px; }
.btn-icon-right { width: 20px; height: 20px; color: #9EABB8; flex-shrink: 0; }

/* 底部防盗声明 */
.footer { margin-top: 35px; font-size: 0.75rem; color: #889bb3; line-height: 1.6; }
.warning-text { margin-top: 10px; font-size: 0.65rem; color: rgba(136, 155, 179, 0.7); line-height: 1.4; transform: scale(0.95); }

/* 弹窗样式保留原有即可 */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(28, 39, 61, 0.7); backdrop-filter: blur(5px); z-index: 100; justify-content: center; align-items: center; padding: 20px; }
.modal-content { display: none; background: var(--lilja-white); padding: 35px 25px; border-radius: 20px; width: 100%; max-width: 400px; max-height: 80vh; overflow-y: auto; position: relative; animation: popIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); }
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #aaa; }
.modal-content h2 { font-size: 1.2rem; border-bottom: 2px solid var(--lilja-blue); padding-bottom: 10px; margin-bottom: 20px; }
.profile-block { margin-bottom: 20px; text-align: left; }
.profile-block h3 { font-size: 1rem; color: var(--lilja-blue); margin-bottom: 8px; }
.profile-block p { font-size: 0.9rem; color: #555; line-height: 1.7; margin-bottom: 5px; }
.highlight { background: #fff3e0; padding: 5px; border-radius: 5px; color: #d84315 !important; font-weight: bold; }
.modal-qr { width: 200px; height: 200px; object-fit: contain; margin: 0 auto 15px; display: block; border-radius: 10px; }
.modal-msg { text-align: center; font-weight: bold; white-space: pre-wrap; line-height: 1.5; }