/* 91风格 - 简约现代设计 - 高级版 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS变量 */
:root {
    --primary-color: #6366f1;
    --secondary-color: #f1f5f9;
    --accent-color: #ec4899;
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 16px;
    --radius-large: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --backdrop-blur: blur(24px);
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 动态背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98px,
            rgba(255, 255, 255, 0.03) 100px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 98px,
            rgba(255, 255, 255, 0.03) 100px
        );
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.3; transform: translateX(0px) translateY(0px); }
    50% { opacity: 0.6; transform: translateX(20px) translateY(10px); }
}

/* 容器 */
.container {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
    position: relative;
}

/* 主内容区 */
.profile-container {
    position: relative;
    border-radius: var(--radius-large);
    padding: 48px 44px;
    box-shadow: var(--shadow-heavy);
    margin: 24px 0 120px 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

/* ========================================
   🖼️ 背景图片设置 - 修改指南 6️⃣
   ========================================
   📍 更换背景图片：将你的图片重命名为 bj.jpg 替换现有文件
   📍 或修改下面的 'bj.jpg' 为你的图片文件名
   📍 显示方式选择：
   - center/cover（推荐）: 居中并覆盖整个区域
   - center/contain: 居中但完整显示图片
   - top/cover: 顶部对齐 | bottom/cover: 底部对齐
   - left/cover: 左对齐 | right/cover: 右对齐
   ======================================== */
.profile-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('bj.jpg') center/cover no-repeat,  /* ← 修改这里：图片文件名和显示方式 */
        linear-gradient(45deg, #ff6b6b, #4ecdc4);
    z-index: -2;
    border-radius: var(--radius-large);
}

/* ========================================
   🎨 背景透明度设置 - 修改指南 7️⃣ (桌面端)
   ========================================
   📍 调整背景图片的透明度效果
   📍 数值说明：
   - 0.05 = 5% 透明（几乎完全透明，背景很清晰）
   - 0.15 = 15% 透明（当前设置，较清晰）
   - 0.25 = 25% 透明（适中）
   - 0.50 = 50% 透明（半透明）
   - 0.80 = 80% 透明（大部分遮挡，背景朦胧）
   📍 建议桌面端范围：0.10-0.20
   ======================================== */
.profile-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);  /* ← 修改这里：调整透明度数值 */
    z-index: -1;
    border-radius: var(--radius-large);
}

/* 主容器顶部光效 */
.profile-container .shimmer-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 头像区域 */
.profile-header {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 8px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

/* 头像悬浮效果 */
.avatar-container::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
    animation: pulseGlow 4s ease-in-out infinite;
}

.avatar-container:hover::before {
    opacity: 0.6;
}

.avatar-container:hover .avatar {
    transform: scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 12px rgba(255, 255, 255, 0.15);
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* 名称和简介 */
.profile-name {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.profile-bio {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 32px;
    font-weight: 500;
    line-height: 1.5;
}

/* 统计数据 */
.profile-stats {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.08) 0%, 
        rgba(236, 72, 153, 0.06) 50%, 
        rgba(59, 130, 246, 0.08) 100%);
    backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 20px 20px;
    margin-bottom: 32px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 
        0 4px 12px rgba(99, 102, 241, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.profile-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(99, 102, 241, 0.03) 0%, 
        transparent 50%, 
        rgba(236, 72, 153, 0.03) 100%);
    pointer-events: none;
}

.stat-item {
    text-align: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    padding: 10px 16px;
    border-radius: 10px;
}

.stat-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    opacity: 0.8;
}

/* 链接区域 */
.links-section {
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.main-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-link {
    display: flex;
    align-items: center;
    padding: 22px 28px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* 链接悬浮效果 */
.main-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.main-link:hover::before {
    left: 100%;
}

.main-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-medium);
    border-color: rgba(255, 255, 255, 0.4);
}

.main-link span:first-child,
.main-link i:first-child {
    margin-right: 16px;
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.main-link span:nth-child(2) {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
}

.arrow {
    opacity: 0.6;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.main-link:hover .arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* 渐变样式升级 */
.gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        var(--shadow-medium),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        var(--shadow-medium),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        var(--shadow-medium),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 二维码区域 */
.qr-section {
    text-align: center;
    position: relative;
    z-index: 1;
}

.qr-container {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(99, 102, 241, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: containerGlow 5s ease-in-out infinite;
}

@keyframes containerGlow {
    0%, 100% { 
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.12),
            0 4px 16px rgba(99, 102, 241, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    50% { 
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.15),
            0 6px 24px rgba(99, 102, 241, 0.15),
            0 2px 8px rgba(236, 72, 153, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
}

/* 二维码容器光效 */
.qr-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--accent-color), 
        #00f2fe);
    border-radius: 20px;
    opacity: 0.2;
    animation: borderPulse 3s ease-in-out infinite;
    transition: var(--transition);
    z-index: -1;
}

.qr-container:hover::before {
    opacity: 0.4;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.02); opacity: 0.5; }
}

.qr-container:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* 二维码图片样式 */
.qr-code {
    position: relative;
    display: inline-block;
    padding: 14px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 14px;
    border: 2px solid rgba(37, 99, 235, 0.1);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(37, 99, 235, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    transition: var(--transition);
    animation: qrGlow 4s ease-in-out infinite;
}

@keyframes qrGlow {
    0%, 100% { 
        box-shadow: 
            inset 0 2px 4px rgba(0, 0, 0, 0.05),
            0 4px 12px rgba(37, 99, 235, 0.15),
            0 2px 8px rgba(0, 0, 0, 0.05);
        border-color: rgba(37, 99, 235, 0.1);
    }
    50% { 
        box-shadow: 
            inset 0 2px 4px rgba(0, 0, 0, 0.08),
            0 6px 20px rgba(37, 99, 235, 0.25),
            0 4px 12px rgba(37, 99, 235, 0.1);
        border-color: rgba(37, 99, 235, 0.2);
    }
}

.qr-code:hover {
    transform: scale(1.05);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(37, 99, 235, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.1);
    animation: qrGlow 2s ease-in-out infinite;
}

.qr-code canvas {
    border-radius: 10px;
    transition: var(--transition);
    display: block;
}

.qr-text {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 8px;
    position: relative;
}

/* 添加装饰性小图标 */
.qr-text::before {
    content: '📱';
    margin-right: 8px;
    font-size: 1rem;
}

/* 二维码描述文字 */
.qr-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.8;
    font-weight: 400;
    line-height: 1.4;
}

/* 工具栏升级 */
.toolbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--backdrop-blur);
    padding: 16px 20px;
    border-radius: 28px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tool-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.tool-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
    border-radius: 20px;
}

.tool-btn:hover::before {
    opacity: 0.1;
}

.tool-btn:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.tool-btn i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.tool-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* 模态框升级 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur);
    border-radius: var(--radius-large);
    padding: 36px;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 8px;
    border-radius: 12px;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.share-url {
    display: flex;
    gap: 12px;
}

.share-url input {
    flex: 1;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.share-url input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.copy-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: var(--shadow-light);
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* 中等屏幕响应式 */
@media (max-width: 640px) {
    .container {
        max-width: 480px;
    }
    
    .profile-container {
        padding: 44px 40px;
    }
    
    .main-link {
        padding: 21px 26px;
    }
    
    .qr-container {
        padding: 34px;
    }
}

/* 小屏幕响应式 */
@media (max-width: 580px) {
    .container {
        max-width: 420px;
        padding: 16px;
    }
    
    .profile-container {
        padding: 32px 28px;
        margin-bottom: 100px;
    }
    
    /* 🎨 移动端背景透明度 - 修改指南 7️⃣ (移动端)
       📍 建议移动端范围：0.20-0.30 */
    .profile-container::after {
        background: rgba(255, 255, 255, 0.25);  /* ← 修改这里：移动端透明度 */
    }
    
    .toolbar {
        bottom: 16px;
        padding: 12px 16px;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 20px;
        padding: 18px 16px;
    }
    
    .main-link {
        padding: 20px 24px;
    }
    
    .modal-content {
        padding: 28px;
        margin: 20px;
    }
    
    .qr-container {
        padding: 28px;
        border-radius: 16px;
    }
    
    .qr-container:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .qr-code {
        padding: 10px;
        margin-bottom: 18px;
        border-radius: 12px;
    }
}

/* 滚动条升级 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 选中文本样式 */
::selection {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

/* 全局动画优化 */
* {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-container {
    animation: fadeInUp 0.8s ease-out;
} 