/* 通用样式 */
@import url(reset.css);

/* 顶部导航栏 */
.header {
    background: url(../images/bg/header-bg.jpg) no-repeat center top;
    background-size: cover;
    padding: 20px 0;
    border-bottom: 2px solid #C8102E;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 180px;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-item a {
    font-size: 18px;
    color: #fff;
    font-weight: bold;
    padding: 10px 0;
    position: relative;
}

.nav-item a:hover {
    color: #FFD700;
}

.nav-item a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #C8102E;
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-input {
    width: 200px;
    height: 36px;
    padding: 0 15px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #C8102E;
    color: #fff;
    border-radius: 18px;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFD700;
}

.service-btn {
    background-color: #C8102E;
    padding: 8px 15px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.service-btn:hover {
    background-color: #a00e24;
}

/* 轮播Banner */
.banner {
    height: 500px;
    overflow: hidden;
    position: relative;
}

.banner-slide {
    width: 100%;
    height: 100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-control {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.banner-dot.active {
    background: #FFD700;
    border: 2px solid #C8102E;
}

/* 核心内容区通用样式 */
.main {
    padding: 40px 0;
    background: url(../images/bg/main-bg.jpg) repeat;
}

.section {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title h2 {
    font-size: 28px;
    color: #FFD700;
    text-shadow: 2px 2px 4px #000;
    display: inline-block;
    padding: 0 20px;
    background: #1A1A1A;
}

.section-title::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #C8102E, transparent);
    z-index: -1;
}

/* 游戏特色模块 */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    background: rgba(0,0,0,0.7);
    border: 1px solid #C8102E;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(200,16,46,0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

.feature-item h3 {
    font-size: 20px;
    color: #FFD700;
    margin-bottom: 10px;
}

.feature-item p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

/* 开服信息模块 */
.server-list {
    background: rgba(0,0,0,0.7);
    border: 1px solid #C8102E;
    border-radius: 8px;
    padding: 20px;
}

.server-table {
    width: 100%;
    border-collapse: collapse;
}

.server-table th, .server-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.server-table th {
    background: #C8102E;
    color: #FFD700;
    font-weight: bold;
}

.server-table tr:hover {
    background: rgba(200,16,46,0.2);
}

.server-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-online {
    background: #008000;
    color: #fff;
}

.status-will {
    background: #FF8C00;
    color: #fff;
}

/* 下载中心模块 */
.download-box {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 30px 0;
}

.download-item {
    text-align: center;
}

.download-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.download-item h3 {
    font-size: 20px;
    color: #FFD700;
    margin-bottom: 10px;
}

.download-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to right, #C8102E, #a00e24);
    color: #fff;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(to right, #a00e24, #C8102E);
    box-shadow: 0 5px 15px rgba(200,16,46,0.4);
    transform: translateY(-2px);
}

/* 玩家截图模块 */
.screenshots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.screenshot-item {
    border: 2px solid #333;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    border-color: #FFD700;
    transform: scale(1.02);
}

.screenshot-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* QQ群模块 */
.qq-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 30px 0;
    background: rgba(0,0,0,0.7);
    border: 1px solid #C8102E;
    border-radius: 8px;
}

.qq-qrcode {
    width: 200px;
    height: 200px;
    border: 5px solid #FFD700;
    padding: 5px;
}

.qq-info {
    text-align: center;
}

.qq-info h3 {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
}

.qq-number {
    font-size: 28px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.copy-btn {
    padding: 5px 10px;
    background: #FFD700;
    color: #1A1A1A;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.qq-desc {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

/* 底部样式 */
.footer {
    background: url(../images/bg/footer-bg.jpg) no-repeat center bottom;
    background-size: cover;
    padding: 30px 0;
    border-top: 2px solid #C8102E;
    text-align: center;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-info p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #FFD700;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    color: #999;
    font-size: 12px;
}

/* 全局组件 */
.back-to-top {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 50px;
    height: 50px;
    background: #C8102E;
    color: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.service-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    border: 1px solid #C8102E;
    border-radius: 8px;
    padding: 15px;
    z-index: 998;
}

.service-float img {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
}

.service-float p {
    font-size: 14px;
    color: #FFD700;
    text-align: center;
}

/* 公告滚动 */
.notice-scroll {
    background: #C8102E;
    color: #fff;
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    position: relative;
}

.notice-text {
    position: absolute;
    white-space: nowrap;
    animation: scrollNotice 15s linear infinite;
}

@keyframes scrollNotice {
    0% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

/* 截图放大弹窗 */
.screenshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}