/* 全局样式重置与变量定义 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft Yahei', 'PingFang SC', sans-serif;
}

:root {
    /* 主题渐变色（保留） */
    --top-bg-gradient: linear-gradient(120deg, rgba(135, 206, 250, 0.7), rgba(65, 105, 225, 0.7));
    --tips-bg-gradient: linear-gradient(120deg, rgba(255, 215, 0, 0.7), rgba(255, 165, 0, 0.7));
    --card-bg: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.15);
    --text-primary: #FFFFFF;
    --text-secondary: #F0F8FF;
    --border-color: rgba(255, 255, 255, 0.2);
    /* 更浅的边框 */

    /* 半透明浅色调按钮渐变（核心修改）- 降低饱和度+增加透明度 */
    --btn1: linear-gradient(90deg, rgba(30, 144, 255, 0.4), rgba(0, 0, 205, 0.4));
    --btn2: linear-gradient(90deg, rgba(255, 127, 80, 0.4), rgba(255, 69, 0, 0.4));
    --btn3: linear-gradient(90deg, rgba(255, 99, 71, 0.4), rgba(220, 20, 60, 0.4));
    --btn4: linear-gradient(90deg, rgba(147, 112, 219, 0.4), rgba(128, 0, 128, 0.4));
    --btn5: linear-gradient(90deg, rgba(50, 205, 50, 0.4), rgba(0, 128, 0, 0.4));
    --btn6: linear-gradient(90deg, rgba(255, 105, 180, 0.4), rgba(199, 21, 133, 0.4));

    /* 阴影效果（更柔和） */
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 动态渐变背景核心样式 */
body {
    background: linear-gradient(-45deg, #87CEEB, #4682B4, #1E90FF, #6495ED, #87CEFA, #9370DB, #8A2BE2, #9400D3, #FF69B4, #C71585);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;

    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 15px;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 顶部官网横幅 */
.top-banner {
    width: 100%;
    max-width: 500px;
    background: var(--top-bg-gradient);
    border-radius: 20px;
    padding: 20px 15px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.top-banner .tag {
    background: rgba(255, 69, 0, 0.8);
    /* 标签半透明 */
    color: #FFFFFF;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.top-banner .title-text {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 8px #FFFF00;
    margin-top: 5px;
}

/* 售后提示横幅 */
.tips-banner {
    width: 100%;
    max-width: 500px;
    background: var(--tips-bg-gradient);
    border-radius: 15px;
    padding: 12px 15px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.tips-banner .tips-text {
    font-size: 14px;
    color: rgba(220, 20, 60, 0.9);
    /* 文字半透明加深，保证可读性 */
    font-weight: 600;
}

/* 头像容器 */
.avatar-container {
    position: relative;
    margin-bottom: 25px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.6);
    /* 头像边框半透明 */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    object-fit: cover;
    animation: float 3s ease-in-out infinite;
}

/* 主按钮容器 */
.main-container {
    width: 100%;
    max-width: 500px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* 半透明浅色调主按钮（核心修改） */
.nav-button {
    display: flex;
    align-items: center;
    background: var(--btn1);
    border-radius: 12px;
    padding: 12px 18px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* 浅白色透明边框 */
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    /* 按钮毛玻璃效果 */
}

/* 分配半透明渐变颜色 */
.nav-button:nth-child(1) {
    background: var(--btn1);
}

.nav-button:nth-child(2) {
    background: var(--btn2);
}

.nav-button:nth-child(3) {
    background: var(--btn3);
}

.nav-button:nth-child(4) {
    background: var(--btn4);
}

.nav-button:nth-child(5) {
    background: var(--btn5);
}

.nav-button:nth-child(6) {
    background: var(--btn6);
}

/* 悬浮效果优化（更柔和） */
.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    /* 悬浮时仅轻微加深透明度 */
}

.button-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    /* 图标背景半透明 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.button-text {
    flex: 1;
    text-align: center;
}

.button-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    /* 文字轻微阴影，保证可读性 */
}

.button-desc {
    font-size: 11px;
    color: rgba(240, 248, 255, 0.9);
    /* 描述文字半透明 */
}

/* 底部三个小按钮（半透明浅色调） */
.small-button-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.small-nav-button {
    background: rgba(255, 255, 255, 0.2);
    /* 小按钮浅透明背景 */
    border-radius: 12px;
    padding: 12px 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.small-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.25);
    /* 悬浮时轻微加深 */
}

.small-button-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
}

.small-button-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.small-button-desc {
    font-size: 11px;
    color: rgba(240, 248, 255, 0.9);
}

/* 底部版权区域 */
.footer {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: rgba(0, 0, 139, 0.9);
    /* 版权文字半透明 */
    padding: 10px;
    width: 100%;
}

.footer .permanent-link {
    font-size: 14px;
    font-weight: bold;
    color: rgba(220, 20, 60, 0.9);
    margin-bottom: 5px;
}

/* 左下角音乐图标（半透明） */
.music-icon {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    cursor: pointer;
    z-index: 999;
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.music-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    background: rgba(255, 255, 255, 0.25);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 响应式设计优化 */
/* 大屏设备 */
@media (min-width: 768px) {

    .top-banner,
    .tips-banner,
    .main-container {
        max-width: 600px;
    }

    .nav-button {
        padding: 18px 25px;
    }

    .button-title {
        font-size: 18px;
    }

    .small-button-title {
        font-size: 16px;
    }
}

/* 平板设备 */
@media (max-width: 767px) {

    .top-banner,
    .tips-banner,
    .main-container {
        max-width: 500px;
    }
}

/* 手机端适配 */
@media (max-width: 480px) {
    .top-banner .title-text {
        font-size: 24px;
    }

    .main-container {
        padding: 15px;
    }

    .nav-button {
        padding: 12px 15px;
    }

    .small-nav-button {
        padding: 10px 5px;
    }

    .music-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 20px;
        left: 20px;
    }

    .button-title {
        font-size: 15px;
    }

    .button-desc {
        font-size: 11px;
    }

    .small-button-title {
        font-size: 13px;
    }

    .small-button-desc {
        font-size: 10px;
    }
}

/* 小屏手机适配 */
@media (max-width: 360px) {
    .top-banner .title-text {
        font-size: 22px;
    }

    .tips-banner .tips-text {
        font-size: 13px;
    }

    .nav-button {
        padding: 10px 12px;
    }

    .button-icon {
        width: 24px;
        height: 24px;
        margin-right: 12px;
    }

    .small-button-icon {
        width: 28px;
        height: 28px;
    }

    .music-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
        bottom: 15px;
        left: 15px;
    }

    /* 弹窗公告响应式 */
    .popup-notice {
        width: 90%;
        max-width: 300px;
        padding: 20px;
    }

    .popup-title {
        font-size: 18px;
    }

    .popup-content {
        font-size: 18px;
    }
}

/* 弹窗公告样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease;
}

.popup-notice {
    background: var(--color1);
    border: 2px solid var(--color2);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.5s ease, pulseBorder 2s infinite;
    box-shadow: 0 0 30px rgba(var(--color2-rgb), 0.5);
}



.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.popup-title {
    color: white;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.popup-content {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.popup-content p {
    margin-bottom: 10px;
}

.popup-content a {
    color: #ffffff;
    text-decoration: underline;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.popup-content a:hover {
    color: #87CEEB;
    text-decoration: none;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseBorder {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(var(--color1-rgb), 0.5);
        border-color: var(--color1);
    }

    50% {
        box-shadow: 0 0 40px rgba(var(--color2-rgb), 0.8);
        border-color: var(--color2);
    }
}

/* 隐藏弹窗的类 */
.hidden {
    display: none !important;
}

/* 弹窗遮罩层 - 加淡入动画 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* 初始透明，动画过渡 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* 遮罩层激活状态 - 触发动画 */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗主体 - 加缩放+淡入动画 + 默认背景兜底 */
.modal {
    background: #1a1a2e;
    /* 默认背景，JS加载后覆盖 */
    border: 2px solid #4a9eff;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.5);
    /* 初始状态：透明+缩小 */
    opacity: 0;
    transform: scale(0.8);
    /* 动画配置：丝滑缓动 */
    transition:
        opacity 0.5s ease-out 0.1s,
        /* 延迟0.1s，等遮罩层先淡入 */
        transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* 弹性缓动，更丝滑 */
}

/* 遮罩层激活时，弹窗同步动画 */
.modal-overlay.active .modal {
    opacity: 1;
    transform: scale(1);
}

/* 关闭按钮 - 加hover动画 */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease-out;
    /* 关闭按钮hover丝滑 */
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    /* 轻微放大，交互更友好 */
}

.modal-title {
    text-align: center;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.modal-divider {
    border: none;
    border-top: 1px solid #4a9eff;
    margin: 1rem 0;
}

.modal-content {
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.6;
}