@charset "UTF-8";
/* =================================
   1. 全局样式与变量
   ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #e4007f;
    --secondary: #6a4c9c;
    --accent: #f9b9d0;
    --dark: #2c0639;
    --light: #f9f0ff;
    --pink-bg: #ffd6e7;
    --new-red: #ff3366; 
    --new-yellow: #ffcc00; 
}

body {
    background-color: var(--pink-bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.card-link {
    display: block;
}

#random-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#random-bg-container.is-visible {
    opacity: 0.5;  /* 这里从 1 改成了 0.5 (即50%不透明度) */
}

.website-content {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =================================
   2. 视频开场幕布样式
   ================================= */
.video-curtain { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; background-color: #000; overflow: hidden; }
.opening-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); object-fit: cover; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.3); transition: opacity 0.5s ease; }
.skip-button { position: absolute; bottom: 30px; right: 30px; z-index: 2001; background-color: rgba(255, 255, 255, 0.3); color: white; padding: 8px 20px; border-radius: 20px; cursor: pointer; transition: all 0.3s ease; font-weight: 600; backdrop-filter: blur(5px); }
.skip-button:hover { background-color: rgba(255, 255, 255, 0.5); }

/* =================================
   3. 头部与主题区域
   ================================= */
header {
    background: transparent;
    color: white;
    padding: 15px 0;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

header.shrink {
    padding: 10px 0;
    background-color: rgba(255, 166, 201, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; }

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(255, 179, 179, 0.0), rgba(255, 179, 179, 0.0)), url('../img/置顶大图.jpg') no-repeat center center;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
    color: white;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

/* =================================
   4. 主内容区
   ================================= */
.main-background {
    background-color: white;
    position: relative;
    z-index: 1;
}
main {
    padding: 30px 0;
    background-color: transparent;
    position: relative;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark);
}

/* =================================
   4a. 通用标题样式
   ================================= */
.series-title,
.secondary-page-subtitle {
    display: table; 
    margin: 0 auto 30px auto; 
    padding: 15px 30px 25px 30px; 
    border-radius: 20px; 
    
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); 
    color: var(--dark); 
    font-size: 2rem;
    position: relative;
    text-align: center;
    font-weight: bold;      
    text-shadow: none;        
}

.series-title::after,
.secondary-page-subtitle::after {
    content: '';
    position: absolute;
    bottom: 10px; 
    left: 50%;
    transform: translateX(-50%);
    width: 80px; 
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 3px;
}


/* =================================
   5. 各模块样式
   ================================= */
.concert-series, .menu-section, .cv-tribute-section, .anniversary-section, .continuation-section, .carnival-section {
    margin-bottom: 60px;
}

.concert-table { display: flex; flex-direction: column; gap: 25px; }
.concert-table-row { display: flex; gap: 25px; }

.concert-cell {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(to right, var(--primary), var(--secondary)) border-box;
    cursor: pointer;
    aspect-ratio: 4 / 3; 
    padding: 0;          
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
}
.concert-cell:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); }
.concert-cell img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease; 
}
.concert-cell:hover img { transform: scale(1.05); }


.cv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.cv-card {
    aspect-ratio: 2 / 3;
    background-color: var(--dark);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all .4s ease;
    overflow: hidden;
    border: 2px solid transparent; 
    transform: translateZ(0); 
    position: relative; 
}
/* 1. 只有在支持鼠标悬停的设备上（电脑），才启用 hover 上移 */
@media (hover: hover) {
    .cv-card:hover { 
        transform: translateY(-10px) translateZ(0); 
    }
}

/* 2. 无论手机还是电脑，只要被点击激活（JS添加了类名），就强制上移 */
/* 这样当你再次点击移除类名时，因为它不满足 hover 条件，就会自动复位 */
.cv-card.is-active {
    transform: translateY(-10px) translateZ(0);
}
.character-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: all 0.5s ease;
    position: relative; 
    z-index: 1;         
}
.cv-card:hover .character-image,
.cv-card.is-active .character-image { 
    transform: scale(1.1); 
}
.cv-overlay { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: linear-gradient(to top, rgba(10, 0, 20, 0.9) 20%, transparent 100%); 
    color: white; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    align-items: center; 
    text-align: center; 
    padding: 20px; 
    opacity: 0; 
    transform: translateY(50px); 
    transition: all 0.4s ease-in-out; 
    z-index: 2; 
    pointer-events: none; 
}
.cv-card:hover .cv-overlay,
.cv-card.is-active .cv-overlay { 
    opacity: 1; 
    transform: translateY(0); 
}
.cv-overlay .cv-image { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); margin-bottom: 15px; flex-shrink: 0; }
.cv-overlay .cv-image img { width: 100%; height: 100%; object-fit: cover; }
.cv-overlay .cv-name { font-size: 1.4rem; font-weight: bold; margin-bottom: 2px; }
.cv-overlay .cv-role { font-size: 1rem; opacity: 0.9; color: var(--accent); margin-bottom: 15px; }
.cv-overlay .cv-quote { 
    font-style: italic; 
    font-size: 0.95rem; 
    line-height: 1.5; 
    margin: 0; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 3;  /* 旧版核心属性 */
    line-clamp: 3;          /* ✅ 新增这行：标准属性消除报错 */
    -webkit-box-orient: vertical; 
}

.kouhaku-card {
    aspect-ratio: 12/3; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.anniversary-row { display: grid; }
.anniversary-item {
    aspect-ratio: 16 / 9;
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all .3s ease;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(to right, var(--primary), var(--secondary)) border-box;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    position: relative; 
    z-index: 1;
}
.anniversary-item:hover{ transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.15); }
.anniversary-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.anniversary-item:hover img{ transform: scale(1.05); }

.carnival-section .concert-cell span,
.continuation-section .concert-cell span {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    padding: 10px; 
    text-align: center;
    position: relative; 
    z-index: 1; 
}


.tab-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 25px; }
.tab-btn { padding: 10px 25px; border: none; border-radius: 20px; background-color: rgba(255, 255, 255, 0.8); color: var(--secondary); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all .3s ease; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); }
.tab-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); }
.tab-btn.active { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(228, 0, 127, 0.4); transform: translateY(-3px); }
.tab-content-area { background-color: rgba(255, 255, 255, 0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; padding: 40px; min-height: 300px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); position: relative; }
.tab-content-area::before { content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-bottom: 15px solid rgba(255, 255, 255, 0.75); }
.tab-panel { display: none; animation: fadeIn .5s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =================================
   6. 页脚
   ================================= */
footer { background: var(--dark); color: white; padding: 40px 0 20px; margin-top: 40px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-section { flex: 1; min-width: 250px; }
.footer-section h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--accent); }
.social-icons { display: flex; gap: 15px; margin-top: 15px; }
.social-icons a { color: white; font-size: 1.5rem; transition: all .3s ease; }
.social-icons a:hover { color: var(--primary); transform: scale(1.2); }
.copyright { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; }

/* =================================
   7. Logo/Slogan/Button/Overlay 样式
   ================================= */
#hero-logo { max-width: 37%; height: auto; transition: opacity .5s ease-out; transform: translateY(-150px); pointer-events: auto; }
#header-logo { height: 45px; opacity: 0; transition: opacity .5s ease-in-out; }
#header-slogan { font-family: 'Times New Roman', Times, serif; font-style: italic; font-weight: bold; font-size: 28px; color: white; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); margin-left: 15px; opacity: 0; transform: translateX(-20px); transition: opacity .8s ease-out, transform .8s ease-out; transition-delay: .2s; }
#header-slogan.is-visible { opacity: 1; transform: translateX(0); }
#play-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2001; width: 100px; height: 100px; background-color: rgba(255, 255, 255, .3); border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all .3s ease; backdrop-filter: blur(5px); }
.hidden { opacity: 0; pointer-events: none; transition: opacity .5s ease; }
#transition-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--dark); z-index: 9999; opacity: 0; pointer-events: none; transition: opacity .5s ease-in; }
#transition-overlay.is-active { opacity: 1; pointer-events: auto; }

/* =================================
   8. 动画与修复
   ================================= */
.fade-in-section { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

.skip-intro .video-curtain,
.skip-intro #transition-overlay {
    display: none !important;
}
.skip-intro .website-content {
    display: block !important;
}

/* =================================
   9. 次级页面样式
   ================================= */
.secondary-page-header {
    padding: 10px 0;
    background-color: rgba(255, 166, 201, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}
.secondary-header-content { display: flex; justify-content: space-between; align-items: center; }
.back-btn { display: inline-flex; align-items: center; gap: 8px; color: white; text-decoration: none; font-size: 1rem; font-weight: 600; padding: 8px 15px; border-radius: 20px; transition: background-color 0.3s ease; }
.back-btn:hover { background-color: rgba(255, 255, 255, 0.1); }
.secondary-header-logo { height: 45px; }
.secondary-header-slogan { font-family: 'Times New Roman', Times, serif; font-style: italic; font-weight: bold; font-size: 22px; color: white; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); margin-left: 15px; }

/* =================================
   9. 次级页面样式 (修改背景为半透明)
   ================================= */

/* 1. 主容器：去掉原来的 background-image */
.page-content {
    padding-top: 40px;
    padding-bottom: 60px;
    min-height: 80vh;
    position: relative; /* 建立定位基准 */
    z-index: 1;         /* 保证内容在背景之上 */
}

/* 2. 新增伪元素：专门用来放背景图并设置透明度 */
.page-content::before {
    content: '';
    position: fixed;    /* 固定在屏幕上，不随滚动条滚动，效果更好 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 这里设置原来的背景图 */
    background-image: url('../img/school-2.jpg');
    background-size: cover;
    background-position: center center;
    
    /* 关键：这里设置 0.5，这就和您主页的透明度一样了 */
    opacity: 0.5; 
    
    z-index: -1;        /* 放在最底层 */
    pointer-events: none; /* 鼠标穿透，不影响点击 */
}
/* =================================
   10. 次级页面装饰性分隔
   ================================= */
.section-divider {
    margin: 80px 0 40px 0;
}

/* =================================
   11. 次级页面卡片图片样式 (已修复 FES 长卡片)
   ================================= */
/* --- 🔴 补回丢失的网格布局代码 🔴 --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 一行两列 */
    gap: 25px; /* 间距 */
}

/* 手机端适配：一行一列 */
@media (max-width: 768px) {
    .card-grid { 
        grid-template-columns: 1fr; 
    }
}
/* ------------------------------------- */
/* 1. 通用卡片样式 */
.card-item {
    /* --- 核心：渐变描边 --- */
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, 
                linear-gradient(to right, var(--primary), var(--secondary)) border-box;
    /* -------------------- */

    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    border-radius: 20px;
    
    /* 默认比例 4:3 */
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: flex-start; 
    align-items: flex-end;     
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

/* 2. 必须把长卡片样式写在这里，才能覆盖上面的默认比例 */
.long-card {
    grid-column: span 2; /* 跨两列 */
    aspect-ratio: 8 / 3; /* 比例变成长条 */
}

/* 3. 手机端适配：手机上长卡片也要变回普通比例 */
@media (max-width: 768px) {
    .long-card { 
        grid-column: span 1; 
        aspect-ratio: 4 / 3; 
    }
}

/* 4. 悬停效果 */
.card-item:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); 
}

/* 5. 内部图片样式 */
.card-item .card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s ease;
}

/* 6. 文字样式 */
.card-item .card-text {
    position: relative;
    z-index: 3;
    padding: 20px;
}

/* 7. 窗口文字处理*/
.card-item .card-text {
    position: relative;
    z-index: 3;
    
    color: #fff;
    font-weight: 800;
    
    /* 核心代码：用深粉色和深紫色混合的硬光 */
    text-shadow: 
        0 0 3px rgba(228, 0, 127, 0.8), /* 紧贴的粉色光 */
        0 0 6px rgba(44, 6, 57, 0.9),   /* 外圈的深紫光，保证可读性 */
        2px 2px 4px rgba(0,0,0,0.8);    /* 再加点黑色投影压得住 */
}
/* 8. 悬停时图片放大 */
.card-item:hover .card-bg-image {
    transform: scale(1.05);
}

/* =================================
   12. 页面过渡卡片动画
   ================================= */
.anniversary-section .card-link.is-transitioning {
    transform: scale(1.1) rotate(15deg);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* =================================
   13. 友情链接下拉菜单
   ================================= */

.friendship-links {
    position: relative; 
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

/* 只修改触发文字的样式 */
.friendship-links .dropdown-trigger {
    color: #ffffff; /* 改为纯白色 */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    /* 添加一点淡淡的粉色发光感，呼应 μ's 主题 */
    text-shadow: 0 0 8px rgba(228, 0, 127, 0.5), 1px 1px 3px rgba(0, 0, 0, 0.5); 
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1); /* 淡淡的半透明背景感 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* 极细的边框 */
    transition: all 0.3s ease;
}

/* 鼠标悬停时的文字状态 */
.friendship-links:hover .dropdown-trigger {
    color: #ffffff; 
    background: var(--primary); /* 悬停时背景变为 μ's 粉色 */
    border-color: transparent;
    box-shadow: 0 0 15px rgba(228, 0, 127, 0.4);
    text-shadow: none;
}

/* 小箭头的颜色同步 */
.friendship-links .dropdown-trigger .fa-caret-down {
    margin-left: 5px;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%; 
    right: 0;  
    min-width: 280px; 
    list-style: none;
    background-color: #fff;
    border-radius: 12px; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden; 
    padding: 6px; 

    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 101; 
}

.friendship-links:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: white; 
    font-weight: 600;
    margin-bottom: 4px;
    border-radius: 8px; 
    transition: all 0.2s ease-in-out;
}
.dropdown-menu li:last-child a {
    margin-bottom: 0;
}

.link-tag {
    font-size: 0.8rem;
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2px 10px;
    margin-right: 12px;
    flex-shrink: 0; 
}

.link-name {
    font-size: 1rem;
}

/* ========================
   新样式：使用渐变色和投影
   ======================== */

/* μ's (粉色) - 也是忘年会字幕组的颜色 */
.dropdown-menu li a.link-muse { 
    background: linear-gradient(135deg, var(--primary), #ff6fb7); 
    box-shadow: 0 4px 10px rgba(228, 0, 127, 0.3); 
} 

/* Aqours (蓝色) */
.dropdown-menu li a.link-aqours { 
    background: linear-gradient(135deg, #00aaff, #4fc3f7); 
    box-shadow: 0 4px 10px rgba(0, 170, 255, 0.3); 
} 

/* Liella! (紫色) */
.dropdown-menu li a.link-liella { 
    background: linear-gradient(135deg, var(--secondary), #9575cd); 
    box-shadow: 0 4px 10px rgba(106, 76, 156, 0.3); 
} 

/* 虹咲 (橙色) */
.dropdown-menu li a.link-niji { 
    background: linear-gradient(135deg, #f9a825, #ffd54f); 
    box-shadow: 0 4px 10px rgba(249, 168, 37, 0.3); 
} 
/* 新增占位链接 (清新薄荷绿) */
.dropdown-menu li a.link-placeholder { 
    background: linear-gradient(135deg, #26a69a, #80cbc4); 
    box-shadow: 0 4px 10px rgba(38, 166, 154, 0.3); 
}
/* 悬停时的增强效果 */
.dropdown-menu li a:hover {
    filter: brightness(1.08); 
    transform: scale(1.02) translateY(-2px); /* 稍微上浮 */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* 阴影加深 */
}
.dropdown-menu li a:hover {
    filter: brightness(1.1); 
    transform: scale(1.02); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* =================================
   16. 声优卡片双链接样式
   ================================= */

.cv-main-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; 
    cursor: pointer; 
}

.cv-avatar-link {
    display: block; 
    position: relative; 
    z-index: 4; 
    cursor: pointer; 
    pointer-events: auto; 
}

/* =================================
   17. 弹窗 (Modal) 重构样式 - μ's KiraKira Style ✨
   ================================= */

/* 定义一些 μ's 特色变量 (如果你的 root 里没有) */
:root {
    --mus-pink: #e4007f; /* μ's 核心粉色 */
    --mus-light-pink: #ffadd6;
    --mus-gradient: linear-gradient(135deg, #ff6fb7 0%, #ff3e9d 100%);
    --mus-shine: linear-gradient(45deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 60%);
}

/* 遮罩层 - 梦幻舞台柔光 */
#modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    /* 使用柔和的粉紫渐变，营造Live现场感 */
    background: radial-gradient(circle at center, rgba(228, 0, 127, 0.2) 0%, rgba(44, 6, 57, 0.85) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000; /* 提高层级，防止被其他元素遮挡 */
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#modal-overlay.is-active { opacity: 1; pointer-events: auto; }

/* 弹窗主体 - 可爱圆润的舞台 */
/* 弹窗主体 - 修复版 */
#modal-window {
    position: fixed;
    z-index: 2001;
    background-color: #fffafa;
    background-image: radial-gradient(#f3d5e6 1px, transparent 1px);
    background-size: 20px 20px;
    
    border-radius: 30px;
    overflow: hidden; /* 关键：切除所有溢出的棱角 */    
    padding-right: 4px;
    background-color: #fffafa;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 0 8px rgba(228, 0, 127, 0.1), 0 0 40px rgba(228, 0, 127, 0.3);
    border: 3px solid #fff;
    
    /* --- 核心修复：强制居中，禁止JS修改位置 --- */
    top: 50% !important;
    left: 50% !important;
    /* 初始状态：居中，但是稍微缩小且透明 */
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* 尺寸控制 */
    width: 90%;        
    max-width: 900px;
    height: auto;      /* 高度自适应 */
    max-height: 85vh;  /* 稍微留点空隙 */
    display: flex;
    flex-direction: column;
}

/* 打开状态：完全显形 */
#modal-window.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

#modal-window.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1) translateY(0);
}

/* 关闭按钮 - 粉色魔法阵 */
#modal-close-btn {
    position: absolute;
    top: 18px; right: 20px;
    width: 40px; height: 40px;
    background: #fff;
    border: 2px solid var(--mus-light-pink);
    border-radius: 50%;
    color: var(--mus-pink);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(228, 0, 127, 0.2);
}
#modal-close-btn:hover {
    background: var(--mus-pink);
    color: white;
    border-color: var(--mus-pink);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 15px var(--mus-pink);
}

/* 内容容器 */
#modal-content-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* 滚动条样式优化 */
    scrollbar-width: thin;
    scrollbar-color: var(--mus-light-pink) #f0f0f0;
}
#modal-content-wrapper::-webkit-scrollbar { width: 8px; }
#modal-content-wrapper::-webkit-scrollbar-track { background: #f9f9f9; border-radius: 4px;}
#modal-content-wrapper::-webkit-scrollbar-thumb { background: var(--mus-light-pink); border-radius: 4px; border: 2px solid #f9f9f9; }
#modal-content-wrapper::-webkit-scrollbar-thumb:hover { background: var(--mus-pink); }


/* 弹窗标题区域 - 仿图4 清爽风格 (修改版) */
#modal-title {
    background: none;  /* 关键：去掉背景色块 */
    mask-image: none;  /* 关键：去掉波浪遮罩 */
    
    /* 调整内边距，让标题上方留出空间 */
    padding: 35px 40px 10px 40px; 
    margin: 0;
    
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--mus-pink); /* 关键：文字改成粉色 */
    
    text-align: left; /* 左对齐 */
    text-shadow: none; /* 去掉厚重的阴影 */
    position: relative;
}

/* 方案二：校园手账风虚线 */
#modal-title::after {
    content: '';
    display: block;
    width: 120px; /* 不需要太长，点缀即可 */
    height: 0;    /* 高度设为0，靠边框撑开 */
    
    margin-top: 10px;
    
    /* 3px 的粉色虚线 */
    border-bottom: 3px dotted #ffadd6; 
    
    opacity: 0.8;
}

/* 标题前的小装饰 - 替换为校徽图片 */
#modal-title::before {
    content: ''; /* 清空星星 Emoji */
    display: inline-block; /* 让它变成一个块级元素以便放入图片 */
    
    /* 设置图片尺寸，根据需要微调数值 */
    width: 50px; 
    height: 50px;
    
    margin-right: 18px; /* 图片和文字的间距 */
    vertical-align: middle; /* 垂直居中对齐 */
    
    /* 引入图片背景 */
    background-image: url('../img/校徽.png'); /* ⚠️确保文件名和你保存的一致 */
    background-size: contain; /* 让图片完整显示不被裁剪 */
    background-repeat: no-repeat;
    background-position: center;
    
    /* 稍微向上提一点点，视觉上更平衡 */
    transform: translateY(-2px);
}

/* 链接列表容器 */
#modal-link-list {
    padding: 30px 40px 50px 40px;
    list-style: none;
    margin: 0;
}

/* --- 分组标题样式 - 可爱的小翅膀 --- */
.modal-section-title {
    font-size: 1rem;
    color: var(--mus-pink);
    font-weight: 800;
    margin: 35px 0 20px 0;
    display: flex;
    align-items: center;
    text-shadow: 1px 1px 0px #fff, 2px 2px 0px rgba(228,0,127,0.1);
}
/* 左侧小装饰 */
.modal-section-title::before {
    content: '🎀'; /* 蝴蝶结 Emoji */
    margin-right: 10px;
    font-size: 1.2rem;
    filter: drop-shadow(2px 2px 0 rgba(228,0,127,0.2));
}
/* 右侧装饰线 */
.modal-section-title::after {
    content: '';
    flex: 1;
    height: 3px;
    /* 粉白相间的糖果条纹 */
    background-image: repeating-linear-gradient(45deg, var(--mus-light-pink), var(--mus-light-pink) 10px, transparent 10px, transparent 20px);
    margin-left: 15px;
    opacity: 0.5;
    border-radius: 2px;
}
.modal-section-title:first-child { margin-top: 0; }

/* --- 网格布局 (修复框太小的问题) --- */
.modal-grid {
    display: grid;
    /* 将最小宽度从 200px 提升到 240px，保证文字显示 */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px 20px; /* 增加横向间距 */
}

/* --- 链接卡片 - Q弹的门票/通行证 --- */
.modal-link-item {
    display: block;
    position: relative;
    padding: 16px 25px;
    /* 默认白色背景，带一点点透明度 */
    background: rgba(255,255,255,0.95);
    border: 3px solid #f5f5f5;
    border-radius: 50px; /* 完全圆润的胶囊形状 */
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    /* 弹性过渡动画 */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    line-height: 1.3;
    overflow: hidden; /* 用于闪光效果 */
}

/* 图标装饰 */
.modal-link-item::before {
    content: '♫'; /* 音乐符号 */
    font-weight: normal;
    margin-right: 12px;
    color: var(--primary);
    transition: color 0.3s;
    font-size: 1.3rem;
    transform: translateY(-1px);
}

/* --- 悬停效果 (KiraKira!) --- */
.modal-link-item:hover {
    background: var(--mus-gradient);
    border-color: transparent;
    transform: translateY(-5px) scale(1.03); /* 上浮并轻微放大 */
    box-shadow: 0 15px 30px rgba(228, 0, 127, 0.4); /* 强烈的粉色光晕 */
    color: white;
}
.modal-link-item:hover::before {
    color: white;
    animation: bounce 0.6s ease infinite alternate; /* 图标跳动 */
}

/* 闪光划过动画 */
.modal-link-item::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 40%; height: 200%;
    background: var(--mus-shine);
    transform: rotate(25deg);
    transition: all 0s; /* 默认无过渡 */
    opacity: 0;
}
.modal-link-item:hover::after {
    left: 120%; /* 划过整个按钮 */
    transition: all 0.7s ease-in-out;
    opacity: 1;
}

/* 针对特别长的文字 - 跨两列 */
.modal-link-item.is-long-text {
    grid-column: span 2;
}

/* 小屏幕适配 */
@media (max-width: 600px) {
    #modal-window {
        width: 92vw !important;
        max-height: 80vh !important;
        border-radius: 25px;
    }
    /* 手机上强制一列，保证能看清，且不跨列 */
    .modal-grid { grid-template-columns: 1fr; gap: 12px; }
    .modal-link-item.is-long-text { grid-column: span 1; }
    
    #modal-title { font-size: 1.3rem; padding: 25px 25px 30px 25px; }
    #modal-link-list { padding: 25px 20px 40px 20px; }
    .modal-link-item { padding: 14px 20px; border-radius: 30px; }
}

/* 一个简单的跳动动画定义 */
@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

/* 确保触发器样式正确 */
.modal-trigger { cursor: pointer; }
.cv-main-link { cursor: default; }
/* ==============================
   动画选项卡中的小窗口样式
   ============================== */

/* 仅在动画面板下生效，不影响其它选项卡 */
.tab-panel[data-panel="animation"] {
  display: none; /* 初始隐藏（由JS控制显示） */
}

.tab-panel[data-panel="animation"].active {
  display: block;
}

/* 横向排列，靠左对齐 */
.animation-card-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
}

/* 每个小窗口样式 */
.animation-card {
  flex: 0 0 calc((100% - 40px) / 3); /* 3个等分，保持间距 */
  aspect-ratio: 4 / 3;               /* 保持宽高比例 */
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(to right, var(--primary), var(--secondary)) border-box;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 悬停效果 */
.animation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 封面图片 */
.animation-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ============================== 为通用卡片添加标题样式 (动画、生放送等) ============================== */
.animation-card,
.live-stream-card { /* 为未来可能的其他类型卡片预留 */
    position: relative; /* 为绝对定位的标题创建参考系 */
}

.animation-card .card-title-overlay,
.live-stream-card .card-title-overlay { /* 为动画和生放送卡片标题应用样式 */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* 白色背景，80% 不透明度 */
    color: var(--dark);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 0 0 12px 12px; /* 保持与卡片底部圆角一致 */
    z-index: 2; /* 确保标题在图片之上，但在描边之内 */
    box-sizing: border-box;
}
/* 找到 .animation-card img 并修改为如下 */
.animation-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  
  /* 开启硬件加速，防止变换时模糊 */
  transform: translateZ(0);
  backface-visibility: hidden;
  
  /* 优化图片渲染质量，减少锯齿 */
  image-rendering: -webkit-optimize-contrast; 
}
/* =================================
   新增：和谐版右下角水印 (μ's 梦之门)
   ================================= */

/* 1. 定义水印样式 */
#modal-window::after {
    content: "μ's 梦之门";  /* 你指定的文字 */
    
    position: absolute;    /* 绝对定位 */
    bottom: 15px;          /* 距离底部 15px */
    right: 25px;           /* 距离右侧 25px */
    
    font-size: 1.2rem;     /* 字号调小，大约 20px */
    font-weight: bold;     /*稍微加粗*/
    font-style: italic;    /* 斜体更像签名 */
    letter-spacing: 1px;   /* 字间距宽松一点 */
    
    /* 颜色：淡粉色，很浅，不抢眼 */
    color: rgba(228, 0, 127, 0.15); 
    
    z-index: 0;            /* 放在最底层 */
    pointer-events: none;  /* 鼠标穿透 */
    white-space: nowrap;   /* 防止换行 */
}

/* 2. 确保内容在水印上面 (防止文字挡住按钮) */
#modal-content-wrapper {
    position: relative;
    z-index: 1;            /* 内容层级高于水印 */
    background: transparent; 
}
/* =================================
   手机端极致优化：红白歌会下方的5个小窗口
   严禁换行，最大化宽度，间距微调
   ================================= */
@media (max-width: 768px) {
    
    /* 1. 选中“红白歌会”下方的两行 (即第3行和第4行) */
    .concert-table .concert-table-row:nth-child(n+3) {
        display: flex !important;
        
        /* 【关键】绝对不换行，保持原始的“左->右”横向排列 */
        flex-wrap: nowrap !important;
        
        /* 【关键】将间隙从 25px 压缩为 6px (约窗口宽度的6%)
           这样能挤出约 40px 的空间给图片，让图片显著变大 */
        gap: 6px !important;
    }

    /* 2. 设定这5个小窗口的尺寸规则 */
    .concert-table .concert-table-row:nth-child(n+3) .concert-cell {
        /* 自动均分宽度 (2个的行各占50%，3个的行各占33.3%) */
        flex: 1 !important;
        
        /* 允许卡片在必要时缩小以适应单行布局，防止溢出 */
        min-width: 0 !important;
        width: auto !important;
        
        /* 保持原始 4:3 比例，确保图片不被拉伸变形 */
        aspect-ratio: 4 / 3 !important;
        
        /* 清除可能存在的边距干扰 */
        margin: 0 !important;
    }
}
/* =================================
   手机端极致适配：音乃木坂的日常 (Final Fix)
   目标：消除白边，卡片极大化，上二下一拼图布局
   ================================= */
@media (max-width: 768px) {
    
    /* 1. 核心修复：大幅减少白色大容器的内边距 */
    /* 原先是 40px，在手机上太大了，导致内容被挤压。改为 15px 左右 */
    .tab-content-area {
        padding: 20px 10px !important; /* 上下20px，左右10px */
        min-height: auto !important;   /* 允许高度随内容自动收缩，避免留白太多 */
    }

    /* 2. 布局容器：启用弹性布局并居中 */
    .tab-content-area .animation-card-row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important; /* 关键：让最后一张卡片居中 */
        gap: 10px !important;              /* 卡片之间的间隙 */
    }

    /* 3. 卡片尺寸：精确计算，填满容器 */
    .tab-content-area .animation-card {
        /* 计算公式：(总宽度 - 10px间隙) ÷ 2 
           这样两个卡片加起来正好 100%，不多不少
        */
        flex: 0 0 calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        
        /* 保持统一的高度比例 (4:3) */
        aspect-ratio: 4 / 3 !important; 
        margin: 0 !important;
    }

    /* 4. 视觉微调：缩小文字和阴影，防止小卡片显得臃肿 */
    .tab-content-area .animation-card .card-title-overlay {
        font-size: 0.75rem !important;  /* 12px 左右 */
        padding: 4px 0 !important;      /* 减少左右内边距 */
        bottom: 0 !important;
        width: 100% !important;
        text-align: center !important;
        
        /* 优化背景和阴影 */
        background-color: rgba(255, 255, 255, 0.7) !important;
        text-shadow: none !important;   /* 去掉阴影，小字更清晰 */
        font-weight: 600 !important;
        letter-spacing: -0.5px !important; /*稍微收紧字间距*/
    }
    
    /* 5. 确保图片完美覆盖 */
    .tab-content-area .animation-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}
/* =================================
   手机端专属优化：学园偶像嘉年华 & 梦想的延续
   (更新版：文字靠左对齐)
   ================================= */
@media (max-width: 768px) {

    /* 1. 布局容器调整：缩小间距，挤出空间给图片 */
    #carnival .concert-table-row,
    .continuation-section .concert-table-row {
        display: flex !important;
        flex-wrap: nowrap !important; /* 强制不换行 */
        gap: 6px !important;          /* 间隙缩小至 6px (约 2%) */
        margin-bottom: 6px !important;
    }

    /* 2. 卡片窗口尺寸优化：自动填满 */
    #carnival .card-item,
    .continuation-section .card-item {
        flex: 1 !important;           /* 均分宽度 */
        min-width: 0 !important;      /* 允许压缩 */
        width: auto !important;
        margin: 0 !important;
        
        /* 强制 4:3 比例，高度整齐 */
        aspect-ratio: 4 / 3 !important; 
        height: auto !important;
    }

    /* 3. 文字内容适配 (改为靠左对齐) */
    #carnival .card-item .card-text,
    .continuation-section .card-item .card-text {
        font-size: 0.75rem !important;
        
        /* 【关键修改】上0，右2px，下6px，左8px (左侧留点空隙) */
        padding: 0 2px 6px 8px !important; 
        
        width: 100% !important;
        
        /* 【关键修改】文字靠左 */
        text-align: left !important;   
        
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;

        /* 保留霓虹灯描边特效 */
        color: #fff !important;
        font-weight: 800 !important;
        text-shadow: 
            0 0 2px rgba(228, 0, 127, 0.9),
            0 0 4px rgba(44, 6, 57, 1),
            1px 1px 2px rgba(0,0,0,0.9) !important;
        
        z-index: 10 !important;
    }

    /* 4. 针对第一行3个窗口的微调 (防止字太大放不下) */
    #carnival .concert-table-row:first-child .card-text {
        font-size: 0.7rem !important; 
        letter-spacing: -0.5px !important;
    }

    /* 5. 图片填充 */
    #carnival .card-item .card-bg-image,
    .continuation-section .card-item .card-bg-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}
/* =================================
   18. 手机端 9周年页面 极致适配 (安全加锁版 - 修复兼容性报错)
   仅在 .page-content (二级页面) 下生效，绝不影响主页
   ================================= */
@media (max-width: 768px) {
    
    /* 1. 强制改为双列布局 */
    .page-content .card-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important; 
    }

    /* 2. FES 长卡片保持通栏 */
    .page-content .long-card {
        grid-column: span 2 !important; 
        aspect-ratio: 2.5 / 1 !important; 
    }

    /* 3. 普通卡片样式调整 */
    .page-content .card-item {
        aspect-ratio: 4 / 3 !important; 
        width: 100% !important;
        margin: 0 !important;
        min-height: 0 !important;
    }

    /* 4. 文字样式优化 (消除报错版) */
    .page-content .card-item .card-text {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 0 4px 6px 8px !important; 
        
        font-size: 0.85rem !important; 
        line-height: 1.3 !important;
        text-align: left !important; 
        font-weight: 800 !important;
        
        /* --- 这里的写法已修复 --- */
        white-space: normal !important; 
        display: -webkit-box !important;
        
        -webkit-line-clamp: 2; /* 旧版兼容 (主要靠这个) */
        line-clamp: 2;         /* 新版标准 (加上这行消除报错) */
        
        -webkit-box-orient: vertical;
        overflow: hidden;
        /* ----------------------- */

        color: #fff !important;
        text-shadow: 
            0 0 2px rgba(228, 0, 127, 0.9),
            0 0 4px rgba(44, 6, 57, 1),
            1px 1px 2px rgba(0,0,0,0.9) !important;
        z-index: 10 !important;
    }

    /* 5. 图片填充优化 */
    .page-content .card-item .card-bg-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}
/* =================================
   19. 声优卡片手机端专属优化 (最终修复版：防抖动+完美交互)
   ================================= */
@media (max-width: 768px) {
    
    /* 1. 布局调整：双列 */
    .cv-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important; 
    }

    /* 2. 卡片高度：稍微拉长给文字留空间 */
    .cv-card {
        aspect-ratio: 9 / 14 !important; 
    }

    /* 3. 遮罩层 (Overlay) 基础样式重置 */
    /* 重点：在手机端，我们让它始终居中，不要动画位移，只动画透明度 */
    .cv-overlay {
        opacity: 0 !important;
        /* 手机端不需要 translateY 位移，固定在原位即可，防止抖动 */
        transform: none !important; 
        /* 强制垂直居中，提前定好位置 */
        justify-content: center !important; 
        padding: 15px 10px !important;
        /* 只对透明度进行过渡动画，极度丝滑 */
        transition: opacity 0.3s ease !important;
        background: rgba(44, 6, 57, 0.96) !important; /* 深色背景 */
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        pointer-events: none; /* 未激活时不可点 */
    }

    /* 4. 激活状态 (is-active) */
    /* 点击后，只改变透明度，文字原地显现，绝不乱跳 */
    .cv-card.is-active .cv-overlay {
        opacity: 1 !important;
        pointer-events: auto; /* 激活后可点（用于复制文字等） */
    }

    /* 5. 头像微调 */
    .cv-overlay .cv-image {
        width: 65px !important;
        height: 65px !important;
        margin-bottom: 10px !important;
        border-width: 2px !important;
        flex-shrink: 0; /* 防止被挤压 */
    }

    /* 6. 文字排版优化 */
    .cv-overlay .cv-name {
        font-size: 1.1rem !important;
        margin-bottom: 2px !important;
        flex-shrink: 0;
    }

    .cv-overlay .cv-role {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
        opacity: 0.8 !important;
        flex-shrink: 0;
    }

.cv-overlay .cv-quote {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        margin: 0 !important;
        white-space: normal !important;
        
        /* 限制行数，防止溢出 */
        display: -webkit-box;
        -webkit-line-clamp: 6; 
        line-clamp: 6;      /* ✅ 新增这行：标准属性消除报错 */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
/* =================================
   手机端极致优化：标题修复 + 间距收紧 (解决空旷问题)
   ================================= */
@media (max-width: 768px) {
    
    /* 1. 标题样式优化：变小、白框变窄 */
    .series-title,
    .secondary-page-subtitle {
        font-size: 1.1rem !important;      /* 字体缩小 */
        padding: 8px 20px 12px 20px !important; /* 白框内边距缩小 */
        width: auto !important;
        max-width: 90% !important;         /* 限制最大宽度 */
        display: table !important;
        white-space: normal !important;    /* 允许换行 */
        line-height: 1.4 !important;
        
        /* --- 核心修复：收紧标题下方的间距 --- */
        /* 原来是 30px，现在改为 15px，拉近标题和下面图片的距离 */
        margin: 0 auto 15px auto !important; 
    }

    /* 2. 装饰线适配：变短变细 */
    .series-title::after,
    .secondary-page-subtitle::after {
        width: 50px !important;
        height: 3px !important;
        bottom: 5px !important;
    }
    
    /* 3. 星星图标缩小 */
    .series-title i {
        font-size: 0.9rem !important;
        margin-right: 5px !important;
    }

    /* 4. --- 核心修复：收紧各个大板块之间的垂直间距 --- */
    /* PC端通常是 60px 或 70px，手机端改为 30px，显得更紧凑 */
    .concert-series, 
    .menu-section, 
    .cv-tribute-section, 
    .anniversary-section, 
    .continuation-section, 
    .carnival-section,
    #daily-rec {  /* 强制覆盖 HTML 里写的 style="margin-bottom: 70px" */
        margin-bottom: 30px !important; 
    }

    /* 5. 修复二级页面的顶部和分割线间距 */
    .page-content {
        padding-top: 20px !important; /* 原来是 40px */
    }
    .section-divider {
        margin: 30px 0 20px 0 !important; /* 原来是 80px */
    }
    
    /* 6. 修复主页顶部大标题 (Page Title) 的留白 */
    .page-title {
        margin-bottom: 20px !important; /* 原来是 40px */
    }
}