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

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #1a1a2e;
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    color: #e94560;
    text-align: center;
    margin-bottom: 15px;
    font-size: 28px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: #ccc;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

nav a:hover, nav a.active {
    background: #e94560;
    color: #fff;
}

/* Hero */
.hero, .latest, .categories {
    margin: 40px 0;
}

.hero h2, .latest h2, .categories h2 {
    color: #e94560;
    margin-bottom: 20px;
    font-size: 24px;
    border-left: 4px solid #e94560;
    padding-left: 15px;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.game-card {
    background: #16213e;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(233, 69, 96, 0.3);
}

.game-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.game-card .info {
    padding: 15px;
}

.game-card .title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card .meta {
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
}

.game-card .price {
    color: #4ade80;
    font-weight: bold;
}

.game-card .free {
    color: #e94560;
}

/* Category */
.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.category-item {
    background: #16213e;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.category-item:hover {
    background: #e94560;
    transform: scale(1.05);
}

/* Detail Page */
.detail-page {
    background: #16213e;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
}

.detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-header img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.detail-info {
    flex: 1;
}

.detail-info h2 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 15px;
}

.detail-info .tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-info .tag {
    background: #e94560;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

.detail-info .desc {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    margin: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: #fff;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.5);
}

.btn-secondary {
    background: #333;
    color: #fff;
}

.btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Transfer Status */
.transfer-box {
    background: #1a1a2e;
    border: 2px solid #e94560;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.transfer-box h3 {
    color: #e94560;
    margin-bottom: 20px;
}

.transfer-status {
    font-size: 18px;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-processing {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.status-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.status-failed {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.copy-box {
    background: #0f0f23;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    word-break: break-all;
    font-family: monospace;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #666;
    margin-top: 50px;
    border-top: 1px solid #333;
}

/* Search */
.search-box {
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    background: #16213e;
    color: #fff;
    font-size: 16px;
}

.search-box button {
    padding: 15px 30px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 50px;
    color: #e94560;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top-color: #e94560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
    }
    
    .detail-header img {
        width: 100%;
        height: 300px;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    nav {
        gap: 10px;
    }
    
    nav a {
        padding: 6px 12px;
        font-size: 14px;
    }
}
