/* ============================================
   FreeGame - 全站样式表
   适配深色青蓝霓虹游戏风主题
   主色 token：
     --neon-cyan  #00d4ff  青蓝霓虹（主强调）
     --neon-purple #7c3aed  紫色辅色
     --bg-base    #0a0e1a  深蓝黑底
     --bg-card    #131826  深色卡片
     --bg-card-2  #1a2030  次级深色块
     --text-main  #f1f5f9  主文字
     --text-sub   #cbd5e1  次文字
     --text-muted #94a3b8  弱文字
     --text-faint #64748b  极弱文字
     --border     #1e293b  深色边框
     --border-neon rgba(0,212,255,0.18)  霓虹边框
   ============================================ */

/* 字体导入 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* ============================================
   通用基础（所有页面共享）
   ============================================ */
body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #0a0e1a;
    color: #f1f5f9;
    /* 顶部柔和青蓝氛围光，营造游戏感 */
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 212, 255, 0.12), transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(124, 58, 237, 0.10), transparent 55%);
    background-attachment: fixed;
}

h1, h2, h3 {
    text-transform: capitalize;
}

/* 重置 ul 默认样式（footer/list 使用） */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   站点导航栏 - .site-header
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    /* 深色玻璃感：半透明深底 + 背景模糊 */
    background-color: rgba(10, 14, 26, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(0, 212, 255, 0.18);
}

.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;
    line-height: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    transition: color 0.2s, text-shadow 0.2s;
}

.site-logo:hover {
    color: #00d4ff;
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.site-logo i {
    margin-right: 0.5rem;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* 导航图标按钮（搜索/分类/用户） */
.nav-icon-btn {
    color: #cbd5e1;
    transition: color 0.2s, text-shadow 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.nav-icon-btn:hover {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* 返回按钮（带箭头） */
.nav-back-btn {
    color: #cbd5e1;
    transition: color 0.2s;
}

.nav-back-btn:hover {
    color: #00d4ff;
}

/* 当前页高亮（用户中心图标） */
.nav-icon-btn-active {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* ============================================
   主内容区 - .site-main / .site-section
   ============================================ */
.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 / .page-subtitle
   ============================================ */
.page-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    text-shadow: 0 0 18px rgba(0, 212, 255, 0.25);
}

.page-subtitle {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-top: 0.25rem;
}

/* 模块小标题 */
.section-title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 0.75rem;
}

/* 标题前霓虹竖线装饰 */
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1rem;
    border-radius: 9999px;
    background: linear-gradient(180deg, #00d4ff, #7c3aed);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.7);
}

/* ============================================
   卡片基础 - .card-base / .card-base-sm
   ============================================ */
.card-base {
    background-color: #131826;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.4);
    border: 1px solid #1e293b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-base:hover {
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.5), 0 0 18px -4px rgba(0, 212, 255, 0.25);
}

.card-base-sm {
    background-color: #131826;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.4);
    border: 1px solid #1e293b;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-base-sm:hover {
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.5), 0 0 18px -4px rgba(0, 212, 255, 0.25);
}

/* 卡片小标题（about/terms/privacy 等内容页） */
.card-title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

/* ============================================
   文本与列表（内容页通用）
   ============================================ */
.text-body {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5rem;
    margin-bottom: 1rem;
}

.text-muted {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* 项目列表（disc + 缩进） */
.article-list {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5rem;
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 0;
}

.article-list > li + li {
    margin-top: 0.5rem;
}

/* 无标记列表（仅间距） */
.stack-list > li + li {
    margin-top: 0.75rem;
}

/* ============================================
   按钮 - .btn-primary 系列
   ============================================ */
.btn-primary {
    background-color: #00d4ff;
    color: #0a0e1a;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.35);
}

.btn-primary:hover {
    background-color: #7c3aed;
    color: #ffffff;
    box-shadow: 0 0 22px rgba(124, 58, 237, 0.55);
    transform: translateY(-1px);
}

/* 圆角大按钮（Load More 等） */
.btn-primary-pill {
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease, filter 0.3s ease;
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.45);
}

.btn-primary-pill:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(0, 212, 255, 0.6), 0 0 18px rgba(124, 58, 237, 0.5);
}

/* 小圆角按钮（编辑资料等） */
.btn-primary-small {
    background-color: #00d4ff;
    color: #0a0e1a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.3);
}

.btn-primary-small:hover {
    background-color: #7c3aed;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.5);
}

/* "更多" 链接 */
.more-link {
    color: #00d4ff;
    font-size: 0.875rem;
    transition: color 0.2s, text-shadow 0.2s;
}

.more-link:hover {
    color: #7c3aed;
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

/* 危险按钮（清除历史等） */
.btn-danger-text {
    color: #f87171;
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s, text-shadow 0.2s;
}

.btn-danger-text:hover {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* ============================================
   表单输入 - .form-input
   ============================================ */
.form-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: #1a2030;
    border: 1px solid #1e293b;
    color: #f1f5f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
    color: #64748b;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 0.25rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.25), 0 0 12px rgba(0, 212, 255, 0.2);
}

/* ============================================
   站点页脚 - .site-footer
   ============================================ */
.site-footer {
    background-color: #0d1220;
    border-top: 1px solid rgba(0, 212, 255, 0.18);
    padding: 1.5rem 0;
    /* 顶部霓虹光带 */
    box-shadow: inset 0 1px 0 rgba(0, 212, 255, 0.08);
}

.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: #f1f5f9;
    margin-bottom: 0.75rem;
}

.footer-col-desc {
    color: #94a3b8;
    font-size: 0.75rem;
    line-height: 1rem;
    margin-bottom: 0.75rem;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.footer-link {
    color: #94a3b8;
    transition: color 0.2s, text-shadow 0.2s;
}

.footer-link:hover {
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    color: #94a3b8;
    transition: color 0.2s, text-shadow 0.2s;
}

.footer-social-link:hover {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

/* ============================================
   首页 - index.html
   ============================================ */
/* Daily Pick 每日精选 —— 纯图片卡片 */
.daily-pick {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.25), 0 0 18px rgba(124, 58, 237, 0.18);
    transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}
@media (min-width: 768px) {
    .daily-pick { height: 300px; }
}

/* 背景图铺满 */
.daily-pick-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    z-index: 1;
}
.daily-pick:hover .daily-pick-bg {
    transform: scale(1.06);
}

.daily-pick:hover {
    border-color: rgba(0, 212, 255, 0.55);
    box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.7), 0 0 42px rgba(0, 212, 255, 0.45);
}

/* 分类卡片 */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background-color: #131826;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
}

.category-card:hover {
    transform: scale(1.05);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.5), 0 0 18px -4px rgba(0, 212, 255, 0.35);
}

/* ============================================
   分类页 - category.html
   ============================================ */
/* 分类页卡片变体 */
.category-page-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    background-color: #131826;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid #1e293b;
}

.category-page-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.5), 0 0 18px -4px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.35);
}

/* 当前激活的分类 */
.category-active {
    border: 2px solid #00d4ff;
    background-color: rgba(0, 212, 255, 0.12);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.4);
}

/* ============================================
   游戏卡片（index / category / search / game / user）
   ============================================ */
.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background-color: #131826;
    border: 1px solid #1e293b;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.6), 0 0 22px -4px rgba(0, 212, 255, 0.45);
    border-color: rgba(0, 212, 255, 0.4);
}

/* 播放按钮 */
.play-button {
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.05);
}

/* ============================================
   游戏详情页 - game.html
   ============================================ */
/* 游戏预览区 */
.game-preview {
    background: linear-gradient(135deg, #0c4a6e 0%, #00d4ff 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.35);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* 播放覆盖层 */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-preview:hover .play-overlay {
    opacity: 1;
}

/* 大播放按钮 */
.play-button-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    color: #ffffff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 0 18px rgba(124, 58, 237, 0.45);
}

.play-button-large:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.8), 0 0 22px rgba(124, 58, 237, 0.6);
}

/* ============================================
   用户中心 - user.html
   ============================================ */
.profile-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background-color: #131826;
    border: 1px solid #1e293b;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.6), 0 0 22px -4px rgba(0, 212, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.4);
}

/* 开关 toggle 容器 */
.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: #1e293b;
    border: 1px solid #334155;
    border-radius: 9999px;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.toggle-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #64748b;
    border: 1px solid #475569;
    border-radius: 9999px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.toggle-switch input:checked + .toggle-track {
    background-color: #00d4ff;
    border-color: #00d4ff;
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.6);
}

.toggle-switch input:checked + .toggle-track::after {
    transform: translateX(100%);
    background-color: #ffffff;
    border-color: #ffffff;
}

.toggle-switch input:focus + .toggle-track {
    outline: 2px solid rgba(0, 212, 255, 0.5);
    outline-offset: 2px;
}

/* ============================================
   联系页 - contact.html
   ============================================ */
.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background-color: #131826;
    border: 1px solid #1e293b;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.6), 0 0 22px -4px rgba(0, 212, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.4);
}

/* 社交媒体圆形按钮 */
.social-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.social-icon-btn:hover {
    background-color: #00d4ff;
    color: #0a0e1a;
    border-color: #00d4ff;
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.55);
}

/* 联系信息小图标圆 */
.contact-info-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-right: 1rem;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.45);
}

/* ============================================
   FAQ 页 - faq.html
   ============================================ */
.faq-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background-color: #131826;
    border: 1px solid #1e293b;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.6), 0 0 22px -4px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.35);
}

.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    background-color: rgba(0, 212, 255, 0.05);
}

.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-icon {
    transform: rotate(180deg);
}

/* ============================================
   隐私页 - privacy.html
   ============================================ */
.privacy-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background-color: #131826;
    border: 1px solid #1e293b;
}

.privacy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.6), 0 0 22px -4px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.35);
}

/* ============================================
   搜索页 - search.html
   ============================================ */
/* 热门搜索标签 */
.tag-chip {
    display: inline-block;
    background-color: #1a2030;
    color: #cbd5e1;
    border: 1px solid #1e293b;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tag-chip:hover {
    background-color: #00d4ff;
    color: #0a0e1a;
    border-color: #00d4ff;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.55);
}

/* ============================================
   第二批语义化类 - 进一步抽取常用 utility 组合
   ============================================ */

/* 游戏卡片网格（响应式：手机2列 / 平板4列 / 桌面6列） */
.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)); } }

/* 游戏卡片网格 - 4 列变体（手机2列 / 桌面4列） */
.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)); } }

/* 分类导航网格 - 始终 4 列 */
.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)); } }

/* 统计数据 4 列网格 */
.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)); } }

/* 垂直间距容器（替代 space-y-*） */
.stack-sm > * + * { margin-top: 0.5rem; }
.stack-md > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }

/* 水平间距容器（替代 space-x-*） */
.row-gap > * + * { margin-left: 1rem; }

/* 行布局：两端对齐（替代 flex justify-between items-center） */
.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;
}

/* 行布局：水平排列（替代 flex items-center） */
.row-center {
    display: flex;
    align-items: center;
}

/* 文本列表（替代 text-gray-600 text-sm space-y-2） */
.text-list {
    color: #cbd5e1;
    font-size: 0.875rem;
}
.text-list > * + * { margin-top: 0.5rem; }

/* 设置项行（用户中心） */
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 圆形头像容器 - 用户中心（80x80 霓虹渐变） */
.avatar-circle {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-right: 1rem;
    box-shadow: 0 0 22px rgba(0, 212, 255, 0.5);
}

/* 圆形分类图标容器 - 首页分类入口（48x48，霓虹四色） */
.category-icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
/* 霓虹四色：青蓝/紫/绿/红，统一加发光 */
.category-icon-circle-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); box-shadow: 0 0 16px rgba(168, 85, 247, 0.55); }
.category-icon-circle-blue   { background: linear-gradient(135deg, #00d4ff, #2563eb); box-shadow: 0 0 16px rgba(0, 212, 255, 0.55); }
.category-icon-circle-green  { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 0 16px rgba(52, 211, 153, 0.55); }
.category-icon-circle-red    { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 0 16px rgba(251, 113, 133, 0.55); }

/* FAQ 题目行（替代 flex justify-between items-center cursor-pointer） */
.faq-question-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* FAQ 箭头图标（替代 text-gray-500 transition-transform duration-300） */
.faq-arrow {
    color: #94a3b8;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* FAQ 答案内容区（替代 mt-3 text-gray-600 text-sm） */
.faq-answer-content {
    margin-top: 0.75rem;
    color: #cbd5e1;
    font-size: 0.875rem;
}

/* FAQ 项增强（深色边框 + padding） */
.faq-item {
    padding: 1rem;
    border-bottom: 1px solid #1e293b;
}
.faq-item:last-child { border-bottom: none; }

/* FAQ 卡片增强（深色背景 + 霓虹边） */
.faq-card {
    background-color: #131826;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.4);
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
}

/* 行布局：顶部对齐（替代 flex items-start） */
.row-top {
    display: flex;
    align-items: flex-start;
}

/* 设置项容器（深色边框 + padding） */
.setting-item {
    padding: 1rem;
    border-bottom: 1px solid #1e293b;
}
.setting-item:last-child { border-bottom: none; }

/* 增强分类卡片（rounded-lg p-4 flex flex-col items-center） */
.category-card {
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 搜索条（input + button 组合） */
.search-bar {
    display: flex;
}
.search-bar-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #1e293b;
    border-radius: 0.5rem 0 0 0.5rem;
    background-color: #1a2030;
    color: #f1f5f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.search-bar-input::placeholder {
    color: #64748b;
}
.search-bar-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.25), 0 0 12px rgba(0, 212, 255, 0.2);
}
.search-bar-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    color: #ffffff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.35);
}
.search-bar-btn:hover {
    filter: brightness(1.12);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.55);
}

/* ============================================
   Tailwind utility 深色主题重载
   —— Tailwind CDN 动态注入会覆盖自定义 CSS，
   此处用 !important 把残留的浅色 utility 统一拉到深色主题
   ============================================ */
.text-gray-900 { color: #f1f5f9 !important; }
.text-gray-800 { color: #e2e8f0 !important; }
.text-gray-700 { color: #cbd5e1 !important; }
.text-gray-600 { color: #cbd5e1 !important; }
.text-gray-500 { color: #94a3b8 !important; }
.text-gray-400 { color: #94a3b8 !important; }
.bg-white      { background-color: #131826 !important; }
.bg-gray-100   { background-color: #1a2030 !important; }
.bg-gray-50    { background-color: #0f1623 !important; }
.border-gray-200 { border-color: #1e293b !important; }
.divide-gray-200 > * + * { border-color: #1e293b !important; }
