* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #334867 0%, #334867 100%);
    padding: 15px;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

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

@keyframes fadeInCenter {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes cardHover {
    0% {
        transform: translateY(0);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0; /* 减少上下内边距 */
    position: relative;
    margin-bottom: 10px; /* 如果需要，可以减少底部外边距 */
}

.logo-container {
    width: auto; /* 改为自动宽度 */
    height: auto;
    padding: 8px 15px;
    border-radius: 8px;
    background: linear-gradient(45deg, #4C6080, #4C6080);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #5B8FF9;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    white-space: nowrap;
}

.title-container {
    flex-grow: 1;
    text-align: center;
    padding: 0 10px;
}

.main-title {
    font-size: 1.5rem; /* 适当减小字体大小 */
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

.share-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #1a1a1a;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.banner a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.announcement {
    background: linear-gradient(135deg, #4C6080, #4C6080);
    border-radius: 12px;
    padding: 12px 20px;
    margin: 25px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #D4AF37;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.announcement:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.announcement a {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 100%;
}

.announcement i {
    font-size: 1.4rem;
    color: #D4AF37;
    margin-right: 15px;
    flex-shrink: 0;
}

.scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    height: 24px;
}

.scroll-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 60s linear infinite;
    padding-right: 2rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

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

/* 顶部选项卡样式 - 已优化移动端 */
.tabs-container {
    display: flex;
    background: linear-gradient(135deg, #ffccc7, #ffccc7);
    border-radius: 12px;
    margin: 20px 0;
    overflow-x: auto;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tab {
    flex: 1 0 auto;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #a9b7c6;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 120px;
}

.tab.active {
    color: #1a1a1a;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
}

.tab:not(.active):hover {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: #1a1a1a;
    border-radius: 3px 3px 0 0;
}

.category-content {
    display: none;
    scroll-margin-top: 100px;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #D4AF37;
    text-align: left;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: linear-gradient(to bottom, #D4AF37, #B8860B);
    border-radius: 3px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.game-card {
    background: linear-gradient(135deg, #65789B 0%, #4C6080 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.game-card:hover {
    animation: cardHover 0.5s forwards;
    border-color: #D4AF37;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.game-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #D4AF37;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card:hover .game-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.game-info {
    flex-grow: 1;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 5px;
}

.game-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #D4AF37, #B8860B);
    border-radius: 2px;
}

.game-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 20px;
    margin-top: 5px;
    font-weight: 600;
}

.access-btn {
    background: linear-gradient(135deg, #C5CAE9 0%, #ff7a45 100%);
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: pulse-scale 2s infinite;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.access-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
}

.footer {
    text-align: center;
    margin-top: 50px;
    padding: 25px;
    background: rgba(10, 10, 10, 0.7);
    border-radius: 16px;
    color: #a9b7c6;
    font-size: 0.95rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.footer p:first-child {
    font-weight: 600;
    color: #D4AF37;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

#loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(212, 175, 55, 0.3);
    border-top: 5px solid #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-text {
    color: #D4AF37;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
}

.notice-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    width: 90%;
    max-width: 500px;
    padding: 40px 30px;
    display: none;
    animation: fadeInCenter 0.3s ease-out forwards;
    border: 2px solid #D4AF37;
}

.notice-header {
    text-align: center;
    margin-bottom: 25px;
}

.notice-title {
    font-size: 2rem;
    font-weight: 800;
    color: #D4AF37;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.notice-content {
    padding: 20px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    margin: 25px 0;
}

.notice-message {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e2e8f0;
    text-align: justify;
}

.notice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.close-notice-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #65789B;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 20px auto 0;
    width: fit-content;
    font-size: 1.1rem;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

.close-notice-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.9);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: 1px solid #D4AF37;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 50;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-indicator.hide {
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator span {
    color: #a8071a;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    animation: pulse-scale 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: #D4AF37;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #D4AF37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.chat-button img {
    width: 60%;
    height: 60%;
    border-radius: 50%;
    object-fit: cover;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.tooltip {
    position: absolute;
    bottom: 90px;
    right: 0;
    background: #1a1a1a;
    color: #D4AF37;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
    border: 1px solid #D4AF37;
}

.chat-button:hover .tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* 媒体查询调整 */
@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: row;
        gap: 15px;
    }
    
    .share-btn {
        width: auto;
        margin-top: 0;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .game-card {
        border-radius: 14px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .game-icon {
        width: 50px;
        height: 50px;
    }
    
    .game-title {
        font-size: 1.1rem;
    }
    
    .access-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .tabs-container {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .tab {
        padding: 12px 15px;
        flex: 0 0 auto;
        min-width: 110px;
    }
}

@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .header {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-container {
        width: 110px;
        height: 45px;
        order: 1;
        flex-shrink: 0;
    }
    
    .title-container {
        order: 2;
        width: auto;
        flex-grow: 0;
        padding: 0 10px;
    }
    
    .main-title {
        font-size: 1.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .sub-title {
        font-size: 0.8rem;
        letter-spacing: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
.share-btn {
    order: 3;
    padding: 11px 11px;
    width: auto;
    margin: 0;
    flex-shrink: 0;
    font-size: 1rem;           /* 从0.9rem增大到1rem */
    letter-spacing: 0.5px;     /* 添加合适的字间距 */
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .announcement {
        padding: 10px 15px;
    }
    
    .scroll-text {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.15rem;
    }
    
    .access-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 20px 15px;
    }
    
    .tabs-container {
        border-radius: 10px;
    }
    
    .tab {
        padding: 10px 12px;
        font-size: 1rem;
        min-width: 95px;
    }
}

@media (max-width: 360px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .tab {
        min-width: 90px;
        font-size: 0.9rem;
        padding: 8px 10px;
    }
}