.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    /* min-width: 750px !important; */
}

/* 右上导航 */
.position,
.position a {
    font-size: 16px;
    line-height: 24px;
    color: black;
    text-align: right;
    margin-top: 20px;
}

.position a {
    margin-top: 0px;
}

.position a:hover {
    border-bottom: 1px solid #bf2c1f;
}

/* 标题-普通 */
.inner-title-box {
    margin-top: 0px;
}

.inner-title {
    background: linear-gradient(to bottom, #7b6148, #a48262);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    vertical-align: top;
    display: inline-block;
    line-height: 40px;
    font-size: 38px;
}

/* 搜索 */
.search-box {
    width: 406px;
    padding: 0 24px;
    height: 40px;
    background-color: white;
    border-radius: 24px;
    overflow: hidden;
    float: right;
}

.search-box.gray {
    background-color: #f9f9f9;
}

.search-box img {
    margin-top: 14px;
}

.search {
    height: 100%;
    width: 230px;
    font-size: 16px;
    vertical-align: top;
    margin-left: 15px;
}

.gray .search {
    background-color: #f9f9f9;
}

.search::-webkit-input-placeholder {
    font-size: 16px;
    color: rgba(25, 25, 25, 0.3);
    line-height: 48px;
}

.search:-moz-placeholder {
    font-size: 16px;
    color: rgba(25, 25, 25, 0.3);
    line-height: 48px;
}

.search::-moz-placeholder {
    font-size: 16px;
    color: rgba(25, 25, 25, 0.3);
    line-height: 48px;
}

.search:-ms-input-placeholder {
    font-size: 16px;
    color: rgba(25, 25, 25, 0.3);
    line-height: 48px;
}

.search::-ms-input-placeholder {
    font-size: 16px;
    color: rgba(25, 25, 25, 0.3);
    line-height: 48px;
}

.search::placeholder {
    font-size: 16px;
    color: rgba(25, 25, 25, 0.3);
    line-height: 48px;
}

.search-btn {
    display: inline-block;
    width: 110px;
    height: 40px;
    background-color: #a98664;
    text-align: center;
    color: white;
    line-height: 40px;
    font-size: 16px;
    cursor: pointer;
    float: right;
    margin-right: -24px;
}

/* 主题 */
.wrap {
    width: 100%;
    position: relative;
    min-height: 100%;
    background-color: #f6f6f6;
}

.inner-kv-box {
    width: 100%;
    height: 900px;
    position: relative;
    background: url(../images/inner-kv.jpg) center center no-repeat;
    background-size: cover;
}

.huojiang {
    position: absolute;
    left: 60px;
    top: 125px;
    z-index: 9;
}

.inner-content-box {
    width: 100%;
    min-height: 1680px;
    background: url(../images/inner-bg.png) center top no-repeat;
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-color: #f6f4f1;
    padding-top: 1px;
    /* margin-top: -178px; */
}

.inner-content {
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding-bottom: 100px;
    margin-top: 140px;
    z-index: 5;
}

.inner-content>div:nth-child(1) {
    margin-bottom: 20px;
}

.inner-left {
    display: inline-block;
    /* background: rgba(255, 255, 255, 0.45); */
    background: #fdfbf6 url('../images/paper-fibers.png');
    box-shadow: #c1c1c1 0px 0px 20px;
    width: 327px;
    position: relative;
}

.inner-left-begin {
    width: 327px;
    height: 90px;
    cursor: pointer;
    position: relative;
    background: url(../images/play.gif) -50px -40px no-repeat;
    background-size: 840px 170px;
    ;
    display: block;
}

.inner-left-begin:hover {
    background: url(../images/play.gif) -466px -40px no-repeat;
    background-size: 840px 170px;
    ;
}

.inner-left-code {
    width: 327px;
    height: 266px;
    /* margin-top: 22px; */
    /* background: url(../images/pc-dl.png) center center no-repeat; */
    background-size: contain;
    position: relative;
    text-align: center;
}

.inner-left-code img {
    margin-top: 52px;
}

.inner-left-code p {
    margin-top: 10px;
    font-size: 18px;
    color: #b0945f;
}

.hero-link {
    margin-top: 22px;
}

.register-link {
    margin-top: 22px;
    display: block;
    width: 244px;
    height: 76px;
    background-image: url('../images/register.png');
    position: relative;
    overflow: hidden;
}

.pay-link {
    margin-top: 12px;
    margin-bottom: 30px;
    display: block;
    width: 244px;
    height: 76px;
    background-image: url('../images/pay.png');
    position: relative;
    overflow: hidden;
}

.register-link,
.pay-link {
    margin-left: 45px;
}

.model-link,
.hero-link {
    display: block;
    width: 327px;
    height: 95px;
    background-color: white;
    text-align: center;
    line-height: 95px;
    color: black;
    font-size: 20px;
    position: relative;
    overflow: hidden;
}

.model-link::before,
.hero-link::before {
    display: inline-block;
    content: "";
    width: 100%;
    height: 100%;
    content: "";
    position: absolute;
    opacity: 0.99;
    left: -100%;
    z-index: 1;
    transition: 0.3s;
    background-color: #b39273;
}

.model-link span:nth-child(2),
.hero-link span:nth-child(2) {
    line-height: 17px;
    margin-left: 18px;
    position: relative;
    z-index: 2;
}

.model-link span:nth-child(1),
.hero-link span:nth-child(1) {
    display: inline-block;
    vertical-align: top;
    margin-top: 36px;
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 2;
}

.hero-link span:nth-child(1) {
    background: url(../images/hero-icon.png) center center no-repeat;
    background-size: contain;
}

.model-link span:nth-child(1) {
    background: url(../images/model-icon.png) center center no-repeat;
    background-size: contain;
}

.model-link:hover span:nth-child(1) {
    background: url(../images/model-icon-hl.png) center center no-repeat;
    background-size: contain;
}

.hero-link:hover span:nth-child(1) {
    background: url(../images/hero-icon-hl.png) center center no-repeat;
    background-size: contain;
}

.model-link:hover::before,
.hero-link:hover::before {
    left: 0;
}

.model-link:hover,
.hero-link:hover {
    color: white;
}

.link-box {
    width: 330px;
    padding: 50px 40px;
    text-align: center;
    min-height: 400px;
    background-color: white;
    margin-top: 22px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row;
    /* 或者 row */
    gap: 50px;
    /* 设置项目之间的间距 */
}

.link-box li {
    display: inline-block;
    position: relative;
    /* margin-bottom: 50px; */
}

.link-box div,
.link-box a {
    width: 100px;
    height: 100px;
    display: block;
    background: url(../images/bottom-icon.png) no-repeat;
    -o-background-size: 587px 200px;
    background-size: 587px 200px;
}

.link-box p {
    font-size: 18px;
    margin-top: 10px;
}

.link-box li.wx img {
    position: absolute;
    left: -47px;
    top: -190px;
    /* opacity: 0;    transition: 0.3s; */
    display: none;
}

.link-box li.wx:hover img {
    display: block;
    /* opacity: 1; */
}

/* .link-box li:nth-child(1),.link-box li:nth-child(2) {  margin-top: 50px;} */
.link-box li:nth-child(1) a {
    background-position: 0px -100px;
    cursor: pointer;
}

.link-box li:nth-child(1):hover a {
    background-position: 0px 0px;
}

.link-box li:nth-child(2) a {
    background-position: -160px -100px;
}

.link-box li:nth-child(2):hover a {
    background-position: -160px -0px;
}

.link-box li:nth-child(3) a {
    background-position: -324px -100px;
}

.link-box li:nth-child(3):hover a {
    background-position: -324px -0px;
}

.link-box li:nth-child(4) a {
    background-position: -487px -100px;
}

.link-box li:nth-child(4):hover a {
    background-position: -487px -0px;
}

/* 右侧内容 */
.inner-list-box {
    display: inline-block;
    width: calc(100% - 355px);
    margin-left: 20px;
    vertical-align: top;
    padding: 40px 50px;
    background: #fdfbf6 url('../images/paper-fibers.png');
    box-shadow: #c1c1c1 0px 0px 20px;
    position: relative;
}

.nav-list {
    width: 100%;
    border-bottom: 1px solid #ebebeb;
    position: relative;
    margin-top: 30px;
    height: 61px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.nav-list.three-nav-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20%;
}

.nav-list li {
    width: 100%;
    text-align: center;
    display: inline-block;
    /* margin-right: 60px; */
    color: #808080;
    line-height: 60px;
    height: 60px;
    font-size: 16px;
    /* font-weight: bold; */
    cursor: pointer;
    position: relative;
}

.nav-list li a {
    display: inline-block;
    width: 100%;
    height: 100%;
    color: #808080;
}

.nav-list li:hover,
.nav-list li.on {
    border-bottom: 2px solid #a88462;
    color: #b39273;
    height: 60px;
}

.nav-list li:hover a,
.nav-list li.on a {
    color: #b39273;
}

.content-list {
    width: 100%;
    display: none;
}

.content-list.on {
    display: block;
}

.content-list li {
    width: 100%;
    position: relative;
}

.content-list.hoverMove li {
    -webkit-transition: 0.3s -webkit-transform;
    transition: 0.3s -webkit-transform;
    -o-transition: 0.3s -o-transform;
    -moz-transition: 0.3s transform, 0.3s -moz-transform;
    transition: 0.3s transform;
    transition: 0.3s transform, 0.3s -webkit-transform, 0.3s -moz-transform, 0.3s -o-transform;
    transition: 0.3s transform, 0.3s -webkit-transform;
}

.content-list.hoverMove li:hover {
    transform: translate(15px, 0);
}

.content-list li a {
    display: block;
    font-size: 16px;
    line-height: 70px;
    color: #444444;
    height: 70px;
    border-bottom: 1px solid rgba(19, 19, 19, 0.05);
    white-space: nowrap;
}

.content-list li a .list-icon {
    display: inline-block;
    content: "";
    width: 6px;
    height: 6px;
    background: url(../images/news-icon.png) center center no-repeat;
    -o-background-size: contain;
    background-size: contain;
    position: absolute;
    left: 0;
    top: 32px;
}

.list-date {
    display: inline-block;
    float: right;
    color: rgba(25, 25, 25, 0.5);
}

.list-text {
    display: inline-block;
    width: calc(100% - 150px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 10px;
}

.content-list li span:nth-child(2) {
    margin-left: 20px;
}

.content-list li:hover span,
.content-list li a:hover {
    color: #a88462;
}

.content-list li a:hover .list-icon {
    background: url(../images/news-icon-hl.png) center center no-repeat;
    background-size: contain;
}

/* 新闻详情 */
.detail-title {
    font-size: 30px;
    font-weight: bold;
    line-height: 60px;
    color: #a98664;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

.detail-content p {
    margin: 1em 0;
}

.indent {
    text-indent: 2em;
}

.center-text {
    text-align: center;
}

.center-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.sub-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #8b4513;
    margin-top: 1.5em;
    border-left: 4px solid #d9c8a2;
    padding-left: 0.6em;
}


.text-blue {
    color: blue;
}

.text-aqua {
    color: aqua;
}

.text-red {
    color: #d9363e;
}

.text-orange {
    color: orange;
}

/* 物理类 */
.text-phy {
    color: #ff4d4f;
}

/* 灵性/法术类 */
.text-mag {
    color: #40a9ff;
}

/* 生命值 */
.text-hp {
    color: #52c41a;
}

/* 速度类 */
.text-spd {
    color: #faad14;
}

/* 特殊关键词如NPC、城镇等 */
.text-key {
    color: #fa541c;
}

.large-text {
    font-size: 18px;
    font-weight: bold;
}

.caption {
    font-size: 0.9em;
    color: #5c432d;
    /* 深棕色，像墨迹一样，柔和古典 */
    text-align: center;
    font-style: italic;
    margin-top: 0.5em;
    margin-bottom: 1em;
    padding: 0.3em 0;
    border-top: 1px dashed #d9c8a2;
    /* 淡金色边线，更贴近羊皮纸风格 */
    border-bottom: 1px dashed #d9c8a2;
}


.attack-physical {
    background: #ff3d3d;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.attack-magical {
    background: #6ec6ff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.battle-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 16px;
    text-align: center;
}

.battle-table th,
.battle-table td {
    border: 1px solid #ccc;
    padding: 10px;
}

.battle-table th a,
.battle-table td a {
    color: #a98664;
}

.battle-table td:first-child{
  white-space: nowrap; /* 避免自动换行 */
}

.faction-content {
    /* background: #fdfbf6 url('../images/paper-fibers.png'); */
    font-family: "KaiTi", "楷体", serif;
    margin: 0;
    padding: 20px;
    color: #333;
}

.faction-section {
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #aaa;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 15px 0;
    color: #fff;
    letter-spacing: 2px;
}

.faction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px;
}

.faction-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center;
    padding: 15px 10px;
    font-size: 25px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px #ddd;
}

.faction-item:hover {
    background: #f4f1ea;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.faction-item a {
    text-decoration: none;
    color: #222;
}

.faction-item a:hover {
    color: #8B0000;
}

/* 各族颜色背景（使用主色及其渐变） */
.races-human .section-title {
    background: linear-gradient(to right, #ad362d, #d65e55);
}

.races-god .section-title {
    background: linear-gradient(to right, #a4803b, #d3b978);
}

.races-demon .section-title {
    background: linear-gradient(to right, #3d599b, #5f7fc5);
}



.detail-date {
    color: #191919;
    opacity: 0.4;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
}

.detail-content {
    font-size: 16px;
    line-height: 26px;
    margin-top: 20px;
}

.detail-content img {
    max-width: 100%;
    margin: 10px auto;
}

.detail-content h2 {
    font-family: "SOURCEHANSANSCN-MEDIUM";
    height: 27px;
    line-height: 25px;
    /* padding-left: 40px; */
    color: #8f8b7d;
    font-size: 18px;
    /* background: url(../images/gen.png) 0 -212px no-repeat; */
    margin: 30px 0;
    text-indent: 0 !important;
}

.detail-content h3 {
    font-family: "SOURCEHANSANSCN-MEDIUM";
    text-align: center;
    margin-bottom: 20px;
    white-space: nowrap;
}

.detail-content h3::before {
    content: '';
    display: inline-block;
    width: 97px;
    height: 7px;
    /* background: url(../images/gen.png) -126px -180px no-repeat; */
    vertical-align: middle;
    margin: -3px 18px 0;
}

.detail-content h3::after {
    content: '';
    display: inline-block;
    width: 97px;
    height: 7px;
    /* background: url(../images/gen.png) -126px -193px no-repeat; */
    vertical-align: middle;
    margin: -3px 18px 0;
}

/* .detail-content tr:nth-child(1) td{  font-weight: bold;} */
.showAll {
    font-size: 0.24rem;
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    padding: 10px 0px;
    display: none;
}

.showAll.on {
    display: block;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination .goto,
.pagination a {
    display: inline-block;
    font-size: 14px;
    color: #bdbcbc;
    padding: 0 14px;
    background-color: #f3f3f3;
    margin: 0 5px;
    line-height: 34px;
    cursor: pointer;
}

.pagination .total-pages {
    font-size: 14px;
    color: #bdbcbc;
    display: inline-block;
    margin: 0 5px;
    /* background-color: #f3f3f3; */
    line-height: 34px;
}

.pagination .page-jump-input {
    height: 34px;
    width: 100px;
}

.pagination .goto:hover,
.pagination a:hover,
.pagination a.current {
    background-color: #a98664;
    color: white;
}

@media screen and (max-width: 1080px) {
    .inner-left {
        display: none;
    }

    .inner-list-box {
        width: 100%;
        margin-left: 0px;
    }
}

@media screen and (min-width: 750px) and (max-width: 1080px) {

    .position,
    .position a {
        margin-right: 20px;
    }

    .inner-content {
        width: calc(100% - 40px);
    }
}

@media screen and (max-width: 750px) {

    .art-overlay,
    .post-image-overlay,
    .video-overlay,
    .tongren-overlay {
        background-color: rgba(0, 0, 0, 0);
    }

    .inner-content>div:nth-child(1) {
        margin-bottom: 00px;
    }

    .position {
        display: none;
    }

    .inner-title {
        font-size: 0.4rem;
        display: block;
        border-bottom: 0.01rem solid #d1d0cd;
        background: linear-gradient(to bottom, #000, #000);
        background-clip: text;
        /* color: black; */
    }

    .inner-title span {
        line-height: 0.8rem;
        border-bottom: 0.02rem solid #a88462;
        display: inline-block;
    }

    .search-box {
        width: 100%;
        padding: 0 0.2rem;
        height: 0.5rem;
        border-radius: 24px;
        overflow: hidden;
        margin-top: 0.5rem;
        float: none;
    }

    .search-box img {
        margin-top: 0.13rem;
        width: 0.25rem;
        vertical-align: top;
    }

    .search::placeholder {
        font-size: 0.24rem;
    }

    .search {
        height: 100%;
        width: 4rem;
        font-size: 0.24rem;
        margin-left: 15px;
    }

    .search-btn {
        display: inline-block;
        width: 1.8rem;
        height: 0.5rem;
        line-height: 0.5rem;
        font-size: 0.24rem;
        margin-right: -0.2rem;
    }

    /* 主题 */
    .inner-kv-box {
        display: none;
    }

    .inner-content-box {
        /* min-height: 23rem; */
        min-height: 100vh;
        background: url(../images/background2.webp) center top no-repeat;
        background-size: cover;
        background-color: #f6f4f1;
        padding-top: 1.2rem;
        margin-top: -0px;
        padding-bottom: 0.8rem;
    }

    .inner-content {
        width: calc(100% - 0.76rem);
        padding-bottom: 0.5rem;
        margin-top: 0.2rem;
    }

    .inner-list-box {
        padding: 0px 0px;
        background: #fdfbf6 url('../images/paper-fibers.png');
    }

    .nav-list {
        height: 0.8rem;
        margin-top: 0.3rem;
    }

    .nav-list li {
        line-height: 0.8rem;
        font-size: 0.24rem;
        height: 0.8rem;
    }

    .nav-list li.on {
        height: 0.8rem;
        border-bottom: 0.02rem solid #a88462;
    }

    .content-list li a {
        line-height: 0.9rem;
        height: 0.9rem;
        font-size: 0.22rem;
    }

    .content-list li a .list-icon {
        top: 0.45rem;
    }

    .list-text {
        width: calc(100% - 1.3rem);
    }

    /* 新闻详情页 */
    .detail-title {
        font-size: 0.28rem;
        line-height: 0.6rem;
        color: #a98664;
    }

    .detail-date {
        font-size: 0.24rem;
        line-height: 0.24rem;
    }

    .detail-content {
        font-size: 0.24rem;
        line-height: 0.4rem;
        margin-top: 0.2rem;
    }

    .detail-content h3::before,
    .detail-content h3::after {
        scale: 0.5;
    }
}