/* Reset & Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    height: 3992px;
    width: 100vw;
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: #fff5f5 url('../images/main-bg.png') center top no-repeat; /* 假设背景是垂直平铺的 */
    color: #333;
    overflow-x: hidden;
}

.main-container {
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    display: block;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

/* Section Common */
section {
    position: relative;
    margin-bottom: 30px;
    padding: 0 10px;
}

.section-title {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    z-index: 10;
    position: relative;
}

.section-title img {
    width: 499px;
    height: 131px;
}

/* Hero Section */
.hero-section {
    height: 1010px; /* 预留高度，根据实际设计调整 */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    box-sizing: border-box;
    padding-bottom: 122px;
}

.qr-code-container {
    width: 565px;
    height: 306px;
    position: relative;
    left: 40px;
}

.qr-code {
    width: 100%;
    height: auto;
}

/* News Section */
.news-content-wrapper {
    position: relative;
    width: 1469px;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
}

.shelf-container {
    position: relative;
    width: 1469px;
    height: 783px;
}

.shelf-img {
    width: 1469px;
    height: 783px;
}

.news-box {
    position: absolute;
    top: 240px;
    right: 110px;
    width: 610px;
    height: 440px;
}

.news-bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.news-content-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 8px 4px; /* 使用百分比padding适应不同屏幕 */
}

.news-left-visual {
    flex: 0 0 45%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(213, 99, 96, 0.1);
}

.news-feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-tabs {
    height: 55px;
    line-height: 55px;
    display: flex;
}

.tab {
    font-weight: bold;
    color: #e36c61;
    cursor: pointer;
    padding: 0 24px;
    font-size: 20px;
    height: 55px;
    line-height: 55px;
    box-sizing: border-box;
    display: inline-block;
    margin: 0 12px;
}

.tab.active {
    color: white;
    background: #e36c61;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.news-divider {
    height: 2px;
    background-color: #e36c61;
    margin-bottom: 8px;
    width: 100%;
}

.news-list {
    list-style: none;
    font-size: 20px; /* 稍微调小字体以适应空间 */
    color: #d97873;
    height: 320px; /* 固定高度：4条数据 * 80px/条 */
    overflow: hidden; /* 防止内容溢出 */
}

.news-list li {
    border-bottom: 2px dashed #f2cfcc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 78px;
    padding-left: 12px;
    cursor: pointer;
}
.news-list li:hover {
    color: #e36c61;
}

.news-pagination {
    text-align: center;
    font-size: 16px;
    color: #d97873;
    height: 40px;
    line-height: 40px;
    user-select: none; /* 防止快速点击选中文字 */
}

.news-pagination .prev-page,
.news-pagination .next-page {
    cursor: pointer;
    margin: 0 10px;
    font-weight: bold;
    transition: color 0.3s;
}

.news-pagination .prev-page:hover,
.news-pagination .next-page:hover {
    color: #e36c61;
}

.news-pagination .prev-page.disabled,
.news-pagination .next-page.disabled {
    cursor: not-allowed;
    color: #f2cfcc;
    pointer-events: none; /* 禁用点击 */
}

.news-pagination .page-info {
    margin: 0 5px;
}

/* 剧情一览 */
.story-section{
    width: 100%;
}
.record-player-container {
    position: relative;
    width: 100%;
    height: 922px;
}
.record-player-container .container-box{
    width: 1920px;
    height: 800px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -540px);
    display: flex;
    justify-content: center;
    align-items: center;
}
.record-player-container .left,
.record-player-container .right{
    width: 471px;
    height: 471px;
    margin: 0 20px;
    position: relative;
    cursor: pointer; /* 添加手型光标提示可点击 */
}
.record-player-container .center{
    width: 738px;
    height: 638px;
    position: relative;
}
.record-player-container .img{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* 默认隐藏，由JS控制显示 */
}
.record-player-container .nav-box{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1920px;
    height: 330px;
    bottom: 110px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}
.record-player-container .text-img-box{
    width: 883px;
    height: 329px;
    position: relative;
}
.record-player-container .text-img-box img{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* 默认隐藏，由JS控制显示 */
}
.record-player-container .nav-btn{
    width: 133px;
    height: 138px;
    position: relative;
    top: 40px;
    margin: 0 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.record-player-container .nav-btn:hover{
    filter: brightness(1.05);
}


/* 游戏特色 */
.features-section {
    height: 920px; /* 预留高度，根据实际设计调整 */
    margin-bottom: 0;
}
.features-carousel{
    margin-top: 22px;
    width: 1370px;
    height: 689px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
.features-swiper{
    width: 1370px;
    height: 689px;
    position: relative;
    perspective: 1000px;
}
.features-swiper > div{
    width: 392px;
    height: 689px;
    position: absolute;
    top: 0;
    transition: all 0.5s ease-in-out;
    display: block;
    cursor: pointer;
}
.features-swiper > div::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 黑色半透明遮罩 */
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none; /* 确保遮罩不阻挡点击事件 */
    border-radius: 25px; /* 假设图片有圆角，保持一致 */
}
.features-swiper > div img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Carousel Classes */
/* Center - Largest */
.features-swiper .slide-3 {
    left: 50%;
    transform: translateX(-50%) scale(1);
    z-index: 5;
    opacity: 1;
}
.features-swiper .slide-3::after {
    opacity: 0; /* 中间图片无遮罩 */
}

/* Inner Sides - Medium */
.features-swiper .slide-2 {
    left: 25%;
    transform: translateX(-50%) scale(0.85);
    z-index: 4;
    opacity: 1;
}
.features-swiper .slide-4 {
    left: 75%;
    transform: translateX(-50%) scale(0.85);
    z-index: 4;
    opacity: 1;
}

/* Outer Sides - Smallest */
.features-swiper .slide-1 {
    left: 10%;
    transform: translateX(-50%) scale(0.7);
    z-index: 3;
    opacity: 1;
}
.features-swiper .slide-5 {
    left: 90%;
    transform: translateX(-50%) scale(0.7);
    z-index: 3;
    opacity: 1;
}
.features-section .nav-btn{
    width: 108px;
    height: 97px;
    position: absolute;
    top: 50%;
    transform: translateY(-0px);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}
.features-section .nav-btn.prev{
    left: 140px;
}
.features-section .nav-btn.next{
    right: 140px;
}
.features-section .nav-btn:hover{
    filter: brightness(1.05);
}

/* Footer */
.footer-container {
    width: 100%;
    background: linear-gradient(to right, #000, #444, #000);
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.copyright {
    letter-spacing: 0.05em;
}

.beian-info {
    margin-top: 10px;
    transition: color 0.15s;
}

.beian-info:hover {
    color: #d1d5db;
}

.beian-link {
    color: #ff6c8b;
    transition: color 0.15s;
}

.beian-link:hover {
    color: #ff4d75;
}

/* =========================================
   News Detail Page Styles
   ========================================= */
.news-detail-page{
    height: auto;
    width: 100vw;
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: #f9e6df url('../images/news-bg.jpg') center top no-repeat; /* 假设背景是垂直平铺的 */
    color: #333;
    overflow-x: hidden;
}
.news-detail-page .hero-section{
    height: 1020px;
    padding-bottom: 130px;
}
   
.news-detail-section {
    position: relative;
    width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    min-height: 500px;
    padding: 60px 80px;
    margin-bottom: 40px;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-detail-title {
    font-size: 32px;
    color: #e36c61;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-detail-date {
    font-size: 14px;
    color: #999;
}

.news-detail-content {
    font-size: 18px;
    color: #d97873;
    line-height: 2;
    margin-bottom: 80px;
    text-align: justify;
}

.news-table-title{
    font-size: 22px;
    color: #e36c61;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
}

.news-detail-content p {
    /* margin-bottom: 16px; */
}

.news-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 60px;
    font-size: 16px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.news-detail-content th, .news-detail-content td {
    border: 1px solid #f2cfcc;
    padding: 12px 15px;
    text-align: center;
    color: #666;
    vertical-align: middle;
}

.news-detail-content th {
    background-color: #fceceb;
    font-weight: bold;
    color: #e36c61;
    font-size: 18px;
    border-bottom: 2px solid #e36c61;
}

.news-detail-footer {
    text-align: center;
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    width: 150px;
    height: 50px;
    line-height: 50px;
    background-color: #e36c61;
    color: white;
    font-size: 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(227, 108, 97, 0.4);
}

.btn-back:hover {
    background-color: #ff4d75;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 108, 97, 0.5);
    color: white;
}

@media screen and (max-width: 768px) {
    body {
        overflow: auto;
        width: 1920px;          /* 改为100%让宽度自适应视口，避免横向滚动 */
        background: #fff5f5 url(../images/main-bg.png) no-repeat;
    }
}
