.banner-section {
    background: #fff;
    padding: 15px 15px 5px
}

.swiper-container.banner-swiper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    overflow: hidden;
    position: relative;
    width: 100%
}

.slide-image-wrapper {
    background-color: #eee;
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    width: 100%
}

.slide-image-wrapper img {
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%
}

.slide-overlay-text {
    bottom: 0;
    color: #fff;
    font-size: 15px;
    font-weight: normal;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    /* text-shadow: 0 1px 3px rgba(0,0,0,.6); */
    z-index: 10;
    padding: 30px 50px 10px 15px;
    background: linear-gradient(0deg, rgb(0 0 0) 0%, rgba(0, 0, 0, 0) 100%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-info-bar {
    align-items: center;
    background: #fff;
    display: flex;
    height: 75px;
    padding: 12px 15px
}

.app-icon {
    background: #f0f0f0;
    border-radius: 10px;
    flex-shrink: 0;
    height: 48px;
    margin-right: 12px;
    overflow: hidden;
    width: 48px
}

.app-icon img {
    height: 100%;
    width: 100%
}

.app-details {
    flex: 1;
    overflow: hidden
}

.app-title {
    color: #333;
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-desc {
    color: #999;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.action-btn {
    background-color: var(--primary-light);
    border: none;
    border-radius: 20px;
    color: var(--primary);
    font-size: 13px;
    font-weight: normal;
    padding: 5px 14px;
    white-space: nowrap;
    margin-left: 10px;
}

.custom-grid-pagination {
    background: rgba(0,0,0,.3);
    border-radius: 6px;
    bottom: 15px!important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    left: auto!important;
    padding: 3px;
    pointer-events: none;
    position: absolute;
    right: 15px;
    width: 28px!important;
    z-index: 20
}

.swiper-pagination-bullet {
    background: #fff;
    border-radius: 2px;
    display: block;
    height: 9px;
    margin: 1px!important;
    opacity: .6;
    width: 9px
}

.swiper-pagination-bullet-active {
    background: #00e0ff;
    opacity: 1
}

.hot-news-wrapper {
    background: #fff;
    height: 40px;
    padding: 0 15px
}

.hot-news-wrapper,.news-label {
    align-items: center;
    display: flex
}

.news-label {
    color: #333;
    flex-shrink: 0;
    font-size: 18px;
    font-style: italic;
    font-weight: 800;
    margin-right: 15px
}

.news-icon {
    animation: shake 2s infinite;
    height: 20px;
    margin-left: 4px;
    width: 20px
}

@keyframes shake {
    0%,to {
        transform: rotate(0)
    }

    10%,30%,50% {
        transform: rotate(-10deg)
    }

    20%,40% {
        transform: rotate(10deg)
    }
}

.news-swiper {
    flex: 1;
    height: 30px;
    overflow: hidden
}

.news-swiper .swiper-slide {
    align-items: center;
    color: #333;
    display: flex;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.highlight-text {
    display: inline-block;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.highlight-text:after {
    background-color: #00e0ff;
    border-radius: 2px;
    bottom: 2px;
    content: "";
    height: 6px;
    left: 0;
    opacity: .3;
    position: absolute;
    width: 100%;
    z-index: -1
}

.quick-nav-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 15px 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #fff;
    margin-bottom: 10px
}

.quick-nav-scroll::-webkit-scrollbar {
    display: none
}

.nav-card {
    align-items: center;
    border-radius: 8px;
    color: #fff;
    display: flex;
    flex: 0 0 140px;
    height: 64px;
    justify-content: space-between;
    overflow: hidden;
    padding: 0 12px;
    position: relative
}

.nav-text {
    display: flex;
    flex-direction: column;
    z-index: 2
}

.nav-text .main {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px
}

.nav-text .sub {
    font-size: 12px;
    opacity: .85
}

.nav-bg-icon {
    bottom: -5px;
    fill: #fff;
    height: 40px;
    opacity: .3;
    position: absolute;
    right: 5px;
    transform: rotate(15deg) scale(1.2);
    width: 40px;
    z-index: 1
}

.bg-orange {
    background: linear-gradient(135deg,#ff9a68,#ff6b6b)
}

.bg-blue {
    background: linear-gradient(135deg,#4facfe,#00f2fe)
}

.bg-green {
    background: linear-gradient(135deg,#43e97b,#38f9d7)
}

.bg-purple {
    background: linear-gradient(135deg,#a18cd1,#fbc2eb)
}

.section-box {
    background: #fff;
    margin-bottom: 10px;
    padding: 15px 15px 10px
}

.section-header {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px
}

.section-title {
    color: #333;
    font-size: 18px;
    font-weight: 800;
    position: relative;
    z-index: 1
}

.section-title:after {
    background-color: #00e0ff;
    border-radius: 4px;
    bottom: -1px;
    content: "";
    height: 6px;
    left: 0;
    opacity: .6;
    position: absolute;
    transform: skewX(-10deg);
    width: 100%;
    z-index: -1
}

.section-more {
    align-items: center;
    color: #999;
    display: flex;
    font-size: 13px
}

.section-more svg {
    fill: #ccc;
    height: 14px;
    width: 14px
}

.topic-scroll-container {
    display: grid;
    gap: 10px;
    grid-auto-flow: column;
    grid-template-rows: repeat(2,1fr);
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none
}

.topic-scroll-container::-webkit-scrollbar {
    display: none
}

.topic-card {
    background: #333;
    border-radius: 8px;
    height: 110px;
    overflow: hidden;
    position: relative;
    width: 192px;
}

.topic-bg {
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
    width: 100%
}

.topic-card:active .topic-bg {
    transform: scale(1.05)
}

.topic-overlay {
    background: rgba(0,0,0,0.5);
    bottom: 0;
    height: 26px;
    left: 0;
    pointer-events: none;
    position: absolute;
    width: 100%
}

.topic-title-simple {
    bottom: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    left: 0;
    position: absolute;
    background: rgba(0,0,0,0.5);
    z-index: 2;
    height: 26px;
    line-height: 26px;
    padding: 0 10px;
    width: 100%;
}
.topic-title-simple::after{
    content: "";
    position: absolute;
    bottom: 50%;
    right: 10px;
    height: 0;
    left: auto;
    width: 100%;
    border-top: 1px solid var(--primary-light);
    border-right: 1px solid var(--primary-light);
    opacity: 1;
    width: 6px;
    height: 6px;
    transform: translateY(50%) rotate(45deg);
}

.ranking-section {
    background: #fff;
    margin-bottom: 10px;
    margin-top: 10px;
    padding-bottom: 0
}

.ranking-header-bg {
    background: linear-gradient(180deg,#e0fcff 0,#fff);
    padding: 20px 15px 15px;
    text-align: center
}

.rank-tabs {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 15px
}

.rank-tab-item {
    color: #999;
    cursor: pointer;
    font-size: 15px;
    padding-bottom: 5px;
    position: relative
}

.rank-tab-item.active {
    color: #333;
    font-size: 18px;
    font-weight: 700
}

.rank-tab-item.active:after {
    background: #00e0ff;
    border-radius: 2px;
    bottom: 0;
    content: "";
    height: 4px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 20px
}

.rank-main-title {
    align-items: center;
    color: #00bcd4;
    display: flex;
    font-size: 26px;
    font-weight: 700;
    justify-content: center;
    margin-bottom: 0;
    padding: 12px 0
}

.rank-main-title #rankTitleText {
    background: linear-gradient(-90deg,#7ce1ff,#6097ff);
    -webkit-background-clip: text;
    padding: 0 30px;
    position: relative;
    -webkit-text-fill-color: transparent
}

.rank-main-title #rankTitleText:before {
    background: url(../images/icon.png) no-repeat 0 0;
    background-size: 600px;
    content: "";
    height: 46px;
    left: 0;
    position: absolute;
    top: -3px;
    width: 26px;
    z-index: 5
}

.rank-main-title #rankTitleText:after {
    background: url(../images/icon.png) no-repeat -38px 0;
    background-size: 600px;
    content: "";
    height: 46px;
    position: absolute;
    right: 0;
    top: -3px;
    width: 26px;
    z-index: 5
}

.laurel-icon {
    fill: #80deea;
    height: 24px;
    margin: 0 10px;
    width: 24px
}

.laurel-left {
    transform: scaleX(-1)
}

.rank-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 15px
}

.rank-tab-content {
    display: none
}

.rank-tab-content.active {
    display: block
}

.rank-item {
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    order: 10;
    padding: 15px 0;
    width: 100%
}

.rank-num {
    color: #999;
    font-family: Times New Roman,serif;
    font-size: 16px;
    font-style: italic;
    margin-right: 10px;
    text-align: center;
    width: 30px
}

.rank-icon {
    background: #eee;
    border-radius: 12px;
    height: 66px;
    margin-right: 12px;
    overflow: hidden;
    width: 66px
}

.rank-icon img {
    height: 100%;
    object-fit: cover;
    width: 100%
}

.rank-info {
    flex: 1;
    overflow: hidden;
    width: 100%
}

.rank-name {
    color: #333;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.rank-tags {
    align-items: center;
    color: #888;
    display: flex;
    flex-shrink: 0;
    font-size: 13px
}

.rank-tags span {
    background: #f9fbff;
    border-radius: 24px;
    margin-right: 7px;
    padding: 3px 5px 3px 7px
}

.rank-desc,.rank-tags span {
    font-size: 12px;
    white-space: nowrap
}

.rank-desc {
    color: #999;
    display: block;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis
}

.rank-btn {
    background: var(--primary-light);
    border-radius: 15px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 400;
    padding: 4px 12px
}

.rank-item:nth-child(-n+3) {
    border-bottom: none;
    border-radius: 12px;
    flex-direction: column;
    margin-bottom: 10px;
    overflow: visible;
    padding: 57px 5px 15px;
    position: relative;
    text-align: center;
    width: 32%
}

.rank-item:first-child {
    background: linear-gradient(180deg,#fffad5,#fffef9);
    margin-top: 0;
    order: 2;
    padding-top: 66px
}

.rank-item:nth-child(2) {
    background: linear-gradient(180deg,#eef3fc,#fefeff);
    margin-top: 25px;
    order: 1
}

.rank-item:nth-child(3) {
    background: linear-gradient(180deg,#fdeae3,#fefdfc);
    margin-top: 25px;
    order: 3
}

.rank-item:nth-child(-n+3) .rank-desc,.rank-item:nth-child(-n+3) .rank-num {
    display: none
}

.rank-item:nth-child(-n+3) .rank-icon {
    background: #fff;
    border-radius: 16px;
    height: 64px;
    margin-bottom: 8px;
    margin-right: 0;
    position: relative;
    width: 64px;
    z-index: 2
}

.rank-item:first-child .rank-icon {
    border: none;
    box-shadow: 0 4px 12px rgba(255,193,7,.2);
    height: 72px;
    width: 72px
}

.rank-item:nth-child(-n+3) .rank-name {
    font-size: 16px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%
}

.rank-item:nth-child(-n+3) .rank-tags {
    justify-content: center;
    margin-left: 0;
    width: 100%
}

.rank-item:nth-child(-n+3) .rank-tags span {
    background: 0 0;
    border-radius: 0;
    border-right: 1px solid #ccc;
    margin-right: 0;
    padding: 1px 5px
}

.rank-item:nth-child(-n+3) .rank-tags span.rank-tag-size {
    border: 0;
    margin: 0
}

.rank-item:nth-child(-n+3) .rank-btn {
    background: #fff;
    border: none;
    margin-top: 10px;
    padding: 4px 16px
}

.rank-item:first-child .rank-btn {
    background: #fff6ec;
    color: #ffb300
}

.rank-item:nth-child(2) .rank-btn {
    background: #edf3fc;
    color: #6781bb
}

.rank-item:nth-child(3) .rank-btn {
    background: #ffe4d5;
    color: #ca7d6f
}

.rank-item:nth-child(-n+3):before {
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    height: 50px;
    left: 50%;
    opacity: 1;
    position: absolute;
    top: 2px;
    transform: translateX(-50%);
    width: 66px;
    z-index: 0
}

.rank-item:nth-child(-n+3):after {
    font-family: Times New Roman,serif;
    font-size: 20px;
    font-style: italic;
    font-weight: 900;
    left: 50%;
    position: absolute;
    top: 2px;
    transform: translateX(-50%);
    z-index: 3
}

.rank-item:first-child:before {
    background: url(../images/icon.png) no-repeat 0 -64px;
    background-size: 600px;
    top: 4px
}

.rank-item:first-child:after {
    color: #ffc107;
    font-size: 28px;
    top: -2px
}

.rank-item:nth-child(2):before {
    background: url(../images/icon.png) no-repeat -80px -64px;
    background-size: 600px
}

.rank-item:nth-child(2):after {
    color: #90a4ae
}

.rank-item:nth-child(3):before {
    background: url(../images/icon.png) no-repeat -161px -64px;
    background-size: 600px
}

.rank-item:nth-child(3):after {
    color: #ff7043
}

.friendly-link-container {
    display: flex;
    flex-wrap: wrap;
    padding: 0 0
}

.fl-item {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
    margin-right: 15px
}

.notice-container {
    background-color: #f0fdff;
    border: 1px dashed #00e0ff;
    border-radius: 8px;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin: 15px;
    padding: 15px
}

.notice-title {
    color: #333;
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1
}

.notice-title:after {
    background-color: #00e0ff;
    bottom: 1px;
    content: "";
    height: 6px;
    left: 0;
    opacity: .8;
    position: absolute;
    width: 100%;
    z-index: -1
}

.notice-email {
    color: #00acc1
}


/* Swiper 默认分页器在底部居中，我们需要强制改写到右下角 */
.home-swiper{
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 1px 2px 3px #ccc;
    margin-bottom: 5px;
}
.swiper-pagination-custom {
    position: absolute;
    bottom: 86px !important;
    right: 10px !important;
    left: auto !important;
    width: auto !important;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2x2 格子模拟图中的图标感 */
    gap: 3px;
    z-index: 20;
}

.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #fff;
    opacity: 0.5;
    border-radius: 1px; /* 方形圆角 */
    margin: 0 !important;
    display: block;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #00e0ff; /* 激活时变成绿色 */
}



/* --- 通用工具类 --- */
.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

/* --- 游戏项目组件样式 (两个板块公用) --- */
.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* 确保在Grid或Flex中占满分配的空间 */
    padding: 5px;
    min-width: 0;
}

.game-icon {
    width: 66px;
    height: 66px;
    border-radius: 14px;
    object-fit: cover;
    background-color: #ddd;
    margin-bottom: 6px;
}

.game-title {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
    font-weight: 500;
}

.game-btn {
    font-size: 12px;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 4px 18px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
}

/* --- 板块 1: 普通网格列表 --- */
.grid-section {
    background-color: #fff;
    padding: 0px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    row-gap: 15px;
}

/* --- 板块 2: 容器样式 --- */
.latest-section {
    background-color: #fff;
    margin: 0 10px;
    border-radius: 12px;
    padding: 20px 10px; /* 上下留白 */
    position: relative;
}

/* =========================================
    专属 Swiper 样式 (已做作用域隔离)
    不会影响页面其他 Swiper
    ========================================= */

/* 1. 专属容器 */
.game-resource-swiper {
    width: 100%;
    padding-bottom: 25px; /* 底部留给分页器的空间 */
    overflow: hidden; /* 确保不溢出 */
}

/* 2. 专属 Slide 布局 */
.game-resource-swiper .swiper-slide {
    display: flex;
    justify-content: space-between; /* 内部横向排列 */
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px 0;
}

/* 3. 专属分页器位置调整 */
.game-resource-swiper .swiper-pagination {
    bottom: 0 !important;
    width: 100%;
    text-align: center;
}

/* 4. 专属分页器圆点样式 */
.game-resource-swiper .swiper-pagination-bullet {
    width: 44px;
    height: 6px;
    border-radius: 12px;
    background: #e0e0e0;
    opacity: 1;
    transition: all 0.3s;
    margin: 0 6px !important; /* 强制覆盖可能存在的全局间距 */
    display: inline-block;
}

/* 5. 专属分页器激活状态 */
.game-resource-swiper .swiper-pagination-bullet-active {
    background: #24d1fe; /* 红色激活 */
    width: 22px;
}
