/* page34.css - 游戏页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #000;
    color: #f5f5f5;
    min-height: 100vh;
    padding: 10px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background-color: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    position: relative;
}

.logo-icon::before {
    content: "▲";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 14px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #00ff00, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 12px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 20px;
}

nav a:hover, nav a.active {
    color: #fff;
    background: rgba(0, 255, 0, 0.2);
}

.section-title {
    text-align: center;
    margin: 15px 0 20px;
    font-size: 1.8rem;
    background: linear-gradient(90deg, #00ff00, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #00ff00, #00ccff);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    flex-grow: 1;
}

.game-card {
    background: rgba(30, 30, 30, 0.9);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 0, 0.3);
}

.premium-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #00aa00;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.thumbnail {
    height: 160px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s;
}

.game-card:hover .thumbnail::after {
    background: rgba(0, 255, 0, 0.2);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.play-icon::before {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    color: #000;
    font-size: 16px;
}

.game-card:hover .play-icon {
    opacity: 1;
    background-color: #00ff00;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

.game-info {
    padding: 12px;
}

.game-info h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-info p {
    color: #aaa;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 10px;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 0.75rem;
}

.game-tag {
    background: rgba(0, 170, 0, 0.2);
    color: #00ff00;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    display: inline-block;
    margin-top: 5px;
}

.load-more {
    text-align: center;
    margin: 25px 0;
}

.load-more-btn {
    background: rgba(0, 255, 0, 0.2);
    color: #f5f5f5;
    border: 1px solid #00ff00;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.load-more-btn:hover {
    background: rgba(0, 255, 0, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.load-more-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.load-more-btn:hover::after {
    left: 100%;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.purchase-modal {
    background: #111;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    border: 1px solid #333;
    transform: scale(0.9);
    transition: transform 0.4s;
    position: relative;
}

.modal-overlay.active .purchase-modal {
    transform: scale(1);
}

.purchase-modal h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #fff;
}

.purchase-modal .subtitle {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.purchase-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.purchase-option {
    background: rgba(40, 40, 40, 0.9);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.purchase-option:hover {
    background: rgba(0, 255, 0, 0.15);
    border-color: #00ff00;
}

.purchase-option h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: #00ff00;
}

.purchase-option .price {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: #00ccff;
}

.purchase-option .desc {
    color: #aaa;
    font-size: 0.85rem;
}

.close-modal {
    background: rgba(60, 60, 60, 0.9);
    color: #ddd;
    border: 1px solid #444;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    width: 100%;
}

.close-modal:hover {
    background: rgba(0, 255, 0, 0.2);
    color: #fff;
}

.loading-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #00ff00;
    width: 0%;
    transition: width 0.5s;
}

footer {
    text-align: center;
    padding: 25px 0 12px;
    color: #666;
    font-size: 0.8rem;
    border-top: 1px solid #222;
    margin-top: 15px;
}

/* 浮动按钮样式 */
.float-btns {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    min-width: 120px;
}

.float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.float-btn:active {
    transform: scale(0.95);
}

.btn-payment {
    background: #ff4757;
    border: 2px solid #ff6b81;
}

.btn-refund {
    background: #2ed573;
    border: 2px solid #7bed9f;
}

.btn-complaint {
    background: #3742fa;
    border: 2px solid #5352ed;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 12px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .thumbnail {
        height: 140px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* 浮动按钮适配 */
    .float-btns {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .float-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
    }
}

/* 手机设备优化 */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .container {
        padding: 8px;
    }
    
    header {
        padding: 10px 0;
        margin-bottom: 12px;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    
    .logo-icon::before {
        font-size: 12px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    nav a {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin: 10px 0 15px;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .game-card {
        border-radius: 6px;
    }
    
    .premium-badge {
        top: 6px;
        right: 6px;
        padding: 2px 5px;
        font-size: 0.65rem;
    }
    
    .thumbnail {
        height: 110px;
    }
    
    .play-icon {
        width: 30px;
        height: 30px;
    }
    
    .play-icon::before {
        font-size: 12px;
    }
    
    .game-info {
        padding: 8px;
    }
    
    .game-info h3 {
        font-size: 0.9rem;
        margin-bottom: 4px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.4em;
        line-height: 1.2;
    }
    
    .game-info p {
        display: none;
    }
    
    .meta {
        font-size: 0.7rem;
    }
    
    .game-tag {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .load-more-btn {
        padding: 10px 30px;
        font-size: 1rem;
    }
    
    .purchase-modal {
        padding: 18px;
        max-width: 95%;
    }
    
    .purchase-modal h2 {
        font-size: 1.2rem;
    }
    
    .purchase-options {
        gap: 10px;
        margin: 15px 0;
    }
    
    .purchase-option {
        padding: 12px;
    }
    
    .purchase-option h3 {
        font-size: 1.1rem;
    }
    
    .purchase-option .price {
        font-size: 1.3rem;
    }
    
    .purchase-option .desc {
        font-size: 0.8rem;
    }
    
    .close-modal {
        padding: 7px 14px;
        font-size: 0.85rem;
    }
    
    footer {
        padding: 20px 0 10px;
        font-size: 0.75rem;
    }
}
