/* ============================================================
   LoveLive! 主题浏览网站 - 样式表
   文件: css/style.css
   说明: 包含全局样式、组件样式、动画、响应式布局
   ============================================================ */

/* ==================== CSS 变量定义 ==================== */
:root {
    /* 主色调 - LoveLive! 风格渐变 */
    --primary: #ff6b9d;
    --primary-light: #ff8fb3;
    --primary-dark: #e84a7f;
    --secondary: #ffd700;
    --accent-blue: #00bfff;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;

    /* 背景色 */
    --bg-dark: #0a0a1a;
    --bg-darker: #050510;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);

    /* 文字色 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #ff6b9d 0%, #c44dff 50%, #00bfff 100%);
    --gradient-hero: linear-gradient(180deg, rgba(10,10,26,0) 0%, rgba(10,10,26,0.8) 80%, #0a0a1a 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,107,157,0.15) 0%, rgba(168,85,247,0.1) 100%);

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(255, 107, 157, 0.3);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* 字体 */
    --font-display: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ==================== 全局重置与基础样式 ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* 平滑滚动 */
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-display);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* 通用 Section 样式 */
.section {
    padding: 100px 0;
    position: relative;
}

/* 板块间渐变过渡 - 通用底部过渡带（同Hero风格） */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    pointer-events: none;
    z-index: 0;
}

/* Section 标题 */
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title .title-icon {
    display: inline-block;
    margin-right: 12px;
    color: var(--secondary);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* ==================== Canvas 背景层 ==================== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-normal);
    /* 初始透明 */
    background: transparent;
}

/* 滚动后的导航栏状态 */
.navbar.scrolled {
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-icon {
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* 导航链接 */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: transform var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* 背景音乐控制按钮 */
.music-toggle {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44dff 100%);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.5), 0 0 30px rgba(196, 77, 255, 0.3);
    z-index: 998;
}

.music-toggle:hover {
    background: linear-gradient(135deg, #ff8fab 0%, #d466ff 100%);
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.7), 0 0 40px rgba(196, 77, 255, 0.5);
}

.music-toggle.playing {
    background: linear-gradient(135deg, #ff8fab 0%, #e879f9 100%);
    border-color: #fff;
    animation: musicPulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.8), 0 0 60px rgba(232, 121, 249, 0.5);
}

.music-toggle.playing .music-icon {
    animation: musicBounce 1s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 107, 157, 0.8), 0 0 20px rgba(196, 77, 255, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 107, 157, 1), 0 0 50px rgba(196, 77, 255, 0.8); }
}

@keyframes musicBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.music-icon {
    font-size: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-normal);
}

/* 汉堡菜单按钮（移动端） */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
    transform-origin: center;
}

/* 汉堡菜单激活态（X 形状） */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== Hero 首页区域 ==================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 24px;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

/* 主标题 */
.hero-title {
    margin-bottom: 28px;
}

.title-line {
    display: block;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 1000;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    animation: titleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.title-sub {
    display: block;
    font-size: clamp(1rem, 3vw, 1.6rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 8px;
    animation: titleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* 描述文字 */
.hero-desc {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* 日文翻译 */
.hero-desc-jp {
    font-size: clamp(0.82rem, 2vw, 1rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 3px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 按钮组 */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* 通用按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(255, 107, 157, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 157, 0.1);
    transform: translateY(-3px);
}

/* 滚动提示动画 */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 48%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 0.8s ease 1s both;
}

.scroll-hint p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.scroll-mouse {
    display: block;
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}

.scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 22px; }
}

/* ==================== Hero 装饰元素（音符 & 星星）==================== */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.note {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: floatNote linear infinite;
}

.note-1 { top: 15%; left: 10%; animation-duration: 6s; animation-delay: 0s; color: var(--primary); }
.note-2 { top: 25%; right: 15%; animation-duration: 8s; animation-delay: 1s; color: var(--secondary); }
.note-3 { top: 60%; left: 8%; animation-duration: 7s; animation-delay: 2s; color: var(--accent-blue); }
.note-4 { top: 70%; right: 10%; animation-duration: 9s; animation-delay: 0.5s; color: var(--accent-purple); }
.note-5 { top: 40%; right: 25%; animation-duration: 6.5s; animation-delay: 3s; color: var(--primary-light); }

@keyframes floatNote {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
    50% { opacity: 0.3; }
    100% { transform: translateY(-80px) rotate(20deg); opacity: 0.05; }
}

/* CSS 绘制的星星 */
.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: twinkle ease-in-out infinite;
}

.star::before,
.star::after {
    content: '';
    position: absolute;
    background: white;
}

.star::before {
    width: 4px;
    height: 12px;
    top: -4px;
    left: 0;
    border-radius: 2px;
}

.star::after {
    width: 12px;
    height: 4px;
    top: 0;
    left: -4px;
    border-radius: 2px;
}

.star-1 { top: 10%; left: 20%; animation-duration: 2s; animation-delay: 0s; }
.star-2 { top: 18%; left: 65%; animation-duration: 2.5s; animation-delay: 0.5s; }
.star-3 { top: 35%; left: 80%; animation-duration: 3s; animation-delay: 1s; }
.star-4 { top: 55%; left: 15%; animation-duration: 2.2s; animation-delay: 1.5s; }
.star-5 { top: 72%; left: 70%; animation-duration: 2.8s; animation-delay: 0.3s; }
.star-6 { top: 85%; left: 40%; animation-duration: 2.6s; animation-delay: 0.8s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ==================== 物理下落角色图片 ==================== */
.falling-characters-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: auto;
    z-index: 1;
    overflow: hidden;
}

#fallingCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
}

#fallingCanvas:active {
    cursor: grabbing;
}

/* ==================== 关于区域 ==================== */
.about-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(196,77,255,0.05) 50%, var(--bg-darker) 100%);
}

/* 关于 → 组合：同Hero过渡风格（透明→实色） */
.about-section::after {
    background: linear-gradient(180deg, transparent 0%, rgba(5,5,16,0.6) 60%, var(--bg-darker) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.about-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 107, 157, 0.2);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: inline-block;
    animation: iconBounce 3s ease-in-out infinite;
}

.card-icon img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    display: block;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.about-card:nth-child(2) .card-icon { animation-delay: 0.5s; }
.about-card:nth-child(3) .card-icon { animation-delay: 1s; }
.about-card:nth-child(4) .card-icon { animation-delay: 1.5s; }

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==================== 组合展示区域 ==================== */
.groups-section {
    background: var(--bg-darker);
}

/* 组合 → 成员：同Hero过渡风格 */
.groups-section::after {
    background: linear-gradient(180deg, transparent 0%, rgba(10,10,26,0.5) 60%, rgba(255,107,157,0.06) 100%);
}

.groups-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.group-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-slow);
}

.group-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 107, 157, 0.15);
}

.group-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.group-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.group-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.group-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.group-fullname {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.group-info {
    padding: 22px;
}

.group-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 107, 157, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(255, 107, 157, 0.2);
}

/* 各组合的主题色 */
.group-muse .group-name { color: #ff6b9d; }
.group-aqours .group-name { color: #00bfff; }
.group-nijigasaki .group-name { color: #a855f7; }
.group-liella .group-name { color: #ffd700; }

/* ==================== 成员展示区域 ==================== */
.members-section {
    background: linear-gradient(180deg, var(--bg-darker) 0%, rgba(255,107,157,0.04) 40%, var(--bg-darker) 100%);
}

/* 成员 → 音乐：同Hero过渡风格 */
.members-section::after {
    background: linear-gradient(180deg, transparent 0%, rgba(5,5,16,0.6) 60%, var(--bg-darker) 100%);
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}

/* ==================== 成员展示区域 - 单列滚动列表 ==================== */

/* 滚动容器框架 */
.members-scroll-wrapper {
    position: relative;
    border: 1px solid rgba(255, 107, 157, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(15, 15, 25, 0.5);
    overflow: hidden;
}

/* 滚动容器顶部装饰线 */
.members-scroll-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary), 
        #ff69b4, 
        #a855f7, 
        #06b6d4, 
        var(--primary)
    );
    z-index: 2;
}

/* 滚动容器 */
.members-scroll-container {
    max-height: 680px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* 自定义滚动条 */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

/* Webkit 浏览器自定义滚动条 */
.members-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.members-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.members-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), #ff69b4);
    border-radius: 3px;
    transition: background 0.3s;
}

.members-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff69b4, #a855f7);
}

/* 成员卡片网格 - 单列列表 */
.members-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 成员卡片 - 左右结构：左侧头像 + 右侧信息（单列模式）*/
.member-card {
    background: var(--bg-card);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition-normal);
    cursor: default;
}

/* 第一张卡片圆角顶部 */
.member-card:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* 最后一张卡片圆角底部 */
.member-card:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* 只有一张卡片时四角都圆角 */
.member-card:first-child:last-child {
    border-radius: var(--radius-lg);
    border-bottom: none;
}

.member-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(6px);
    box-shadow: none;
}

.member-card.hidden {
    display: none;
}

/* 左侧头像区域 */
.member-avatar {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--accent, var(--primary));
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.2);
    transition: all var(--transition-normal);
}

.member-card:hover .member-avatar {
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.4);
    transform: scale(1.06);
}

.avatar-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.member-initial {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* 右侧成员信息区域 */
.member-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.member-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.member-group-tag {
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: inline-block;
    padding: 1px 10px;
    border-radius: 20px;
}

/* 各组合标签的独特配色 */
.member-group-tag.tag-muse {
    color: #ff7f27;
    background: rgba(255, 127, 39, 0.12);
    border: 1px solid rgba(255, 127, 39, 0.2);
}

.member-group-tag.tag-aqours {
    color: #00bfff;
    background: rgba(0, 191, 255, 0.12);
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.member-group-tag.tag-nijigasaki {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.member-group-tag.tag-liella {
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.member-role {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==================== 音乐展示区域 ==================== */
.music-section {
    background: var(--bg-darker);
}

/* 音乐 → 画廊：同Hero过渡风格 */
.music-section::after {
    background: linear-gradient(180deg, transparent 0%, rgba(10,10,26,0.5) 60%, rgba(0,191,255,0.06) 100%);
}

.music-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
}

.music-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all var(--transition-normal);
}

.music-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 107, 157, 0.2);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.music-cover {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: var(--cover-color, var(--primary));
}

.music-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.music-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.music-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #333;
    opacity: 0;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.music-cover:hover .music-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.music-info {
    flex: 1;
    min-width: 0;
}

.music-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-artist {
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 8px;
}

/* 进度条 */
.music-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: visible;
    margin-bottom: 6px;
    cursor: pointer;
    position: relative;
}

.music-bar:hover {
    background: rgba(255, 255, 255, 0.16);
}

.music-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.1s linear;
    pointer-events: none;
    position: relative;
}

/* 拖动点（滑块thumb）*/
.music-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 107, 157, 0.5), 0 2px 4px rgba(0,0,0,0.3);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
}

/* hover时显示拖动点 */
.music-bar:hover .music-thumb,
.music-bar.dragging .music-thumb {
    transform: translate(-50%, -50%) scale(1);
}

/* 拖动中放大 */
.music-bar.dragging .music-thumb {
    transform: translate(-50%, -50%) scale(1.25);
    box-shadow: 0 0 12px rgba(255, 107, 157, 0.7), 0 2px 8px rgba(0,0,0,0.4);
}

.music-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* 播放时间 */
.music-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

/* ==================== 画廊区域 ==================== */
.gallery-section {
    background: linear-gradient(180deg, var(--bg-darker) 0%, rgba(0,191,255,0.04) 40%, var(--bg-dark) 100%);
}

/* 画廊 → 时间线：同Hero过渡风格 */
.gallery-section::after {
    background: linear-gradient(180deg, transparent 0%, rgba(5,5,16,0.6) 60%, var(--bg-dark) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-slow);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

/* 特殊尺寸的画廊项 */
.gallery-tall {
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}

.gallery-canvas,
.gallery-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    transform: translateY(60%);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.gallery-caption p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ==================== 时间线区域 ==================== */
.timeline-section {
    background: var(--bg-dark);
}

/* 时间线 → 页脚：同Hero过渡风格 */
.timeline-section::after {
    background: linear-gradient(180deg, transparent 0%, rgba(10,10,26,0.6) 80%, var(--bg-darker) 100%);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

/* 时间线中轴线 - 居中 */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--accent-purple), var(--accent-blue), var(--secondary));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    padding: 0 40px 0 0;
    box-sizing: border-box;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* 奇数项在右侧 */
.timeline-item:nth-child(odd) {
    margin-left: 50%;
    padding: 0 0 0 40px;
    text-align: left;
}

/* 偶数项在左侧 */
.timeline-item:nth-child(even) {
    text-align: right;
}

/* 时间线圆点 - 居中轴线上 */
.timeline-dot {
    position: absolute;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 12px rgba(255, 107, 157, 0.5);
    transition: all var(--transition-normal);
    z-index: 2;
}

/* 奇数项圆点 - 精确定位到中线上 */
.timeline-item:nth-child(odd) .timeline-dot {
    left: -20px;
    transform: translateX(-50%);
}

/* 偶数项圆点 - 精确定位到中线上 */
.timeline-item:nth-child(even) .timeline-dot {
    right: -20px;
    left: auto;
    transform: translateX(50%);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.8);
}

.timeline-item:nth-child(even):hover .timeline-dot {
    transform: translateX(50%) scale(1.3);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    transition: all var(--transition-normal);
}

/* 奇数项：从右侧滑入，hover向右微移 */
.timeline-item:nth-child(odd).hover .timeline-content,
.timeline-item:nth-child(odd):hover .timeline-content {
    background: var(--bg-card-hover);
    border-color: rgba(255, 107, 157, 0.15);
    transform: translateX(6px);
}

/* 偶数项：从左侧滑入，hover向左微移 */
.timeline-item:nth-child(even):hover .timeline-content {
    background: var(--bg-card-hover);
    border-color: rgba(255, 107, 157, 0.15);
    transform: translateX(-6px);
}

.timeline-year {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    color: white;
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

/* 爱心雨画布 - 覆盖整个页脚背景 */
#heart-rain-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-links h4,
.footer-social h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.social-icon:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ==================== 回到顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.5), 0 0 30px rgba(255, 107, 157, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.15);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.7), 0 0 40px rgba(255, 107, 157, 0.5);
}

/* ==================== 滚动显示动画 (AOS-like) ==================== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-down"] { transform: translateY(-40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="flip-left"] { transform: perspective(600px) rotateY(-15deg); opacity: 0; }
[data-aos="flip-right"] { transform: perspective(600px) rotateY(15deg); opacity: 0; }

/* ===== 时间线交叉入场动画（重点优化）===== */

/* 奇数项（右侧）：初始状态从右方偏移 + 轻微透明 */
.timeline-item:nth-child(odd)[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(80px);
}

/* 偶数项（左侧）：初始状态从左方偏移 + 轻微透明 */
.timeline-item:nth-child(even)[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(-80px);
}

/* 入场后状态：完全可见 + 归位 */
.timeline-item:nth-child(odd)[data-aos].aos-animate,
.timeline-item:nth-child(even)[data-aos].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* 通用 aos-animate（非时间线元素） */
[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1) rotateY(0);
}

/* ==================== 响应式设计 - 平板 ==================== */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .gallery-wide {
        grid-column: span 2;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

/* ==================== 响应式设计 - 移动端 ==================== */
@media (max-width: 768px) {
    /* 导航栏移动端适配 */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 26, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        transform: translateX(100%);
        transition: transform var(--transition-slow);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 14px 28px;
    }

    /* Hero 区域移动端 */
    .hero-section {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .scroll-hint {
        display: none;
    }

    /* Section 间距调整 */
    .section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 36px;
        font-size: 1.6rem;
    }

    /* 关于卡片 */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-card {
        padding: 28px 20px;
    }

    /* 组合展示 */
    .groups-showcase {
        grid-template-columns: 1fr;
    }

    .group-banner {
        height: 160px;
    }

    /* 成员展示 - 平板端单列滚动列表 */
    .members-scroll-container {
        max-height: 520px;
    }

    .member-card {
        padding: 14px 16px;
        gap: 14px;
    }

    .member-avatar {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .member-initial {
        font-size: 1.3rem;
    }

    .member-name {
        font-size: 0.95rem;
    }

    .filter-tabs {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    /* 音乐卡片 */
    .music-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .music-cover {
        width: 100px;
        height: 100px;
    }

    /* 画廊 */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
    }

    .gallery-tall {
        grid-row: span 1;
    }

    .gallery-wide {
        grid-column: span 1;
    }

    /* 时间线 - 移动端回到左侧布局 */
    .timeline {
        padding-left: 36px;
        max-width: 100%;
    }

    .timeline::before {
        left: 10px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        margin-left: 0;
        padding: 0 0 0 28px;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding: 0 0 0 28px;
        text-align: left;
    }

    .timeline-dot {
        left: -18px !important;
        right: auto !important;
        transform: none !important;
        width: 12px;
        height: 12px;
    }

    .timeline-item:hover .timeline-dot,
    .timeline-item:nth-child(even):hover .timeline-dot {
        transform: scale(1.3) !important;
    }

    .timeline-item:nth-child(odd):hover .timeline-content,
    .timeline-item:nth-child(even):hover .timeline-content {
        transform: translateX(6px);
    }

    .timeline-content {
        padding: 16px 18px;
    }

    /* 页脚 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    /* 回到顶部按钮 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* ==================== 响应式设计 - 小屏手机 ==================== */
@media (max-width: 400px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }

    /* 手机端：滚动列表适配 */
    .members-scroll-container {
        max-height: 420px;
    }

    .member-card {
        padding: 12px 14px;
        gap: 12px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

/* ==================== 减少动画偏好支持 ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-aos] {
        opacity: 1;
        transform: none;
    }
}

/* ==================== 选择高亮样式 ==================== ::selection {
    background: rgba(255, 107, 157, 0.4);
    color: white;
} */

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--accent-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--primary-light), var(--accent-purple));
}
