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

/* 基础样式 */
body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== 布局容器 ========== */
.header-container,
.content-container,
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
}

/* ========== 顶部区域 ========== */
.header {
    height: 150px;
    background-image: url('../images/background001.png');
    background-size: 1920px 150px;
    padding: 40px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.5em;
}

.logo-machina {
    top: 30px;
    width: 450px;
    height: 100px;
    position: absolute;
    left: 30px;
    transition: left 0.3s ease;
}

.logo-machina.active {
    left: 270px;
}
.ellie-img-002 {
    position: absolute;
    width: 300px;
    height: 450px;
    right: -300px;
    bottom: 0px;
    z-index: 99;
}
/* ========== 主要内容区域 ========== */
.main-content {
    flex: 1;
    padding: 40px 0;
    background: url('../images/bg_01.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

/* Teamspeak教程卡片样式 */
.tutorial-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tutorial-card h2, .tutorial-card h3 {
    color: #333;
    margin-bottom: 15px;
}

.tutorial-card p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.tutorial-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.download-link {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 10px;
    text-decoration: none;
    color: #007bff;
    transition: all 0.3s ease;
    font-size: 0.9em;
    display: inline-block;
    margin: 5px 0;
}

.download-link:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

/* 内容区域蒙版 */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.content-container {
    position: relative;
    z-index: 2;
}

/* 内容切换动画 */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

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

/* ========== 侧边栏导航 ========== */
/* 菜单按钮 */
.menu-toggle {
    position: fixed;
    left: 20px;
    top: 50px;
    cursor: pointer;
    z-index: 100;
    padding: 5px;
    transition: all 0.3s ease;
    background-color: transparent;
    border-radius: 5px;
}

.menu-toggle span {
    display: block;
    width: 50px;
    height: 6px;
    background-color: #fff;
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 4px;
}

/* 菜单按钮激活状态 */
.menu-toggle.active {
    left: 100px;
    top: 50px;
    background-color: transparent;
}

.menu-toggle.active span:nth-child(1) {
    background-color: #8f6814;
    transform: rotate(45deg) translate(0px, 12px);
}

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

.menu-toggle.active span:nth-child(3) {
    background-color: #8f6814;
    transform: rotate(-45deg) translate(0px, -12px);
}

/* 侧边栏主体 */
.sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100vh;
    background-image: url('../images/background-menu.png');
    background-size: 250px 960px;
    background-repeat: repeat-y;
    z-index: 99;
    transition: 0.3s;
    padding-top: 80px;
}

.sidebar.active {
    left: 0;
}

/* 装饰图片 */
.ellie-img-001 {
    position: absolute;
    width: 200px;
    height: 480px;
    left: -120px;
    top: 400px;
    background-image: url('../images/Ellie-001.png');
    background-size: 200px 480px;
    background-repeat: no-repeat;
    z-index: 97;
    transition: 0.3s;
    padding-top: 80px;
}

.ellie-img-001.active {
    left: 120px;
}

/* 导航菜单 */
.side-nav {
    margin-top: 60px;
    position: relative;
    z-index: 98;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 99;
}

.side-nav li {
    padding: 15px 25px;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 5px 15px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 99;
}

.side-nav li:hover {
    background-color: #a5700f;
    transform: scale(1.05);
}

.side-nav a {
    color: #8f6814;
    text-decoration: none;
    font-size: 1.5em;
    display: block;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.side-nav li:hover a {
    color: #fff59e;
    font-weight: 500;
}

/* ========== 文章内容区域 ========== */
.article-content {
    position: relative;
}

.btn-back {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background-color: #8f6814;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #a5700f;
    transform: scale(1.05);
}

/* ========== 页面组件 ========== */
/* 文章卡片 */
.post-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* 相册网格 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* 作者头像 */
.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    float: left;
    margin-right: 20px;
}

/* ========== 页脚区域 ========== */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

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

.footer a:hover {
    opacity: 0.8;
}

/* 备案信息 */
.beian-info {
    line-height: 1.6;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.police-beian {
    display: inline-flex;
    align-items: center;
}

.police-beian img {
    height: 1.1em;
    width: auto;
    margin: 0 3px;
    vertical-align: middle;
}

.beian-info a {
    display: inline-flex;
    align-items: center;
    height: 1.6em;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 24px;
    }

    .menu-toggle.active {
        left: 125px;
        transform: translateX(-50%);
    }
}