
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /*
    background-color: #f4edd7;
    */
    
    background-image: url(images/bg_min.png);
    background-repeat: repeat-y; 
    background-size: cover; 
    background-attachment: fixed; 
    

}
header {
    display: flex;
    background-color: #333;
    color: white;
    padding: 10px 0 0 0;
    text-align: center;
    justify-content: center;
}
.banner {
    display:block;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height:1340;
}
.banner img {
    display:flex;
    max-width: 100%;
    max-height: 1340px;
    /* 渐进式加载 */
    opacity: 1;
    filter: blur(10px); /* 初始模糊效果 */
    transition: filter 1s ease-in-out, opacity 1s ease-in-out; /* 渐进式清晰动画 */
    /* 设置图片居中 */
    margin: 0 auto;
    /* 设置图片宽度和高度 */
    width: 100%;
    height: 100%;
    /* 设置图片的z-index */
    z-index: -1;
    /* 使图片在容器内居中 */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    object-fit:cover;
}
@media (max-width: 768px) {
    .banner {
        height: 300px; /* 或者根据需要调整 */
    }
}
/* 视频和玩家社区容器 */
.video-and-community {
    display: flex;
    justify-content: space-between; /* 模块之间保持间距 */
    align-items: center; /* 垂直居中对齐 */
    gap: 20px; /* 模块间距 */
    margin: 20px 0;
}

/* 视频模块样式 */
.video-section {
    flex: 0 0 auto; /* 保持固定宽度 */
}

/* 图片模块样式 */
.community-image img {
    height: 270px; /* 设置与视频高度一致 */
    object-fit: cover; /* 保持图片比例，裁剪多余部分 */
    display: block; /* 避免图片默认的 inline 间距 */
    margin: 0 auto; /* 图片居中 */
    border-radius: 8px; /* 可选：添加圆角 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 可选：添加阴影 */
}

/* 玩家社区模块样式 */
.player-community {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 270px; /* 设置与视频模块或图片模块一致的高度 */
    display: flex; /* 使内容垂直居中 */
    flex-direction: column; /* 保持内容垂直排列 */
    justify-content: center; /* 垂直居中对齐内容 */
}
.player-community a {
    text-decoration: none; /* 去掉下划线 */
    color: #0349e0; /* 设置链接颜色 */
    font-size: 1.2em; /* 设置字体大小 */
    margin-bottom: 10px; /* 设置链接之间的间距 */
}
.player-community img {
    height: 22px; /* 设置与文字高度一致 */
    object-fit: cover; /* 保持图片比例，裁剪多余部分 */
    border-radius: 8px; /* 可选：添加圆角 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 可选：添加阴影 */
    /*设置图片行居中*/
    text-align:center;
    padding:0 5px
}
.player-community h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.player-community ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.player-community li {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 8px;
}

/* 主要内容区域 */
.main-content {
    display: block;
    flex-direction: column;
    padding: 20px;
}

/* 目录样式 */
.sidebar {
    float:left;
    position: -webkit-sticky;
    position: sticky;
    background-color: #c1ac85;
    padding: 20px;
    min-height:800px;
    top:0px;/* 确保目录在页面顶部以下60px处固定 */
}
/* 移动端适配 */
@media (max-width: 768px) {
    .sidebar {
        position: static; /* 取消固定定位 */
        width: 100%; /* 改为全宽 */
        min-height: auto; /* 自动高度 */
        padding: 10px;
        background-color: #a18d67; /* 可选：调整颜色增强可读性 */
    }
    .sidebar ul {
        display: flex; /* 横向排列目录项 */
        flex-wrap: wrap;
        gap: 10px;
    }
    .sidebar li::before {
        display: none; /* 移除装饰线 */
    }
}
@font-face {
    font-family: '庞门正道';
    src:url('font/pangmenzhengdao.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
.sidebar h2 {
    margin-top: 0;
    text-align:center;
    font-size: 1.2em;
    font-family: '庞门正道', serif;
}
.sidebar ul {
    list-style: none;
    text-align:center;
    padding: 0;
    margin: 0;
}
.sidebar li {
    margin-bottom: 10px;
    position: relative;
}
.sidebar a {
    display: block;
    padding: 5px 0;
    font-family:;
    color: #31120b;
    text-decoration: none;
    transition: color 0.3s;
}
.sidebar a:hover {
    color: #846c3f;
}
.sidebar li::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -8px;
    width: 4px;
    background: repeating-linear-gradient(
        to top,
        transparent 0px,
        transparent 10px,
        #31120b 10px,
        #31120b 20px
    );
}
/* 移动端折叠菜单 */
@media (max-width: 768px) {
    .sidebar h2 {
        cursor: pointer;
        background: #846c3f;
        padding: 5px;
    }
    .sidebar ul {
        display: none;
        flex-direction: column;
    }
    .sidebar.active ul {
        display: flex;
    }
}

.more, #wanfa a, .no-decoration {
    /*去掉下划线*/
    text-decoration: none;
    /*设置链接颜色*/
    color: #ff8f00;
}
#wanfa h2 {
    display: inline;
}
.memo {
    display: inline;
    font-size:12px;
}
 /* 点击跳转效果 */
 section[id] {
    scroll-margin-top: 60px; /* 避免被固定导航遮挡 */
}

/* 右侧内容 */
/* 内容区域样式 */
.content-wrapper {
    flex-grow: 1;
    padding-left: 20px;
    width:calc(100% - 100px);
}
.content {
    max-width: 800px;
    margin: 0 auto;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .content-wrapper {
        width: 100%; /* 移除侧边栏占位 */
        padding-left: 0; /* 取消左侧间距 */
    }
    .content {
        max-width: 100%; /* 允许内容撑满屏幕 */
        padding: 0 15px; /* 添加左右内边距防止贴边 */
    }
}

.content h2, .content h3 {
    margin-top: 0;
    color: #333;
}
.text-red {
    color:red;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.tab-button {
    background-color: #dbc7a2;
    color: #333;
    border: 0px solid #333;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab-button:hover {
    background-color: #846c3f;
    color: #333;
}

.tab-button.active {
    color:white;
    background-color: #a18d67;
}

.tab-content {
    display: none;
    padding: 20px;
}

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


/*技能列表*/
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.skill-icon {
    width: 32px;
    height: 32px;
    margin-left:20px;
    margin-right:8px;
    vertical-align: middle; /* 确保图标与文本在同一行内居中 */
}
.skill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px; /* 调整宽度以适应两个汉字 */
    height: 24px; /* 增加高度以容纳文字 */
    border-radius: 5px;
    padding: 0; /* 内边距调整 */
    font-size: 14px;
    line-height: normal; /* 确保行高不影响垂直居中 */
    color: white;
    background-color: #ff4d4d; /* 默认颜色 */
}
.skill-item p {
    margin:0;
    line-height: normal;
    display: inline-block; /* 确保 p 标签为 inline-block */
}
.guard{background-color: #0a5a44}
.critical{background-color: #eb6033}
.decay{background-color: #656565}
.fighting_spirit{background-color: #e60013}
.skill_limit{background-color: #935925}

.video-container {
    margin: 20px 0;
}
.video-container iframe {
    width: 100%;
    height: 360px;
    border: none;
}

/*底部轮播图片组*/
/* 修改原有轮播图样式 */
.character-slider {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    width: 100%;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide-group {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    gap: 10px; /* 添加间距 */
    padding: 0 15px; /* 增加两侧留白 */
}

.slide-group img {
    flex: 0 0 auto;
    width: calc(50% - 20px); /* 默认显示两张 */
    max-width: 200px;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .character-slider {
        padding: 0 15px;
    }

    .slide-group {
        min-width: 100vw; /* 确保占满视口 */
        padding: 0 10px;
    }

    .slide-group img {
        width: calc(100% - 20px); /* 移动端单张显示 */
        max-width: none;
    }

    .prev-btn, .next-btn {
        padding: 8px;
        font-size: 18px;
        background-color: rgba(125,98,67,0.8);
    }
}

/* 桌面端大屏优化 */
@media (min-width: 1200px) {
    .slide-group img {
        width: calc(33.33% - 20px); /* 大屏显示三张 */
    }
}

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

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #7d6243;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index:100;
}

.prev-btn {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    left: 10px;
}

.next-btn {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    right: 10px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(161,141,103,0.9);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    fill: white;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: #333;
    color: white;
    margin-top: 20px;
}