/* 基本重置 */
*, body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a, body, html {
    color: #00b7c3;
}

h1, h2 {
    text-shadow: 0 0 25px rgba(254, 254, 255, 0.85);
    visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

#canvas, #container {
    width: 100%;
    height: 100%;
}

#canvas, #stats {
    position: absolute;
    z-index: 10;
}

body, html {
    font: 16px/1.4 Lato, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
}

body {
    background-image: url('static/picture/d1.png');  /* 设置背景图片 */
    background-size: contain;  /* 保持背景图的原始比例，不被拉伸 */
    background-position: center; /* 背景图居中显示 */
    background-repeat: no-repeat; /* 不重复背景图片 */
    position: relative; /* 确保背景处于最底层 */
    margin: 0;
    padding: 0;
    height: 100vh; /* 高度为视口高度 */
    display: flex; /* 使用 flexbox 居中内容 */
    justify-content: center;
    align-items: center;
    user-select: none; /* 禁止选择文本 */
}

h1 {
    font: 2.75em Cinzel, serif;
    font-weight: 400;
    letter-spacing: 0.35em;
}

h2 {
    font: 1.45em Cinzel, serif;
    font-weight: 400;
    letter-spacing: 0.5em;
    text-transform: lowercase;
}

/* 动画效果 */
[class^=letter] {
    -webkit-transition: opacity 3s ease;
    -moz-transition: opacity 3s ease;
    transition: opacity 3s ease;
}

h1.transition-in, h2.transition-in {
    visibility: visible;
}

h1 [class^=letter], h2 [class^=letter] {
    opacity: 0;
}

h1.transition-in [class^=letter], h2.transition-in [class^=letter] {
    opacity: 1;
}

/* 图片按钮居中 */
.inbox {
    position: absolute;
    text-align: center;
    left: 50%;
    top: 70%;
    transform: translate(-50%, -50%);
    width: 580px;
    z-index: 1000;
}

.inbox img {
    width: 100%;
}

.btn1 {
    display: block;
    width: 280px;
    margin: 0 auto;
    animation: scaledh 1.5s infinite;
}

@keyframes scaledh {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 1360px) {
    .header, .content, .footer {
        width: 100%;
    }

    .seabox {
        display: none;
    }
}

@media (max-width: 1000px) {
    .logo {
        width: 200px;
    }

    .inbox h3 {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .inbox h3 img {
        width: 100%;
    }

    .btn1 {
        width: 210px;
        height: 56px;
    }

    .inbox {
        width: 100%;
    }
}

/* 隐藏透明层 */
.zzbj {
    display: none; /* 隐藏遮罩层 */
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 100;
    top: 0;
    left: 0;
    background: none; /* 移除任何背景图片 */
    opacity: 0;  /* 确保不会显示遮罩 */
    pointer-events: none; /* 防止任何交互影响其他元素 */
}

/* 其他样式 */
#container {
    display: table;
    position: absolute;
    z-index: 20;
    text-align: center;
    cursor: context-menu;
}

#container > div {
    display: table-cell;
    vertical-align: middle;
}

#container p {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 25px;
    font-size: 0.8em;
    letter-spacing: 0.1em;
    font-weight: 300;
    color: #76747a;
    -webkit-font-smoothing: subpixel-antialiased;
    font-smoothing: subpixel-antialiased;
}

#container p strong {
    color: #b3abc5;
    font-size: 5em;
}

#container p span {
    font-size: 0.75em;
    padding: 0 2px;
}

#canvas {
    top: 0;
    left: 0;
    cursor: none;
}

#stats {
    left: 10px;
    top: 10px;
}

.dg.ac {
    z-index: 100 !important;
}

#container div p strong a {
    color: #999;
    font-size: 15px;
}

body, td, th {
    font-family: Lato, sans-serif;
}

a:active,
a:hover,
a:link,
a:visited {
    text-decoration: none;
}
