/* ============================================
   FreeGame - 全站样式表（多页面架构）
   适配奶白风浅色主题 + 紫色主色调
   ============================================ */

/* 字体导入 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* ============================================
   通用基础
   ============================================ */
* { box-sizing: border-box; }

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #fafafa;
    color: #1f2937;
    margin: 0;
    line-height: 1.5;
}

h1, h2, h3 { text-transform: capitalize; margin: 0; }

ul { list-style: none; margin: 0; padding: 0; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* ============================================
   站点导航栏
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e5e7eb;
}

.site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header-side {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.site-logo:hover { color: #9333ea; }

.nav-icon-btn {
    color: #4b5563;
    transition: color 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 1.25rem;
}

.nav-icon-btn:hover { color: #9333ea; }

.nav-back-btn {
    color: #4b5563;
    transition: color 0.2s;
    font-size: 1.125rem;
}

.nav-back-btn:hover { color: #9333ea; }

/* 语言切换按钮 */
.lang-switch-btn {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-switch-btn:hover {
    background-color: #9333ea;
    color: #ffffff;
    border-color: #9333ea;
}

/* ============================================
   主内容区
   ============================================ */
.site-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.site-section { margin-bottom: 2rem; }

.section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* ============================================
   页面标题
   ============================================ */
.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

.page-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

/* ============================================
   卡片基础
   ============================================ */
.card-base {
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.card-base-sm {
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    padding: 1rem;
    border-radius: 0.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

/* ============================================
   文本与列表
   ============================================ */
.text-body {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5rem;
    margin-bottom: 1rem;
}

.text-muted {
    color: #6b7280;
    font-size: 0.875rem;
}

.article-list {
    color: #4b5563;
    font-size: 0.875rem;
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 0;
}

.article-list > li + li { margin-top: 0.5rem; }

.stack-list { color: #4b5563; font-size: 0.875rem; }
.stack-list > li + li { margin-top: 0.75rem; }

.text-list { color: #4b5563; font-size: 0.875rem; }
.text-list > * + * { margin-top: 0.5rem; }

/* ============================================
   按钮
   ============================================ */
.btn-primary {
    background-color: #9333ea;
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-primary:hover { background-color: #7e22ce; }

.btn-primary-pill {
    background-color: #9333ea;
    color: #ffffff;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-primary-pill:hover { background-color: #7e22ce; }

.btn-primary-small {
    background-color: #9333ea;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-primary-small:hover { background-color: #7e22ce; }

.more-link {
    color: #a855f7;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.more-link:hover { color: #7e22ce; }

.btn-danger-text {
    color: #ef4444;
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.btn-danger-text:hover { color: #dc2626; }

/* ============================================
   表单
   ============================================ */
.form-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    font-size: 0.875rem;
}

.form-input:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.form-field { margin-bottom: 1rem; }

/* ============================================
   游戏卡片
   ============================================ */
.game-card {
    display: block;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.game-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 比例 */
    overflow: hidden;
    background-color: #f3f4f6;
}

.game-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-hot {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

.game-card-body { padding: 0.75rem; }

.game-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-cat {
    display: inline-block;
    font-size: 0.7rem;
    color: #9333ea;
    background-color: #f3e8ff;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

/* ============================================
   网格布局
   ============================================ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
@media (min-width: 640px) { .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .games-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.games-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
@media (min-width: 768px) { .games-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.category-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.content-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) { .content-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ============================================
   间距容器
   ============================================ */
.stack-sm > * + * { margin-top: 0.5rem; }
.stack-md > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
.row-gap > * + * { margin-left: 1rem; }

/* ============================================
   行布局
   ============================================ */
.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.row-between-mb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.row-center {
    display: flex;
    align-items: center;
}

.row-top {
    display: flex;
    align-items: flex-start;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.setting-item:last-child { border-bottom: none; }

/* ============================================
   圆形容器
   ============================================ */
.avatar-circle {
    width: 5rem;
    height: 5rem;
    background-color: #9333ea;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-right: 1rem;
    flex-shrink: 0;
}

.category-icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.category-icon-circle-purple { background-color: #9333ea; }
.category-icon-circle-blue   { background-color: #2563eb; }
.category-icon-circle-green  { background-color: #16a34a; }
.category-icon-circle-red    { background-color: #dc2626; }

/* ============================================
   分类卡片
   ============================================ */
.category-card {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.category-card:hover { transform: scale(1.05); }

/* ============================================
   游戏详情页
   ============================================ */
.game-preview {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background-color: #1f2937;
    border-radius: 0.5rem;
    overflow: hidden;
}

.game-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.play-overlay:hover { background-color: rgba(0, 0, 0, 0.6); }

.play-button-large {
    width: 4rem;
    height: 4rem;
    background-color: #9333ea;
    color: #ffffff;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-button-large:hover {
    transform: scale(1.1);
    background-color: #7e22ce;
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-col-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.footer-col-desc {
    color: #6b7280;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.25rem;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.footer-link {
    color: #6b7280;
    transition: color 0.2s;
}

.footer-link:hover { color: #9333ea; }

.footer-social {
    display: flex;
    gap: 1rem;
    font-size: 1.25rem;
}

.footer-social-link {
    color: #6b7280;
    transition: color 0.2s;
}

.footer-social-link:hover { color: #9333ea; }

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
}

/* ============================================
   用户中心 - Toggle 开关
   ============================================ */
.profile-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.toggle-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.toggle-track {
    width: 2.75rem;
    height: 1.5rem;
    background-color: #d1d5db;
    border-radius: 9999px;
    position: relative;
    transition: background-color 0.3s ease;
}

.toggle-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    transition: transform 0.3s ease;
}

.toggle-switch input:checked + .toggle-track { background-color: #9333ea; }
.toggle-switch input:checked + .toggle-track::after {
    transform: translateX(100%);
    border-color: #ffffff;
}

/* ============================================
   联系页
   ============================================ */
.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.social-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #374151;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.social-icon-btn:hover { background-color: #9333ea; }

.contact-info-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #9333ea;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* ============================================
   FAQ 页
   ============================================ */
.faq-card {
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}
.faq-item:last-child { border-bottom: none; }
.faq-item:hover { background-color: rgba(0, 0, 0, 0.03); }

.faq-question-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-arrow {
    color: #6b7280;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .faq-arrow { transform: rotate(180deg); }

.faq-answer-content {
    margin-top: 0.75rem;
    color: #4b5563;
    font-size: 0.875rem;
}

/* ============================================
   隐私页
   ============================================ */
.privacy-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.content-card {
    margin-bottom: 0.875rem;
}

.content-card:last-child {
    margin-bottom: 0;
}

.content-page-header {
    margin-bottom: 1.5rem;
}

.content-page-header .page-title {
    margin-bottom: 0.25rem;
}

@media (max-width: 640px) {
    .content-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* ============================================
   搜索页
   ============================================ */
.search-bar { display: flex; }

.search-bar-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem 0 0 0.5rem;
    background-color: #ffffff;
    color: #1f2937;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    font-size: 0.875rem;
}

.search-bar-input:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

.search-bar-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    background-color: #9333ea;
    color: #ffffff;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
    font-size: 0.875rem;
}

.search-bar-btn:hover { background-color: #7e22ce; }

.tag-chip {
    display: inline-block;
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag-chip:hover {
    background-color: #9333ea;
    color: #ffffff;
}

/* ============================================
   现代卡片流 - 首页专属样式
   ============================================ */

/* 英雄横幅 */
.hero-banner {
    position: relative;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem 2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-desc {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ffffff;
    color: #764ba2;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-banner-games {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    z-index: 2;
}

@media (min-width: 768px) {
    .hero-banner-games {
        display: flex;
        gap: 0.75rem;
    }
}

.hero-game-card {
    width: 100px;
    height: 130px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    background-color: rgba(255,255,255,0.1);
}

.hero-game-card:hover { transform: translateY(-5px) scale(1.03); }

.hero-game-card:nth-child(2) {
    transform: translateY(-15px);
}

.hero-game-card:nth-child(2):hover {
    transform: translateY(-20px) scale(1.03);
}

.hero-game-card:nth-child(3) {
    transform: translateY(10px);
}

.hero-game-card:nth-child(3):hover {
    transform: translateY(5px) scale(1.03);
}

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

/* 新版 section 标题 */
.section-header-row {
    margin-bottom: 1.25rem;
}

.section-title-lg {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.title-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.875rem;
}

.title-icon-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.title-icon-green {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.more-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.more-link i { font-size: 0.875rem; }

/* 新版分类卡片 */
.category-nav-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}
@media (min-width: 640px) {
    .category-nav-grid-modern { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.category-card-modern {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.category-card-icon-wrap {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.category-icon-purple { background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); }
.category-icon-blue   { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.category-icon-green  { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.category-icon-red    { background: linear-gradient(135deg, #f97316 0%, #dc2626 100%); }

.category-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.category-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.category-card-count {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* 新版游戏卡片网格 */
.games-grid-modern .game-card {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.games-grid-modern .game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.games-grid-modern .game-card-thumb {
    padding-top: 70%;
}

.games-grid-modern .game-card-body {
    padding: 0.875rem;
}

.games-grid-modern .game-card-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.games-grid-modern .game-card-cat {
    font-size: 0.6875rem;
    font-weight: 500;
}

/* 新版按钮 */
.btn-hero {
    padding: 0.75rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero:hover {
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
    transform: translateY(-2px);
}

.btn-hero i { font-size: 0.75rem; }

/* ============================================
   通用工具类
   ============================================ */
.text-center { text-align: center; }
.hidden { display: none; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
