@charset "utf-8";

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.5;
    overflow-x: hidden;
}

/* 顶部导航 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo img {
    width: 45px;
    height: 45px;
    /* border-radius: 50%; */
    object-fit: cover;
}

.logo a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    border: none;
    cursor: pointer;
    display: block;
}

.logo-text-container h1 {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-left: 8px;
    display: block;
}

.logo-subtitle {
    color: #fff;
    font-size: 12px;
    margin-left: 8px;
    opacity: 0.8;
}

.download-btn {
    background-color: #e24258;
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 20px;
    text-decoration: none;
}

/* 英雄区 */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    max-height: 500px;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.hero-title {
    width: 80%;
    max-width: 300px;
    margin: 0 auto 20px;
}

.hero-download-btn {
    display: block;
    background-color: #3e82e8;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    margin: 0 auto 10px;
    width: 145px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    border: none;
    cursor: pointer;
}

/* 标签导航 */
.tab-nav {
    display: flex;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.tab-item {
    flex: 1;
    min-width: 80px;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.tab-item.active {
    color: #e83e8c;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: #e83e8c;
}

/* 标签内容 */
.tab-content {
    position: relative;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 10px; /* 添加底部边距 */
}

.tab-pane {
    display: none;
}

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

.game-intro {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 10px;
}

.intro-item {
    margin-bottom: 15px;
}

.intro-item:last-child {
    margin-bottom: 0;
}

.intro-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.intro-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

.tab-content a {
    color: inherit;
    text-decoration: none;
}

.intro-item a {
    color: inherit;
    text-decoration: none;
}

.intro-item a:active {
    color: #e83e8c;
}

.intro-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏截图展示 */
.screenshots-section {
    background-color: #f0f4f8;
    padding: 20px;
    margin-bottom: 10px;
}

.section-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background-color: #e0e0e0;
}

.section-title::before {
    left: 20%;
}

.section-title::after {
    right: 20%;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 100%;
    max-width: 120px;
    margin: 0 auto 10px;
}

.feature-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* 轮播图 */
.carousel {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    height: 100%;
}

.carousel-item img {
    width: 80%;
    max-width: 250px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* 视频播放区 */
.video-section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 10px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
    max-width: 100%;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 下载区域 */
.download-section {
    background-color: #fff;
    padding: 20px;
    text-align: center;
}

.qrcode {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
}

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

.download-text {
    font-size: 14px;
    color: #666;
}

.download-label {
    font-size: 12px;
    color: #666;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #999;
    padding: 20px;
    font-size: 12px;
    text-align: center;
}

.footer p {
    margin-bottom: 5px;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer a:active {
    color: inherit;
}

.footer p:last-child {
    margin-bottom: 0;
}

/* 二级页面 */
.content-section {
    margin-top: 80px;
    padding: 20px;
    background-color: #fff;
}

.news-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.news-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-meta {
    font-size: 14px;
    color: #999;
}

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

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

.news-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.back-btn {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.back-btn i {
    margin-right: 5px;
}

/* 返回首页按钮 */
.back-home-btn {
    display: inline-block;
    background-color: #e83e8c;
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    border: none;
    cursor: pointer;
}

/* 返回首页容器 */
.back-home-container {
    text-align: center;
    padding: 20px;
}