
@font-face {
    font-family: 'Yomeng Script';
    src: 
        url('YomengScript.woff2') format('woff2'), /* 优先 */
        url('YomengScript.ttf') format('truetype');/* 回退 */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 修正后的body样式 */
body {
    font-family: 'Yomeng Script', sans-serif;
    padding: 0;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column; /* 新增 */
    position: relative; /* 新增 */
}

/* 伪元素修正 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('https://www.loliapi.com/acg/') center/cover fixed;
    opacity: 0.8;
    pointer-events: none; /* 新增 */
}

/* 容器修正 */
.container {
    max-width: 80%; /* 调整最大宽度 */
    width: min(90%, 1200px); /* 响应式宽度 */
    margin: 20px 0; /* 修正margin */
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1; /* 确保内容在上层 */
}

/* 卡片阴影悬停效果 */
.container:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* 公告样式 */
.announcement {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    font-size: 17px;
    background-color: rgba(255, 255, 255, 0.7); /* 半透明背景 */
    border-radius: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-left: 4px solid #1E90FF;
    color: transparent; /* 文字透明以显示渐变 */
    background: linear-gradient(90deg, #ff6b6b, #f7d15c, #55efc4, #5f27cd);
    background-clip: text;
    -webkit-background-clip: text; /* 兼容Webkit浏览器 */
    animation: gradientAnimation 5s ease infinite;
    border: 2px solid rgba(255, 192, 203, 0.6); /* 添加边框 */
}

.announcement-btn-container {
    margin-top: 15px; /* 按钮与上方文字的间距 */
    display: flex;
    justify-content: center; /* 按钮水平居中 */
}

.announcement-btn {
    background: linear-gradient(135deg, #1E90FF, #00BFFF); /* 渐变背景 */
    color: white;
    border: none;
    padding: 15px 25px; /* 增加内边距，避免文字拥挤 */
    border-radius: 50px; /* 圆角按钮 */
    font-size: 14px; /*字体大小*/
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(30, 144, 255, 0.3); /* 阴影效果 */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none; /* 去除下划线 */
    display: inline-block; /* 确保链接样式正确应用 */
}

.announcement-btn:hover {
    transform: translateY(-3px) scale(1.02); /* 悬停时上浮并放大 */
    box-shadow: 0 6px 12px rgba(30, 144, 255, 0.4); /* 阴影加深 */
    color: white; /* 保持文字颜色 */
    text-decoration: none; /* 悬停时去除下划线 */
}

.announcement-btn:active {
    transform: translateY(1px); /* 点击时下沉 */
    box-shadow: 0 2px 4px rgba(30, 144, 255, 0.3);
}

.announcement-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    transition: opacity 0.3s;
    opacity: 0;
}

.announcement-btn:hover::after {
    opacity: 1; /* 悬停时显示光泽效果 */
}

/* 渐变动画 */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* 视频容器 */
.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

/* 视频嵌入 */
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 视频标题 */
.video-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
}

/* 页脚样式 */
.footer {
    text-align: center;
    flex-shrink: 0; /* 防止 footer 被压缩 */
    padding: 15px;
    margin-top: 20px;
    width: 100%;
    background-color: transparent;
    border-top: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* ICP 链接样式 */
.icp-links {
    display: flex;
    gap: 10px;
}

/* ICP 链接 */
.icp-link {
    font-weight: bold;
    text-decoration: none;
    color: #000;
}

/* 页脚文本 */
.footer p {
    margin: 0;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 链接悬停效果 */
a:hover {
    color: #007bff;
    transition: color 0.3s ease-in-out;
    text-decoration: none; /* 去除下划线 */
}

/* 媒体查询：调整手机上的布局 */
@media (max-width: 768px) {
    .container {
        max-width: 95%;
        padding: 10px;
    }

    .announcement {
        font-size: 14px;
        padding: 10px;
    }

    .video-title {
        font-size: 16px;
    }

    .footer p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .announcement {
        font-size: 12px;
        padding: 8px;
    }

    .video-title {
        font-size: 14px;
    }

    .footer p {
        font-size: 12px;
    }
}