/* 字体定义 */
@font-face {
    font-family: 'LXGW WenKai Mono GB';
    src: url('../font/LXGWWenKaiMonoGB-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'LXGW WenKai Mono GB', monospace;
    min-height: 100vh;
    overflow-x: hidden;
    color: #333;
}

/* 背景容器 */
.background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.background-slide.active {
    opacity: 1;
}

/* 背景遮罩层 */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* 主容器 */
.main-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 内容区域 */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar-link {
    color: #666;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4A90E2, #5DADE2);
    transition: width 0.3s ease;
}

.navbar-link:hover {
    color: #4A90E2;
}

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

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* 页面标题 */
.page-title {
    text-align: center;
    padding: 4rem 0 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.page-title h1 {
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.page-title h1::before,
.page-title h1::after {
    content: '';
    position: absolute;
    height: 3px;
    width: 80px;
    background: linear-gradient(90deg, #4A90E2, #5DADE2);
    top: 50%;
    transform: translateY(-50%);
}

.page-title h1::before {
    left: -100px;
}

.page-title h1::after {
    right: -100px;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* 页脚 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4A90E2;
}

.footer-separator {
    color: #999;
}

.cdn-info {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .page-title h1 {
        font-size: 2.5rem;
    }

    .page-title h1::before,
    .page-title h1::after {
        width: 50px;
    }

    .page-title h1::before {
        left: -60px;
    }

    .page-title h1::after {
        right: -60px;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 动画定义 */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}