/* 强制所有内容换行 */
* {
    text-wrap-mode: wrap !important;
    white-space: normal !important;
}
body{
    background: #141414;
}
/* 头部标题栏样式 */
.header {
    display: flex;
    justify-content:space-between;
    align-items: center;
    padding: 15px 20px;
    min-height: 60px;
    position: relative;
}

.header img{
    width: 20px;
}

.back-button img {
    width: 20px;
    height: 20px;
}

/* 页面标题样式 */
.page-title {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    text-align: center;
}
.spacer {
    width: 20px; /* 与返回按钮宽度一致 */
}

/* 在小屏幕上的调整 */
@media (max-width: 750px) {
    .nav li{
        flex: 0 0 calc(25% - 10px);
    }
    .header {
        padding: 12px 15px;
        min-height: 55px;
    }

    .back-button {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }

    .back-button img {
        width: 18px;
        height: 18px;
    }

    .page-title {
        font-size: 16px;
    }
}


/* 文章详情样式 */
.article-detail {
    padding: 5px;
}

.article-title {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #333;
}

.article-meta {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    color: #999;
    font-size: 14px;
}

.article-meta span {
    margin-right: 15px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.article-content p {
    margin-bottom: 15px;
}

.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    /*display: block;*/
}

/* 图片点击效果 */
.article-image:hover {
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.news{
    padding: 0 10px;
}

.content-section {
    color: #FFFFFF;
    background: #242323;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.content-section img{
    margin: 0 auto;
    max-width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
}

.content-section:last-child {
    margin-bottom: 0;
}
.nav{
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}
.nav li{
    background: url(../images/button4.png);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    justify-content: center;
    color: #fe9900;
    min-width: 60px; /* 最小宽度 */
    width: 100px;
    height: 25px;
    display: flex;
    align-items: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transition: all 0.3s ease;

}
.nav li.active {
    background: url(../images/button4-1.png);
    background-size: 100% 100%;
    color: #ffffff;
}
.link{
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* 统一间隙 */
    padding: 10px 0;
}

.link img{
    width: 35px;
}
.inner-content {
    width: 100%;
    word-wrap: break-word; /* 允许长单词换行 */
    word-break: break-word; /* 在适当的位置断行 */
    overflow-wrap: break-word; /* 现代浏览器的换行属性 */
}
.inner-content h1 {
    font-size: 18px;
    font-weight: bold;
}

.inner-content img {
    max-width: 100%;
    height: auto;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 300px; /* 最大宽度500px */
    aspect-ratio: 16/9; /* 16:9宽高比 */
    border-radius: 10px;
    overflow: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    margin: 0 auto; /* 居中显示 */
}
.no-more{
    margin: 0 auto;
    text-align: center;
}

