@font-face {
    font-family: 'Smileysans';
    src: url('../font/SmileySans.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    background-image: url('../img/pc.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

@media (max-width: 768px) {
    body {
        background-image: url('../img/mob.png');
    }
}

.topbar {
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    font-size: 20px;
    color: #222;
}

.topbar-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 35px;
    /* 与屏幕右侧保持距离 */
}

.topbar a {
    background: transparent;
    color: inherit;
    box-shadow: none;
    padding: 0;
    margin: 0 3px 0 0;
    border-radius: 0;
}

.topbar a:last-child {
    margin-right: 0;
}

.topbar a:hover,
.topbar a:focus {
    background: transparent;
    color: inherit;
    box-shadow: none;
    text-decoration: none;
}

a,
button {
    display: inline-block;
    margin: 4px 6px 4px 0;
    padding: 4px 10px;
    color: #fff;
    background: #009dff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(255, 152, 0, 0.08);
    border: none;
    outline: none
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 32px 0 16px 0;
    gap: 8px;
}

.footer a {
    background: transparent;
    color: #007cff;
    box-shadow: none;
    border-radius: 0;
    padding: 0 8px;
    margin: 0 2px;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer a:hover,
.footer a:focus {
    color: #003cff;
    text-decoration: underline;
    background: transparent;
    box-shadow: none;
}

h1,h3,button{
    text-align: center;
}

h1{
    background: linear-gradient(to right, #eaff00, #ff7300);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

h3{
    color:gold;
}

/* 按钮恢复为默认样式但保持居中 */
#claim-btn{
    display:block;
    margin:22px auto;
}

/* 视频覆盖层：居中显示视频，距离四周 15px，不被顶栏遮挡（顶栏高度为 60px） */
.video-overlay{
    position: fixed;
    left: 15px;
    right: 15px;
    top: calc(60px + 15px);
    bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: rgba(0,0,0,0);
}

.video-overlay video{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

/* 覆盖层上的“开启声音”按钮 */
.video-overlay .unmute-btn{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 25px;
    padding: 10px 16px;
    font-size: 15px;
    background: rgba(255,255,255,0.95);
    color: #0b63d6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.video-overlay .unmute-btn:active{ transform: translateX(-50%) translateY(1px); }

/* 居中容器：在顶栏下方到页面底部之间垂直居中显示内容（文本与按钮） */
.center-overlay{
    position: fixed;
    left: 15px;
    right: 15px;
    top: calc(60px + 15px);
    bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 998; /* 在顶栏之下，但在普通内容之上 */
    pointer-events: none; /* 默认为不可交互，子元素可覆盖为可交互 */
}

.center-overlay > *{ pointer-events: auto; }

@media (max-width: 768px) {
    .center-overlay{ left: 8px; right: 8px; }
}

/* 调整文字间距与尺寸，使视觉更紧凑 */
.center-overlay h1{
    font-size: 42px;
    margin: 4.5px;
    line-height: 1.05;
    letter-spacing: 0.2px;
}

.center-overlay h3{
    font-size: 18px;
    margin: 2px;
    line-height: 1.2;
    color: gold;
    font-weight: 600;
}

#claim-btn{
    display: block;
    margin: 12px auto 0;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .center-overlay h1{ font-size: 32px; }
    .center-overlay h3{ font-size: 15px; }
    #claim-btn{ padding: 7px 12px; font-size: 14px; }
}