/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* 头部样式 */
header {
    background: #000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo {
    width: 100px;
    margin: 0 auto;
}

.logo img {
    width: 100%;
}

nav {
    background: #2c2c2c;
    padding: 10px 0;
    margin-top: 20px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav li {
    margin: 0 20px;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

nav a:hover,
nav a.active {
    background: #FFD700;
    color: #000;
}

/* 轮播图样式 */
.slider {
    width: 100%;
    height: 800px;
    overflow: hidden;
}

.slide-items {
    display: flex;
    width: 300%;
    animation: slide 15s infinite;
}

.slide-items img {
    width: 33.333%;
    height: 800px;
    object-fit: cover;
}

@keyframes slide {
    0% { transform: translateX(0); }
    33% { transform: translateX(-33.333%); }
    66% { transform: translateX(-66.666%); }
    100% { transform: translateX(0); }
}

/* 主体内容样式 */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #8B0000;
    border-bottom: 2px solid #8B0000;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 底部样式 */
footer {
    background: #1a1a1a;
    color: #e0e0e0;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

footer p {
    margin: 5px 0;
    line-height: 1.6;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    border-top: 1px solid #2c2c2c;
    padding-top: 20px;
}

/* 补充首页特有的样式 */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-info {
    padding: 15px;
}

.news-info h3 {
    color: #8B0000;
    margin-bottom: 10px;
}

.news-info p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.news-date {
    color: #999;
    font-size: 14px;
}

.char-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.char-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.char-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.char-item h3 {
    color: #8B0000;
    margin: 10px 0 5px;
}

.char-item p {
    color: #666;
    margin-bottom: 10px;
}

/* 在已有样式后添加壁纸预览区域的样式 */
.wallpaper-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wallpaper-preview .wallpaper-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    height: 180px;
}

.wallpaper-preview .wallpaper-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.wallpaper-preview .wallpaper-item:hover img {
    transform: scale(1.1);
}

.wallpaper-preview .wallpaper-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.wallpaper-preview .wallpaper-item:hover .wallpaper-info {
    opacity: 1;
}

.more-link {
    text-align: center;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background: #2c2c2c;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn:hover {
    background: #FFD700;
    color: #000;
}
 