/* 全局重置与字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0b0719; /* 深邃宇宙紫黑 */
    background-image: radial-gradient(circle at 10% 20%, #1a1040 0%, #0b0719 90%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    color: #f0eaff;
    padding: 20px;
}

.app-container {
    max-width: 1200px;
    width: 100%;
}

/* -------- 头部 -------- */
.header {
    text-align: center;
    padding: 30px 0 20px;
}
.header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header h1 span {
    font-weight: 400;
    background: none;
    -webkit-text-fill-color: #cbd5e1;
    font-size: 1.8rem;
}
.subtitle {
    color: #94a3b8;
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 4px;
    font-size: 0.9rem;
}

/* -------- 筛选栏 -------- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 25px 0 35px;
}
.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 8px 22px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.filter-btn:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: #a78bfa;
    color: #fff;
}
.filter-btn.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

/* -------- 成员网格 (卡片区) -------- */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* 单个卡片 */
.member-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 20px 15px 18px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: default;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
	cursor: pointer;
}
.member-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.25);
    border-color: rgba(167, 139, 250, 0.3);
}

/* 头像占位 (使用姓名首字母 + 渐变) */
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    transition: transform 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    user-select: none;
}
.member-card:hover .avatar {
    transform: scale(1.05) rotate(-3deg);
}

/* 不同成员不同渐变色 (在 JS 中动态设置，这里留作备用) */
.avatar.gradient-1 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.avatar.gradient-2 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.avatar.gradient-3 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.avatar.gradient-4 { background: linear-gradient(135deg, #fa709a, #fee140); }
.avatar.gradient-5 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.avatar.gradient-6 { background: linear-gradient(135deg, #fccb90, #d57eeb); }
.avatar.gradient-7 { background: linear-gradient(135deg, #89f7fe, #66a6ff); }

.member-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #ffffff;
}
.member-eng {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
    margin-bottom: 6px;
}
.member-role {
    display: inline-block;
    background: rgba(167, 139, 250, 0.15);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #a78bfa;
    letter-spacing: 1px;
    border: 1px solid rgba(167, 139, 250, 0.1);
}
.member-birth {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 10px;
    font-weight: 400;
}

/* 隐藏卡片 (用于筛选) */
.member-card.hide {
    display: none;
}

/* -------- 底部 -------- */
.footer {
    text-align: center;
    padding: 30px 0 10px;
    color: #475569;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}
.footer span {
    color: #64748b;
}

/* 响应式调整 (手机优化) */
@media (max-width: 480px) {
    .header h1 { font-size: 1.8rem; }
    .header h1 span { font-size: 1.3rem; }
    .member-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .avatar { width: 80px; height: 80px; font-size: 2.2rem; }
    .filter-btn { padding: 6px 14px; font-size: 0.8rem; }
	/* 新增导航标签手机样式 */
    .nav-tabs {
        gap: 8px;
        margin: 8px 0 20px;
    }
    .nav-tab {
        font-size: 0.7rem;
        padding: 4px 12px;
        flex: 0 1 auto;
    }
}

/* -------- 导航切换标签 -------- */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0 30px;
	flex-wrap: wrap;
}
.nav-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.nav-tab:hover {
    color: #e2e8f0;
}
.nav-tab.active {
    background: rgba(124, 58, 237, 0.2);
    border-color: #7c3aed;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

/* 内容区块切换 */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------- 专辑时间线 -------- */
.album-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 30px;
}

/* 单个专辑条目（类似截图里的条目） */
.album-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 20px 24px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.album-item:hover {
    transform: translateX(6px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
    border-color: rgba(167, 139, 250, 0.2);
}

/* 专辑头部：分队名 + 日期 */
.album-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.album-team {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.album-date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
    background: rgba(255,255,255,0.05);
    padding: 4px 14px;
    border-radius: 30px;
}

/* 专辑名称 */
.album-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 4px 0 12px;
}
.album-title small {
    font-weight: 400;
    color: #64748b;
    font-size: 0.9rem;
    margin-left: 8px;
}

/* 配置标签（类似截图里的“普版配置”“C版配置”等） */
.album-versions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.version-tag {
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.15);
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c4b5fd;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}
.version-tag:hover {
    background: rgba(167, 139, 250, 0.25);
    border-color: #7c3aed;
    color: #fff;
    transform: scale(1.04);
}

/* 如果某个专辑有“专卡合集”独立标签，用特殊颜色 */
.version-tag.special {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}
.version-tag.special:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: #f59e0b;
}

/* 响应式优化 */
@media (max-width: 480px) {
    .album-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .album-team { font-size: 1.2rem; }
    .album-title { font-size: 1rem; }
    .version-tag { font-size: 0.7rem; padding: 3px 12px; }
}

/* 小卡图鉴 */
.pc-group { margin-bottom: 40px; }
.pc-group-title { color: #a78bfa; font-size: 1.2rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.pc-card { background: rgba(255,255,255,0.03); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pc-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(124,58,237,0.2); border-color: rgba(167,139,250,0.3); }
.pc-img-wrapper { aspect-ratio: 5/7; overflow: hidden; background: #1a1040; }
.pc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-info { padding: 8px 12px 10px; text-align: center; }
.pc-member { font-size: 0.85rem; font-weight: 600; color: #e2e8f0; }
@media (max-width: 480px) { .pc-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } .pc-member { font-size: 0.7rem; } }

/* 缩放控制按钮 hover 效果 */
#zoomControls button {
    user-select: none;
}
#zoomControls button:active {
    transform: scale(0.9);
}

/* -------- 歌曲列表 -------- */
.album-songs {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.songs-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.songs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.song-tag {
    font-size: 0.8rem;
    color: #cbd5e1;
    background: rgba(255,255,255,0.04);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
}
.song-tag:hover {
    background: rgba(167,139,250,0.1);
    border-color: rgba(167,139,250,0.2);
    color: #fff;
}

/* 主打歌专属样式 */
.song-tag.title-song {
    background: rgba(251,191,36,0.12);
    border-color: #fbbf24;
    color: #fbbf24;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(251,191,36,0.15);
}
.song-tag.title-song:hover {
    background: rgba(251,191,36,0.2);
    box-shadow: 0 0 20px rgba(251,191,36,0.25);
}

.sub-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}
.sub-nav-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    padding: 8px 24px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.sub-nav-tab:hover {
    background: rgba(167,139,250,0.2);
    border-color: #a78bfa;
    color: #fff;
}
.sub-nav-tab.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
    box-shadow: 0 0 20px rgba(124,58,237,0.4);
}

/* 手机响应式 */
@media (max-width: 480px) {
    .songs-list {
        gap: 4px 8px;
    }
    .song-tag {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
	
}

/* 周边商品 */
.merch-group { margin-bottom: 40px; }
.merch-group-title { color: #a78bfa; font-size: 1.2rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }

/* 应援法 - 手机自适应 */
@media (max-width: 600px) {
    #fanchantGrid > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}
