/* =====================================================
   小游戏天堂 - 主样式表
   4399风格绿色主题
   ===================================================== */

/* === 基础重置与变量 === */
:root {
    --primary: #67c23a;
    --primary-dark: #529b2e;
    --primary-light: #95d475;
    --primary-bg: #f0f9eb;
    --accent: #ff6633;
    --accent-hover: #e55a2b;
    --danger: #f56c6c;
    --warning: #e6a23c;
    --success: #67c23a;
    --info: #409eff;
    --text-primary: #303133;
    --text-regular: #606266;
    --text-secondary: #909399;
    --text-placeholder: #c0c4cc;
    --border: #dcdfe6;
    --border-light: #e4e7ed;
    --bg-white: #ffffff;
    --bg-page: #f5f7fa;
    --bg-dark: #2c3e50;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: all 0.3s ease;
    --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-page);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* === 顶部工具栏 === */
.top-bar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #b0bec5;
    font-size: 12px;
    height: 36px;
    line-height: 36px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: 5px;
    align-items: center;
}

.top-link {
    color: #b0bec5;
    padding: 0 10px;
    font-size: 12px;
    transition: var(--transition);
}

.top-link:hover {
    color: #ffffff;
}

.register-link {
    background: var(--accent);
    color: #fff !important;
    border-radius: 3px;
    padding: 2px 12px;
}

.admin-link {
    color: var(--warning) !important;
}

/* === 主头部 === */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-light);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 32px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-form {
    display: flex;
    flex: 1;
    max-width: 500px;
}

.search-input {
    flex: 1;
    height: 40px;
    padding: 0 16px;
    border: 2px solid var(--primary);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: var(--font-family);
}

.search-input:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(103, 194, 58, 0.15);
}

.search-btn {
    height: 40px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    white-space: nowrap;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3e7b20 100%);
    transform: translateX(1px);
}

/* === 分类导航 === */
.category-nav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 8px rgba(103, 194, 58, 0.3);
}

.category-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.category-list li a {
    display: block;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.category-list li a:hover,
.category-list li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* === Flash 消息 === */
.alert {
    padding: 12px 20px;
    margin: 15px auto;
    max-width: 1200px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.3s ease;
    font-size: 14px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #f0f9eb;
    color: var(--primary-dark);
    border: 1px solid var(--primary-light);
}

.alert-danger {
    background: #fef0f0;
    color: #c45656;
    border: 1px solid #fab6b6;
}

.alert-warning {
    background: #fdf6ec;
    color: #b88230;
    border: 1px solid #f3d19e;
}

.alert-info {
    background: #ecf5ff;
    color: #337ecc;
    border: 1px solid #a0cfff;
}

.alert-close {
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    padding: 0 5px;
}

.alert-close:hover {
    opacity: 1;
}

/* === 主内容区 === */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 20px 0;
}

/* === 区块标题 === */
.section {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .icon {
    font-size: 22px;
}

.section-more {
    color: var(--text-secondary);
    font-size: 13px;
}

.section-more:hover {
    color: var(--primary);
}

/* === 轮播图 === */
.banner-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    height: 300px;
    background: #000;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-placeholder {
    text-align: center;
    padding: 40px;
}

.banner-placeholder h2 {
    font-size: 28px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.banner-placeholder p {
    color: var(--text-secondary);
    font-size: 16px;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-nav:hover {
    background: rgba(0, 0, 0, 0.6);
}

.banner-prev {
    left: 15px;
}

.banner-next {
    right: 15px;
}

/* === 公告 === */
.announcement-bar {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 10px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-light);
    height: 44px;
}

.announcement-tag {
    background: var(--accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.announcement-scroll {
    flex: 1;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.announcement-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.announcement-list li {
    height: 24px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.announcement-list a {
    color: var(--text-regular);
    font-size: 13px;
    transition: var(--transition);
    display: block;
}

.announcement-list a:hover {
    color: var(--primary);
}

/* === 内容布局 === */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    min-width: 0;
}

/* === 游戏网格 === */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.game-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.game-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.game-card-thumb {
    position: relative;
    padding-top: 100%;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    overflow: hidden;
}

.game-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-card-thumb img {
    transform: scale(1.08);
}

.game-card-thumb .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay-btn {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 102, 51, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 102, 51, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 102, 51, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 102, 51, 0);
    }
}

.game-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.badge-hot {
    background: var(--danger);
}

.badge-new {
    background: var(--info);
}

.badge-featured {
    background: var(--accent);
}

.game-card-info {
    padding: 10px 12px;
}

.game-card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-secondary);
}

.game-card-plays {
    display: flex;
    align-items: center;
    gap: 3px;
}

.game-card-rating {
    color: var(--warning);
}

/* === 侧边栏 === */
.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-body {
    padding: 12px;
}

.ranking-list {
    list-style: none;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
}

.ranking-num {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.ranking-num.top1 {
    background: linear-gradient(135deg, #ff6b35, #ff4444);
}

.ranking-num.top2 {
    background: linear-gradient(135deg, #ff9800, #ff6d00);
}

.ranking-num.top3 {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.ranking-num.normal {
    background: #c0c4cc;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-title {
    font-size: 13px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-title:hover {
    color: var(--primary);
}

.ranking-plays {
    font-size: 11px;
    color: var(--text-secondary);
}

/* === 游戏详情页 === */
.game-detail-header {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    padding: 25px;
    margin-bottom: 20px;
}

.game-detail-top {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.game-detail-thumb {
    width: 200px;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.game-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-detail-info {
    flex: 1;
}

.game-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.game-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.game-meta-item {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-meta-item span {
    color: var(--text-primary);
    font-weight: 500;
}

.game-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-family);
    text-decoration: none;
}

.btn-play {
    background: linear-gradient(135deg, var(--accent) 0%, #e55a2b 100%);
    color: #fff;
    font-size: 16px;
    padding: 12px 40px;
    box-shadow: 0 4px 15px rgba(255, 102, 51, 0.3);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 51, 0.4);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-favorite {
    background: transparent;
    border: 2px solid var(--danger);
    color: var(--danger);
}

.btn-favorite.active {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    opacity: 0.9;
    color: #fff;
}

/* 游戏区域 */
.game-player {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    text-align: center;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.game-player iframe {
    border: none;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 80px);
}

.game-start-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.game-start-overlay p {
    font-size: 16px;
    opacity: 0.7;
}

/* 游戏信息区块 */
.game-info-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    padding: 20px;
    margin-bottom: 20px;
}

.game-info-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}

.game-description {
    color: var(--text-regular);
    line-height: 1.8;
}

.game-instructions {
    color: var(--text-regular);
    line-height: 1.8;
    background: var(--primary-bg);
    padding: 15px;
    border-radius: var(--radius-sm);
}

/* 评分 */
.rating-widget {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.rating-stars {
    display: flex;
    gap: 5px;
}

.rating-star {
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
    color: #ddd;
}

.rating-star.active,
.rating-star:hover {
    color: var(--warning);
    transform: scale(1.15);
}

.rating-score {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.rating-count {
    font-size: 13px;
    color: var(--text-secondary);
}

/* === 评论区 === */
.comment-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    padding: 20px;
    margin-bottom: 20px;
}

.comment-form {
    margin-bottom: 25px;
}

.comment-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    resize: vertical;
    font-size: 14px;
    font-family: var(--font-family);
    transition: var(--transition);
}

.comment-textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(103, 194, 58, 0.1);
}

.comment-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.comment-list {
    list-style: none;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary-bg);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-username {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 13px;
}

.comment-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-content {
    color: var(--text-regular);
    font-size: 14px;
    line-height: 1.7;
}

.comment-delete {
    color: var(--text-placeholder);
    font-size: 12px;
    cursor: pointer;
    margin-left: auto;
}

.comment-delete:hover {
    color: var(--danger);
}

/* === 分类页面 === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.category-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.category-card-count {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 分类筛选标签 */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--bg-white);
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
}

.filter-tab {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-regular);
    transition: var(--transition);
    text-decoration: none;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary);
    color: #fff;
}

/* === 用户表单页面 === */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.auth-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-regular);
}

.form-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    font-family: var(--font-family);
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(103, 194, 58, 0.1);
}

.auth-submit {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.auth-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

/* === 个人中心 === */
.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
}

.profile-stats {
    display: flex;
    gap: 25px;
    margin-top: 8px;
}

.profile-stat {
    font-size: 13px;
    opacity: 0.9;
}

.profile-stat strong {
    font-size: 18px;
    margin-right: 3px;
}

.profile-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    padding: 25px;
    margin-bottom: 20px;
}

.profile-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* === 分页 === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-regular);
    background: var(--bg-white);
    transition: var(--transition);
    text-decoration: none;
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-dots {
    display: flex;
    align-items: center;
    padding: 0 5px;
    color: var(--text-secondary);
}

/* === 页脚 === */
.main-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #b0bec5;
    padding: 40px 0 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #b0bec5;
    font-size: 13px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 3px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    opacity: 0.7;
}

/* === 回到顶部 === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    font-size: 18px;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* === 相关游戏 === */
.related-games {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    padding: 20px;
    margin-bottom: 20px;
}

.related-games h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* === 空状态 === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* === 面包屑 === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--text-placeholder);
}

/* === 响应式 === */
@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-form {
        max-width: 100%;
        order: 3;
    }

    .category-list {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .game-detail-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .game-actions {
        justify-content: center;
    }

    .banner-slider {
        height: 180px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .auth-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .top-bar-left {
        display: none;
    }

    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .game-card-info {
        padding: 6px 8px;
    }

    .game-card-title {
        font-size: 12px;
    }
}

/* === 加载动画 === */
.loading {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === 默认游戏图标 === */
.default-game-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}