body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    width: 80%;
    max-width: 500px;
}

h1 {
    margin-top: 0;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.position-display {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    font-size: 1.5rem;
}

.position-display p {
    margin: 10px 0;
}

#mouseX, #mouseY {
    font-weight: bold;
    color: #ffcc00;
    font-size: 1.8rem;
}

.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255, 204, 0, 0.5);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
    display: none;
}

body.show-trail .cursor-trail {
    display: block;
}

footer {
    position: fixed; /* 固定定位在底部 */
    bottom: 0;       /* 固定在底部 */
    left: 50%;       /* 水平居中 */
    transform: translateX(-50%); /* 水平居中偏移 */
    width: 100%;     /* 宽度占满整个屏幕 */
    text-align: center; /* 内容居中 */
    background-color: rgba(0, 0, 0, 0.7); /* 添加半透明背景 */
    padding: 10px 0; /* 添加内边距 */
    z-index: 1000;   /* 确保在最上层显示 */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* 元素之间添加间距 */
}

footer p,
footer img,
footer a {
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px;
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
