/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
a{
    text-decoration: none;
}

body {
    background-color: #f5f5f5;
    padding-top: 70px;
    padding-bottom: 60px;
    color: #333;
}

/* 电脑端居中容器 */
.page-container {
    width: 100%;
    margin: 0 auto;
}

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, #4a6ee0, #6eb1ff, #4ecdc4, #f56c6c);
    background-size: 400% 400%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(74, 110, 224, 0.4);
    animation: headerGradient 10s ease infinite;
}

@keyframes headerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s ease;
    border-radius: 25px;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.4);
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.header-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-buttons a {
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.header-buttons a:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.5);
}

.header-buttons img {
    height: 28px;
    width: 28px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.header-buttons a:hover img {
    transform: scale(1.2) rotate(15deg);
}

/* 响应式导航 */
@media (max-width: 768px) {
    .header {
        padding: 0 16px;
        height: 60px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 16px;
        padding: 8px 16px;
    }

    .header-buttons {
        gap: 12px;
    }

    .header-buttons a {
        width: 40px;
        height: 40px;
    }

    .header-buttons img {
        height: 24px;
        width: 24px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 12px;
        padding: 6px 12px;
    }

    .header-buttons a {
        width: 36px;
        height: 36px;
    }

    .header-buttons img {
        height: 20px;
        width: 20px;
    }
}

/* 轮播图样式 */
.banner {
    position: relative;
    height: 200px;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}

.carousel-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-info {
    position: absolute;
    bottom: 0px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 10px;
    color: white;
}

.banner-content {
    display: flex;
    align-items: center;
}

.banner-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
    margin-right: 10px;
    object-fit: cover;
}

.banner-text {
    flex: 1;
}

.banner-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.banner-desc {
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.banner-tags {
    display: flex;
    gap: 5px;
}

.tag {
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    text-align: center;
}

.tag-yellow {
    background: #fff9e6;
    color: #e6a23c;
    border: 1px solid #e6a23c;
}

.tag-blue {
    background: #ecf5ff;
    color: #409eff;
    border: 1px solid #409eff;
}

.tag-pink {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #f56c6c;
}

/* 轮播图指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 18px;
    left: 89%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 滚动公告样式 */
.promo-banner {
    background: white;
    margin: 10px;
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.scrollDiv {
    height: 25px;
    line-height: 25px;
    overflow: hidden;
    padding-left: 30px;
    background: url(static/image/trump.png) no-repeat center left;
    background-size: 25px 25px;
    background-position: 5px center;
    flex: 1;
}

.scrollDiv ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.scrollDiv li {
    height: 25px;
    padding-left: 10px;
}

.scrollDiv a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

.scrollDiv a:hover {
    color: #4a6ee0;
}

/* 底部导航 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    background-color: #ddd;
    border-radius: 50%;
}

.footer-text {
    font-size: 12px;
    color: #666;
}

/* 快捷导航 */
.quick-nav {
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
    margin: 10px;
    border-radius: 10px;
    background-color: #ffffff; /* 白色背景 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* 底层阴影框架（柔和效果） */
    border: 1px solid #f5f5f5; /* 可选：浅灰色边框，增强框架感 */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.nav-icon {
    width: 60px;
    height: 60px;
}

.nav-text {
    font-size: 12px;
    color: #333;
    margin-top: 6px;
}

/* 今日推荐 */
.recommend {
    background: #fff url(static/image/222.png) no-repeat;
    background-size: 100% 48px;
    margin: 10px;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
}

.today {
    color: #4a6ee0;
}

.more {
    font-size: 14px;
    color: #999;
    text-decoration: none;
}

.recommend-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    width: 100%;
    position: relative;
    align-items: flex-start;
}

.recommend-img {
    width: 70px;
    height: 80px;
    border-radius: 8px;
    margin-right: 12px;
    object-fit: cover;
    position: relative;
    flex-shrink: 0;
}

.recommend-img::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 12px;
    background: linear-gradient(45deg, transparent, #f56c6c, transparent);
    z-index: -1;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.recommend-content {
    flex: 1;
    min-width: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .recommend-item {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .recommend-img {
        width: 70px;
        height: 80px;
        margin-right: 12px;
    }
    
    .recommend-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .recommend-item {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .recommend-img {
        width: 70px;
        height: 80px;
        margin-right: 12px;
    }
    
    .recommend-title {
        font-size: 14px;
    }
    
    .recommend-subtitle {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .gray-text {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-grow: 1;
    }
}

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

.recommend-subtitle {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    white-space: nowrap;
}

.red-label {
    background: #f56c6c;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    white-space: nowrap; /* 禁止换行 */
    flex-shrink: 0; /* 禁止压缩 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 溢出显示省略号 */
    max-width:72px; /* 6字约宽（12px字体+字间距） */
}

.gray-text {
    font-size: 12px;
    color: #999;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-tag {
    display: flex;
    margin-top: 8px;
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
}

.price-left {
    background: #f56c6c;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
}

.price-right {
    background: white;
    color: #f56c6c;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #f56c6c;
}

/* 今日首发 */
.first-release {
    background: #fff url(static/image/222.png) no-repeat;
    background-size: 100% 48px;
    margin: 10px;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.first-release-content {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.release-item {
    min-width: 160px;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.release-img {
    position: relative;
    width: 156px;
    height: 220px;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    object-fit: cover;
}

.release2-title {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
    text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
    background: #f56c6c;
    padding: 6px;
    width: 156px;
}

.release-title {
    position: absolute;
    top: 0px; /* 原 bottom 改为 top，保持 11px 间距（可按需调整为 0） */
    left: 0;
    right: 0;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
    text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
    background: #6eb1ff;
    padding: 6px;
    width: 156px;
}

.release-tag {
    position: absolute;
    bottom: 35px;
    left: 5px;
    background: #f56c6c;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.release-tags {
    display: flex;
    gap: 3px;
    position: absolute;
    bottom: 10px;
    width: 95%;
    left: 3px;
}

/* 选项卡 */
.tabs {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    margin: 10px;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 24px rgba(74, 110, 224, 0.15);
    border: 1px solid rgba(110, 177, 255, 0.2);
}

.tab-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.tab-item {
    padding: 10px 12px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
    flex: 1;
    text-align: center;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    overflow: hidden;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tab-item {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tab-item {
        padding: 6px 8px;
        font-size: 11px;
        line-height: 1.2;
    }
}

@media (max-width: 360px) {
    .tab-item {
        padding: 5px 6px;
        font-size: 10px;
    }
}

.tab-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(110, 177, 255, 0.4), transparent);
    transition: all 0.6s ease;
}

.tab-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 110, 224, 0.2);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(110, 177, 255, 0.4);
}

.tab-item:hover::before {
    left: 100%;
}

.tab-item.active {
    color: white;
    font-weight: 700;
    background: linear-gradient(135deg, #4a6ee0, #6eb1ff);
    border-color: #6eb1ff;
    box-shadow: 0 8px 24px rgba(74, 110, 224, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4ecdc4, #f56c6c);
    border-radius: 0 0 10px 10px;
    animation: tabGlow 2s ease infinite;
}

@keyframes tabGlow {
    0% { opacity: 0.7; box-shadow: 0 0 10px rgba(78, 205, 196, 0.6); }
    50% { opacity: 1; box-shadow: 0 0 20px rgba(78, 205, 196, 0.8), 0 0 30px rgba(245, 108, 108, 0.6); }
    100% { opacity: 0.7; box-shadow: 0 0 10px rgba(78, 205, 196, 0.6); }
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.5s ease;
}

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

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

/* 图片样式 */
img {
    max-width: 100%;
}

.features {
    display: flex;
    gap: 0.75rem;
    margin: 10px ;
}

/* 左侧试玩有奖 */
.feature-left {
    flex: 1;
    background: #ffffff url('static/image/334.png') no-repeat center;
    background-size: contain;
    border-radius: 1.125rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 10rem;
    position: relative;
    overflow: hidden;
}

.feature-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    pointer-events: none;
}

.feature-left:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.feature-left-content {
    z-index: 2;
    position: relative;
}

.feature-right-icon-new {
    position: absolute;
    top: 1rem;
    right: 0;
    width: 5.25rem;
    height: 5.25rem;
    background: url('static/image/ic_home_swyj.png') no-repeat center;
    background-size: contain;
    z-index: 2;
}

.feature-left-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #222222;
    position: relative;
    z-index: 2;
}

.feature-left-desc {
    font-size: 0.8125rem;
    color: #666666;
    position: relative;
    z-index: 2;
    white-space: nowrap; /* 核心：禁止文字换行 */
    overflow: hidden; /* 核心：超出容器部分隐藏 */
    text-overflow: ellipsis; /* 可选：超出部分显示省略号（...），增强可读性 */
}

/* 右侧上下两个卡片 */
.feature-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-card-small {
    background: url('static/image/222.png') no-repeat center;
    background-size: cover;
    border-radius: 1rem;
    padding: 1.325rem 0.625rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.feature-card-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    pointer-events: none;
}

.feature-card-small:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.feature-card-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #222222;
    position: relative;
    z-index: 2;
}

.feature-card-desc {
    font-size: 0.75rem;
    color: #666666;
    position: relative;
    z-index: 2;
}

.feature-right-icon {
    position: absolute;
    right: 0;
    top: 0;
    width: 4rem;
    height: 3.25rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
    z-index: 2;
}

.monthly-icon {
    background: url('static/image/yo2.png') no-repeat center;
    background-size: contain;
}

.save-icon {
    background: url('static/image/648.png') no-repeat center;
    background-size: contain;
}

/* 今日推荐2网格布局 */
.all-recommend-grid {
    display: grid;
    /* 关键：横向排列，不自动换行 */
    grid-auto-flow: column;
    /* 保持每列 1fr 宽度（与原布局一致），也可改为固定宽度如 280px */
    grid-template-columns: repeat(4, 1fr);
    /* 或使用 auto 自适应列宽：grid-template-columns: repeat(4, auto); */
    gap: 12px;
    /* 关键：允许横向滚动 */
    overflow-x: auto;
    /* 可选：隐藏滚动条（保留滚动功能），提升视觉效果 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    /* 可选：添加内边距，避免内容贴边 */
    padding: 5px 0;
}

/* 隐藏 Chrome/Safari 滚动条 */
.all-recommend-grid::-webkit-scrollbar {
    display: none;
}

/* 可选：为网格子项设置最小宽度，避免内容过窄 */
.all-recommend-grid > * {
    min-width: 72px; /* 根据需求调整最小宽度 */
}

.all-recommend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.all-recommend-item img {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
    position: relative;
    animation: rotateGlow 2s linear infinite;
}

@keyframes rotateGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.7), 0 0 10px rgba(255, 0, 0, 0.5), inset 0 0 5px rgba(255, 0, 0, 0.3);
        border: 2px solid rgba(255, 0, 0, 0.7);
    }
    25% {
        box-shadow: 0 0 5px rgba(255, 255, 0, 0.7), 0 0 10px rgba(255, 255, 0, 0.5), inset 0 0 5px rgba(255, 255, 0, 0.3);
        border: 2px solid rgba(255, 255, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.7), 0 0 10px rgba(0, 255, 0, 0.5), inset 0 0 5px rgba(0, 255, 0, 0.3);
        border: 2px solid rgba(0, 255, 0, 0.7);
    }
    75% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.7), 0 0 10px rgba(0, 255, 255, 0.5), inset 0 0 5px rgba(0, 255, 255, 0.3);
        border: 2px solid rgba(0, 255, 255, 0.7);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.7), 0 0 10px rgba(255, 0, 0, 0.5), inset 0 0 5px rgba(255, 0, 0, 0.3);
        border: 2px solid rgba(255, 0, 0, 0.7);
    }
}

/* 游戏标识 */
.game-badge {
    position: absolute;
    top: 0;
    left: 0;
    /* width: 24px; */
    /* height: 24px; */
    border-radius: 50%;
    /* background-color: #ff4757; */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
    z-index: 10;
}

.game-badge img{
    width: 70px;
    height: 70px;
    filter: hue-rotate(138deg) saturate(1.5) brightness(1.1);
    border-radius: 8px 0 8px 0;
    transition: all 0.4s ease;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .game-badge img {
        width: 70px;
        height: 60px;
    }
}

@media (max-width: 360px) {
    .game-badge img {
        width: 70px;
        height: 60px;
    }
}

.game-badge.hot {
    background-color: #ff4757;
}

.game-badge.new {
    background-color: #2ed573;
}

.game-badge.free {
    background-color: #3742fa;
}

.all-recommend-item span {
    font-size: 12px;
    color: #666;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    width: 100%;
}

/* 下载按钮 */
.download-btn {
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 10px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
    margin-top: 0px;
}

/* 今日推荐、稀有包站等标识 */
.section-badge {
    position: absolute;
    top: 0;
    left: 50px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.section-badge.recommend {
    background-color: #ff4757;
}

.section-badge.rare {
    background-color: #ffa502;
}

.section-badge.free {
    background-color: #2ed573;
}

.section-badge.premium {
    background-color: #3742fa;
}

.section-badge.server {
    background-color: #a55eea;
}

/* 电脑端样式 */
@media (min-width: 768px) {
    .page-container {
        max-width: 540px;
        overflow: hidden;
    }

    .header, .footer {
        max-width: 540px;
        left: 50%;
        transform: translateX(-50%);
    }

    .header {
        top: 0;
    }

    .footer {
        bottom: 0;
    }
}

/* 底部导航 */
#bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 50px !important;
    background: #f9fafb !important;
    border-top: none !important;
    display: flex !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.02) !important;
}

#bottom-nav a {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #666666 !important;
    font-size: 12px !important;
    font-family: sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    flex: 1 !important;
    position: relative !important;
}

/* 中间按钮特殊处理 - 橙色渐变背景 */
#bottom-nav a:nth-child(3) {
    flex: 1.4 !important;
    margin-top: -15px !important;
    padding-top: 10px !important;
}

#bottom-nav a:nth-child(3)::before {
    content: '' !important;
    position: absolute !important;
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #fff 25%, #6eb1ff 100%) !important; /* 淡淡橙色渐变 */
    border-radius: 50% !important;
    box-shadow: 0 8px 25px rgba(253,186,116,0.2) !important; /* 橙色阴影，更协调 */
    z-index: -1 !important;
}

#bottom-nav a img {
    width: 26px !important;
    height: 26px !important;
    margin-bottom: 4px !important;
    object-fit: contain !important;
    border: none !important;
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#bottom-nav a:nth-child(3) img {
    width: 28px !important;
    height: 28px !important;
    /*filter: brightness(0) saturate(100%) invert(30%) sepia(60%) saturate(300%) hue-rotate(350deg) brightness(90%) contrast(90%) !important;*/
    
    /* 图标改为深橙色，适配淡橙背景 */
    margin-bottom: 3px !important;
}

#bottom-nav a:nth-child(3) span {
    display: block !important;
    color: #666 !important; /* 深橙色文字，与淡橙背景对比 */
    font-size: 11px !important;
    font-weight: 500 !important;
}

#bottom-nav a.active:not(:nth-child(3)) {
    color: #3742fa  !important;
    font-weight: 600 !important;
}

/*#bottom-nav a.active:not(:nth-child(3)) img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(83%) saturate(1861%) hue-rotate(221deg) brightness(93%) contrast(94%) !important;
}
*/
#bottom-nav a:nth-child(3).active {
    color: #9a3412 !important;
}

@media (min-width: 768px) {
    #bottom-nav {
        max-width: 540px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-radius: 20px 20px 0 0 !important;
        margin-bottom: 10px !important;
    }
}

/* 父容器：如果需要相对于父元素定位，父容器需设为 relative */
.parent-container { /* 可根据实际页面结构调整父容器选择器 */
    position: relative; /* 关键：子元素绝对定位的参考 */
    width: 100%; /* 示例：父容器宽度占满 */
    height: 500px; /* 示例：父容器高度（根据实际页面调整） */
    border: 1px solid #eee; /* 仅作视觉参考，可删除 */
}

/* 图片容器：控制定位和间隙 */
.additional-icon {
    position: absolute; /* 绝对定位 */
    left: 15px; /* 左边间隙 2px */
    bottom: 15px; /* 下边间隙 2px */
    z-index: 10; /* 可选：确保图片在最上层，避免被遮挡 */
}

/* 图片样式优化（可选，保持宽高比） */
.additional-icon img {
    width: 90px;
    height: 90px;
    object-fit: contain; /* 防止图片拉伸变形 */
    display: block; /* 消除图片默认 inline 带来的多余间距 */
}

/* IOS提示 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#addToHomeTip {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: calc(100% - 40px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tip-container {
    padding: 24px;
}

.tip-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.apple-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #007AFF, #5AC8FA);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

.apple-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.tip-info {
    flex: 1;
}

.tip-main-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.tip-sub-title {
    font-size: 14px;
    color: #6B7280;
}

.tip-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #F3F4F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #007AFF;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text {
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-text strong {
    color: #007AFF;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 匹配你提供的图标样式 */
.share-icon-custom {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tip-btn-area {
    display: flex;
    justify-content: center;
}

#closeTip {
    padding: 10px 32px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

#closeTip:hover {
    background: #0066CC;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.25);
}

#closeTip:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.2);
}

@media (prefers-color-scheme: dark) {
    #addToHomeTip {
        background: #1F2937;
        border-color: rgba(255, 255, 255, 0.1);
    }
    .tip-main-title {
        color: #F9FAFB;
    }
    .tip-sub-title {
        color: #D1D5DB;
    }
    .step-text {
        color: #E5E7EB;
    }
    .step-number {
        background: #374151;
    }
}

/* Tailwind CSS */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .backdrop-blur-sm {
        backdrop-filter: blur(4px);
    }
    .announcement-shadow {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
    .animate-fade-in {
        animation: fadeIn 0.5s ease-in-out;
    }
    .animate-slide-up {
        animation: slideUp 0.5s ease-out;
    }
    .animate-fade-out {
        animation: fadeOut 0.3s ease-in-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    @keyframes slideUp {
        from { transform: translateY(30px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    @keyframes fadeOut {
        from { opacity: 1; }
        to { opacity: 0; }
    }
}

.text-gray-700 {
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
    font-size: 22px;
    font-weight: 600;
}

/* 悬浮组件样式 */
.float-banner {
    position: fixed;
    right: 0px;
    bottom: 90px;
    background: #4a6ee0;
    border-radius: 12px;
    padding: 6px 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
    z-index: 9999;
    transition: transform 0.2s ease;
    display: none; /* 默认隐藏，避免闪烁 */
}

.float-banner:hover {
    transform: translateY(-3px); /* 悬浮上浮效果 */
}

.float-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* 防止图标溢出 */
}

.float-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图标比例 */
}

.float-text {
    color: #fff;
    text-align: left;
}

.float-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.float-desc {
    font-size: 14px;
    opacity: 0.9;
}