* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'STSong', 'SimSun', '宋体', serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding-bottom: 60px;
}

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

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.page-header {
    background-color: #fff;
    color: #333;
    padding: 14px 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
}

.swiper-container {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
}

.banner-swiper {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f2f5;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
}

.swiper-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* 安卓系统轮播图高度 */
.swiper-container.android .banner-swiper {
    height: 200px;
}

/* PC端轮播图样式 */
@media (min-width: 769px) {
    .swiper-container {
        padding: 50px 0 !important;
    }
    .banner-swiper {
        height: 320px;
    }
    .swiper-container.android .banner-swiper {
        height: 300px;
    }
    .banner-image {
        object-fit: contain;
    }
}

.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.swiper-pagination-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.swiper-pagination-dot.active {
    background-color: #333;
    width: 16px;
    border-radius: 3px;
}

/* 公告栏 */
.notice-bar {
    display: flex;
    align-items: center;
    background: #f5f7ff;
    margin: 0 12px 16px;
    padding: 14px 12px;
    border-radius: 8px;
    overflow: hidden;
    min-height: 44px;
}

.notice-icon {
    flex-shrink: 0;
    margin-right: 6px;
    display: flex;
    align-items: center;
}

.notice-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.notice-label {
    font-size: 13px;
    color: #6b7db3;
    font-weight: 500;
    margin-right: 12px;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
    overflow: hidden;
}

.notice-scroll {
    white-space: nowrap;
    animation: scrollNotice 5s linear infinite;
    color: #334a7a;
    font-size: 22px;
    font-weight: 500;
}

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

/* 快捷入口 */
.quick-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin: 0 12px 16px;
    background-color: #fff;
    border-radius: 12px;
}

/* 安卓系统快捷入口缩小样式 */
.quick-entry.android {
    padding: 10px;
}

.quick-entry.android .site-name {
    font-size: 16px;
}

.quick-entry.android .entry-icons {
    gap: 16px;
}

.quick-entry.android .entry-item {
    gap: 3px;
}

.quick-entry.android .entry-icon {
    width: 36px;
    height: 36px;
    padding: 5px;
}

.quick-entry.android .entry-icon-img {
    width: 26px;
    height: 26px;
}

.quick-entry.android .entry-label {
    font-size: 12px;
}

/* 安卓系统游戏卡片缩小样式 */
.container.android .game-cards {
    padding: 6px 6px 4px !important;
    min-height: 130px !important;
}

.container.android .game-tag {
    width: 40px;
    height: 40px;
}

.container.android .game-icon {
    width: 36px;
    height: 36px;
}

.container.android .game-name {
    font-size: 11px;
}

.container.android .game-desc {
    font-size: 10px;
    margin-top: 4px;
}

.container.android .game-btn {
    width: 60px;
    height: 22px;
}

.site-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.entry-icons {
    display: flex;
    gap: 20px;
}

.entry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.entry-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    padding: 6px;
}

.entry-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.entry-item:hover .entry-icon {
    transform: scale(1.1);
}

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

/* 旗下平台 */
.platforms-section {
    padding: 16px 12px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7db3;
}

.section-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.game-cards {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 8px 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08),
                4px 4px 0 rgba(102, 126, 234, 0.2),
                8px 8px 0 rgba(102, 126, 234, 0.1);
    transition: transform 0.2s;
    overflow: hidden;
    min-height: 160px; /* 最小高度保证整齐 */
}

/* 移动端额外优化 */
@media (max-width: 768px) {
    .game-cards {
        padding: 8px 8px 6px !important;
        min-height: 160px !important;
    }
}

.game-tag {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 50px;
    height: 50px;
    z-index: 1;
    background-repeat: no-repeat;
}

.game-cards:hover {
    transform: translateY(-2px);
}

.game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.game-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background-repeat: no-repeat;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.game-name {
    font-size: 13px;
    font-weight: 900;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.game-desc {
    font-size: 11px;
    font-weight: 500;
    color: #444;
    margin-top: 6px; /* 往下移动一点 */
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
}

.game-btn {
    width: 75px;
    height: 26px;
    flex-shrink: 0;
    background-repeat: no-repeat;
}







/* 活动区域 */
.activity-section,
.hot-activity-section {
    margin: 16px 10px 40px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}





/* 其他交易所 */
.other-platforms {
    padding: 12px 12px;
    margin: 0 12px 16px;
}

.other-platforms-text {
    text-align: center;
    font-size: 14px;
    color: #999;
}

/* 底部导航栏 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
    z-index: 100;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
    flex: 1;
    position: relative;
}

.tab-icon-box {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.tab-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(50%) sepia(20%) saturate(1500%) hue-rotate(200deg) brightness(95%) contrast(90%);
    opacity: 0.8;
    transition: 0.2s;
}

.tab-item.active .tab-icon-img {
    opacity: 1;
    filter: invert(28%) sepia(96%) saturate(4200%) hue-rotate(208deg) brightness(96%) contrast(102%);
}

.tab-label {
    font-size: 10px;
    color: #666;
    transition: 0.2s;
}

.tab-item.active .tab-label {
    color: #1976d2;
    font-weight: 600;
}

/* 表单样式 */
.form-content {
    padding: 20px 12px;
    max-width: 400px;
    margin: 0 auto;
}

.login-form, .register-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form input,
.register-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.btn-submit {
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-submit:hover {
    opacity: 0.9;
}

.form-link {
    text-align: center;
    margin-top: 16px;
}

.form-link a {
    color: #667eea;
}

.contact-content,
.about-content,
.games-content,
.tools-content {
    padding: 20px 12px;
}

.contact-info p {
    margin-bottom: 8px;
}
