@font-face {
    font-family: 'MinecraftTen-VGORe';
    src: url('../assets/fonts/MinecraftTen-VGORe.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Mojangles';
    src: url('../assets/fonts/mojangles.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #5cb85c;
    --primary-dark: #4cae4c;
    --secondary-color: #337ab7;
    --accent-color: #f0ad4e;
    --danger-color: #d9534f;
    --dark-bg: #2c3e50;
    --light-bg: #ecf0f1;
    --text-color: #333;
    --text-light: #fff;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: none;
}

.page-loader.hidden {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
    animation: none;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    font-size: 120px;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out infinite;
}

.loader-logo img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    transform: none;
    box-shadow: none;
}

.loader-logo img:hover {
    transform: none;
    box-shadow: none;
}

.loader-text {
    margin-bottom: 10px;
    animation: slideUp 0.5s ease-out 0.3s both;
}

.loader-text img {
    max-width: 250px;
    height: auto;
    object-fit: contain;
    transform: none;
    box-shadow: none;
}

.loader-text img:hover {
    transform: none;
    box-shadow: none;
}

.loader-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: slideUp 0.5s ease-out 0.5s both;
}

.loader-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: loading 1.5s ease-out forwards;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loading {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes autoFadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: rgba(76, 91, 158, 1);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: normal;
    text-decoration: none;
    color: inherit;
    font-family: 'Mojangles', 'SimSun', 'STSong', '宋体', sans-serif;
    text-shadow: 2px 2px 0px #333;
    letter-spacing: 1px;
}

.server-name {
    font-family: 'MinecraftTen-VGORe', 'SimSun', 'STSong', '宋体', sans-serif;
    font-size: 1.4rem;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000;
    letter-spacing: 2px;
}

.footer-c {
    font-family: 'Mojangles', 'SimSun', 'STSong', '宋体', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background-color: rgba(76, 91, 158, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 5px 0;
    border-radius: 0 0 4px 4px;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    border-radius: 0;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-login {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-light);
    margin: 4px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(76, 91, 158, 0.95);
        backdrop-filter: blur(10px);
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu a {
        display: block;
        padding: 10px 20px;
        border-radius: 0;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        background-color: rgba(66, 81, 148, 0.95);
        box-shadow: none;
        padding: 0;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 8px 30px;
    }
}

/* 首页Banner */
.hero-banner {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    /*background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);*/
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a2e;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    animation: bgShift 10s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(92, 184, 92, 0.1) 0%, transparent 50%);*/
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(15, 12, 41, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(48, 43, 99, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(36, 36, 62, 0.2) 0%, transparent 50%);
}

@keyframes bgShift {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px, 100px 100px;
    background-position: 0 0, 25px 25px;
    animation: floatUp 20s linear infinite;
    pointer-events: none;
}

.danmaku-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.danmaku-item {
    position: absolute;
    white-space: nowrap;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: danmakuMove linear forwards;
    pointer-events: auto;
    cursor: default;
    z-index: 6;
}

.danmaku-item:hover {
    background: rgba(0, 0, 0, 0.8);
    animation-play-state: paused;
}

@keyframes danmakuMove {
    from {
        transform: translateX(100vw);
    }
    to {
        transform: translateX(-100%);
    }
}

.danmaku-container.hidden {
    display: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100px);
    }
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    padding: 3rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.title-main {
    font-family: 'Orbitron', 'Montserrat', 'Arial', sans-serif;
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
    text-shadow:
        0 0 10px rgba(102, 126, 234, 0.8),
        0 0 20px rgba(102, 126, 234, 0.6),
        0 0 40px rgba(102, 126, 234, 0.4),
        0 0 80px rgba(102, 126, 234, 0.2);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(102, 126, 234, 0.8),
            0 0 20px rgba(102, 126, 234, 0.6),
            0 0 40px rgba(102, 126, 234, 0.4),
            0 0 80px rgba(102, 126, 234, 0.2);
    }
    50% {
        text-shadow:
            0 0 20px rgba(118, 75, 162, 0.8),
            0 0 40px rgba(118, 75, 162, 0.6),
            0 0 80px rgba(118, 75, 162, 0.4),
            0 0 120px rgba(118, 75, 162, 0.2);
    }
}

.title-cn {
    font-family: 'KaiTi', 'STKaiti', '楷体', 'Microsoft YaHei', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
    text-shadow:
        0 0 10px rgba(102, 126, 234, 0.8),
        0 0 20px rgba(102, 126, 234, 0.6),
        0 0 40px rgba(102, 126, 234, 0.4),
        0 0 80px rgba(102, 126, 234, 0.2);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.hero-content.animate-in .hero-actions {
    opacity: 1;
    transform: translateY(0);
}

/* 公共Banner类（用于所有子页面，不包括首页） */
.common-banner {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* 子页面Banner（独立样式） */
.subpage-banner {
    min-height: 260px;
    /*青色渐变*/

    background:
        linear-gradient(135deg, rgba(92, 184, 184, 0.8) 0%, rgba(69, 51, 183, 0.8) 100%);       
}

.subpage-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(92, 184, 92, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(51, 122, 183, 0.08) 0%, transparent 50%);
    animation: subpageBgShift 8s ease-in-out infinite;
}

@keyframes subpageBgShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.subpage-banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: 0 0;
    animation: subpageParticleFloat 25s linear infinite;
    pointer-events: none;
}

@keyframes subpageParticleFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-60px);
    }
}

.subpage-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 260px;
}

.subpage-banner-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.subpage-banner-title {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subpage-banner-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    letter-spacing: 1px;
}

/* ========== 论坛页Banner ========== */
.forum-banner {
    background: linear-gradient(135deg, #1a2f4a 0%, #2d3d6b 30%, #3d4b7e 60%, #4a5a8e 100%);
}

.announcement-bar {
    background: #eb533f;
    color: rgb(255, 255, 255);
    padding: 12px 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s ease;
}

.announcement-bar.hidden {
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

.announcement-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.announcement-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('../assets/img/announcement.webp');
}

.announcement-text-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.announcement-text {
    white-space: nowrap;
    animation: scrollText 30s linear infinite;
    display: inline-block;
}

.announcement-text:hover {
    animation-play-state: paused;
}

.announcement-text a.announcement-link {
    color: #FFEAA7;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.announcement-text a.announcement-link:hover {
    color: #fff;
}

.announcement-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.announcement-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}



@keyframes scrollText {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    3% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.forum-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(100, 149, 237, 0.08) 0%, transparent 20%, rgba(147, 112, 219, 0.08) 40%, transparent 60%, rgba(100, 149, 237, 0.08) 80%, transparent 100%),
        radial-gradient(circle at 20% 30%, rgba(120, 160, 240, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(160, 130, 220, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(140, 150, 230, 0.08) 0%, transparent 60%),
        url('../assets/img/7.webp');
    background-position: 0% 0%, 20% 30%, 80% 70%, 50% 50%, center;
    background-size: cover, cover, cover, cover, cover;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    animation: forumGameWorld 12s ease-in-out infinite;
}

@keyframes forumGameWorld {
    0%, 100% {
        background-position: 0% 0%, 20% 30%, 80% 70%, 50% 50%, center;
        opacity: 1;
    }
    50% {
        background-position: 100% 0%, 25% 35%, 75% 65%, 50% 50%, center;
        opacity: 0.8;
    }
}

.forum-banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(140, 180, 240, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 180, 240, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: forumGridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes forumGridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(40px);
    }
}

.forum-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}

.forum-banner-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.forum-banner-title {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    color: #ffffff;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2);
}

.forum-banner-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(200, 210, 255, 0.95);
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* ========== 状态页Banner ========== */
.status-banner {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 30%, #0f3460 60%, #16213e 100%);
}

.status-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 0%, transparent 50%, rgba(0, 255, 136, 0.03) 100%),
        radial-gradient(circle at 30% 50%, rgba(0, 255, 136, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 40%),
        url('../assets/img/1.webp');
    background-position: 0% 0%, 30% 50%, 70% 50%, center;
    background-size: cover, cover, cover, cover;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
    animation: statusBgScan 8s linear infinite;
}

@keyframes statusBgScan {
    0% {
        background-position: 0% 0%, 30% 50%, 70% 50%, center;
    }
    100% {
        background-position: 200% 0%, 30% 50%, 70% 50%, center;
    }
}

.status-banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: statusGridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes statusGridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

.status-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}

.status-banner-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.status-banner-title {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #8DF7EF;
    text-shadow:
        0 0 10px rgba(141, 247, 239, 0.5),
        0 0 20px rgba(141, 247, 239, 0.3),
        0 0 40px rgba(141, 247, 239, 0.2);
    letter-spacing: 2px;
}

.status-banner-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #8DF7EF;
    font-weight: 400;
    letter-spacing: 2px;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* ========== 日志页Banner ========== */
.logs-banner {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #337ab7 0%, #286090 30%, #204d74 60%);
    overflow: hidden;
}

.logs-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 50%, rgba(155, 89, 182, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 50%, rgba(142, 68, 173, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, rgba(155, 89, 182, 0.1) 0%, transparent 50%);
    animation: logsBgWave 10s ease-in-out infinite;
}

@keyframes logsBgWave {
    0%, 100% {
        transform: translateY(0) scaleY(1);
    }
    50% {
        transform: translateY(-20px) scaleY(1.05);
    }
}

.logs-banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: logsParticleRise 20s linear infinite;
    pointer-events: none;
}

@keyframes logsParticleRise {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

.logs-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}

.logs-banner-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.logs-banner-title {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(142, 68, 173, 0.6);
}

.logs-banner-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 1px;
}

/* 子页面Hero区域 */
.page-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    overflow: hidden;
}

.page-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
    animation: bgShift 10s ease-in-out infinite;
}

.page-hero .hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px, 100px 100px;
    background-position: 0 0, 25px 25px;
    animation: floatUp 20s linear infinite;
    pointer-events: none;
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 2.2s, transform 0.8s ease-out 2.2s;
}

.page-hero .hero-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.page-hero .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-hero .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 用户资料页面统计区域 */
.user-stats-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.stat-box-small {
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    min-width: 100px;
}

.stat-box-small .stat-value {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-box-small .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #5cb85c, #4cae4c);
    color: var(--text-light);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4cae4c, #5cb85c);
    transform: translateY(-3px) scale(1.02);
    color: #e2e2e2;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(92, 184, 92, 0.3);
}

.btn-outline:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(92, 184, 92, 0.2);
}


.section-dark .btn-outline {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    background-color: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.section-dark .btn-outline:hover {
    background: linear-gradient(135deg, var(--text-light), rgba(255, 255, 255, 0.9));
    color: var(--dark-bg);
    border-color: var(--text-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.section-dark .btn-outline:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

/* 帖子内容样式 */
.post-content,
.post-content-full {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

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

}

.section-dark {
    background-color: #395372;
    color: var(--text-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 服务器简介 */
.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.cta-text {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.6;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.qq-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.contact-label {
    font-weight: 600;
    color: var(--text-color);
}

.contact-value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--secondary-color);
    background: rgba(51, 122, 183, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.about-image {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.placeholder-image {
    width: 100%;
    max-width: 400px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 20px;
}

.placeholder-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 服务器简介右侧视频卡片 */
.about-image .video-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.about-image .video-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.about-image .video-card-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.about-image .video-card-icon {
    font-size: 24px;
    margin-right: 10px;
}

.about-image .video-card-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.about-image .video-card-body {
    padding: 20px;
}

.about-image .video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
}

.about-image .video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    pointer-events: none;
    z-index: 1;
}

.about-image .video-container iframe {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    z-index: 2;
}

.about-image .video-card-desc {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 8px;
}

/* 服务器地址卡片 */
.server-address-card {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 16px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(92, 184, 92, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 25px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.server-address-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5cb85c 0%, #4cae4c 50%, #5cb85c 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.server-address-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(145deg, rgba(92, 184, 92, 0.2), rgba(0, 0, 0, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% {
        background-position: -200% 0;
    }
    50% {
        background-position: 200% 0;
    }
}

.server-address-card:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(92, 184, 92, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.address-label {
    color: #5cb85c;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.address-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, #5cb85c, transparent);
}

.address-row {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.address-value {
    background: linear-gradient(145deg, #0d0d0d 0%, #1a1a1a 100%);
    color: #5cb85c;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.5px;
    padding: 16px 22px;
    border-radius: 10px;
    border: 2px solid #2d2d2d;
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 0;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.address-value:hover {
    border-color: #3d5d3d;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(92, 184, 92, 0.1);
}

.address-value::before {
    content: '$ ';
    color: #5cb85c;
    font-weight: 700;
    margin-right: 6px;
    opacity: 0.8;
}

.address-value::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #5cb85c 0%, #4cae4c 100%);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 0 10px rgba(92, 184, 92, 0.3);
}

.copy-btn {
    background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    min-width: auto;
    box-shadow:
        0 4px 12px rgba(92, 184, 92, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #6bc86b 0%, #5cb85c 100%);
    transform: translateY(-3px);
    box-shadow:
        0 8px 20px rgba(92, 184, 92, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.copy-btn:active {
    transform: translateY(-1px);
    box-shadow:
        0 2px 8px rgba(92, 184, 92, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
}

.copy-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.copy-btn:hover .copy-icon {
    transform: scale(1.2);
}

.copy-text {
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* 服务器信息卡片 */
.server-info-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #3d3d3d;
    backdrop-filter: blur(10px);
}

.server-info-card .info-row {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease;
}

.server-info-card .info-row:hover {
    background-color: rgba(92, 184, 92, 0.05);
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px;
}

.server-info-card .info-row:last-child {
    border-bottom: none;
}

.server-info-card .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-info-card .info-label {
    color: #a0a0a0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.server-info-card .info-value {
    color: #f0f0f0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.server-info-card .info-recommend {
    color: #5cb85c;
    font-size: 0.75rem;
    margin-left: 5px;
    background: rgba(92, 184, 92, 0.2);
    padding: 2px 5px;
    border-radius: 3px;
}

/* QQ 群链接样式 */
.server-info-card .qq-link {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.server-info-card .qq-link:hover {
    color: #5cb85c;
    text-shadow: 0 0 10px rgba(92, 184, 92, 0.2);
}

/* Tooltip 提示样式 */
.tooltip-text {
    position: relative;
    cursor: help;
    border-bottom: 1px dashed #5cb85c;
    transition: all 0.2s ease;
}

.tooltip-text:hover {
    color: #5cb85c;
    border-bottom-color: #5cb85c;
}

.tooltip-text::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    min-width: max-content;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.tooltip-text:hover::before,
.tooltip-text:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tooltip-text:hover::after {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .section-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        align-items: center;
        width: 100%;
    }

    .about-image .video-card {
        max-width: 100%;
        border-radius: 12px;
    }

    .about-image .video-card-header {
        padding: 14px 18px;
    }

    .about-image .video-card-icon {
        font-size: 20px;
        margin-right: 8px;
    }

    .about-image .video-card-title {
        font-size: 16px;
    }

    .about-image .video-card-body {
        padding: 16px;
    }

    .about-image .video-container {
        border-radius: 10px;
    }

    .about-image .video-card-desc {
        font-size: 12px;
        padding: 10px;
    }

    .server-address-card {
        padding: 30px 20px;
        gap: 15px;
        max-width: 100%;
    }

    .address-label {
        font-size: 1.2rem;
    }

    .address-row {
        flex-direction: column;
        gap: 15px;
    }

    .address-value {
        font-size: 1.2rem;
        padding: 14px 20px;
        width: 100%;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* 特色玩法 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    justify-items: center;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    position: relative;
}

.feature-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.section-dark .feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-dark .feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.section-dark .feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 游戏模式图标 */
.feature-icon.survival {
    background-image: url('../assets/img/survival.webp');
}

.feature-icon.structure {
    background-image: url('../assets/img/structure.webp');
}

.feature-icon.party {
    background-image: url('../assets/img/party.webp');
}

.feature-icon.space {
    background-image: url('../assets/img/space.webp');
}

.feature-icon.rpg {
    background-image: url('../assets/img/rpg.webp');
}

.feature-icon.game {
    background-image: url('../assets/img/game.webp');
}

.feature-icon.more {
    background-image: url('../assets/img/more.webp');
}

/* 服务器概况图标 */
.feature-icon.internet {
    background-image: url('../assets/img/Internet.webp');
}

.feature-icon.server {
    background-image: url('../assets/img/server.webp');
}

.feature-icon.system {
    background-image: url('../assets/img/system.webp');
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-desc {
    color: #666;
    font-size: 0.95rem;
}

.section-dark .feature-title {
    color: var(--text-color);
}

.section-dark .feature-desc {
    color: #666;
}

.section-dark .feature-card {
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* 图片画廊样式 */
.gallery-container {
    position: relative;
    margin: 50px auto;
    padding: 0 20px;
    max-width: 2000px;
    width: 100%;
}

.container .gallery-container {
    max-width: 2000px;
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
}

.gallery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0);
}

.gallery-track {
    display: flex;
    height: 100%;
    animation: scroll linear infinite;
    animation-duration: 70s;
}

.gallery-item {
    flex: 0 0 300px;
    height: 200px;
    margin: 0 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.7;
}

/* 图片覆盖层 */
.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
    visibility: visible;
}

/* 图片描述 */
.gallery-item-description {
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-description {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 滚动动画 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-4620px);
    }
}

/* 暂停滚动动画 */
.gallery-track.paused {
    animation-play-state: paused;
}

/* 图片查看器 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-viewer.show {
    opacity: 1;
    visibility: visible;
}

.image-viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.image-viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.image-viewer-close:hover {
    transform: scale(1.2);
}

.image-viewer-info {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gallery-row {
        height: 150px;
    }
    
    .gallery-item {
        flex: 0 0 150px;
        margin: 0 8px;
    }
    
    .gallery-row-1 .gallery-track {
        animation-duration: 45s;
    }
    
    .gallery-row-2 .gallery-track {
        animation-duration: 50s;
    }
    
    .image-viewer-content {
        max-width: 95%;
        max-height: 80%;
    }
}

.section-dark .feature-card:hover {
    background: white;
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 服务器规则 */
.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.rule-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.rule-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.rule-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.rule-desc {
    color: #666;
}

/* 公告列表 */
.announcement-list {
    max-width: 800px;
    margin: 0 auto;
}

.announcement-item {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.announcement-badge {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
}

.announcement-badge.important {
    background-color: var(--danger-color);
}

.announcement-badge.event {
    background-color: var(--accent-color);
}

.announcement-badge.update {
    background-color: var(--secondary-color);
}

.announcement-content {
    flex: 1;
}

.announcement-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.announcement-desc {
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.announcement-date {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* 服务器团队 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.team-member:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.member-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
}

.team-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.member-role {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.member-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.member-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.member-link {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.member-link:hover {
    color: var(--text-light);
    background: var(--primary-dark);
}

/* 页脚 */
.footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #4c5b9e;
        padding: 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-menu.active {
        display: flex;
        max-height: 400px;
        opacity: 1;
        transform: translateY(0);
        padding: 20px;
    }

    .nav-menu li {
        margin: 8px 0;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-menu.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-content {
        grid-template-columns: 1fr;
    }

    .announcement-item {
        flex-direction: column;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    padding: 0 8px;
    pointer-events: none;
    font-size: 1rem;
    z-index: 1;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group select:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:not(:placeholder-shown) + label {
    top: -8px;
    left: 8px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    position: relative;
    z-index: 2;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.05);
}

/* 表单验证状态 */
.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group .error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.form-group.error .error-message {
    opacity: 1;
    transform: translateY(0);
}

/* 文本域特殊处理 */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 8px;
}

/* 深色模式表单样式 */
.section-dark .form-group label {
    background: var(--dark-bg);
    color: var(--text-light);
}

.section-dark .form-group input,
.section-dark .form-group textarea,
.section-dark .form-group select {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.section-dark .form-group input:focus,
.section-dark .form-group textarea:focus,
.section-dark .form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.2);
}

.section-dark .form-group input:focus + label,
.section-dark .form-group textarea:focus + label,
.section-dark .form-group select:focus + label,
.section-dark .form-group input:not(:placeholder-shown) + label,
.section-dark .form-group textarea:not(:placeholder-shown) + label,
.section-dark .form-group select:not(:placeholder-shown) + label {
    background: var(--dark-bg);
    color: var(--primary-color);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-badge.online {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.offline {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.loading {
    background-color: #fff3cd;
    color: #856404;
}

/* 卡片容器 */
.card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 1.5rem;
}

.card-body {
    padding: 0;
}

/* 论坛帖子样式 */
.forum-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.forum-main {
    flex: 1;
    min-width: 0;
}

.forum-sidebar {
    flex-shrink: 0;
    width: 280px;
}

.forum-post {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.forum-sidebar .forum-post {
    padding: 15px;
}

.forum-post:last-child {
    border-bottom: none;
}

/* 响应式设计 - 论坛布局 */
@media (max-width: 1024px) {
    .forum-layout {
        flex-direction: column-reverse;
    }

    .forum-sidebar {
        width: 100%;
        order: -1;
    }

    .forum-sidebar .card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .forum-layout {
        gap: 15px;
    }

    .forum-sidebar .forum-post h3 {
        font-size: 0.95rem;
    }

    .forum-sidebar .forum-post .post-meta {
        font-size: 0.75rem;
    }

    .forum-sidebar .forum-post .post-preview {
        font-size: 0.8rem;
    }
}

.forum-post h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.forum-sidebar .forum-post h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.forum-post h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forum-post h3 a:hover {
    color: var(--primary-color);
}

.forum-post .post-category {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 12px;
    color: white;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.forum-post .post-category::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.forum-post .post-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.forum-post .post-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.forum-sidebar .forum-post .post-meta {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.forum-post .post-preview {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.forum-post .post-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* 小按钮 */
.btn-sm {
    padding: 5px 15px;
    font-size: 0.85rem;
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--text-light);
}

.btn-danger:hover {
    background-color: #c9302c;
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tab {
    padding: 10px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.tab:hover {
    color: var(--primary-color);
    background: rgba(92, 184, 92, 0.08);
}

.tab.active {
    color: white;
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(92, 184, 92, 0.3);
}

.tab.active::after {
    display: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 消息提示 */
.message {
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 400px;
    text-align: center;
}

@keyframes messagePopup {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes messageFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 模态框 */
/* Markdown 渲染样式 */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: var(--text-color);
}

.post-content h1 {
    font-size: 2em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.3em;
}

.post-content h2 {
    font-size: 1.5em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3em;
}

.post-content h3 {
    font-size: 1.25em;
}

.post-content h4 {
    font-size: 1.1em;
}

.post-content h5 {
    font-size: 1em;
}

.post-content h6 {
    font-size: 0.9em;
    color: #666;
}

.post-content p {
    margin-bottom: 1em;
    line-height: 1.8;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.post-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.post-content blockquote {
    margin: 1em 0;
    padding: 0.5em 1em;
    border-left: 4px solid var(--primary-color);
    background-color: rgba(92, 184, 92, 0.1);
    color: #555;
}

.post-content code {
    font-family: 'Courier New', monospace;
    background-color: rgba(51, 122, 183, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.post-content pre,
.reply-content pre {
    background-color: #2d2d2d;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 1em;
    overflow-x: auto;
    margin: 1em 0;
    position: relative;
}

.post-content pre code,
.reply-content pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
    color: #e6e6e6;
}

.post-content pre .copy-btn,
.reply-content pre .copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-content pre .copy-btn:hover,
.reply-content pre .copy-btn:hover {
    background-color: #555;
}

.post-content pre .copy-btn.copied,
.reply-content pre .copy-btn.copied {
    background-color: #5cb85c;
}

.post-content pre .copy-btn.copied::after,
.reply-content pre .copy-btn.copied::after {
    content: '已复制!';
    position: absolute;
    top: -25px;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
}

.post-content pre .copy-btn.copied::before,
.reply-content pre .copy-btn.copied::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 10px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.post-content table th,
.post-content table td {
    border: 1px solid var(--border-color);
    padding: 0.5em 1em;
    text-align: left;
}

.post-content table th {
    background-color: rgba(92, 184, 92, 0.1);
    font-weight: 600;
    color: var(--text-color);
}

.post-content table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1em 0;
}

.post-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 2em 0;
}

.post-content strong {
    font-weight: 600;
    color: var(--text-color);
}

.post-content em {
    font-style: italic;
}

.post-content del {
    text-decoration: line-through;
    color: #999;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: var(--text-color);
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

/* Toast提示样式 */
.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #e86762;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 60px rgba(162, 146, 75, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 60px rgba(92, 184, 92, 0.2);
}

.toast-error {
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 60px rgba(217, 83, 79, 0.2);
}

.toast-icon {
    font-size: 1.3rem;
    animation: toastIconBounce 0.5s ease;
}

@keyframes toastIconBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.toast-message {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .toast {
        top: 80px;
        left: 20px;
        right: 20px;
        transform: translateY(-20px);
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .toast.show {
        transform: translateY(0);
    }

    .toast-message {
        white-space: normal;
    }
}

/* 元素进入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* 延迟动画类 */
.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

.fade-in-delay-4 {
    transition-delay: 0.4s;
}

.fade-in-delay-5 {
    transition-delay: 0.5s;
}

.fade-in-delay-6 {
    transition-delay: 0.6s;
}

/* 增强的卡片hover动画 */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Hero区域动画增强 */
.hero-title {
    animation: heroTitleIn 1s ease-out;
}

.hero-subtitle {
    animation: heroSubtitleIn 1s ease-out 0.3s both;
}

.hero-stats {
    animation: heroStatsIn 1s ease-out 0.5s both;
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSubtitleIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroStatsIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮动画增强 */
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

/* 导航栏动画 */
.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Section标题动画 */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 2px;
    animation: titleLineExpand 0.6s ease-out 0.3s both;
}

@keyframes titleLineExpand {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

/* 社交图标动画 */
.social-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    transform: translateY(-5px) rotate(360deg) scale(1.1);
    color: var(--primary-color);
}

/* 卡片组件动画 */
.card {
    transition: box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 列表项动画 */
ul li {
    transition: all 0.3s ease;
}

ul li:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* 链接动画 */
a {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: inline-block;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    text-decoration: none;
}

a:hover::after {
    width: 100%;
    
}

a:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* 图片动画 */
img {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 表格行动画 */
tr {
    transition: all 0.3s ease;
}

tr:hover {
    background-color: rgba(92, 184, 92, 0.05);
    transform: translateX(5px);
}

/* 按钮组动画 */
.btn-group .btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-group .btn:hover {
    transform: translateY(-2px);
    z-index: 1;
}

/* 标签动画 */
.tag {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tag:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 加载动画增强 */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 加载状态文本 */
.loading {
    /* 只保留文本样式，移除旋转动画 */
}

/* 淡入动画类 */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滑动动画类 */
.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 缩放动画类 */
.scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 弹跳动画类 */
.bounce-in {
    animation: bounceIn 0.6s ease-out forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 页面切换动画 */
.page-transition {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择文本样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* 通知系统样式 */
.notification-item {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateX(-20px) translateY(10px);
    animation: notificationSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
    overflow: hidden;
}

.notification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.notification-item:hover::before {
    left: 100%;
}

.notification-item:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.notification-item.unread {
    animation: notificationSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, pulse 2s infinite;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6ebff 100%);
}

.notification-item.read {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* 通知系统分页样式 */
#notification-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

#notification-pagination button {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 14px;
}

#notification-pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.3);
}

#notification-pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: bold;
}

#notification-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#notification-pagination .page-info {
    font-size: 14px;
    color: #666;
    margin-left: 15px;
}

/* 标记为已读按钮动画 */
.notification-item button {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification-item button:hover {
    transform: translateY(-2px) scale(1.05);
}

.notification-item button:active {
    transform: translateY(0) scale(0.95);
}

/* 通知时间动画 */
.notification-time {
    transition: all 0.3s ease;
}

.notification-item:hover .notification-time {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* 通知标题动画 */
.notification-title {
    transition: all 0.3s ease;
}

.notification-item:hover .notification-title {
    color: var(--primary-color);
}

/* 通知内容动画 */
.notification-content {
    transition: all 0.3s ease;
}

.notification-item:hover .notification-content {
    color: #333;
    line-height: 1.7;
}

