/* 天龙八部私服网站样式 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    font-size: 16px;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #e74c3c;
}

/* 英雄区样式 */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/banner.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 150px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 通用区块样式 */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: #e74c3c;
}

/* 游戏特色样式 */
.features-section {
    background-color: #f8f9fa;
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    flex-basis: calc(33.333% - 20px);
    background-color: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #e74c3c;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #34495e;
    padding-left: 10px;
}

.feature-item p {
    color: #7f8c8d;
    line-height: 1.7;
}

/* 服务器样式 */
.servers {
    background-color: white;
}

.server-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.server-item {
    flex-basis: calc(50% - 20px);
    background-color: #f8f9fa;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #e74c3c;
}

.server-item h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.server-item p {
    margin-bottom: 10px;
    color: #555;
}

.server-item .btn {
    margin-top: 20px;
}

/* 资讯样式 */
.news {
    background-color: #f8f9fa;
}

.news-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.news-item {
    flex-basis: calc(33.333% - 20px);
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.news-item h3 {
    margin-bottom: 10px;
    color: #34495e;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-item time {
    color: #7f8c8d;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
    font-style: italic;
}

.news-item p {
    color: #555;
    line-height: 1.6;
}

/* 下载区块样式 */
.download {
    text-align: center;
    background-color: #2c3e50;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231,76,60,0.1) 0%, rgba(52,152,219,0.1) 100%);
}

.download .section-title {
    color: white;
}

.download .section-title::after {
    background-color: #3498db;
}

.download p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.download-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.download-item {
    margin: 15px 20px;
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: scale(1.05);
}

.download-item a {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.download-item a:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 页脚样式 */
footer {
    background-color: #1a252f;
    color: white;
    text-align: center;
    padding: 40px 0;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

footer p {
    margin-bottom: 10px;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .feature-item, .news-item {
        flex-basis: calc(50% - 20px);
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .feature-item, .server-item, .news-item {
        flex-basis: 100%;
    }
    nav ul li {
        margin: 10px 10px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .btn {
        padding: 10px 20px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .feature-item, .server-item, .news-item {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-item, .server-item, .news-item {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动监听效果 */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 打印样式 */
@media print {
    header, nav, .download, footer {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}