/* 多浏览器兼容性 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #0a0e1a 0%, #1a1f35 50%, #0d1321 100%);
    background: -webkit-linear-gradient(top, #0a0e1a 0%, #1a1f35 50%, #0d1321 100%);
    background: -moz-linear-gradient(top, #0a0e1a 0%, #1a1f35 50%, #0d1321 100%);
    background: -o-linear-gradient(top, #0a0e1a 0%, #1a1f35 50%, #0d1321 100%);
    color: #c9c9c9;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    -webkit-transition: color 0.3s ease, background-color 0.3s ease;
    -moz-transition: color 0.3s ease, background-color 0.3s ease;
    -o-transition: color 0.3s ease, background-color 0.3s ease;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: linear-gradient(180deg, rgba(26, 31, 53, 0.95) 0%, rgba(10, 14, 26, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    padding: 15px 0;
}

.header .container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: 'STKaiti', 'KaiTi', serif;
    font-size: 32px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 5px;
}

.nav-menu {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -moz-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    gap: 40px;
}

.nav-menu a {
    color: #c9c9c9;
    text-decoration: none;
    font-size: 20px;
    padding: 5px 15px;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffd700;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #ffd700;
}

.header-right {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.age-restriction {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 16px;
    color: #fff;
    font-weight: bold;
}

.hero-banner {
    position: relative;
    height: 300px;
    background: url('https://neeko-copilot.bytedance.net/api/text2image?prompt=fantasy%20Chinese%20style%20landscape%20mountains%20lake%20mist%20beautiful%20scenery&image_size=landscape_16_9') center/cover no-repeat;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.banner-title {
    background: rgba(26, 26, 46, 0.8);
    padding: 30px 50px;
    border: 2px solid rgba(26, 26, 46, 0.9);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.banner-title h1,
.banner-title h2 {
    font-family: 'STKaiti', 'KaiTi', 'SimHei', serif;
    color: #e0e0e0;
    letter-spacing: 10px;
}

.banner-title h1 {
    font-size: 44px;
    margin-bottom: 15px;
    font-weight: bold;
}

.banner-title h2 {
    font-size: 32px;
    opacity: 0.9;
}

.announcement-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    padding: 12px 0;
}

.announcement-bar .container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
}

.announcement-icon {
    color: #ffd700;
    font-size: 24px;
}

.announcement-text {
    color: #ffd700;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
}

.main-content {
    padding: 40px 0;
}

.content-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    align-items: stretch;
}

.content-row > div {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.content-row .panel,
.content-row .quick-actions {
    flex: 1;
}

.panel {
    background: linear-gradient(180deg, rgba(30, 36, 58, 0.9) 0%, rgba(20, 24, 40, 0.95) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.panel-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 15px 20px;
    background: -webkit-linear-gradient(left, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    background: -moz-linear-gradient(left, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    background: -o-linear-gradient(left, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.panel-header h3 {
    color: #ffd700;
    font-size: 24px;
    font-weight: bold;
    font-family: 'STKaiti', 'KaiTi', serif;
}

.more-link {
    color: #888;
    font-size: 12px;
    text-decoration: none;
}

.news-tabs {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.news-tabs .tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.news-tabs .tab:hover,
.news-tabs .tab.active {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.news-tab-content {
    display: none;
}

.news-tab-content.active {
    display: block;
}

.news-list ul {
    list-style: none;
    padding: 15px;
}

.news-list li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.news-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #ffd700, #ff6b35);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.news-list li:hover {
    padding-left: 15px;
    background: rgba(255, 215, 0, 0.05);
    border-bottom-color: rgba(255, 215, 0, 0.2);
}

.news-list li:hover::before {
    height: 60%;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list a {
    color: #c9c9c9;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    transition: color 0.3s;
}

.news-list a:hover {
    color: #ffd700;
}

.quick-actions {
    background: linear-gradient(180deg, rgba(30, 36, 58, 0.9) 0%, rgba(20, 24, 40, 0.95) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.quick-actions .action-box {
    flex: 1;
}

.quick-actions .action-buttons {
    flex: 1;
}

.action-box {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.action-box h3 {
    color: #ffd700;
    font-size: 20px;
    margin-bottom: 15px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #1a1f35;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid #ffd700;
}

.btn-primary:hover {
    background: transparent;
    color: #ffd700;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 5px;
    color: #ffd700;
    text-decoration: none;
    text-align: center;
    font-size: 18px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '→';
    position: absolute;
    right: 10px;
}

.action-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.carousel-nav {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    gap: 5px;
}

.carousel-nav button {
    width: 30px;
    height: 30px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.carousel-nav button:hover {
    background: rgba(255, 215, 0, 0.3);
}

.event-carousel {
    position: relative;
    padding: 15px;
    min-height: 200px;
}

.event-item {
    display: none;
}

.event-item.active {
    display: block;
}

.event-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.event-info {
    margin-top: 10px;
    text-align: center;
}

.event-info h4 {
    color: #ffd700;
    font-size: 16px;
}

.event-info p {
    color: #888;
    font-size: 12px;
}

.server-info {
    padding: 20px;
    text-align: center;
}

.server-info p {
    color: #ffd700;
    margin: 8px 0;
    font-size: 16px;
    background: rgba(30, 36, 58, 0.8);
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-weight: bold;
}

.server-info .player-notice {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.1);
    font-size: 16px;
    font-weight: bold;
}

.server-info .tip {
    margin-top: 15px;
    padding-top: 15px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    background: transparent;
}

.data-panel {
    margin-bottom: 0;
}

.data-row {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.data-left {
    min-width: 0;
}

.data-right {
    min-width: 0;
}

.guide-panel {
    height: 100%;
}

.guide-list ul {
    list-style: none;
    padding: 15px;
}

.guide-list li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.guide-list li:last-child {
    border-bottom: none;
}

.guide-list a {
    color: #c9c9c9;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    transition: color 0.3s;
}

.guide-list a:hover {
    color: #ffd700;
}

.data-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.data-category {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.data-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: 1px solid rgba(255, 107, 53, 0.5);
    border-radius: 5px;
    padding: 10px 22px;
    min-width: 110px;
    text-align: center;
}

.data-category a:not(.category-title) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(180, 180, 180, 0.8);
    text-decoration: none;
    font-size: 16px;
    background: rgba(60, 60, 60, 0.6);
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-radius: 5px;
    padding: 10px 18px;
    transition: all 0.3s;
}

.data-category a:not(.category-title):hover {
    color: rgba(200, 200, 200, 1);
    background: rgba(80, 80, 80, 0.8);
    border-color: rgba(150, 150, 150, 0.5);
    transform: translateY(-1px);
}

.community-panel {
    margin-bottom: 30px;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px;
}

.community-item {
    text-align: center;
}

.qrcode {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-item p {
    color: #c9c9c9;
    font-size: 14px;
}

.footer {
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    padding: 40px 0 20px;
}

.footer-nav {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #c9c9c9;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #ffd700;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: #888;
    font-size: 16px;
    margin: 5px 0;
}

.age-restriction-footer {
    text-align: center;
    margin-top: 20px;
}

.age-restriction-footer span {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .content-row {
        grid-template-columns: 1fr;
    }
    
    .data-row {
        grid-template-columns: 1fr;
    }
    
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-menu {
        gap: 15px;
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .nav-menu a {
        font-size: 16px;
        padding: 5px 10px;
    }
    
    .hero-banner {
        height: 350px;
    }
    
    .banner-title h1 {
        font-size: 36px;
    }
    
    .banner-title h2 {
        font-size: 24px;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Safari兼容 */
@supports (-webkit-appearance: none) {
    .nav-menu a {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Firefox兼容 */
@-moz-document url-prefix() {
    .article-title,
    .hero-title h1,
    .panel-header h3 {
        font-weight: normal;
    }
}

/* 滚动条样式兼容性 */
::-webkit-scrollbar {
    width: 26px;
    height: 26px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 13px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.6);
    border-radius: 13px;
    border: 4px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.8);
}

/* Firefox滚动条 */
html {
    scrollbar-width: thick;
    scrollbar-color: rgba(255, 215, 0, 0.5) rgba(255, 255, 255, 0.05);
}

body {
    scrollbar-width: thick;
    scrollbar-color: rgba(255, 215, 0, 0.5) rgba(255, 255, 255, 0.05);
}

/* 图片显示兼容性 */
img {
    display: inline-block;
    max-width: 100%;
}

/* 按钮样式兼容性 */
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background: none;
    cursor: pointer;
}