/* 基础重置与背景 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Ma Shan Zheng', cursive, sans-serif;
    background: url('bg.jpg') no-repeat center center fixed; /* 如果您有复古背景图，请命名为bg.jpg上传，否则会显示默认颜色 */
    background-size: cover;
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 为了复古感，添加一点噪点或纹理效果（如果没有背景图，可以用这个） */
body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1) 75%, transparent 75%, transparent);
    background-size: 10px 10px;
    z-index: -1;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px #000;
}

header h1 {
    font-size: 3.5em;
    color: #ffcc00;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Ma Shan Zheng', cursive;
}

.subtitle {
    font-size: 1.2em;
    color: #ff6600;
    font-weight: bold;
    margin-top: 10px;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border: 3px solid #8b4513;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    animation: slide 30s infinite;
}

.carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fade 30s infinite;
}

/* 控制每张图片的显示时间 */
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(0); }
}

@keyframes fade {
    0%, 10% { opacity: 1; }
    10.1%, 20% { opacity: 0; }
    20.1%, 30% { opacity: 1; }
    30.1%, 40% { opacity: 0; }
    40.1%, 50% { opacity: 1; }
    50.1%, 60% { opacity: 0; }
    60.1%, 70% { opacity: 1; }
    70.1%, 80% { opacity: 0; }
    80.1%, 90% { opacity: 1; }
    90.1%, 100% { opacity: 0; }
}

/* 为每张图片设置不同的延迟，实现轮播 */
.carousel-image:nth-child(1) { animation-delay: 0s; }
.carousel-image:nth-child(2) { animation-delay: 3s; }
.carousel-image:nth-child(3) { animation-delay: 6s; }
.carousel-image:nth-child(4) { animation-delay: 9s; }
.carousel-image:nth-child(5) { animation-delay: 12s; }
.carousel-image:nth-child(6) { animation-delay: 15s; }
.carousel-image:nth-child(7) { animation-delay: 18s; }
.carousel-image:nth-child(8) { animation-delay: 21s; }
.carousel-image:nth-child(9) { animation-delay: 24s; }
.carousel-image:nth-child(10) { animation-delay: 27s; }

/* 信息卡片布局 */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #555;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #ffcc00;
}

.card h2 {
    color: #ff6600;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.card p {
    margin: 10px 0;
    line-height: 1.6;
    font-size: 1em;
}

.card strong {
    color: #fff;
}

/* 倒计时样式 */
.countdown {
    font-size: 2em;
    font-weight: bold;
    color: #ff0000;
    text-align: center;
    margin: 15px 0;
    text-shadow: 1px 1px 2px #000;
}

.countdown span {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    background: #333;
    border-radius: 5px;
}

/* 下载链接样式 */
.download-link {
    display: block;
    width: 100%;
    padding: 12px;
    background: #8b0000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin: 15px 0;
    transition: background 0.3s;
    border: 1px solid #ffcc00;
}

.download-link:hover {
    background: #a52a2a;
    color: #fff;
}

/* 底部样式 */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #aaa;
    border-top: 1px solid #333;
    margin-top: 30px;
}

footer a {
    color: #66ccff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
   }

   .carousel {
        height: 250px;
   }

   .countdown {
        font-size: 1.5em;
   }
}