* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    --bj-url: url('./img/main_img/main-1.jpg');
    background-image: var(--bj-url);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    font-family: 'ZCOOL KuaiLe', cursive;
}

.main-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.up {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.up img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.up h1 {
    font-size: 42px;
    color: #73b9ef;
    text-shadow: 2px 2px 0px #fff;
}

.button {
    width: 100%;
}

.button ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.button ul li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.3);
    transition: 0.3s ease;
    cursor: pointer;
}

.button ul li:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.button ul li img {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 8px;
}

.button ul li a {
    font-size: 16px;
    text-decoration: none;
    color: #4a4a4a;
    font-weight: bold;
}

.bj_change {
    margin-top: 25px;
    padding: 8px 20px;
    background: rgba(115, 185, 239, 0.9);
    border-radius: 30px;
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}

.bj_change:hover {
    background: #5fa8e1;
}

/* --- 手机端适配逻辑 --- */
@media screen and (max-width: 768px) {

    /* 1. 调整主容器，缩小间距，让内容更紧凑 */
    .main-box {
        width: 95%;
        /* 增加侧边留白 */
        padding: 20px;
        height: auto;
        /* 让高度随内容自适应 */
        min-height: 80vh;
    }

    /* 2. 标题和头像缩小，防止占位过多 */
    .up img {
        width: 80px;
        height: 80px;
    }

    .up h1 {
        font-size: 1.5rem;
    }

    /* 3. 关键：将 2 列改为 1 列（或缩小比例） */
    .button ul {
        grid-template-columns: repeat(2, 1fr);
        /* 保持2列，但调整内部间距 */
        gap: 12px;
        padding: 0;
    }

    /* 4. 针对极窄屏幕（如 iPhone SE）变为单列 */
    @media screen and (max-width: 480px) {
        .button ul {
            grid-template-columns: 1fr;
        }
    }

    /* 5. 调整卡片内的图标和文字大小 */
    .button ul li {
        padding: 15px;
        border-radius: 15px;
        /* 稍微圆润一点更适合手机触控 */
    }

    .button ul li img {
        width: 40px;
        height: 40px;
    }

    /* 6. 让“切换背景”按钮在手机上更易点击 */
    .bj_change {
        width: 120px;
        font-size: 0.9rem;
        bottom: 10px;
    }
}

/* 修改 _index.css 最底部的这段代码 */
.bj_change {
    /* 1. 改为块级元素，使其能自动换行到公告栏下方 */
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 10px;

    /* 2. 删掉之前的 position: fixed; bottom: 30px; 等固定定位代码 */

    /* 3. 保持原来的外观样式 */
    padding: 10px 25px;
    background: rgba(115, 185, 239, 0.9);
    border-radius: 30px;
    color: white;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: 0.2s;
}

.bj_change:hover {
    background: #5fa8e1;
    transform: scale(1.05);
    /* 增加一个微缩放效果，更有点击感 */
}


/* --- 功能开发中相关样式 --- */

/* 1. 底部滚动公告条 */
.dev-status {
    margin-top: 25px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.dev-status p {
    font-size: 13px;
    color: black;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0;
}

/* 呼吸灯小圆点 */
.dot {
    width: 8px;
    height: 8px;
    background-color: #73b9ef;
    border-radius: 50%;
    box-shadow: 0 0 10px #73b9ef;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

/* 2. 按钮右上角“开发中”角标 */
.developing {
    position: relative;
    overflow: hidden;
    /* 必须裁剪掉溢出的角标 */
}

.developing::after {
    content: "开发中";
    position: absolute;
    top: 5px;
    right: -15px;
    background: #ffb7c5;
    /* 樱花粉色 */
    color: white;
    font-size: 9px;
    padding: 2px 15px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.developing:hover {
    cursor: wait;
    /* 鼠标悬停显示等待状态 */
}


/* 烟花大会独立长条入口 */
.fireworks-banner {
    width: 100%;
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(115, 185, 239, 0.4), rgba(255, 183, 197, 0.4));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fireworks-banner:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(115, 185, 239, 0.6), rgba(255, 183, 197, 0.6));
    box-shadow: 0 5px 15px rgba(115, 185, 239, 0.3);
}

.fireworks-icon {
    width: 24px !important;
    height: 24px !important;
}

.fireworks-banner span {
    font-size: 16px;
    font-weight: bold;
    color: #4a4a4a;
    letter-spacing: 1px;
}

/* 装饰性的小星星动画 */
.sparkle {
    position: absolute;
    right: 20px;
    width: 10px;
    height: 10px;
    background: #fff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: rotate-sparkle 3s infinite linear;
}

@keyframes rotate-sparkle {
    from {
        transform: rotate(0deg) scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 1;
    }

    to {
        transform: rotate(360deg) scale(0.8);
        opacity: 0.5;
    }
}

/* AI下拉按钮样式 */
.ai-dropdown {
    padding: 0 !important;
    background: transparent !important;
}

.ai-dropdown:hover {
    background: transparent !important;
    transform: none !important;
}

.ai-options {
    display: flex;
    width: 100%;
    height: 100%;
}

.ai-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.3);
    transition: 0.3s ease;
    text-decoration: none;
}

.ai-option img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.ai-option span {
    font-size: 16px;
    color: #4a4a4a;
    font-weight: bold;
}

.ai-new {
    display: none;
}

.ai-dropdown:hover .ai-new {
    display: flex;
}

.ai-dropdown:hover .ai-option:first-child {
    border-radius: 15px 0 0 15px;
}

.ai-dropdown:hover .ai-option:last-child {
    border-radius: 0 15px 15px 0;
}


/*-------------------------------------------------------------红包 */


/* 红包弹出层基础样式 */
.red-banner {
    position: fixed;
    top: -100px;
    /* 初始隐藏在上方 */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 12px 20px;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* 带一点回弹效果 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 弹出状态 */
.red-banner.show {
    top: 20px;
}

.red-content {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-grow: 1;
}

.red-icon {
    width: 45px;
    height: 45px;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    /* 给你的图片加点金光 */
}

.red-text {
    display: flex;
    flex-direction: column;
}

.red-title {
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
}

.red-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin-top: 2px;
}

.red-close {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding-left: 15px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.red-close:hover {
    opacity: 1;
}