/* 1080 design → 750 rem : 1rem = 144 design-px */
html, body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #5c3a22;
    font-family: "Noto Serif", "Times New Roman", serif;
}

a { text-decoration: none; color: inherit; }
img { display: block; border: 0; max-width: 100%; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
ul, li { margin: 0; padding: 0; list-style: none; }

.wrap {
    width: 7.5rem;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    background: #000;
}

/* ----- header ----- */
.head {
    position: fixed;
    left: 50%;
    top: 0;
    width: 7.5rem;
    height: 1.1rem;
    margin-left: -3.75rem;
    z-index: 320;
    overflow: visible;
}

.head .logo {
    position: absolute;
    left: 0.44rem;
    top: 0.05rem;
    width: 1.41rem;
    height: 0.98rem;
    z-index: 2;
}

.head .logo img { width: 100%; height: 100%; object-fit: contain; }

.menu-btn {
    position: absolute;
    right: 0.33rem;
    top: 0.02rem;
    width: 0.67rem;
    height: 0.72rem;
    background: url("../images/menu-btn.webp") no-repeat center / contain;
    z-index: 320;
}

.menu-box {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
}

.menu-box.open {
    display: block;
}

.menu-box .mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.menu-panel {
    position: absolute;
    top: 0.94rem;
    left: 50%;
    width: 3.57rem;
    height: 5.68rem;
    margin-left: -0.06rem;
    z-index: 2;
}

.menu-panel .panel-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    z-index: 0;
    pointer-events: none;
}

.menu-panel .panel-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.38rem;
    box-sizing: border-box;
    height: 100%;
}

.nav-item {
    display: block;
    height: 0.38rem;
    margin-bottom: 0.28rem;
}

.nav-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: none;
}

.nav-home { width: 1.49rem; }
.nav-class { width: 2.23rem; }
.nav-pay { width: 2.17rem; }
.nav-news { width: 2.76rem; }
.nav-video { width: 2.49rem; }
.nav-feature { width: 2.19rem; }

.sns {
    display: flex;
    justify-content: center;
    gap: 0.08rem;
    margin-top: 0.12rem;
}

.sns a {
    width: 0.58rem;
    height: 0.58rem;
    background-repeat: no-repeat;
    background-size: contain;
}

.sns-fb { background-image: url("../images/sns-fb.webp"); }
.sns-yt { background-image: url("../images/sns-yt.webp"); }
.sns-tt { background-image: url("../images/sns-tt.webp"); }
.sns-dc { background-image: url("../images/sns-dc.webp"); }
.sns-group { background-image: url("../images/sns-group.webp"); }

/* ----- home ----- */
.page-home {
    position: relative;
    width: 7.5rem;
    height: 45.74rem;
    background: url("../images/bg.webp") no-repeat top center / 7.5rem 45.74rem;
}

.slogan {
    position: absolute;
    left: 0.22rem;
    top: 6.02rem;
    width: 7rem;
    height: 2.88rem;
    background: url("../images/slogan.webp") no-repeat center / contain;
}

.btn-apk,
.btn-pay-hero {
    position: absolute;
    top: 8.74rem;
    width: 3.24rem;
    height: 0.83rem;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.btn-apk {
    left: 0.38rem;
    background-image: url("../images/btn-apk.webp");
}

.btn-pay-hero {
    left: 3.93rem;
    background-image: url("../images/btn-pay.webp");
}

.title-news,
.title-class,
.title-feature,
.title-video {
    position: absolute;
    left: 50%;
    width: 4.56rem;
    height: 1.01rem;
    margin-left: -2.28rem;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 5;
}

.title-news { top: 9.97rem; background-image: url("../images/title-news.webp"); }
.title-class { top: 21.83rem; background-image: url("../images/title-class.webp"); }
.title-feature { top: 31.38rem; background-image: url("../images/title-feature.webp"); }
.title-video { top: 37.88rem; background-image: url("../images/title-video.webp"); }

/* 移动端树叶装饰：新闻区与职业介绍之间，左侧 */
.tree {
    position: absolute;
    left: 0;
    top: 19.15rem;
    width: 1.98rem;
    height: 5.56rem;
    z-index: 6;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.news-board {
    position: absolute;
    left: 0.26rem;
    top: 10.14rem;
    width: 7.21rem;
    height: 11.16rem;
    background: url("../images/news-board.webp") no-repeat center / 100% 100%;
    z-index: 4;
}

.news-board img.news-banner {
    position: absolute;
    left: 8.4%;
    top: 15.8%;
    width: 79.2%;
    height: 31%;
    max-width: none;
    object-fit: cover;
    border-radius: 0.06rem;
    z-index: 2;
}

.news-grid {
    position: absolute;
    left: 8.4%;
    top: 49%;
    width: 79.2%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    z-index: 2;
}

.news-card {
    width: 32%;
    height: 1.19rem;
    margin-bottom: 0.18rem;
    background: #f7f0e0 url("../images/news-card.webp") no-repeat center / 100% 100%;
    box-sizing: border-box;
    padding: 0.12rem 0.1rem 0.18rem;
    display: block;
}

.news-card .ico {
    width: 0.22rem;
    height: 0.24rem;
    float: left;
    margin: 0.02rem 0.06rem 0 0;
}

.news-card .tit {
    font-size: 0.16rem;
    line-height: 0.22rem;
    color: #5a3a1e;
    font-weight: 700;
    height: 0.44rem;
    overflow: hidden;
}

.news-card .date {
    clear: both;
    display: block;
    text-align: center;
    font-size: 0.14rem;
    color: #8a6a48;
    margin-top: 0.1rem;
}

.btn-more {
    position: absolute;
    left: 50%;
    bottom: 1.98rem;
    width: 3.99rem;
    height: 0.64rem;
    margin-left: -2rem;
    background: url("../images/btn-more.webp") no-repeat center / contain;
}

.class-block {
    position: absolute;
    left: 0;
    top: 23.45rem;
    width: 7.5rem;
    height: 7.1rem;
    z-index: 5;
    touch-action: pan-y;
}

.class-info {
    position: absolute;
    left: 0;
    top: 0;
    width: 4.19rem;
    height: 5.27rem;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    visibility: visible !important;
    animation: none;
    transform: none;
    max-width: none;
    user-select: none;
    -webkit-user-drag: none;
}

.class-info.on {
    opacity: 1;
    z-index: 4;
}

.class-char {
    position: absolute;
    right: 0.3rem;
    top: 0.18rem;
    width: auto;
    height: 5.4rem;
    max-width: none;
    object-fit: contain;
    object-position: right bottom;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    visibility: visible !important;
    animation: none;
    transform: none;
    user-select: none;
    -webkit-user-drag: none;
}

.class-char.sword {
    right: 0.3rem;
    top: -0.4rem;
}

.class-char.blade {
    right: 0.3rem;
    top: -0.28rem;
}

.class-char.doctor {
    right: 0.3rem;
    top: 0.34rem;
}

.class-char.spear {
    right: 0.3rem;
    top: -0.28rem;
}

.class-char.bow {
    right: 0.3rem;
    top: 0.3rem;
}

.class-char.on {
    opacity: 1;
    z-index: 5;
}

.class-icons {
    position: absolute;
    left: 0.36rem;
    top: 5.86rem;
    width: 6.81rem;
    display: flex;
    justify-content: space-between;
    z-index: 6;
    visibility: visible !important;
    animation: none;
    transform: none;
}

.class-icon {
    width: 1.1rem;
    height: 1.1rem;
    background-repeat: no-repeat;
    background-size: contain;
}

.class-icon[data-class="sword"] { background-image: url("../images/class-1-off.webp"); }
.class-icon[data-class="blade"] { background-image: url("../images/class-2-off.webp"); }
.class-icon[data-class="doctor"] { background-image: url("../images/class-3-off.webp"); }
.class-icon[data-class="spear"] { background-image: url("../images/class-4-off.webp"); }
.class-icon[data-class="bow"] { background-image: url("../images/class-5-off.webp"); }
.class-icon[data-class="sword"].on { background-image: url("../images/class-1-on.webp"); }
.class-icon[data-class="blade"].on { background-image: url("../images/class-2-on.webp"); }
.class-icon[data-class="doctor"].on { background-image: url("../images/class-3-on.webp"); }
.class-icon[data-class="spear"].on { background-image: url("../images/class-4-on.webp"); }
.class-icon[data-class="bow"].on { background-image: url("../images/class-5-on.webp"); }

.feature-box {
    position: absolute;
    left: 0.87rem;
    top: 33.44rem;
    width: 5.69rem;
    height: 3.15rem;
    z-index: 6;
    overflow: visible;
}

.feature-box .swiper-container,
.feature-box .swiper-slide {
    width: 100%;
    height: 100%;
}

.feature-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-prev,
.feature-next {
    position: absolute;
    top: 50%;
    width: 0.7rem;
    height: 0.69rem;
    margin-top: -0.35rem;
    z-index: 3;
    background-repeat: no-repeat;
    background-size: contain;
}

.feature-prev {
    left: -0.76rem;
    background-image: url("../images/arrow-prev.webp");
}

.feature-next {
    right: -0.76rem;
    background-image: url("../images/arrow-next.webp");
}

.feature-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.4rem;
    display: flex;
    justify-content: center;
    gap: 0.16rem;
}

.feature-dots span {
    width: 0.29rem;
    height: 0.28rem;
    background: url("../images/dot-off.webp") no-repeat center / contain;
}

.feature-dots span.on {
    background-image: url("../images/dot-on.webp");
}

.video-box {
    position: absolute;
    left: 0.86rem;
    top: 39.97rem;
    width: 5.74rem;
    height: 2.99rem;
    overflow: hidden;
    z-index: 6;
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.93rem;
    height: 0.94rem;
    margin: -0.47rem 0 0 -0.46rem;
    background: url("../images/play-btn.webp") no-repeat center / contain;
    z-index: 2;
}

.video-player {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-box.playing .video-cover,
.video-box.playing .play-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-box.playing .video-player {
    z-index: 3;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-footer {
    position: relative;
    width: 7.5rem;
}

.site-footer img {
    width: 7.5rem;
    height: 2.87rem;
    display: block;
}

/* 首页 footer.webp 750x581 */
.page-home + .site-footer img {
    height: 5.81rem;
}

.footer-links {
    position: absolute;
    left: 0.66rem;
    top: 1.53rem;
    width: 6.18rem;
    height: 0.32rem;
    z-index: 5;
    display: flex;
}

.footer-link {
    height: 100%;
    cursor: pointer;
}

.footer-link:nth-child(1) {
    flex: 194;
}

.footer-link:nth-child(2) {
    flex: 272;
}

.footer-link:nth-child(3) {
    flex: 152;
}

/* ----- list / detail inner ----- */
.page-inner {
    min-height: 11.85rem;
    height: auto;
    box-sizing: border-box;
    background: #f4ead3 url("../images/list-bg.webp") no-repeat top center / 7.5rem 14.45rem;
    padding-top: 1.15rem;
    padding-bottom: 0.2rem;
}

.page-detail {
    height: 11.85rem;
    min-height: 11.85rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-image: url("../images/detail-bg.webp");
    background-size: 7.5rem 14.45rem;
}

.list-tabs {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 0.52rem;
    width: 7.5rem;
    box-sizing: border-box;
    padding: 0 0.48rem 0.18rem;
    margin: 2.58rem auto 0.12rem;
    border-bottom: 1px dashed rgba(139, 105, 70, 0.45);
}

.list-tabs a {
    height: 0.38rem;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    font-size: 0;
}

.tab-guide { width: 1.1rem; background-image: url("../images/tab-guide.webp"); }
.tab-news { width: 0.72rem; background-image: url("../images/tab-news.webp"); }
.tab-sys { width: 0.97rem; background-image: url("../images/tab-sys.webp"); }
.tab-guide.on { width: 1.11rem; height: 0.35rem; background-image: url("../images/tab-guide-on.webp"); }
.tab-news.on { width: 0.72rem; height: 0.35rem; background-image: url("../images/tab-news-on.webp"); }
.tab-sys.on { width: 0.98rem; height: 0.38rem; background-image: url("../images/tab-sys-on.webp"); }

/* 列表页按设计：文字 Tab + 虚线底 */
.page-list .list-tabs a {
    width: auto;
    height: auto;
    background: none;
    font-size: 0.28rem;
    line-height: 0.4rem;
    color: #5a4a3a;
    padding: 0 0.04rem 0.1rem;
    border-bottom: 0.03rem solid transparent;
}

.page-list .list-tabs a.on {
    color: #e56a12;
    font-weight: 700;
    border-bottom-color: #e56a12;
}

.news-list {
    width: 6.9rem;
    margin: 0 auto;
}

.news-list li a {
    display: flex;
    align-items: center;
    height: 0.78rem;
    padding: 0 0.12rem 0 0.16rem;
    box-sizing: border-box;
}

.news-list li:nth-child(odd) a {
    background: rgba(232, 196, 120, 0.28);
}

.news-list .tag {
    width: 0.83rem;
    height: 0.23rem;
    background: url("../images/tag-notice.webp") no-repeat center / contain;
    flex-shrink: 0;
    margin-right: 0.12rem;
}

.news-list .tit {
    flex: 1;
    font-size: 0.22rem;
    color: #6a4a2a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-list .date {
    width: 1.15rem;
    text-align: right;
    font-size: 0.18rem;
    color: #8a6a48;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 列表行：虚线分隔 + Công bố 胶囊标签 */
.page-list .news-list li a {
    height: 0.72rem;
    border-bottom: 1px dashed rgba(160, 140, 110, 0.55);
    background: transparent;
}

.page-list .news-list li:nth-child(odd) a {
    background: transparent;
}

.page-list .news-list li a:active,
.page-list .news-list li a:hover {
    background: rgba(240, 170, 90, 0.28);
}

.page-list .news-list .tag {
    width: auto;
    min-width: 0.9rem;
    height: 0.32rem;
    padding: 0 0.12rem;
    margin-right: 0.14rem;
    background: #9a9088;
    border-radius: 0.16rem;
    font-size: 0.18rem;
    line-height: 0.32rem;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

.page-list .news-list .tag::before {
    content: "Công bố";
}

.page-list .news-list li a:active .tag,
.page-list .news-list li a:hover .tag {
    background: #e56a12;
}

.page-list .news-list .tit {
    color: #3a3a3a;
    font-size: 0.24rem;
}

.page-list .news-list .date {
    width: 1.2rem;
    color: #8a8a8a;
    font-size: 0.2rem;
}

.page {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 6.9rem;
    margin: 0.32rem auto 0.55rem;
}

.page-nums {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    flex: 1;
}

.page .page-prev,
.page .page-next {
    width: 1.18rem;
    height: 0.38rem;
    font-size: 0;
    background-repeat: no-repeat;
    background-size: contain;
}

.page .page-prev { background-image: url("../images/page-prev.webp"); }
.page .page-next { background-image: url("../images/page-next.webp"); }

.page-nums a,
.page-nums span {
    min-width: 0.38rem;
    height: 0.38rem;
    line-height: 0.36rem;
    text-align: center;
    font-size: 0.2rem;
    color: #7a7a7a;
    border-radius: 50%;
    border: 1px solid #c8c8c8;
    background: #fff;
    box-sizing: border-box;
}

.page-nums span.cur {
    background: #fff;
    border-color: #e56a12;
    color: #e56a12;
}

.page .page-prev,
.page .page-next {
    border: 0;
    background-color: transparent;
    border-radius: 0;
}

/* detail */
.article-head {
    width: 6.9rem;
    margin: 2.85rem auto 0.28rem;
    text-align: center;
    flex-shrink: 0;
}

.article-head h2 {
    margin: 0 0 0.2rem;
    font-size: 0.42rem;
    color: #2b2116;
    font-weight: 700;
    letter-spacing: 0.01rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    font-size: 0.22rem;
    color: #7a5a38;
}

.article-meta .back {
    width: 0.45rem;
    height: 0.46rem;
    background: url("../images/btn-back.webp") no-repeat center / contain;
}

.article {
    width: 7.02rem;
    margin: 0 auto 0.5rem;
    font-size: 0.24rem;
    line-height: 0.42rem;
    color: #6a4e32;
}

.page-detail .article {
    flex: 1;
    min-height: 0;
    width: 6.9rem;
    margin: 0 auto 0.2rem;
    padding: 0 0.12rem 0.3rem;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.article img {
    width: 100%;
    margin: 0.32rem 0 0;
    border-radius: 0;
}

.article p { margin: 0 0 0.16rem; }
