/* 基础布局 */
body {
    margin: 0;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    min-width: 1280px;
}

.center {
    width: 1200px;
    margin: 0 auto;
}

.clear {
    clear: both;
}

/* 头部导航 */
#header {
    height: 80px;
    background: rgba(25, 25, 25, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

#logo {
    float: left;
    width: 180px;
    height: 80px;
    margin: 0 50px 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#logo img {
    height: 65px;
    width: auto;
}

#menu {
    float: left;
    width: 870px;
    height: 80px;
}

#menu ul {
    float: right;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

#menu ul li {
    float: left;
    text-align: center;
    font-size: 14px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

#menu ul li:not(:last-child):after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.08);
}

#menu ul li a {
    width: 120px;
    color: rgba(255,255,255,0.7);
    padding: 15px 0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: color 0.3s;
    letter-spacing: 1px;
    font-size: 16px;
}

#menu ul li a:hover {
    color: #fff;
}

/* 移除下划线相关样式 */
#menu ul li a:after {
    display: none;
}

#menu ul li a span {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    margin-top: 3px;
    text-transform: uppercase;
    font-family: Arial;
    letter-spacing: 0.5px;
}

#menu ul li a:hover span {
    color: rgba(255,255,255,0.5);
}

/* 当前页面激活状态 */
#menu ul li a.active {
    color: #fff;
}

#menu ul li a.active span {
    color: rgba(255,255,255,0.5);
}

/* Banner区域 */
#banner {
    height: 550px;
    position: relative;
    background: #000;
    overflow: hidden;
    margin-top: 80px;
}

.loopa-v-box {
    position: absolute;
    width: 1920px;
    height: 550px;
    left: 50%;
    margin-left: -960px;
    top: 0;
}

/* 添加左右切换按钮样式 */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 100px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 鼠标悬浮在banner上时显示按钮 */
#banner:hover .banner-nav {
    opacity: 1;
}

.banner-nav.prev {
    left: 100px;
    background: linear-gradient(to right, rgba(0,0,0,0.5), transparent);
}

.banner-nav.next {
    right: 100px;
    background: linear-gradient(to left, rgba(0,0,0,0.5), transparent);
}

/* 箭头图标样式 */
.banner-nav:before {
    content: '';
    width: 30px;
    height: 30px;
    border-top: 3px solid rgba(255,255,255,0.8);
    border-right: 3px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.banner-nav.prev:before {
    transform: rotate(-135deg);
    margin-left: 22px;
}

.banner-nav.next:before {
    transform: rotate(45deg);
    margin-right: 22px;
}

.banner-nav:hover:before {
    border-color: #fff;
    transform: scale(1.2) rotate(-135deg);  /* prev按钮 */
}

.banner-nav.next:hover:before {
    transform: scale(1.2) rotate(45deg);  /* next按钮 */
}

/* 轮播图切换动画 */
.loopa-v-box {
    transition: opacity 0.5s ease;
}

.loopa-v-box.fade-out {
    opacity: 0;
}

.loopa-v-box.fade-in {
    opacity: 1;
}

/* 活动区域 */
.image-box-activity {
    width: 100%;
    min-width: 1200px;
    position: relative;
    margin-top: -180px;
    z-index: 100;
}

.image-box-activity .content {
    width: 1200px;
    margin: 0 auto;
}

.image-box-activity .head {
    width: 100%;
    height: 280px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 0 20px;
}

/* 活动卡片 */
.activity {
    width: 285px;
    height: 280px;
}

.activity .item {
    width: 285px;
    height: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.activity .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.activity .item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.activity .item:hover img {
    transform: scale(1.05);
}

.activity .item .intro {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.activity .item .title {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
    font-weight: bold;
    position: relative;
    padding-bottom: 8px;
    text-decoration: none;
}

.activity .item .title:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #ffb82c;
}

.activity .item .subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 8px;
    text-decoration: none;
}

/* 移除活动卡片链接的下划线 */
.activity a {
    text-decoration: none;
    color: inherit;
}

/* 或者更具体一点 */
.activity .item a {
    text-decoration: none;
    color: inherit;
}

/* QQ群卡片 */
.person {
    width: 285px;
    height: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.person:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.person-detail {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.logo-style {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.logo-style img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.login-button-new {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.opt-box {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    background: #fff;
}

.opt-box .login {
    display: inline-block;
    width: 240px;
    height: 40px;
    line-height: 40px;
    background: #ffb82c;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.opt-box .login:hover {
    background: #ff9415;
    transform: translateY(-2px);
}

/* 游戏列表区域 */
#GameList2 {
    margin: 20px auto;
    padding: 0 20px;
}

.Title {
    text-align: center;
    margin: 40px 0 20px;
    position: relative;
}

.Title div {
    display: inline-block;
}

.Title span {
    display: inline-block;
    position: relative;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    padding: 0 20px;
}

/* 游戏卡片样式 */
.games {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.games:hover {
    box-shadow: 0 0 24px rgba(0,0,0,0.2);
}

.games .photo {
    width: 100%;
    height: 200px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.games .photo img.tag {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.games .photo ._gameName {
    width: 400px;
    height: 200px;
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px;
}

.games .photo ._gameName img {
    width: 96%;
    height: 95%;
}

.games h4 {
    height: 42px;
    line-height: 42px;
    font-size: 17px;
    margin-bottom: 8px;
    padding-left: 15px;
    border-bottom: 1px dashed #d9d5d6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.games ._text {
    height: 75px;
    line-height: 37px;
    font-size: 14px;
    color: #8a8a8a;
    border-bottom: 1px dashed #d9d5d6;
    padding: 0 10px;
}

/* 按钮组样式 */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 0 10px;
}

._btn_go {
    flex: 1;
    height: 36px;
    line-height: 36px;
    text-align: center;
    color: #fff;
    background: #ffa739;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

._btn_go:hover {
    background: #ff9415;
    transform: translateY(-2px);
}

/* 图标样式 */
.icon_computer {
    width: 41px;
    height: 41px;
    margin-right: 2px;
    vertical-align: top;
    display: inline-block;
    background: url("../image/icon_computer.png") no-repeat left center;
}

.homedown, .homedownB {
    width: 18px;
    height: 18px;
    margin-right: 7px;
    vertical-align: text-top;
    display: inline-block;
}

.homedown.homedown1x1 {
    background: url("../image/homedown.png") no-repeat 0 0;
}

.homedownB.homedownB1x1 {
    background: url("../image/homedown2.png") no-repeat 0 0;
}

.homedownB.homedownB2x1 {
    background: url("../image/homedown2.png") no-repeat -18px 0;
}

/* 页脚样式 */
#footer {
    padding: 20px 0;
    background: #272727;
    color: #a8a8aa;
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
}

#footer p {
    margin: 0;
    padding: 0;
}

#footer .copyright {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

/* 窗样式 */
#downloadFrameContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 9999;
}

#downloadFrameWrapper {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
}

/* 免责申明和新人读页面样式 */
.container {
    width: 1200px;
    margin: 120px auto 40px;  /* 顶部留出导航栏的空间 */
    padding: 0 20px;
}

fieldset {
    border: 1px solid #eaeaea;
    background: rgba(255,255,255,0.98);
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

legend {
    text-align: center;
    color: #333;
    font-size: 20px;
    font-weight: bold;
    padding: 0 20px;
    background: #fff;
}

fieldset p {
    line-height: 2;
    color: #666;
    margin: 10px 0;
    text-align: center;
    letter-spacing: 0.5px;
}

/* 轮播图样式优化 */
.loopa-v-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loopa-v-box img.active {
    opacity: 1;
    z-index: 1;
}

/* 指示器式 */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dots .dot:hover {
    background: rgba(255,255,255,0.8);
}

.banner-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 添加返回首页按钮样式 */
.back-to-home {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-to-home a {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.back-to-home a:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        margin: 80px auto 20px;
        padding: 0 15px;
    }

    fieldset {
        padding: 20px;
    }

    legend {
        font-size: 18px;
    }

    fieldset p {
        font-size: 14px;
    }

    #menu ul li a {
        font-size: 15px;
    }
    
    #menu ul li a span {
        font-size: 11px;
    }
}

/* 添加移动端导航样式 */
@media screen and (max-width: 768px) {
    body {
        min-width: auto;
    }

    .center {
        width: 100%;
        padding: 0 15px;
    }

    #header {
        height: 60px;
    }

    #logo {
        width: 120px;
        height: 60px;
        margin: 0;
    }

    #logo img {
        height: 45px;
    }

    #menu {
        display: none; /* 默认隐藏菜单 */
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: auto;
        background: rgba(25, 25, 25, 0.95);
    }

    #menu.active {
        display: block;
    }

    #menu ul {
        flex-direction: column;
        width: 100%;
    }

    #menu ul li {
        width: 100%;
        height: 50px;
    }

    #menu ul li a {
        width: 100%;
        padding: 10px 0;
    }

    /* 添加汉堡菜单按钮 */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 20px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        margin: 6px 0;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* 移除所有链接的下划线 */
.image-box-activity a {
    text-decoration: none;
    color: inherit;
}

/* 移除卡片内所有可能的下划线 */
.activity .item .intro * {
    text-decoration: none;
}

/* 优化区服列表样式 */
.server-list {
    width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.server-list-title {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 20px;
    color: #333;
    font-weight: bold;
    position: relative;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: inline-block;
}

.server-list-title:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    min-width: 300px;
    height: 2px;
    background: #ffb82c;
}

/* 添加一个包装容器来居中标题 */
.server-list-title-wrapper {
    text-align: center;
    width: 100%;
}

/* 服务器卡片容器 */
.server-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: flex-start;
    width: 100%;
}

/* 服务器卡片样式 */
.server-card {
    width: calc((100% - 40px) / 3);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.server-img {
    position: relative;
    width: 100%;
    height: 180px;
}

.server-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-status {
    position: absolute;
    top: -20px;
    right: -0px;
    width: 80px;
    height: 80px;
    z-index: 2;
}

.server-status img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.server-info {
    padding: 15px;
}

.server-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.server-time, .server-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 按钮组样式 */
.server-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.server-btn {
    flex: 1;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-btn i {
    margin-right: 5px;
}

.server-btn.enter {
    background: #f5f6fa;
    color: #666;
}

.server-btn.download {
    background: #fff4de;
    color: #ffb82c;
}

.server-btn.play {
    background: #ffb82c;
    color: #fff;
}

.server-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 弹窗样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9999;
}

.dialog-content {
    position: relative;
    width: 95%;
    max-width: 1000px;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.dialog-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dialog-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.dialog-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 调整新人必读的样式 */
.dialog-content fieldset p {
    line-height: 2.2;
    margin: 15px 0;
    font-size: 15px;
    white-space: nowrap;
}

/* 针对新人必读的特殊样式 */
.dialog-content fieldset.xrbd p {
    min-width: 900px;
    text-align: center;
}

/* 调整滚动条样式 */
.dialog-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dialog-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.dialog-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
 