:root {
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-blur: blur(20px);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
}

.page-wrapper { width: 100%; margin: 0 auto 30px auto; padding: 0; }

/* --- Hero Grid --- */
.hero-grid { 
    display: grid; 
    grid-template-columns: 320px 1fr; 
    gap: 20px; 
    margin-bottom: 30px; 
}

.profile-card-gallery {
    border-radius: 20px; padding: 30px 20px; 
    display: flex; flex-direction: column; align-items: center; text-align: center;
    height: 100%; position: relative; overflow: hidden;
    border: 1px solid rgba(255,255,255,1);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
}
.glow-blob { position: absolute; width: 200px; height: 200px; background: #a2d2ff; filter: blur(80px); opacity: 0.4; border-radius: 50%; top: -50px; left: -50px; animation: float 10s infinite alternate; }
.glow-blob.two { background: #ffc8dd; top: auto; bottom: -50px; right: -50px; left: auto; animation-delay: -5s; }

.avatar-wrap { width: 100px; height: 100px; border-radius: 50%; padding: 4px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-bottom: 15px; position: relative; z-index: 2; }
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-name { font-size: 24px; font-weight: 800; margin-bottom: 5px; position: relative; z-index: 2; color: #1a1a1a; }
.profile-bio { font-size: 13px; color: var(--text-sub); line-height: 1.5; margin-bottom: 20px; position: relative; z-index: 2; }

/* --- 1. 个性化跳转长按钮样式 --- */
.social-link-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #1a1a1a; color: #fff;
    padding: 8px 24px; border-radius: 30px;
    font-size: 13px; font-weight: bold; text-decoration: none;
    margin-bottom: 20px; /* 间距 */
    position: relative; z-index: 2;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.social-link-btn:hover {
    transform: translateY(-3px);
    background: #000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* --- 2. 圆形社交按钮组样式 --- */
.social-row {
    display: flex; gap: 12px; justify-content: center;
    margin-bottom: 25px; position: relative; z-index: 2;
}
.social-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: #fff; color: #333;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
}
/* 悬停品牌色 */
.social-btn:hover { transform: translateY(-3px) scale(1.1); color: #fff; }
.social-btn.github:hover { background: #333; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.social-btn.twitter:hover { background: #1DA1F2; box-shadow: 0 8px 20px rgba(29, 161, 242, 0.3); } /* Twitter蓝 */
.social-btn.email:hover { background: #EA4335; box-shadow: 0 8px 20px rgba(234, 67, 53, 0.3); } /* Gmail红 */
.social-btn.wechat:hover { background: #07C160; box-shadow: 0 8px 20px rgba(7, 193, 96, 0.3); }

/* Tooltip */
.social-btn::after {
    content: attr(data-tooltip);
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(-5px);
    background: rgba(0,0,0,0.8); color: #fff; padding: 4px 8px;
    font-size: 10px; border-radius: 4px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: 0.2s; margin-bottom: 5px;
}
.social-btn:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }


.stats-grid { display: flex; gap: 15px; justify-content: center; width: 100%; position: relative; z-index: 2; }
.stat-box { background: rgba(255,255,255,0.5); padding: 8px 15px; border-radius: 12px; text-align: center; min-width: 70px; }
.stat-num { font-size: 18px; font-weight: 800; display: block; color: #000; }
.stat-label { font-size: 10px; color: #666; text-transform: uppercase; letter-spacing: 1px; }

/* --- Hero Slider 样式 --- */
.hero-slider-wrapper {
    border-radius: 20px; position: relative; overflow: hidden; height: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #000;
}
.hero-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.8s ease-in-out;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
    pointer-events: none; 
}
.hero-slide.active { opacity: 1; pointer-events: auto; z-index: 2; }

.featured-bg { 
    position: absolute; inset: 0; width: 100%; height: 100%; 
    object-fit: cover; transition: transform 6s ease; 
    opacity: 0.8;
}
.hero-slide.active .featured-bg { transform: scale(1.1); }

.featured-content { position: relative; z-index: 3; text-align: left; transform: translateY(20px); transition: 0.5s; opacity: 0; }
.hero-slide.active .featured-content { transform: translateY(0); opacity: 1; transition-delay: 0.3s; }

.featured-tag { background: #fff; color: #000; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; display: inline-block; margin-bottom: 10px; }
.featured-title { font-size: 32px; font-weight: 900; line-height: 1.1; margin-bottom: 8px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); color: #fff; }
.featured-desc { font-size: 14px; opacity: 0.9; max-width: 500px; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.overlay-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%); z-index: 1; pointer-events: none; }

/* 轮播控制器 */
.slider-dots { position: absolute; bottom: 30px; right: 30px; display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; background: rgba(255,255,255,0.3); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.slider-dot.active { background: #fff; width: 24px; border-radius: 4px; }

.slider-btn { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    width: 40px; height: 40px; background: rgba(255,255,255,0.1); backdrop-filter: blur(5px);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer; z-index: 10; transition: 0.3s; opacity: 0;
}
.hero-slider-wrapper:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: rgba(255,255,255,0.3); }
.prev-btn { left: 20px; } .next-btn { right: 20px; }

/* --- Category & Masonry --- */
.category-wrapper { position: relative; margin-bottom: 30px; display: flex; align-items: center; } 
.scroll-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; transition: all 0.3s;
    color: #333; opacity: 0; visibility: hidden; border: none; font-size: 12px;
}
.category-wrapper:hover .scroll-arrow { opacity: 1; visibility: visible; }
.scroll-arrow:hover { background: #000; color: #fff; transform: translateY(-50%) scale(1.1); }
.scroll-arrow.left { left: -15px; } .scroll-arrow.right { right: -15px; }

.category-scroll-container {
    overflow-x: auto; white-space: nowrap; padding: 5px 5px 15px 5px;
    display: flex; gap: 15px; 
    scrollbar-width: none; scroll-behavior: smooth; width: 100%;
}
.category-scroll-container::-webkit-scrollbar { display: none; }

.folder-card {
    width: 200px; height: 120px; 
    border-radius: 12px; position: relative; cursor: pointer; flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8); overflow: hidden;
}
.folder-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.folder-card.active { border: 2px solid #000; }
.folder-preview { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; opacity: 0.85; }
.folder-card:hover .folder-preview { transform: scale(1.1); opacity: 1; }
.folder-tab {
    position: absolute; top: 0; left: 0;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(5px);
    padding: 6px 12px; border-bottom-right-radius: 12px;
    font-size: 11px; font-weight: 800; color: #000; z-index: 2;
    text-transform: uppercase;
}
.folder-count {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.6); color: #fff;
    font-size: 9px; padding: 2px 6px; border-radius: 8px;
    backdrop-filter: blur(4px);
}

.gallery-masonry { column-count: 4; column-gap: 20px; padding-bottom: 40px; }
.art-card {
    break-inside: avoid; margin-bottom: 20px; position: relative;
    border-radius: 12px; overflow: hidden; background: #e0e0e0;
    cursor: zoom-in; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.art-card:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.art-img { width: 100%; display: block; transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1); }
.art-card:hover .art-img { transform: scale(1.05); }

.art-info-panel {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 15px;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
    transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    display: flex; justify-content: space-between; align-items: center;
}
.art-card:hover .art-info-panel { transform: translateY(0); }
.art-text h3 { font-size: 14px; font-weight: 700; margin-bottom: 2px; color: #000; margin-top: 0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:120px; }
.art-text p { font-size: 10px; color: #666; text-transform: uppercase; margin: 0; }
.art-action { width: 30px; height: 30px; border-radius: 50%; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; transition: transform 0.3s; }
.art-card:hover .art-action { transform: rotate(-45deg); }
.art-badge {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    color: #fff; padding: 3px 8px;
    font-size: 9px; font-weight: bold; border-radius: 4px;
    opacity: 0; transition: 0.3s; transform: translateY(-5px); z-index: 5;
}
.art-card:hover .art-badge { opacity: 1; transform: translateY(0); }

/* --- 修复后的 Lightbox 样式 (全屏完整显示) --- */
.lightbox { 
    position: fixed; inset: 0; z-index: 9999; 
    background: rgba(0, 0, 0, 0.95); /* 深色背景，沉浸感更好 */
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center; 
    opacity: 0; pointer-events: none; transition: 0.3s; 
}
.lightbox.active { opacity: 1; pointer-events: auto; }

.lb-img { 
    /* 关键修改：强制约束尺寸，保证不超出屏幕且完整显示 */
    max-width: 95vw; 
    max-height: 95vh; 
    width: auto; 
    height: auto;
    display: block;
    object-fit: contain; /* 确保长宽比正确且不裁剪 */
    border-radius: 4px; 
    box-shadow: 0 0 50px rgba(0,0,0,0.5); 
    transform: scale(0.95); transition: 0.3s; 
}
.lightbox.active .lb-img { transform: scale(1); }

.lb-close { 
    position: absolute; top: 30px; right: 30px; 
    font-size: 40px; cursor: pointer; color: #fff; /* 纯白按钮 */
    transition: 0.3s; text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.lb-close:hover { transform: rotate(90deg); color: #ccc; }

@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(20px, 20px); } }

@media (max-width: 1200px) { .gallery-masonry { column-count: 3; } }
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 20px; }
    .profile-card-gallery { height: auto; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 20px; }
    .avatar-wrap { width: 60px; height: 60px; margin-right: 15px; margin-bottom: 0; }
    .profile-name { font-size: 20px; }
    .hero-slider-wrapper { height: 300px; }
}
@media (max-width: 768px) { .scroll-arrow { display: none !important; } .folder-card { width: 160px; height: 100px; } }
@media (max-width: 600px) {
    .gallery-masonry { column-count: 2; column-gap: 10px; }
    .art-card { margin-bottom: 10px; } .art-info-panel { display: none; }
    .profile-card-gallery { flex-direction: column; text-align: center; }
    .avatar-wrap { margin-right: 0; margin-bottom: 10px; }
    .page-wrapper { margin: 10px auto; padding: 0 10px; }
}
