/* ============================================================
   首页专用样式：下载浮层 / 视频头 / 轮播+新闻 / 资料站+攻略 / 职业轮播 / 游戏画面
   ============================================================ */

/* ===== 下载浮层（沿用原版） ===== */
.down {
    left: 50%;
    margin-left: -160px;
    top: 980px;
    width: 300px;
    height: 120px;
    position: absolute;
    z-index: 9999999999;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.5);
}

.down dt {
    float: right;
    height: 100px;
    margin-right: 280px;
    padding: 0 10px 0 15px;
    width: 137px;
    text-align: center;
}

.down dt img {
    display: block;
}

.down dd {
    padding: 9px 10px 0 8px;
    width: 300px;
}

.down dd a {
    display: block;
    margin-bottom: 2px;
    height: 51px;
    background-image: url('../smps8/down-small.png');
    background-repeat: no-repeat;
}

.down dd a.down_ios {
    background-position: 0 0;
    margin-left: 130px;
}

.down dd a.down_ios:hover {
    background-position: 0 -114px;
}

.down dd a.down_android {
    background-position: 0 -55px;
    margin-left: 130px;
}

.down dd a.down_android:hover {
    background-position: 0 -169px;
}

.down dd a.down_try {
    background: url('../smps8/experience.png') no-repeat;
    width: 123px;
    height: 104px;
    position: absolute;
    top: 9px;
    margin-left: 0;
}

.down dd a.down_try:hover {
    background-position: 0 -113px;
}

/* ===== 视频区域 ===== */
.video-header {
    position: relative;
    width: 100%;
    height: 1080px;
    min-height: 560px;
    overflow: hidden;
    margin-top: 72px;
    background: #0a0e17;
    flex-shrink: 0;
}

.video-header #Flash {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1920px;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-header #Flash video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-header .topcontainer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1920px;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-header .topcontainer .animatetop {
    width: 100%;
    height: 100%;
}

.video-header .topcontainer .animatetop #Header {
    width: 100%;
    height: 100%;
}

.video-header .topcontainer .animatetop #Header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 两栏布局：轮播 + 新闻 ===== */
.top-row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.banner-slider {
    flex: 1.3;
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    aspect-ratio: 16 / 7;
}

.banner-slider .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.banner-slider .slides .slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.banner-slider .slides .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.25s;
    border: none;
}

.slider-dots .dot.active {
    background: #ff3333;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== 新闻公告 ===== */
.news-section {
    flex: 1;
    min-width: 260px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 24px 26px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
}

.news-section .news-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.news-section .news-tabs .tab {
    padding: 6px 16px 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 6px 6px 0 0;
    font-family: inherit;
}

.news-section .news-tabs .tab.active {
    color: #fff;
    background: rgba(255, 51, 51, 0.08);
    border-bottom-color: #ff3333;
}

.news-section .news-tabs .tab:hover {
    color: #ff3333;
    background: rgba(255, 51, 51, 0.04);
}

.news-section .news-tabs .more-link {
    margin-left: auto;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 12px;
    border-radius: 12px;
    transition: 0.2s;
}

.news-section .news-tabs .more-link:hover {
    color: #ff3333;
    background: rgba(255, 51, 51, 0.06);
}

.news-content {
    flex: 1;
    position: relative;
    min-height: 320px;
    height: 320px;
    overflow: hidden;
}

.news-panel {
    display: none;
    flex-direction: column;
    gap: 4px;
    animation: fadeIn 0.3s ease;
    height: 100%;
}

.news-panel.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-panel .top-news {
    background: rgba(255, 51, 51, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-left: 3px solid #ff3333;
    flex-shrink: 0;
}

.news-panel .top-news a {
    font-size: 16px;
    font-weight: 700;
    color: #ff6666;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.15);
}

.news-panel .top-news a:hover {
    color: #ff9999;
}

.news-panel .news-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 6px;
    transition: 0.15s;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.news-panel .news-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.news-panel .news-item .tag {
    font-size: 11px;
    font-weight: 700;
    color: #ff3333;
    background: rgba(255, 51, 51, 0.08);
    padding: 0 12px;
    border-radius: 20px;
    line-height: 22px;
    flex-shrink: 0;
}

.news-panel .news-item a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-panel .news-item a:hover {
    color: #ff3333;
}

.news-panel .news-item .date {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    flex-shrink: 0;
}

/* ===== 资料站 + 攻略 ===== */
.info-row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.info-box {
    flex: 1;
    min-width: 280px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 22px 26px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-box .box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.info-box .box-header .title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.08), rgba(255, 51, 51, 0.01));
    padding: 4px 14px 4px 10px;
    border-radius: 6px;
    border-left: 3px solid #ff3333;
}

.info-box .box-header .title .icon {
    color: #ff3333;
    margin-right: 6px;
}

.info-box .box-header .more-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 12px;
    border-radius: 12px;
    transition: 0.2s;
}

.info-box .box-header .more-link:hover {
    color: #ff3333;
    background: rgba(255, 51, 51, 0.06);
}

.ziliao-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ziliao-grid .category {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: 0.2s;
}

.ziliao-grid .category:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 51, 51, 0.08);
}

.ziliao-grid .category .cat-title {
    font-size: 15px;
    font-weight: 700;
    color: #ff3333;
    display: block;
    margin-bottom: 8px;
}

.ziliao-grid .category .sub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.ziliao-grid .category .sub-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.ziliao-grid .category .sub-links a:hover {
    color: #ff3333;
}

.gonglue-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gonglue-list .gl-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.15s;
}

.gonglue-list .gl-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.gonglue-list .gl-item a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.gonglue-list .gl-item a:hover {
    color: #ff3333;
}

.gonglue-list .gl-item .date {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

/* ===== 职业轮播 ===== */
.profession-section {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.profession-section .section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    padding: 22px 20px 14px;
}

.profession-section .section-title .title-bg {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.08), rgba(255, 51, 51, 0.01));
    padding: 6px 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 51, 51, 0.06);
    display: inline-block;
}

.profession-section .section-title span {
    color: #ff3333;
}

.profession-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.profession-slides {
    position: relative;
    width: 100%;
    height: 380px;
    background: rgba(0, 0, 0, 0.2);
}

.profession-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.profession-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.profession-slide .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profession-slide .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.50);
    z-index: 1;
}

.profession-slide .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 80%;
    max-width: 700px;
    padding: 20px;
}

.profession-slide .slide-content .prof-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 6px;
}

.profession-slide .slide-content .prof-name {
    font-size: 40px;
    font-weight: 800;
    color: #ff3333;
    text-shadow: 0 2px 30px rgba(255, 51, 51, 0.3);
    margin-bottom: 4px;
}

.profession-slide .slide-content .prof-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.profession-slide .slide-content .prof-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.profession-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px 18px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.profession-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px 6px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.25s;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 600;
}

.profession-nav .nav-item:hover {
    background: rgba(255, 51, 51, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.profession-nav .nav-item.active {
    border-color: #ff3333;
    background: rgba(255, 51, 51, 0.10);
    color: #ff3333;
}

.profession-nav .nav-item .nav-icon {
    font-size: 22px;
    line-height: 1;
}

/* ===== 游戏画面 - 无缝滚动 ===== */
.screenshot-section {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.screenshot-section .section-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 18px;
}

.screenshot-section .section-title .title-bg {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.08), rgba(255, 51, 51, 0.01));
    padding: 4px 16px 4px 12px;
    border-radius: 6px;
    border-left: 3px solid #ff3333;
}

.screenshot-section .section-title .icon {
    color: #ff3333;
    margin-right: 6px;
}

.screenshot-scroll-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.screenshot-scroll-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: scrollMarquee 20s linear infinite;
}

.screenshot-scroll-track:hover {
    animation-play-state: paused;
}

.screenshot-scroll-track .screenshot-item {
    flex: 0 0 200px;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: 0.25s;
    position: relative;
    flex-shrink: 0;
}

.screenshot-scroll-track .screenshot-item:hover {
    transform: scale(1.03);
    border-color: rgba(255, 51, 51, 0.20);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.screenshot-scroll-track .screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-scroll-track .screenshot-item .screenshot-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px 12px 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== 首页响应式 ===== */
@media (max-width: 1100px) {
    .top-row {
        flex-direction: column;
    }
    .banner-slider {
        aspect-ratio: 16 / 8;
    }
    .ziliao-grid {
        grid-template-columns: 1fr;
    }
    .profession-slides {
        height: 320px;
    }
    .profession-slide .slide-content .prof-name {
        font-size: 32px;
    }
    .profession-slide .slide-content .prof-icon {
        font-size: 44px;
    }
    .video-header {
        height: 70vh;
        min-height: 420px;
    }
    .screenshot-scroll-track .screenshot-item {
        flex: 0 0 160px;
    }
}

@media (max-width: 850px) {
    .video-header {
        margin-top: 0;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    .video-header #Flash,
    .video-header .topcontainer {
        position: absolute;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: 100%;
    }
    .video-header #Flash video,
    .video-header .topcontainer .animatetop #Header img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .down {
        display: none;
    }
    .top-row,
    .info-row {
        gap: 16px;
    }
}

@media (max-width: 500px) {
    .down {
        display: none;
    }
    .news-section {
        padding: 16px 14px;
    }
    .news-tabs {
        gap: 2px;
    }
    .news-section .news-tabs .tab {
        padding: 5px 10px 8px;
        font-size: 13px;
    }
    .news-panel .top-news a {
        font-size: 14px;
    }
    .news-panel .news-item a {
        font-size: 13px;
    }
    .info-box {
        padding: 16px 14px;
    }
    .quick-entry .entry-item {
        padding: 12px 14px;
    }
    .quick-entry .entry-item .icon {
        font-size: 26px;
    }
    .quick-entry .entry-item .info strong {
        font-size: 16px;
    }
    .ziliao-grid {
        gap: 8px;
    }
    .profession-slides {
        height: 300px;
    }
    .profession-slide .slide-content {
        width: 92%;
        padding: 12px;
    }
    .profession-slide .slide-content .prof-icon {
        font-size: 34px;
    }
    .profession-slide .slide-content .prof-name {
        font-size: 26px;
    }
    .profession-slide .slide-content .prof-sub {
        font-size: 15px;
    }
    .profession-slide .slide-content .prof-desc {
        font-size: 13px;
    }
    .profession-nav {
        gap: 4px;
        padding: 10px 8px 12px;
    }
    .profession-nav .nav-item {
        padding: 5px 10px 5px 8px;
        font-size: 12px;
        gap: 4px;
    }
    .profession-nav .nav-item .nav-icon {
        font-size: 18px;
    }
    .screenshot-section {
        padding: 16px 12px;
    }
    .screenshot-scroll-track {
        gap: 10px;
    }
    .screenshot-scroll-track .screenshot-item {
        flex: 0 0 118px;
    }
    .screenshot-scroll-track .screenshot-item .screenshot-label {
        font-size: 12px;
    }
}
