body {
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    /* 从屏幕中间开始 */
    top: 50%;
    left: 50%;
    transform: translate(-10%, -10%);
    opacity: 0;
    animation: floatUp 11s ease-in infinite;
}

@keyframes floatUp {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        /* 上升到全屏 */
        transform: translate(-50%, -100vh) scale(1);
        opacity: 0;
    }
}
@font-face {
    font-family: 'ShowClick';
    src: url('Showclick.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 盒子的基础样式 */
.box-image, .box-content, .box-button {
    color: #fff;
    position: absolute;
    background-color: #000;
    border: 2px solid #ff00ffbb; /* 紫色边缘 */
    border-radius: 15px; /* 圆角 */
    /* 黑色渐变边缘 */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* 图片盒子样式 E3-H9 */
.box-image {
    /* 根据Excel坐标近似定位，基于1080p分辨率 */
    top: 18%;
    left: 18%;
    right: 65%;
    bottom: 36%;
    z-index: 1; /* 最底层 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 图片盒子中的图片样式 */
.box-image img {
    max-height: 100%;
    object-fit: contain;
}

/* 内容盒子样式 G5-R10 */
.box-content {
    /* 根据Excel坐标近似定位，基于1080p分辨率 */
    top: 32%;
    left: 28%;
    /* 宽度根据页面宽度调整，右侧保持固定margin */
    right: 25%;
    bottom: 20%;
    z-index: 2;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden; /* 隐藏溢出内容 */
}

/* 按钮盒子样式 I10-N11 */
.box-button {
    /* 根据Excel坐标近似定位，基于1080p分辨率 */
    top: 74%;
    left: 36%;
    right: 36%;
    bottom: 16%;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center; /* 居中 */
    gap: 10px;
}

/* 按钮盒子中的文字样式 */
.box-button span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 20px;
    font-weight: 600;
}

/* 标题盒子样式 I3-P4 */
.box-title {
    position: absolute;
    font-family: 'ShowClick';
    left: 39%;
    top: 18%;
    bottom: 68%;
    color: #fff;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center; /* 居中 */
    z-index: 4;
}

/* 文本内容区域 */
.content-text {
    margin: 20px;
    font-family: 'Microsoft YaHei', 'SimSun', sans-serif;
    font-size: 16px;
    font-weight: 200;
    color: #fff;
    height: 15%;
}

/* 作品卡片区域 */
.content-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* 个人信息卡片样式 */
.profile-card {
    color: #fff;
    background-color: #000;
    border: 2px solid #ff00ffbb; /* 紫色边缘 */
    border-radius: 15px; /* 圆角 */
    /* 黑色渐变边缘 */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    padding: 15px;
    box-sizing: border-box;
    flex: 1 1 100px; /* 允许卡片伸缩，最小宽度300px */
    width: 100px;
}

.profile-card h3 {
    font-family: 'ShowClick';
    font-size: 20px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.profile-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.profile-card li {
    font-family: 'Microsoft YaHei', 'SimSun', sans-serif;
    font-size: 14px;
    font-weight: 200;
    margin-bottom: 3px;
}

.profile-card a {
    color: #fff;
    text-decoration: none;
}

.profile-card a:hover {
    text-decoration: underline;
}

/* 登录按钮样式 */
.box-button button {
    background-color: #4B0082; /* 暗紫色 */
    color: white;
    border: none;
    border-radius: 8px; /* 圆角 */
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* 登录按钮悬停效果 */
.box-button button:hover {
    background-color: #6A0DAD; /* 稍微亮一点的紫色 */
}

/* 登录弹出框样式 */
.modal {
    color: #fff;
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    color: #fff;
    background-color: #000;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #ff00ffbb;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    width: 300px;
    text-align: center;
    position: relative;
}

.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close:hover {
    color: #ff00ffbb;
}

.password-input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    box-sizing: border-box;
    border: 2px solid #888;
    border-radius: 4px;
    background-color: #000;
    color: #fff;
    font-size: 16px;
}

.modal-login-button {
    background-color: #4B0082;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.modal-login-button:hover {
    background-color: #6A0DAD;
}

.message {
    margin-top: 15px;
    font-size: 14px;
    color: #ff00ffbb;
    min-height: 20px;
}
/* 小屏幕上的内容盒子样式 */
@media screen and (max-width: 1200px) {
    .box-content {
        left: 18%;
        right: 10%;
    }
    .box-image {
        left: 6%;
        right: 75%;
    }
    .box-title {
        left: 30%;
    }
}

/* 小屏幕上的内容盒子样式 */
@media screen and (max-width: 800px) {
    .box-title {
        top: 8%;
        left: 50%;
        transform: translateX(-50%);
    }
    .box-content {
        left: 10%;
        right: 10%;
    }
    .box-button span {
        display: none;
    }
    
    .box-button {
        align-items: center;
    }
}

/* 在窄屏幕上隐藏文字，只显示按钮 */
@media screen and (max-width: 600px) {
    .box-content {
        padding-top: 20vh;
    }
    .box-button span {
        display: none;
    }
    
    .box-button {
        align-items: center;
    }
    
    /* 当屏幕小于600px时，让box-image居中显示 */
    .box-image {
        top: 40vh;
        left: 50vw;
        right: 25vw;
        bottom: 25vw;
        transform: translate(-50%, -50%);
        width: 40vw;
        height: 40vw;
        z-index: 5;
    }
    .content-text {
        top: 40vw;
    }
    .box-image img {
        max-height: 100%;
        object-fit: contain;
    }
}

/* 极小屏幕上的内容盒子样式 - 只显示content-text */
@media screen and (max-width: 480px) {
    .box-content .content-cards {
        display: none;
    }
}