body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}
header {
    background-color: #343a40;
    color: #fff;
    padding: 15px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    transition: background-color 0.3s ease;
}
header.scrolled {
    background-color: #212529;
}
header h1 {
    margin: 0;
    font-size: 1.8em;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
nav ul li {
    display: inline;
    margin: 0 15px;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
}
nav ul li a:hover {
    text-decoration: underline;
}
.hero {
    background: url('tnt2.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
    position: relative;
}
.hero h2 {
    font-size: 3em;
    margin: 0;
    animation: fadeIn 2s ease-out;
}
.hero p {
    font-size: 1.5em;
    margin: 10px 0;
    animation: fadeIn 2s ease-out 0.5s;
}
.cta-button {
    background-color: #ff5722;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    animation: fadeIn 2s ease-out 1s;
}
.cta-button:hover {
    background-color: #e64a19;
}
.products {
    padding: 60px 20px;
    text-align: center;
}
.products h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}
.product-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-item.hidden {
    display: none;
}
.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.product-item h3 {
    margin-top: 0;
}
.buy-button {
    background-color: #ff5722;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.buy-button:hover {
    background-color: #e64a19;
}
footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 签到&积分 */
#check-in-button {
    z-index:101;
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: gold;
    color: purple;
    border: 2px solid orange;
    border-radius: 19px;
    cursor: pointer;
}
#points-display {
    z-index:101;
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translate(-50%, -50%);
    color: yellow;
}


/* 提示 */
.prompt-word {
    z-index: 112;
    position: fixed; /* 设置定位方式为固定定位，使得元素相对于浏览器窗口固定位置 */
    top: 20px; /* 距离底部的距离，可以根据需要进行调整 */
    left: 50%; /* 设置元素左边缘距离父元素左边缘的距离为父元素宽度的50%，实现水平居中 */
    transform: translateX(-50%); /* 使用transform属性和translate函数实现水平居中 */
    font-size: 13px; /* 设置字体大小为13像素 */
    font-weight: bold; /* 设置字体加粗 */
    color: #8B658B; /* 字体颜色设置为#色 */
    background-color: #F5F5DC; /* 背景颜色设置为#色 */
    padding: 10px 20px; /* 设置内边距，上下10像素，左右20像素 */
    border-radius: 10px; /* 设置圆角半径为10像素，实现圆角效果 */
    box-shadow: 0 2px 5px rgba(0, 238, 118, 0.8); /* 设置阴影效果，水平偏移0像素，垂直偏移2像素，模糊半径5像素，阴影颜色为X色，透明度1.0 */
    opacity: 0; /* 设置初始透明度为0，元素隐藏 */
    transition: opacity 0.3s ease-in-out; /* 设置过渡效果，改变透明度属性在0.3秒内从0到1，采用ease-in-out缓动函数 */
}
.show {
    opacity: 1; /* 设置透明度为1，显示元素 */
}


/* 背景遮罩 */
.overlay {
    z-index:110;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);

    animation: fadeIn 0.3s ease-in-out;
}

/* 提示框样式 */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 111;
    width: 300px;
    text-align: center;
    animation: zoomIn 0.3s ease-in-out;
}

.popup p {
    font-size: 16px;
    margin: 0;
    color: #333;
}

.popup button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background: #007BFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.popup button:hover {
    background: #0056b3;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.8); }
    to { transform: translate(-50%, -50%) scale(1); }
}