/* main.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Orbitron:wght@400;500;700&display=swap');

/* --- 变量定义 --- */
:root {
    --primary-color: #49a0ff;
    --primary-glow: rgba(73, 160, 255, 0.8);
    --secondary-color: #a18cd1;
    --bg-dark: #0a0a21;
    --bg-panel: rgba(18, 22, 42, 0.85);
    --text-color: #e0e0e0;
    --text-light: #ffffff;
    --border-color: rgba(73, 160, 255, 0.4);
    --font-main: 'Noto Sans SC', sans-serif;
    --font-display: 'Orbitron', 'Noto Sans SC', sans-serif;
}

/* --- 基础重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-dark);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- 页面容器与背景 --- */
.page-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.background-container {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.background-image {
    /* 这是两个图片的通用样式 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* animation: ...;  <-- 删除这一行 */
    transform: scale(1.1); /* 放大到1.2倍，为手机端平移提供更多画面空间 */
    z-index: 1; 
}



.background-image.placeholder {
    /* 让模糊占位图充满整个屏幕，并加上模糊效果 */
    filter: blur(15px);
    transform: scale(1.1); /* 放大一点点，防止模糊后边缘出现白边 */
}

.real-image {
    /* 高清图默认是完全透明的 */
    opacity: 0;
    /* 为它的透明度变化加上0.5秒的过渡动画 */
    transition: opacity 0.5s ease-in-out;
}

.real-image.loaded {
    /* 当JS给它加上loaded类后，它会平滑地变为不透明 */
    opacity: 1;
}



/* 新的、高性能的背景平移动画 */
@keyframes bg-pan-performant {
    from {
        transform: scale(1.1) translateX(-2.5%);
    }
    to {
        transform: scale(1.1) translateX(2.5%);
    }
}

/* 专为手机端设计的全景平移动画(从中部开始) */
@keyframes mobile-bg-scroll {
    0% {
        object-position: 50% 50%; /* 旅程起点：画面正中 */
    }
    25% {
        object-position: 100% 50%; /* 1/4处：到达最右边 */
    }
    75% {
        object-position: 0% 50%;  /* 3/4处：从最右滑到最左 */
    }
    100% {
        object-position: 50% 50%; /* 旅程终点：回到画面正中 */
    }
}


.overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 10, 33, 0.5) 0%, rgba(10, 10, 33, 0.9) 80%);
    z-index: 2;
}

/* 恢复 decorations-canvas 样式 */
.decorations-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.transition-canvas {
    position: fixed; /* 固定定位，覆盖整个视口 */
    inset: 0;
    pointer-events: none; /* 不响应鼠标事件 */
    z-index: 9999; /* 确保它在最顶层，用于转场 */
    display: none; /* 默认隐藏 */
    opacity: 0; /* 默认透明 */
    transition: opacity 0.5s ease;
}

/* --- 响应式文本控制 --- */
.mobile-only {
    display: none;
}

/* --- 入场动画 --- */
.main-header, .main-navigation, .welcome-container, .announcement-toggle-btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.main-header { animation-delay: 0.2s; }
.main-navigation { animation-delay: 0.3s; }
.welcome-container { animation-delay: 0.4s; }
.announcement-toggle-btn { animation-delay: 0.5s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 左上角 Header --- */
.main-header {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 10;
}

.main-header .logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--primary-glow);
}

.main-header .tagline {
    font-size: 0.9rem;
    color: var(--text-color);
    letter-spacing: 1px;
}

/* --- 桌面端主导航 (左下角) --- */
.main-navigation {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 10;
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    padding: 10px;
}

.main-navigation .nav-links {
    /* 【关键1】设置一个最大高度，比如6个项目的高度 */
    max-height: 250px; 
    /* 【关键2】当内容超出时，垂直方向自动显示滚动条 */
    overflow-y: auto;
    /* (可选)为了美观，给右边留出一点内边距放滚动条 */
    padding-right: 5px;
}

.nav-links .nav-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.nav-links .nav-item a:hover,
.nav-links .nav-item.active a {
    background: radial-gradient(circle at left center, var(--primary-glow), transparent 70%);
    color: var(--text-light);
    transform: translateX(5px);
}

.nav-links .nav-item a i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.nav-links .nav-item a:hover i,
.nav-links .nav-item.active a i {
    color: var(--text-light);
}

.desktop-user-entry {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.desktop-user-entry a {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    transition: background-color 0.3s ease;
}
.desktop-user-entry a:hover {
    background-color: rgba(255,255,255,0.1);
}
.desktop-user-entry .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid var(--border-color);
    overflow: hidden;
}
.desktop-user-entry .user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* --- 居中欢迎信息 --- */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.welcome-container {
    text-align: center;
    max-width: 600px;
}

.welcome-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-light);
    text-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--secondary-color);
    margin-bottom: 20px;
}

.welcome-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.welcome-subtitle.desktop-only {
    font-family: 'Zhi Mang Xing', cursive;/* 应用我们之前引入的艺术字体 */
    font-size: 1.4rem; /* 桌面端可以稍微大一点，显得更舒展 */
    text-shadow: 0 1px 5px rgba(0,0,0,0.3); /* 加一点阴影，更有质感 */
}

.action-buttons .btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* 边框改为更柔和的半透明白色 */
    color: var(--text-light);
    font-family: var(--font-display);
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* 加一点圆角，玻璃感更强 */
    backdrop-filter: blur(8px); /* 核心！磨砂玻璃效果 */
    -webkit-backdrop-filter: blur(8px); /* 兼容性写法 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* 添加一点阴影，让按钮浮起来 */
}

.btn.btn-primary {
    /* 新的深蓝到近黑色的渐变 */
    background-image: linear-gradient(135deg, rgba(73, 160, 255, 0.7), rgba(15, 20, 40, 0.8));
    /* 同时保留一个半透明底色，以防浏览器不支持渐变 */
    background-color: rgba(73, 160, 255, 0.5); 
    /* 为按钮添加内发光，增加科技感 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(73, 160, 255, 0.3);
}
.btn.btn-primary:hover {
    /* 鼠标悬浮时，渐变色更亮，辉光更强 */
    background-image: linear-gradient(135deg, rgba(80, 180, 255, 0.8), rgba(25, 30, 60, 0.9));
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(100, 190, 255, 0.5);
    transform: translateY(-3px) scale(1.02); /* 增加一点放大效果，反馈更明显 */
}
.btn.btn-secondary {
    /* 次要按钮使用更不透明的深色玻璃效果 */
    background-color: rgba(30, 35, 70, 0.5); /* 提高了不透明度(alpha值从0.1增加到0.5) */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.btn.btn-secondary:hover {
    background-color: rgba(40, 50, 90, 0.7); /* 悬浮时也更不透明 */
    transform: translateY(-3px) scale(1.02);
}

/* --- 游戏化UI面板样式 (公告, 关于我们等) --- */
.game-ui-panel {
    position: absolute;
    background: var(--bg-panel);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    clip-path: polygon(0 15px, 15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px));
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.game-ui-panel.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}
.game-ui-panel::before, .game-ui-panel::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    pointer-events: none;
}
.game-ui-panel::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.game-ui-panel::after { bottom: 0; right: 0; border-left: none; border-top: none; }


.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(73, 160, 255, 0.1);
    border-bottom: 1px solid var(--border-color);
}
.panel-header h3 { font-family: var(--font-display); font-size: 1rem; color: var(--text-light); }
.panel-header h3 i { margin-right: 10px; color: var(--primary-color); }
.close-btn, .close-modal-btn {
    background: transparent; border: none; color: var(--text-color); cursor: pointer;
    font-size: 1.2rem; transition: all 0.3s ease;
}
.close-btn:hover, .close-modal-btn:hover { color: var(--text-light); transform: rotate(90deg); }

.panel-body { padding: 20px; max-height: 50vh; overflow-y: auto; }

/* 滚动条美化 */
.panel-body::-webkit-scrollbar { width: 6px; }
.panel-body::-webkit-scrollbar-track { background: transparent; }
.panel-body::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 3px; }

/* 公告面板特定样式 */
.announcement-toggle-btn {
    position: absolute;
    top: 40px; right: 40px;
    z-index: 20;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 20px;
    font-family: var(--font-display);
    cursor: pointer;
    display: flex;
    align-items: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    transition: all 0.3s ease;
}
.announcement-toggle-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary-glow);
}
.announcement-toggle-btn i { margin-right: 8px; }

.announcement-panel {
    top: 100px;
    right: 40px;
    width: 380px;
    z-index: 19;
}
/* 公告内容样式 (可复用之前的) */
.announcement { display: flex; padding: 15px 0; border-bottom: 1px solid rgba(73, 160, 255, 0.2); }
.announcement:last-child { border-bottom: none; }
.announcement-icon { min-width: 36px; height: 36px; background: rgba(73, 160, 255, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; color: var(--primary-color); }
.announcement-text h4 { font-size: 0.9rem; margin-bottom: 5px; color: var(--text-light); }
.announcement-text p { font-size: 0.8rem; color: var(--text-color); margin-bottom: 5px; line-height: 1.5; }
.announcement-text .date { font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); }


/* --- 模态框 (关于/执照) --- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(10, 10, 33, 0.8);
    backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.3s ease;
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-content {
    width: 90%;
    max-width: 800px;
    position: relative;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.modal-content .panel-body {
    flex-grow: 1; /* 让内容区填充剩余空间 */
}
.license-body { text-align: center; }
.license-image { max-width: 100%; max-height: 60vh; object-fit: contain; }
.about-body, .license-body { /* 保持原有样式 */ }

/* ================================== */
/* ====== 页面转场动画 - 碎片样式 ====== */
/* ================================== */

/* 碎片容器 */
.transition-shards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1002; /* 确保在圆圈动画之上 */
    overflow: hidden; /* 隐藏飞出屏幕的碎片 */
}

/* 单个碎片的样式 */
.shard {
    position: absolute; /* 必须是绝对定位，才能在容器内自由移动 */
    background: var(--primary-color); /* 使用我们的主题色 */
    box-shadow: 0 0 20px var(--primary-glow); /* 给碎片加上辉光 */
    opacity: 0; /* 默认是透明的 */
}

/* 触发碎片动画的类 */
.shard-animate {
    /* 应用名为 shardAnimation 的动画，持续1.5秒，并保持结束状态 */
    animation: shardAnimation 1.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

/* 定义碎片动画的关键帧 */
@keyframes shardAnimation {
    /* 动画开始时：在原地，尺寸和透明度都为0 */
    0% {
        transform: translate(0, 0) scale(0) rotate(0);
        opacity: 0;
    }
    /* 动画进行到60%时：移动到JS计算好的随机终点，尺寸和透明度达到最大 */
    60% {
        transform: translate(var(--x-end, 100px), var(--y-end, 100px)) scale(1) rotate(var(--rotation, 0deg));
        opacity: 1;
    }
    /* 动画结束时：继续保持在终点位置，但尺寸和透明度都变为0，逐渐消失 */
    100% {
        transform: translate(var(--x-end, 100px), var(--y-end, 100px)) scale(0) rotate(calc(var(--rotation, 0deg) + 45deg));
        opacity: 0;
    }
}

/* 个人主页头像过渡动画的样式 (也需要补上) */
.profile-transition { 
    position: fixed; 
    border-radius: 50%; 
    box-shadow: 0 0 30px var(--primary-glow); 
    z-index: 9999; 
    transform: translate(-50%, -50%); 
    overflow: hidden; 
}

@keyframes expandAvatar {
    0% { transform: translate(-50%, -50%) scale(1); border-radius: 50%; opacity: 1; }
    40% { transform: translate(-50%, -50%) scale(4); border-radius: 30%; opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(20); border-radius: 0; opacity: 0; }
}

/* 编辑页过渡动画的样式 (也需要补上) */
.editor-transition-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 10, 42, 0); z-index: 9999; display: flex;
    justify-content: center; align-items: center; pointer-events: none;
    transition: background-color 0.5s ease;
}
.editor-transition-container.active { background-color: rgba(10, 10, 42, 0.9); pointer-events: all; }
.editor-transition-icon {
    width: 100px; height: 100px; background: linear-gradient(135deg, #48a0ff 0%, #7e4dff 100%);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    transform: scale(0.1) rotate(0deg); opacity: 0; box-shadow: 0 0 30px rgba(120, 200, 255, 0.7);
}
.editor-transition-icon i { font-size: 40px; color: white; }
.editor-transition-icon.animate { animation: editorIconTransition 1.2s ease-in-out forwards; }
@keyframes editorIconTransition {
    0% { transform: scale(0.1) rotate(0deg); opacity: 0; }
    20% { opacity: 1; transform: scale(1) rotate(180deg); }
    60% { transform: scale(1.2) rotate(360deg); }
    100% { transform: scale(20) rotate(720deg); opacity: 0; }
}

/* 提示消息Toast (也需要补上) */
.toast-message {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75); color: white; padding: 12px 22px;
    border-radius: 25px; font-size: 14px; z-index: 10000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
}
.toast-message.show { opacity: 1; bottom: 40px; }

/* ======== 桌面导航栏 - 透明滚动条样式 ======== */
/* ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ */

/* 设置滚动条整体宽度 */
.main-navigation .nav-links::-webkit-scrollbar {
    width: 6px;
}

/* 滚动条轨道 (背景) */
.main-navigation .nav-links::-webkit-scrollbar-track {
    background: transparent; /* 完全透明的轨道 */
}

/* 滚动条滑块 (就是那个可以拖动的部分) */
.main-navigation .nav-links::-webkit-scrollbar-thumb {
    background-color: rgb(27, 48, 71); /* 使用半透明的主题色 */
    border-radius: 6px; /* 圆角 */
    border: 1px solid transparent; /* 边框也透明 */
}

/* 鼠标悬浮在滑块上时 */
.main-navigation .nav-links::-webkit-scrollbar-thumb:hover {
    background-color: rgba(47, 69, 102, 0.7); /* 变得更不透明一点，提供反馈 */
}
/* ▼▼▼▼▼▼▼▼▼▼▼ ICP备案号样式 ▼▼▼▼▼▼▼▼▼▼▼▼▼ */
.icp-footer {
    position: fixed; /* 固定在视口底部 */
    bottom: 10px; /* 距离底部10px */
    left: 50%; /* 先移动到中线 */
    transform: translateX(-50%); /* 再用transform回拉50%，实现完美居中 */
    z-index: 10; /* 确保它在背景之上 */

    font-size: 12px; /* 超小字号 */
    color: rgba(255, 255, 255, 0.4); /* 半透明的白色，不刺眼 */
    letter-spacing: 0.5px; /* 增加一点字间距，更清晰 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* 加一点阴影，防止和背景糊在一起 */
    transition: color 0.3s ease;
}

.icp-footer a {
    color: inherit; /* 继承父元素的颜色 */
    text-decoration: none; /* 去掉下划线 */
}

.icp-footer a:hover {
    color: rgba(255, 255, 255, 0.7); /* 鼠标悬浮时变亮一点 */
}
/* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲ */
/* ================================== */
/* ======== 响应式设计 (手机端) ======== */
/* ================================== */
.mobile-header, .mobile-bottom-nav, .hamburger-btn, .mobile-side-nav, .mobile-nav-overlay {
    display: none;
}

@media (max-width: 768px) {
    /* --- 隐藏桌面端元素 --- */
    .main-header, .main-navigation {
        display: none;
    }

    .icp-footer {
        display: none;
    }

    /* --- 显示并设计移动端核心UI --- */
    .hamburger-btn {
        display: block; position: fixed; top: 15px; right: 15px; z-index: 1002;
        background: none; border: none; color: var(--text-light); font-size: 1.5rem; padding: 10px;
    }
.background-image {
    /* 在手机端应用我们新的全景滚动动画 */
    animation: mobile-bg-scroll 40s linear infinite;
}

    .mobile-side-nav {
        display: flex; flex-direction: column; position: fixed; top: 0; right: -280px; width: 260px; height: 100%;
        z-index: 1001; background: var(--bg-panel); backdrop-filter: blur(15px); transition: right 0.4s ease; padding: 20px; padding-top: 60px;
    }
    .mobile-side-nav.open { right: 0; }
    .mobile-nav-overlay { 
        display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; 
        opacity: 0; visibility: hidden; transition: opacity 0.4s ease; 
    }
    .mobile-nav-overlay.show { opacity: 1; visibility: visible; }
    .mobile-side-nav .user-panel { 
        display: flex; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); 
    }
    .mobile-side-nav .user-avatar { width: 50px; height: 50px; margin-right: 15px; border-radius: 50%; border: 2px solid var(--border-color); overflow: hidden; }
    .mobile-side-nav .user-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .mobile-side-nav .user-name { font-size: 1rem; color: var(--text-light); }
    .secondary-nav-links a { display: flex; align-items: center; padding: 15px 10px; font-size: 1rem; }
    .secondary-nav-links i { width: 24px; margin-right: 15px; font-size: 1.1rem; color: var(--primary-color); }

    .mobile-bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 65px;
        background: var(--bg-panel); backdrop-filter: blur(10px); border-top: 1px solid var(--border-color);
        z-index: 100; align-items: stretch;
    }
    .mobile-bottom-nav .nav-item {
        flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
        color: var(--text-color); font-size: 0.7rem; transition: all 0.3s ease;
    }
    .mobile-bottom-nav .nav-item i { font-size: 1.4rem; margin-bottom: 4px; }
    .mobile-bottom-nav .nav-item.active {
        color: var(--text-light); background: radial-gradient(circle at top center, var(--primary-glow), transparent 80%);
    }

    /* --- 移动端符号图标美化 --- */
.mobile-bottom-nav .nav-item .nav-icon {
    font-size: 1.6rem; /* 调整符号的大小 */
    line-height: 1; /* 确保符号垂直居中 */
    margin-bottom: 4px;
    /* 为符号增加一个柔和的白色辉光 */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* 中间主按钮的符号可以更大更突出 */
.mobile-bottom-nav .main-action .nav-icon {
    font-size: 2.2rem;
    margin-bottom: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 当导航项被选中(active)时 */
.mobile-bottom-nav .nav-item.active .nav-icon {
    color: var(--text-light); /* 确保激活时是纯白色 */
    /* 辉光变得更强，颜色变为梦幻的粉紫色 */
    text-shadow: 0 0 15px rgba(220, 150, 255, 0.9);
    transform: scale(1.15); /* 放大效果 */
}
    .mobile-bottom-nav .nav-item.main-action {
        color: var(--text-light); margin: -15px 5px 0 5px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 50%; height: 60px; width: 60px; min-width: 60px; flex-grow: 0; align-self: center;
        box-shadow: 0 0 15px var(--primary-glow); border: 3px solid var(--bg-dark);
    }
    .mobile-bottom-nav .main-action i { font-size: 1.8rem; margin: 0; }

    /* --- 内容区和欢迎语调整 --- */
    .main-content { padding-bottom: 85px; }
    .welcome-container { padding-top: 0vh; }
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    .welcome-title.mobile-only {
        font-family: 'ZCOOL KuaiLe', cursive; font-size: 2.5rem; font-weight: 400; margin-bottom: 10px; letter-spacing: 2px;
        background-image: linear-gradient(180deg, #a9d4ff, #ffffff); color: transparent;
        -webkit-background-clip: text; background-clip: text; text-shadow: 0 0 10px rgba(169, 212, 255, 0.5);
    }
    .welcome-subtitle.mobile-only {
        font-family: 'Zhi Mang Xing', cursive; font-size: 1.0rem;
        color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 5px rgba(0,0,0,0.3);
    }
    .action-buttons {
        display: flex; justify-content: center; gap: 15px;
    }
    .action-buttons .btn { padding: 10px 22px; font-size: 0.9rem; margin: 0; }
    
    /* --- 公告按钮和面板的移动端样式修复 --- */
    .announcement-toggle-btn {
        display: flex; position: fixed; top: 80px; right: 15px; transform: none; z-index: 99;
        width: 48px; height: 48px; padding: 0; border-radius: 50%; justify-content: center;
        clip-path: none; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    .announcement-toggle-btn span { display: none; }
    .announcement-toggle-btn i { margin-right: 0; font-size: 1.2rem; }
    
    .announcement-panel {
        top: 80px; 
        right: 15px;
        left: 15px;
        width: auto;
        z-index: 100;
        display: flex;
        flex-direction: column;
        
        /* 【关键修复1】移除强制拉伸的 bottom 属性 */
        /* 我们不再需要：bottom: 85px; */

        /* 【关键修复2】改为添加一个最大高度限制 */
        max-height: calc(100vh - 185px); /* 100vh - 顶部80px - 底部导航65px - 安全边距40px */
    }

    .announcement-panel .panel-body {
        /* 内容很多时，它会填满最大空间并滚动 */
        flex-grow: 1;
        overflow-y: auto;
        padding-right: 10px; 
    }
}


/* 页面转场动画 (几乎不变, 可复用) */
.page-transition {
    position: fixed; 
    inset: 0; 
    z-index: 9999; 
    pointer-events: none; 
    opacity: 0; 
    transition: opacity 0.5s ease;
    /* --- 新增：给幕布加上不透明的底色！--- */
    background-color: var(--bg-dark);
}

.transition-curtain {
    position: absolute;
    inset: 0; /* 让幕布撑满整个父容器 */
    background-color: var(--bg-dark); /* 使用我们的主题深色，比纯黑更协调 */
    z-index: 1000; /* 确保它在页面内容之上 */
    
    /* 关键：定义初始状态为一个在中心点、半径为0的圆形 */
    clip-path: circle(0% at center);
    
    /* 为裁剪路径的变化添加1秒的平滑过渡效果 */
    transition: clip-path 1s cubic-bezier(0.65, 0, 0.35, 1);
}

/* 当转场容器被激活时，幕布的动画状态 */
.transition-active .transition-curtain {
    /* 将圆形半径扩展到150%，确保能完全覆盖屏幕的边角 */
    clip-path: circle(150% at center);
}

.transition-active { opacity: 1; pointer-events: auto; }
.transition-circle { position: absolute; top: 50%; left: 50%; width: 200vmax; height: 200vmax; border-radius: 50%; background: var(--bg-dark); z-index: 1001; transform: translate(-50%, -50%) scale(0); }
.circle-expand { animation: circleExpand 1s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.circle-collapse { animation: circleCollapse 1s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes circleExpand { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }
@keyframes circleCollapse { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(0); } }
/* 其他过渡动画样式无需大改，可以复用 */

