/**
 * 轩玩 CMS UIKit Theme
 * Modern, responsive theme for game download & gift code sites
 */

/* ========== CSS Variables ========== */
:root {
    --gm-primary: #6366f1;
    --gm-primary-light: #818cf8;
    --gm-primary-dark: #4f46e5;
    --gm-primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gm-accent: #06b6d4;
    --gm-accent-gradient: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    --gm-success: #10b981;
    --gm-success-light: #34d399;
    --gm-warning: #f59e0b;
    --gm-warning-light: #fbbf24;
    --gm-danger: #ef4444;
    --gm-danger-light: #f87171;
    --gm-bg: #0f172a;
    --gm-bg-card: #1e293b;
    --gm-bg-card-hover: #334155;
    --gm-bg-hover: #334155;
    --gm-text: #f8fafc;
    --gm-text-dim: #94a3b8;
    --gm-text-light: #64748b;
    --gm-border: #334155;
    --gm-border-light: #475569;
    --gm-shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --gm-shadow: 0 4px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
    --gm-shadow-md: 0 10px 15px rgba(0,0,0,0.4), 0 4px 6px rgba(0,0,0,0.3);
    --gm-shadow-lg: 0 20px 25px rgba(0,0,0,0.4), 0 10px 14px rgba(0,0,0,0.3);
    --gm-shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --gm-radius: 16px;
    --gm-radius-sm: 10px;
    --gm-radius-lg: 24px;
    --gm-radius-full: 9999px;
}

/* ========== Global ========== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    scroll-behavior: smooth;
}

body {
    background: var(--gm-bg);
    color: var(--gm-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
    border-radius: var(--gm-radius-sm);
}

pre, code {
    max-width: 100%;
    overflow-x: auto;
}

/* ========== Navbar ========== */
.gm-navbar {
    background: rgba(30, 41, 59, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gm-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.gm-navbar.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.gm-navbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-logo {
    font-size: 22px !important;
    font-weight: 800;
    color: var(--gm-primary-light) !important;
    gap: 10px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.gm-logo-icon {
    font-size: 28px;
    background: var(--gm-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gm-logo-pulse 3s ease-in-out infinite;
}

@keyframes gm-logo-pulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.8)); }
}

.gm-nav > li > a {
    font-size: 15px;
    font-weight: 600;
    color: var(--gm-text-dim) !important;
    gap: 8px;
    padding: 0 20px !important;
    min-height: 64px !important;
    transition: all 0.3s ease;
    position: relative;
}

.gm-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gm-primary-gradient);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.gm-nav > li > a:hover {
    color: var(--gm-primary-light) !important;
}

.gm-nav > li > a:hover::after {
    width: 60%;
}

.gm-nav > li.uk-active > a {
    color: var(--gm-primary-light) !important;
    font-weight: 700;
}

.gm-nav > li.uk-active > a::after {
    width: 60%;
}

.gm-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gm-text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    background: var(--gm-bg-card);
    border: 1px solid var(--gm-border);
}

.gm-icon-btn:hover {
    background: var(--gm-primary);
    color: #fff;
    border-color: var(--gm-primary);
    transform: scale(1.1);
    box-shadow: var(--gm-shadow-glow);
}

/* ========== Mobile Nav ========== */
.gm-offcanvas-bar {
    background: var(--gm-bg-card) !important;
    border-left: 1px solid var(--gm-border);
}

.gm-offcanvas-close {
    color: var(--gm-text) !important;
    padding: 12px;
    transition: all 0.2s;
}

.gm-offcanvas-close:hover {
    background: var(--gm-bg-hover);
    border-radius: 50%;
}

.gm-mobile-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--gm-primary-light);
    padding: 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gm-border);
    margin-bottom: 0;
}

.gm-mobile-logo i {
    font-size: 32px;
    background: var(--gm-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gm-mobile-nav > li > a {
    font-size: 16px;
    color: var(--gm-text) !important;
    padding: 16px 0 !important;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s;
    border-radius: var(--gm-radius-sm);
    margin: 0 12px;
}

.gm-mobile-nav > li > a:hover {
    background: var(--gm-bg-hover);
    padding-left: 8px !important;
}

.gm-mobile-nav > li.uk-active > a {
    color: var(--gm-primary-light) !important;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.1);
}

.gm-mobile-nav > li > a i {
    width: 28px;
    text-align: center;
    color: var(--gm-primary-light);
    font-size: 18px;
}

.gm-mobile-nav .uk-nav-divider {
    border-color: var(--gm-border);
    margin: 8px 12px;
}

/* ========== Hero Section ========== */
.gm-hero {
    background: var(--gm-primary-gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--gm-radius-lg) var(--gm-radius-lg);
}

.gm-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: gm-float 8s ease-in-out infinite;
}

.gm-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: gm-float 10s ease-in-out infinite reverse;
}

@keyframes gm-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.gm-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.gm-hero h1 {
    font-size: clamp(32px, 8vw, 56px);
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.gm-hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gm-hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.gm-hero-stat {
    text-align: center;
}

.gm-hero-stat .num {
    font-size: 40px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.gm-hero-stat .label {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 4px;
    display: block;
}

/* ========== Section ========== */
.gm-section {
    padding: 50px 0;
}

.gm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.gm-section-title {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--gm-text);
}

.gm-section-title i {
    color: var(--gm-primary-light);
    font-size: 22px;
    padding: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--gm-radius-sm);
}

.gm-section-more {
    font-size: 14px;
    color: var(--gm-text-dim);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: var(--gm-radius-sm);
    background: var(--gm-bg-card);
    border: 1px solid var(--gm-border);
}

.gm-section-more:hover {
    color: var(--gm-primary-light);
    gap: 10px;
    border-color: var(--gm-primary);
    background: rgba(99, 102, 241, 0.1);
}

.gm-section-subtitle {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gm-text);
}

.gm-section-subtitle i {
    color: var(--gm-primary);
}

/* ========== List Header ========== */
.gm-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.gm-list-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--gm-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gm-list-title i {
    color: var(--gm-primary);
}

.gm-list-count {
    font-size: 14px;
    color: var(--gm-text-light);
    background: var(--gm-bg-card);
    padding: 6px 16px;
    border-radius: var(--gm-radius-full);
    border: 1px solid var(--gm-border);
}

/* ========== Filter Bar ========== */
.gm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.gm-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--gm-radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--gm-text-dim);
    background: var(--gm-bg-card);
    border: 1px solid var(--gm-border);
    text-decoration: none;
    transition: all 0.3s;
}

.gm-filter-tag:hover {
    color: var(--gm-primary-light);
    border-color: var(--gm-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.gm-filter-active {
    color: #fff;
    background: var(--gm-primary-gradient);
    border-color: var(--gm-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.gm-filter-active:hover {
    color: #fff;
    background: var(--gm-primary-dark);
    border-color: var(--gm-primary-dark);
}

.gm-filter-count {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: var(--gm-radius-full);
    color: inherit;
}

.gm-filter-active .gm-filter-count {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 767px) {
    .gm-list-title {
        font-size: 20px;
    }
    .gm-filter-bar {
        gap: 8px;
        margin-bottom: 20px;
    }
    .gm-filter-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ========== Cards ========== */
.gm-card {
    background: var(--gm-bg-card);
    border-radius: var(--gm-radius);
    border: 1px solid var(--gm-border);
    padding: 28px;
    transition: all 0.35s;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.gm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gm-primary-gradient);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.gm-card:hover {
    box-shadow: var(--gm-shadow-lg);
    border-color: var(--gm-primary);
    transform: translateY(-4px);
}

.gm-card:hover::before {
    transform: scaleX(1);
}

.gm-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gm-text);
}

.gm-card-title i {
    color: var(--gm-primary);
    font-size: 18px;
}

/* ========== Game Cards ========== */
.gm-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.gm-game-card {
    display: block;
    background: var(--gm-bg-card);
    border-radius: var(--gm-radius);
    border: 1px solid var(--gm-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s;
    position: relative;
}

.gm-game-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gm-shadow-lg);
    border-color: var(--gm-primary);
}

.gm-game-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 16px;
    background: var(--gm-bg);
    transition: transform 0.3s;
}

.gm-game-card:hover .gm-game-card-img {
    transform: scale(1.05);
}

.gm-game-card-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gm-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
}

.gm-game-card-body {
    padding: 14px;
}

.gm-game-card-name {
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 10px;
    color: var(--gm-text);
}

.gm-game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.gm-game-card-platform {
    font-size: 11px;
    color: var(--gm-text-light);
    background: var(--gm-bg);
    padding: 3px 10px;
    border-radius: var(--gm-radius-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.gm-game-card-download {
    font-size: 11px;
    color: var(--gm-text-light);
    white-space: nowrap;
}

.gm-game-card-btn {
    font-size: 12px;
    color: var(--gm-primary-light);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gm-game-card-gift {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.gm-game-card-gift i {
    font-size: 20px;
    color: var(--gm-warning);
    animation: gm-pulse 2s infinite;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

@keyframes gm-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* ========== Game Cards Flat ========== */
.gm-game-grid-flat {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

.gm-game-card-flat {
    display: flex;
    flex-direction: column;
    background: var(--gm-bg-card);
    border-radius: var(--gm-radius);
    border: 1px solid var(--gm-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s;
}

.gm-game-card-flat:hover {
    transform: translateY(-5px);
    box-shadow: var(--gm-shadow-md);
    border-color: var(--gm-primary);
}

.gm-game-card-flat-icon {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-game-card-flat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform 0.3s;
}

.gm-game-card-flat:hover .gm-game-card-flat-icon img {
    transform: scale(1.08);
}

.gm-game-card-flat-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gm-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
}

.gm-game-card-flat-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gm-game-card-flat-name {
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--gm-text);
}

.gm-game-card-flat-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.gm-game-card-flat-platform {
    font-size: 11px;
    color: var(--gm-text-light);
    background: var(--gm-bg);
    padding: 3px 10px;
    border-radius: var(--gm-radius-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.gm-game-card-flat-action {
    font-size: 12px;
    color: var(--gm-primary-light);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ========== Article List Flat ========== */
.gm-article-list-flat {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gm-article-item-flat {
    display: flex;
    background: var(--gm-bg-card);
    border-radius: var(--gm-radius);
    border: 1px solid var(--gm-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s;
}

.gm-article-item-flat:hover {
    transform: translateY(-3px);
    box-shadow: var(--gm-shadow-md);
    border-color: var(--gm-primary);
}

.gm-article-item-flat-cover {
    width: 220px;
    min-height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--gm-radius) 0 0 var(--gm-radius);
}

.gm-article-item-flat-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gm-article-item-flat:hover .gm-article-item-flat-cover img {
    transform: scale(1.1);
}

.gm-article-item-flat-noimg {
    background: var(--gm-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
}

.gm-article-item-flat-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.gm-article-item-flat-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gm-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.gm-article-item-flat-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gm-text-light);
}

.gm-article-item-flat-summary {
    font-size: 14px;
    color: var(--gm-text-dim);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .gm-game-grid-flat {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .gm-game-card-flat-body {
        padding: 10px;
    }
    .gm-game-card-flat-name {
        font-size: 12px;
    }
    .gm-game-card-flat-platform {
        font-size: 10px;
        padding: 2px 6px;
        max-width: 50px;
    }
    .gm-game-card-flat-action {
        font-size: 11px;
    }
    .gm-article-item-flat {
        flex-direction: column;
    }
    .gm-article-item-flat-cover {
        width: 100%;
        height: 180px;
        border-radius: var(--gm-radius) var(--gm-radius) 0 0;
    }
    .gm-article-item-flat-body {
        padding: 14px;
    }
    .gm-article-item-flat-title {
        font-size: 16px;
    }
    .gm-article-item-flat-summary {
        font-size: 13px;
    }
}

@media (max-width: 375px) {
    .gm-game-grid-flat {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ========== Article Cards ========== */
.gm-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gm-article-card {
    display: block;
    background: var(--gm-bg-card);
    border-radius: var(--gm-radius);
    border: 1px solid var(--gm-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s;
}

.gm-article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--gm-shadow-md);
    border-color: var(--gm-primary);
}

.gm-article-card .gm-mobile-only {
    display: block;
}

.gm-article-card .gm-desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .gm-article-card .gm-mobile-only {
        display: none !important;
    }
    .gm-article-card .gm-desktop-only {
        display: flex !important;
    }
}

.gm-article-card-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s;
}

.gm-article-card:hover .gm-article-card-cover {
    transform: scale(1.05);
}

.gm-article-card-body {
    padding: 18px;
}

.gm-article-card-title {
    font-size: 16px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 10px;
    color: var(--gm-text);
}

.gm-article-card-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--gm-text-light);
}

/* ========== Post Cards (List) ========== */
.gm-post-card {
    display: flex;
    background: var(--gm-bg-card);
    border-radius: var(--gm-radius);
    border: 1px solid var(--gm-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s;
    margin-bottom: 20px;
}

.gm-post-card:hover {
    box-shadow: var(--gm-shadow-md);
    border-color: var(--gm-primary);
    transform: translateY(-2px);
}

.gm-post-cover {
    width: 260px;
    min-height: 180px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border-radius: var(--gm-radius) 0 0 var(--gm-radius);
}

.gm-post-content {
    padding: 24px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.gm-post-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--gm-text);
}

.gm-post-title a {
    color: inherit;
    text-decoration: none;
}

.gm-post-title a:hover {
    color: var(--gm-primary-light);
}

.gm-post-meta {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: var(--gm-text-light);
    margin-bottom: 12px;
}

.gm-post-summary {
    font-size: 15px;
    color: var(--gm-text-dim);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ========== Tags ========== */
.gm-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    overflow: hidden;
}

.gm-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gm-bg-card);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-full);
    font-size: 13px;
    color: var(--gm-text-dim);
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gm-tag:hover {
    background: var(--gm-primary);
    color: #fff;
    border-color: var(--gm-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.gm-tag-primary {
    background: var(--gm-primary-gradient);
    color: #fff;
    border-color: var(--gm-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.gm-tag-primary:hover {
    background: var(--gm-primary-dark);
    border-color: var(--gm-primary-dark);
}

@media (max-width: 480px) {
    .gm-tag-list {
        gap: 8px;
    }
    .gm-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ========== Breadcrumb ========== */
.gm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gm-text-light);
    margin-bottom: 24px;
    flex-wrap: wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
}

.gm-breadcrumb a {
    color: var(--gm-text-dim);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.gm-breadcrumb a:hover {
    color: var(--gm-primary-light);
}

.gm-breadcrumb .sep {
    color: var(--gm-text-light);
    flex-shrink: 0;
    user-select: none;
}

.gm-breadcrumb span:not(.sep) {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .gm-breadcrumb {
        font-size: 13px;
        gap: 6px;
        margin-bottom: 20px;
    }
    .gm-breadcrumb span:not(.sep) {
        max-width: 140px;
    }
}

/* ========== Article Detail ========== */
.gm-article-detail-header {
    padding: 40px;
    border-bottom: 1px solid var(--gm-border);
    background: var(--gm-bg-card);
    border-radius: var(--gm-radius) var(--gm-radius) 0 0;
}

.gm-article-detail-cover {
    margin-bottom: 24px;
    border-radius: var(--gm-radius);
    overflow: hidden;
    box-shadow: var(--gm-shadow);
}

.gm-article-detail-cover img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.gm-article-detail-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--gm-text);
    line-height: 1.4;
    margin: 0 0 20px;
}

.gm-article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--gm-text-light);
}

.gm-article-detail-meta .gm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gm-article-detail-meta .gm-meta-item i {
    color: var(--gm-primary);
    font-size: 14px;
}

.gm-article-detail-tags {
    padding: 24px 40px;
    border-top: 1px solid var(--gm-border);
    background: var(--gm-bg-card);
}

.gm-related-articles {
    padding: 20px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--gm-bg-card);
}

.gm-related-article-item {
    display: flex;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--gm-border);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    align-items: flex-start;
}

.gm-related-article-item:last-child {
    border-bottom: none;
}

.gm-related-article-item:hover {
    background: var(--gm-bg-hover);
    border-radius: var(--gm-radius-sm);
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
}

.gm-related-article-cover {
    width: 120px;
    height: 80px;
    border-radius: var(--gm-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    object-fit: cover;
}

.gm-related-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gm-related-article-noimg {
    background: var(--gm-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.gm-related-article-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gm-related-article-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gm-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gm-related-article-item:hover .gm-related-article-title {
    color: var(--gm-primary-light);
}

.gm-related-article-summary {
    font-size: 14px;
    color: var(--gm-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.gm-related-article-date {
    font-size: 12px;
    color: var(--gm-text-light);
}

@media (max-width: 767px) {
    .gm-article-detail-header {
        padding: 24px;
    }
    .gm-article-detail-title {
        font-size: 22px;
    }
    .gm-article-detail-cover img {
        max-height: 280px;
    }
    .gm-article-detail-tags {
        padding: 20px 24px;
    }
    .article-content {
        padding: 24px;
    }
    .gm-related-article-item {
        flex-direction: column;
        gap: 12px;
    }
    .gm-related-article-cover {
        width: 100%;
        height: 180px;
    }
}

/* ========== Article Content ========== */
.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--gm-text-dim);
    word-break: break-word;
    padding: 32px 40px;
    background: var(--gm-bg-card);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--gm-text);
    margin: 30px 0 16px;
    font-weight: 800;
}

.article-content h2 {
    font-size: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gm-border);
}

.article-content h3 {
    font-size: 20px;
}

.article-content h4 {
    font-size: 18px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--gm-radius);
    margin: 20px 0;
    box-shadow: var(--gm-shadow);
}

.article-content blockquote {
    border-left: 4px solid var(--gm-primary);
    padding: 16px 24px;
    margin: 20px 0;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 0 var(--gm-radius) var(--gm-radius) 0;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 32px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a {
    color: var(--gm-primary-light);
    text-decoration: none;
    transition: color 0.2s;
}

.article-content a:hover {
    color: var(--gm-accent);
}

.article-content code {
    background: var(--gm-bg);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--gm-warning);
}

.article-content pre {
    background: var(--gm-bg);
    padding: 20px;
    border-radius: var(--gm-radius);
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--gm-border);
}

.article-content pre code {
    background: none;
    padding: 0;
    color: var(--gm-text);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
    background: var(--gm-bg);
    border-radius: var(--gm-radius);
    overflow: hidden;
}

.article-content th,
.article-content td {
    border: 1px solid var(--gm-border);
    padding: 14px 18px;
    text-align: left;
}

.article-content th {
    background: var(--gm-bg-card);
    font-weight: 700;
    color: var(--gm-text);
}

/* ========== Pagination ========== */
.gm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.gm-pagination a,
.gm-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--gm-radius-sm);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.gm-pagination a {
    color: var(--gm-text-dim);
    background: var(--gm-bg-card);
    border: 1px solid var(--gm-border);
}

.gm-pagination a:hover {
    border-color: var(--gm-primary);
    color: var(--gm-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.gm-pagination span {
    color: var(--gm-text-light);
    font-weight: 400;
    cursor: default;
}

.gm-pagination span.current {
    background: var(--gm-primary-gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* ========== Forms ========== */
.gm-input {
    width: 100%;
    max-width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    background: var(--gm-bg);
    color: var(--gm-text);
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
}

.gm-input:focus {
    border-color: var(--gm-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.gm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--gm-radius-sm);
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

.gm-btn:hover::before {
    left: 100%;
}

.gm-btn-primary {
    background: var(--gm-primary-gradient);
    color: #fff;
}

.gm-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.gm-btn-secondary {
    background: var(--gm-bg-card);
    color: var(--gm-text-dim);
    border: 2px solid var(--gm-border);
}

.gm-btn-secondary:hover {
    border-color: var(--gm-primary);
    color: var(--gm-primary);
}

.gm-btn-success {
    background: var(--gm-success);
    color: #fff;
}

.gm-btn-success:hover {
    background: var(--gm-success-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.gm-btn-danger {
    background: var(--gm-danger);
    color: #fff;
}

.gm-btn-danger:hover {
    background: var(--gm-danger-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.gm-btn-download {
    padding: 14px 28px;
    border-radius: var(--gm-radius-sm);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.gm-btn-android {
    background: linear-gradient(135deg, #3ddc84, #22c55e);
    color: #fff;
}

.gm-btn-android:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 220, 132, 0.4);
}

.gm-btn-ios {
    background: linear-gradient(135deg, #007aff, #0066d6);
    color: #fff;
}

.gm-btn-ios:hover {
    background: linear-gradient(135deg, #0066d6, #0055b3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* ========== Comments ========== */
.gm-comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gm-comment-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--gm-bg-card);
    border-radius: var(--gm-radius);
    border: 1px solid var(--gm-border);
}

.gm-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gm-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.gm-comment-body {
    flex: 1;
    min-width: 0;
}

.gm-comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.gm-comment-nick {
    font-weight: 700;
    font-size: 15px;
    color: var(--gm-text);
}

.gm-comment-time {
    font-size: 12px;
    color: var(--gm-text-light);
}

.gm-comment-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gm-text-dim);
    word-break: break-word;
}

.gm-comment-reply-btn {
    background: none;
    border: none;
    color: var(--gm-primary);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 12px;
    margin-left: auto;
    border-radius: var(--gm-radius-sm);
    transition: background 0.2s;
}

.gm-comment-reply-btn:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* ========== Footer ========== */
.gm-footer {
    background: var(--gm-bg-card);
    color: var(--gm-text-light);
    padding: 50px 0 24px;
    margin-top: 50px;
    border-top: 1px solid var(--gm-border);
}

.gm-footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.gm-footer-col {
    flex: 1 1 200px;
    min-width: 200px;
}

.gm-footer-brand {
    font-size: 26px;
    font-weight: 900;
    color: var(--gm-primary-light);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.gm-footer-brand i {
    font-size: 28px;
    background: var(--gm-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gm-footer-desc {
    font-size: 15px;
    line-height: 1.7;
    max-width: 350px;
    color: var(--gm-text-dim);
}

.gm-footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gm-text);
    margin-bottom: 20px;
}

.gm-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gm-footer-links li {
    margin-bottom: 12px;
}

.gm-footer-links a {
    color: var(--gm-text-dim);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gm-footer-links a:hover {
    color: var(--gm-primary-light);
    transform: translateX(4px);
}

.gm-footer-bottom {
    border-top: 1px solid var(--gm-border);
    margin-top: 32px;
    padding-top: 20px;
    text-align: center;
}

.gm-footer-copy {
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--gm-text-light);
}

.gm-footer-powered {
    font-size: 12px;
    color: var(--gm-text-light);
}

.gm-footer-powered a {
    color: var(--gm-primary-light);
    text-decoration: none;
    transition: color 0.2s;
}

.gm-footer-powered a:hover {
    color: var(--gm-accent);
}

.gm-footer-icp {
    font-size: 12px;
    margin-top: 8px;
}

.gm-footer-icp a {
    color: var(--gm-text-light);
    text-decoration: none;
}

.gm-footer-extra {
    font-size: 12px;
    margin-top: 10px;
}

/* ========== Friend Links ========== */
.gm-friendlinks-section {
    background: var(--gm-bg);
    border-top: 1px solid var(--gm-border);
}

.gm-friendlinks {
    gap: 14px;
}

.gm-friendlink {
    font-size: 14px;
    color: var(--gm-text-dim);
    text-decoration: none;
    padding: 8px 16px;
    background: var(--gm-bg-card);
    border-radius: var(--gm-radius-full);
    border: 1px solid var(--gm-border);
    transition: all 0.3s;
}

.gm-friendlink:hover {
    background: var(--gm-primary);
    color: #fff;
    border-color: var(--gm-primary);
    transform: translateY(-2px);
}

/* ========== Empty State ========== */
.gm-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--gm-text-light);
}

.gm-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    color: var(--gm-primary);
    opacity: 0.5;
}

.gm-empty p {
    font-size: 16px;
    margin-bottom: 24px;
}

/* ========== Alert ========== */
.gm-alert {
    padding: 16px 20px;
    border-radius: var(--gm-radius);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.gm-alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--gm-success);
    border-color: rgba(16, 185, 129, 0.2);
}

.gm-alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--gm-danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.gm-alert-info {
    background: rgba(99, 102, 241, 0.1);
    color: var(--gm-primary-light);
    border-color: rgba(99, 102, 241, 0.2);
}

/* ========== Game Detail ========== */
.gm-game-detail-header {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.gm-game-detail-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--gm-radius);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--gm-shadow-lg);
    border: 3px solid var(--gm-primary);
}

.gm-game-detail-info {
    flex: 1;
    min-width: 0;
}

.gm-game-detail-name {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--gm-text);
}

.gm-game-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--gm-text-dim);
}

.gm-detail-card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 28px;
}

.gm-detail-hero {
    position: relative;
    padding: 40px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
    background: var(--gm-bg-card);
}

.gm-detail-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gm-primary-gradient);
    opacity: 0.05;
    pointer-events: none;
}

.gm-detail-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.gm-detail-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--gm-radius);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--gm-shadow-lg);
    border: 3px solid var(--gm-primary);
}

.gm-detail-icon-placeholder {
    width: 100px;
    height: 100px;
    border-radius: var(--gm-radius);
    background: var(--gm-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
    flex-shrink: 0;
    box-shadow: var(--gm-shadow-lg);
}

.gm-detail-info {
    flex: 1;
    min-width: 0;
}

.gm-detail-name {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 12px;
    color: var(--gm-text);
}

.gm-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--gm-text-dim);
}

.gm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gm-bg);
    border-radius: var(--gm-radius-sm);
    border: 1px solid var(--gm-border);
}

.gm-detail-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 20px;
}

.gm-detail-actions .gm-btn {
    flex: 0 1 auto;
    min-width: 160px;
    max-width: 220px;
}

.gm-detail-body {
    padding: 32px;
    background: var(--gm-bg-card);
}

.gm-detail-section {
    margin-bottom: 28px;
}

.gm-detail-section:last-child {
    margin-bottom: 0;
}

.gm-detail-section-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gm-text);
}

.gm-detail-section-title i {
    color: var(--gm-primary);
}

.gm-detail-section-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--gm-text-dim);
    word-break: break-word;
}

.gm-gift-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--gm-text-light);
    background: var(--gm-bg);
    padding: 3px 10px;
    border-radius: var(--gm-radius-full);
}

.gm-gift-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 28px 28px;
    background: var(--gm-bg-card);
}

.gm-gift-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: var(--gm-bg);
    border-radius: var(--gm-radius);
    transition: all 0.3s;
    border: 1px solid var(--gm-border);
    position: relative;
}

.gm-gift-item:hover {
    border-color: var(--gm-primary);
    background: var(--gm-bg-card-hover);
    box-shadow: var(--gm-shadow);
}

.gm-gift-item-left {
    flex: 1;
    min-width: 0;
}

.gm-gift-item-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--gm-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gm-gift-type {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--gm-radius-full);
}

.gm-type-universal {
    background: rgba(16, 185, 129, 0.15);
    color: var(--gm-success);
}

.gm-type-exclusive {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gm-warning);
}

.gm-gift-item-desc {
    font-size: 14px;
    color: var(--gm-text-dim);
    margin-bottom: 6px;
    line-height: 1.6;
}

.gm-gift-item-time {
    font-size: 12px;
    color: var(--gm-text-light);
}

.gm-gift-item-right {
    flex-shrink: 0;
}

.gm-gift-exhausted {
    font-size: 14px;
    color: var(--gm-text-light);
    padding: 10px 20px;
    background: var(--gm-bg);
    border-radius: var(--gm-radius-sm);
    border: 1px solid var(--gm-border);
}

.gm-btn-claim {
    background: var(--gm-warning);
    color: #fff;
}

.gm-btn-claim:hover {
    background: var(--gm-warning-light);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.gm-btn-claimed {
    background: var(--gm-success) !important;
    cursor: not-allowed;
}

.gm-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    padding: 20px 24px 24px;
}

.gm-related-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--gm-bg);
    border-radius: var(--gm-radius);
    border: 1px solid var(--gm-border);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.gm-related-item:hover {
    border-color: var(--gm-primary);
    background: var(--gm-bg-card-hover);
    transform: translateY(-3px);
}

.gm-related-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--gm-radius-sm);
}

.gm-related-icon-placeholder {
    width: 64px;
    height: 64px;
    background: var(--gm-primary-gradient);
    border-radius: var(--gm-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.gm-related-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gm-text);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.gm-related-platform {
    font-size: 10px;
    color: var(--gm-text-light);
}

.gm-btn-like {
    transition: all 0.3s;
}

.gm-btn-liked {
    background: var(--gm-primary) !important;
    color: #fff !important;
}

.gm-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 14px 28px;
    border-radius: var(--gm-radius);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: var(--gm-shadow-lg);
}

.gm-toast-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.gm-toast-success {
    background: var(--gm-success);
}

.gm-toast-error {
    background: var(--gm-danger);
}

.gm-toast-info {
    background: var(--gm-primary);
}

.gm-search-page-section {
    padding: 40px 0;
}

.gm-search-header {
    text-align: center;
    margin-bottom: 32px;
}

.gm-search-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--gm-text);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.gm-search-title i {
    color: var(--gm-primary-light);
}

.gm-search-desc {
    font-size: 16px;
    color: var(--gm-text-dim);
    margin: 0;
}

.gm-search-form-wrapper {
    max-width: 600px;
    margin: 0 auto 32px;
}

.gm-search-form-container {
    display: flex;
    gap: 12px;
}

.gm-search-input-field {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--gm-border);
    border-radius: var(--gm-radius);
    background: var(--gm-bg);
    color: var(--gm-text);
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.gm-search-input-field:focus {
    border-color: var(--gm-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.gm-search-input-field::placeholder {
    color: var(--gm-text-light);
}

.gm-search-quick-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.gm-search-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gm-bg-card);
    border-radius: var(--gm-radius);
    border: 1px solid var(--gm-border);
    color: var(--gm-text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.gm-search-quick-link:hover {
    border-color: var(--gm-primary);
    color: var(--gm-primary-light);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.gm-search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.gm-search-tag {
    padding: 8px 16px;
    background: var(--gm-bg-card);
    border-radius: var(--gm-radius-full);
    border: 1px solid var(--gm-border);
    color: var(--gm-text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.gm-search-tag:hover {
    border-color: var(--gm-primary);
    color: var(--gm-primary-light);
    background: rgba(99, 102, 241, 0.1);
}

.gm-search-results-header {
    margin-bottom: 20px;
}

.gm-search-results-count {
    font-size: 15px;
    color: var(--gm-text-dim);
}

.gm-search-results-count strong {
    color: var(--gm-primary-light);
}

.gm-search-section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--gm-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gm-search-section-title i {
    color: var(--gm-primary);
}

.gm-search-count-badge {
    font-size: 12px;
    font-weight: 700;
    background: var(--gm-primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--gm-radius-full);
}

.gm-search-results-section {
    margin-bottom: 24px;
}

.gm-sidebar-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gm-border);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    align-items: center;
}

.gm-sidebar-item:hover {
    background: var(--gm-bg);
    padding-left: 8px;
}

.gm-sidebar-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--gm-radius-sm);
    flex-shrink: 0;
}

.gm-ranking-section {
    padding: 50px 0;
}

.gm-ranking-header {
    text-align: center;
    margin-bottom: 40px;
}

.gm-ranking-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--gm-text);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.gm-ranking-title i {
    color: var(--gm-warning);
}

.gm-ranking-desc {
    font-size: 16px;
    color: var(--gm-text-dim);
    margin: 0;
}

.gm-ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.gm-ranking-tab {
    padding: 10px 24px;
    border-radius: var(--gm-radius-full);
    font-size: 14px;
    font-weight: 700;
    color: var(--gm-text-dim);
    background: var(--gm-bg-card);
    border: 1px solid var(--gm-border);
    cursor: pointer;
    transition: all 0.3s;
}

.gm-ranking-tab.active {
    background: var(--gm-primary-gradient);
    color: #fff;
    border-color: var(--gm-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.gm-ranking-tab:hover:not(.active) {
    border-color: var(--gm-primary);
    color: var(--gm-primary-light);
}

.gm-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gm-ranking-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--gm-bg-card);
    border-radius: var(--gm-radius);
    border: 1px solid var(--gm-border);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.gm-ranking-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--gm-shadow-md);
    border-color: var(--gm-primary);
}

.gm-ranking-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    flex-shrink: 0;
}

.gm-ranking-rank.top1 {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.gm-ranking-rank.top2 {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #fff;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

.gm-ranking-rank.top3 {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #fff;
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

.gm-ranking-rank.other {
    background: var(--gm-bg);
    color: var(--gm-text-light);
    border: 1px solid var(--gm-border);
}

.gm-ranking-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--gm-radius);
    object-fit: contain;
    flex-shrink: 0;
    background: var(--gm-bg);
    padding: 8px;
}

.gm-ranking-info {
    flex: 1;
    min-width: 0;
}

.gm-ranking-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--gm-text);
    margin-bottom: 6px;
}

.gm-ranking-meta {
    font-size: 13px;
    color: var(--gm-text-light);
    display: flex;
    gap: 16px;
}

.gm-ranking-score {
    flex-shrink: 0;
    text-align: right;
}

.gm-ranking-score-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--gm-primary-light);
    display: block;
}

.gm-ranking-score-label {
    font-size: 12px;
    color: var(--gm-text-light);
}

.gm-hot-search-section {
    padding: 40px 0;
}

.gm-hot-search-header {
    text-align: center;
    margin-bottom: 32px;
}

.gm-hot-search-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--gm-text);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gm-hot-search-title i {
    color: var(--gm-danger);
}

.gm-hot-search-desc {
    font-size: 15px;
    color: var(--gm-text-dim);
    margin: 0;
}

.gm-hot-search-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.gm-hot-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--gm-bg-card);
    border-radius: var(--gm-radius);
    border: 1px solid var(--gm-border);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.gm-hot-search-item:hover {
    border-color: var(--gm-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.gm-hot-search-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    background: var(--gm-bg);
    color: var(--gm-text-light);
}

.gm-hot-search-rank.top1 {
    background: var(--gm-danger);
    color: #fff;
}

.gm-hot-search-rank.top2 {
    background: var(--gm-warning);
    color: #fff;
}

.gm-hot-search-rank.top3 {
    background: var(--gm-success);
    color: #fff;
}

.gm-hot-search-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--gm-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gm-hot-search-count {
    font-size: 12px;
    color: var(--gm-text-light);
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .gm-section {
        padding: 30px 0;
    }

    .gm-hero {
        padding: 50px 0;
    }

    .gm-hero h1 {
        font-size: 28px;
    }

    .gm-hero p {
        font-size: 16px;
        padding: 0 20px;
    }

    .gm-hero-stats {
        gap: 30px;
        margin-top: 30px;
    }

    .gm-hero-stat .num {
        font-size: 30px;
    }

    .gm-section-header {
        margin-bottom: 20px;
    }

    .gm-section-title {
        font-size: 20px;
    }

    .gm-game-grid-flat {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .gm-game-card-flat-body {
        padding: 10px;
    }

    .gm-game-card-flat-name {
        font-size: 12px;
    }

    .gm-game-card-flat-platform {
        font-size: 10px;
        padding: 2px 6px;
        max-width: 50px;
    }

    .gm-game-card-flat-action {
        font-size: 11px;
    }

    .gm-article-item-flat {
        flex-direction: column;
    }

    .gm-article-item-flat-cover {
        width: 100%;
        height: 180px;
        border-radius: var(--gm-radius) var(--gm-radius) 0 0;
    }

    .gm-article-item-flat-body {
        padding: 14px;
    }

    .gm-article-item-flat-title {
        font-size: 16px;
    }

    .gm-article-item-flat-summary {
        font-size: 13px;
    }

    .gm-breadcrumb {
        font-size: 13px;
        gap: 6px;
        margin-bottom: 20px;
    }

    .gm-detail-hero {
        padding: 24px;
    }

    .gm-detail-icon {
        width: 80px;
        height: 80px;
    }

    .gm-detail-name {
        font-size: 24px;
    }

    .gm-detail-actions {
        gap: 10px;
        margin-top: 16px;
    }

    .gm-detail-actions .gm-btn {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .gm-detail-body {
        padding: 20px;
    }

    .gm-gift-list {
        padding: 14px;
    }

    .gm-gift-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 14px;
    }

    .gm-gift-item-right {
        width: 100%;
    }

    .gm-btn-claim {
        width: 100%;
        justify-content: center;
    }

    .gm-related-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .gm-related-icon {
        width: 48px;
        height: 48px;
    }

    .gm-related-icon-placeholder {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .gm-related-name {
        font-size: 11px;
    }

    .gm-search-page-section {
        padding: 30px 0;
    }

    .gm-search-title {
        font-size: 24px;
    }

    .gm-search-form-container {
        flex-direction: column;
    }

    .gm-search-quick-links {
        gap: 12px;
    }

    .gm-search-quick-link {
        padding: 8px 16px;
        font-size: 13px;
    }

    .gm-ranking-title {
        font-size: 24px;
    }

    .gm-ranking-item {
        padding: 16px;
        gap: 14px;
    }

    .gm-ranking-rank {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .gm-ranking-icon {
        width: 48px;
        height: 48px;
    }

    .gm-ranking-name {
        font-size: 14px;
    }

    .gm-ranking-score-value {
        font-size: 20px;
    }

    .gm-hot-search-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gm-hot-search-item {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .gm-game-grid-flat {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gm-tag-list {
        gap: 8px;
    }

    .gm-tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .gm-detail-icon {
        width: 64px;
        height: 64px;
    }

    .gm-detail-name {
        font-size: 20px;
    }

    .gm-detail-actions .gm-btn {
        min-width: 100%;
        max-width: 100%;
    }

    .gm-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gm-search-title {
        font-size: 20px;
    }

    .gm-search-desc {
        font-size: 14px;
    }

    .gm-search-quick-links {
        flex-direction: column;
        align-items: center;
    }

    .gm-search-quick-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .gm-ranking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .gm-ranking-rank {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .gm-ranking-info {
        width: 100%;
    }

    .gm-ranking-score {
        width: 100%;
        text-align: left;
        padding-top: 10px;
        border-top: 1px solid var(--gm-border);
    }

    .gm-hot-search-list {
        grid-template-columns: 1fr;
    }

    .gm-hot-search-title {
        font-size: 22px;
    }

    .gm-footer-grid {
        gap: 24px;
    }

    .gm-footer-col {
        min-width: 100%;
    }

    .gm-footer-brand {
        font-size: 22px;
    }
}