/* 武侠风格导航页样式 */
/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "Microsoft Yahei", "SimSun", "STKaiti", "华文楷体", sans-serif;
    background-color: #0a0a0a;
    color: #e4dcc9;
    overflow-x: hidden;
}

body {
    background-image: url('../img/tback.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}

/* 背景遮罩层 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(20, 15, 10, 0.65) 100%);
    z-index: -1;
}

/* 前景层叠效果 */
.parallax-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.layer-back {
    background-image: url('../img/back.jpg');
    opacity: 0.3;
    animation: parallax-float 30s ease-in-out infinite;
}

.layer-mid {
    background-image: url('../img/midground.png');
    opacity: 0.2;
    animation: parallax-float 20s ease-in-out infinite reverse;
}

.layer-front {
    background-image: url('../img/foreground.png');
    opacity: 0.15;
    animation: parallax-float 15s ease-in-out infinite;
}

@keyframes parallax-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-10px);
    }
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* 头部 */
.header {
    padding: 20px 0 30px;
    text-align: center;
    position: relative;
}

.logo {
    max-width: 350px;
    margin: 0 auto 15px;
}

.logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.site-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 4px;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.site-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.site-subtitle {
    font-size: 1.1rem;
    color: #b8a37c;
    margin-top: 8px;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}



/* 服务器列表 */
.server-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.server-card {
    background: linear-gradient(135deg, rgba(30, 25, 20, 0.9) 0%, rgba(40, 35, 30, 0.85) 100%);
    border: 2px solid #4a3a2a;
    border-radius: 12px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.server-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.server-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
}

.server-card:hover::before {
    opacity: 1;
}

.server-card.hot {
    border-color: #ff3366;
}

.server-card.hot::after {
    content: '热';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff3366;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.server-card.new {
    border-color: #33ccff;
}

.server-card.new::after {
    content: '新';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #33ccff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.server-date {
    font-size: 1rem;
    color: #b8a37c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.server-date::before {
    content: '🗓️';
    margin-right: 8px;
}

.server-title {
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 10px;
    font-weight: bold;
}

.server-desc {
    font-size: 1rem;
    color: #b8a37c;
    margin-bottom: 20px;
    line-height: 1.5;
}

.server-link {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #3a2c1a, #5c4a2e);
    color: #e4dcc9;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.server-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.server-card:hover .server-link::before {
    left: 100%;
}

.server-link:hover {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #3a2c1a;
    transform: scale(1.05);
}



/* 页脚 */
.footer {
    margin-top: 40px;
    padding: 30px 0;
    text-align: center;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.85) 100%);
    border-top: 1px solid #3a2c1a;
    position: relative;
}

.copyright {
    font-size: 0.9rem;
    color: #8a7c6c;
    margin-bottom: 10px;
    line-height: 1.6;
}

.copyright a {
    color: #b8a37c;
    text-decoration: none;
}

.copyright a:hover {
    color: #d4af37;
    text-decoration: underline;
}

.beian {
    font-size: 0.8rem;
    color: #666;
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
    }
    50% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 1), 0 0 30px rgba(212, 175, 55, 0.7);
    }
}

.glow-animation {
    animation: glow 3s ease-in-out infinite;
}

/* 悬浮按钮脉冲动画 */
@keyframes float-btn-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(18, 183, 245, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(18, 183, 245, 0);
    }
}

.float-qq-btn a {
    animation: float-btn-pulse 2s ease-in-out infinite;
}

/* QQ群提示横幅 */
.qq-group-notice {
    background: linear-gradient(135deg, rgba(18, 183, 245, 0.15) 0%, rgba(29, 140, 184, 0.1) 100%);
    border: 1px solid rgba(18, 183, 245, 0.3);
    border-radius: 25px;
    padding: 10px 20px;
    margin: 15px auto;
    text-align: center;
    color: #e4dcc9;
    font-size: 0.95rem;
    max-width: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: notice-pulse 2s ease-in-out infinite;
}

.qq-group-notice i {
    color: #12b7f5;
    font-size: 1.1rem;
    animation: bell-ring 1s ease-in-out infinite;
}

.qq-group-notice strong {
    color: #12b7f5;
    font-size: 1.1rem;
}

@keyframes notice-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(18, 183, 245, 0.3);
    }
    50% {
        box-shadow: 0 0 15px 5px rgba(18, 183, 245, 0.2);
    }
}

@keyframes bell-ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(10deg);
    }
    75% {
        transform: rotate(-10deg);
    }
}

/* 左侧悬浮QQ群按钮 */
.float-qq-btn {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.float-qq-btn a {
    background: linear-gradient(135deg, #12b7f5 0%, #1d8cb8 100%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(18, 183, 245, 0.4);
    position: relative;
    overflow: hidden;
}

.float-qq-btn a::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.float-qq-btn a:hover::before {
    opacity: 1;
}

.float-qq-btn a i {
    font-size: 2rem;
    margin-bottom: 2px;
}

.float-qq-btn a .btn-text {
    font-size: 0.65rem;
    font-weight: bold;
    white-space: nowrap;
}

.float-qq-btn a:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(18, 183, 245, 0.6);
    background: linear-gradient(135deg, #1d8cb8 0%, #12b7f5 100%);
}

.qq-number {
    background: rgba(10, 10, 10, 0.85);
    border: 2px solid #4a3a2a;
    border-radius: 20px;
    padding: 6px 12px;
    color: #12b7f5;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.server-status {
    background: linear-gradient(135deg, rgba(30, 25, 20, 0.9) 0%, rgba(40, 35, 30, 0.85) 100%);
    border: 2px solid #4a3a2a;
    color: #b8a37c;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.server-status i {
    color: #33ccff;
    font-size: 1.2rem;
}

#onlineCount {
    color: #d4af37;
    font-weight: bold;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .server-list {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .server-list {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .logo {
        max-width: 280px;
    }

    .float-qq-btn {
        left: 10px;
        transform: translateY(-50%) scale(0.85);
    }

    .float-qq-btn a {
        width: 60px;
        height: 60px;
    }

    .float-qq-btn a i {
        font-size: 1.6rem;
    }

    .qq-number {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .site-title {
        font-size: 1.6rem;
    }

    .server-card {
        padding: 18px;
    }

    .logo {
        max-width: 220px;
    }

    .float-qq-btn {
        left: 5px;
        transform: translateY(-50%) scale(0.75);
    }

    .qq-group-notice {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
}

/* 新增样式 */
.section-title {
    font-size: 2.2rem;
    color: #d4af37;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.server-tips {
    text-align: center;
    margin-top: 30px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(30, 25, 20, 0.8) 0%, rgba(40, 35, 30, 0.75) 100%);
    border-radius: 10px;
    color: #b8a37c;
    font-size: 0.9rem;
    border: 1px solid #4a3a2a;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.server-tips i {
    color: #d4af37;
    margin-right: 8px;
}

.hot-tag {
    display: inline-block;
    background: #ff3366;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 0 4px;
}

.new-tag {
    display: inline-block;
    background: #33ccff;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 0 4px;
}

/* 浅色主题 */
.light-theme {
    background-image: url('../img/fback.jpg') !important;
    background-color: #f5f1e8 !important;
    color: #333 !important;
}

.light-theme::before {
    background: linear-gradient(135deg, rgba(245, 241, 232, 0.85) 0%, rgba(255, 255, 255, 0.75) 100%) !important;
}

.light-theme .site-title {
    color: #8b7355 !important;
    text-shadow: 0 0 10px rgba(139, 115, 85, 0.5) !important;
}

.light-theme .site-subtitle {
    color: #666 !important;
}

.light-theme .server-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: #c9b8a3 !important;
    color: #444 !important;
}

.light-theme .server-card:hover {
    border-color: #8b7355 !important;
    box-shadow: 0 15px 30px rgba(139, 115, 85, 0.2) !important;
}

.light-theme .server-title {
    color: #8b7355 !important;
}

.light-theme .server-desc {
    color: #666 !important;
}

.light-theme .server-date {
    color: #777 !important;
}

.light-theme .server-link {
    background: linear-gradient(135deg, #8b7355, #a89174) !important;
    color: #fff !important;
}

.light-theme .server-link:hover {
    background: linear-gradient(135deg, #a89174, #8b7355) !important;
}



.light-theme .footer {
    background: rgba(245, 241, 232, 0.9) !important;
    border-top-color: #c9b8a3 !important;
}

.light-theme .copyright {
    color: #666 !important;
}



.light-theme .server-tips {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: #c9b8a3 !important;
    color: #666 !important;
}