﻿/* ============================================
   Gamebox - 全站样式表
   适配年轻淡彩清新主题（Pastel Fresh）
   主色 token：
     --primary       #6366f1  靛蓝（主强调）
     --primary-light #a5b4fc  浅靛蓝
     --secondary     #ec4899  粉紫（辅色）
     --accent        #22d3ee  青蓝（点缀）
     --bg-base       #f8fafc  页面底色（浅灰白）
     --bg-card       #ffffff  卡片白底
     --bg-card-2     #f1f5f9  次级浅底
     --bg-soft       #eef2ff  柔和强调底
     --text-main     #0f172a  主文字（深slate）
     --text-sub      #475569  次文字
     --text-muted    #64748b  弱文字
     --text-faint    #94a3b8  极弱文字
     --border        #e2e8f0  普通边框
     --border-light  #f1f5f9  轻边框
     --border-accent rgba(99,102,241,0.20) 强调边框
   ============================================ */

/* 字体导入 */
@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: #f8fafc;
    color: #0f172a;
    /* 顶部淡蓝紫柔和氛围光，年轻透气感 */
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(236, 72, 153, 0.08), 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(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 12px -6px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}

.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: #0f172a;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.site-logo:hover {
    color: #6366f1;
}

.site-logo i {
    margin-right: 0.5rem;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 导航图标按钮（搜索/分类/用户） */
.nav-icon-btn {
    color: #64748b;
    transition: color 0.2s, background-color 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.nav-icon-btn:hover {
    color: #6366f1;
}

/* 返回按钮（带箭头） */
.nav-back-btn {
    color: #64748b;
    transition: color 0.2s;
}

.nav-back-btn:hover {
    color: #6366f1;
}

/* 当前页高亮（用户中心图标） */
.nav-icon-btn-active {
    color: #6366f1;
}

/* ============================================
   主内容区 - .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: #0f172a;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: #64748b;
    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: #0f172a;
    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, #6366f1, #ec4899);
}

/* ============================================
   卡片基础 - .card-base / .card-base-sm
   ============================================ */
.card-base {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.card-base:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.card-base-sm {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.card-base-sm:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

/* 卡片小标题（about/terms/privacy 等内容页） */
.card-title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

/* ============================================
   文本与列表（内容页通用）
   ============================================ */
.text-body {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.5rem;
    margin-bottom: 1rem;
}

.text-muted {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* 项目列表（disc + 缩进） */
.article-list {
    color: #475569;
    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: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease, filter 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* 圆角大按钮（Load More 等） */
.btn-primary-pill {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 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 6px 18px rgba(99, 102, 241, 0.3);
}

.btn-primary-pill:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.42);
}

/* 小圆角按钮（编辑资料等） */
.btn-primary-small {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.25);
}

.btn-primary-small:hover {
    filter: brightness(1.1);
    box-shadow: 0 5px 16px rgba(99, 102, 241, 0.38);
}

/* "更多" 链接 */
.more-link {
    color: #6366f1;
    font-size: 0.875rem;
    transition: color 0.2s;
    font-weight: 500;
}

.more-link:hover {
    color: #ec4899;
}

/* 危险按钮（清除历史等） */
.btn-danger-text {
    color: #f43f5e;
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 500;
}

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

/* ============================================
   表单输入 - .form-input
   ============================================ */
.form-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 0.625rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
    color: #94a3b8;
}

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

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

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ============================================
   站点页脚 - .site-footer
   ============================================ */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid rgba(99, 102, 241, 0.12);
    padding: 1.5rem 0;
    /* 顶部柔和光带 */
    box-shadow: inset 0 1px 0 rgba(99, 102, 241, 0.05);
}

.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: #0f172a;
    margin-bottom: 0.75rem;
}

.footer-col-desc {
    color: #64748b;
    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: #64748b;
}

.footer-link {
    color: #64748b;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #6366f1;
}

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

.footer-social-link {
    color: #94a3b8;
    transition: color 0.2s, transform 0.2s;
}

.footer-social-link:hover {
    color: #6366f1;
    transform: translateY(-1px);
}

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

.footer-copyright {
    font-size: 0.75rem;
    color: #94a3b8;
    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(99, 102, 241, 0.15);
    box-shadow: 0 12px 32px -8px rgba(99, 102, 241, 0.18), 0 4px 12px -4px rgba(236, 72, 153, 0.12);
    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(99, 102, 241, 0.35);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.28), 0 8px 20px -6px rgba(236, 72, 153, 0.18);
}

/* 分类卡片 */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.category-card:hover {
    transform: scale(1.05);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 25px -8px rgba(99, 102, 241, 0.2);
}

/* ============================================
   分类页 - category.html
   ============================================ */
/* 分类页卡片变体 */
.category-page-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
}

.category-page-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -8px rgba(99, 102, 241, 0.22);
    border-color: rgba(99, 102, 241, 0.3);
}

/* 当前激活的分类 */
.category-active {
    border: 2px solid #6366f1;
    background-color: rgba(99, 102, 241, 0.06);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.18);
}

/* ============================================
   游戏卡片（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: #ffffff;
    border: 1px solid #e2e8f0;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px -10px rgba(99, 102, 241, 0.28);
    border-color: rgba(99, 102, 241, 0.35);
}

/* 播放按钮 */
.play-button {
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.05);
}

/* ============================================
   游戏详情页 - game.html
   ============================================ */
/* 游戏预览区 */
.game-preview {
    background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* 播放覆盖层 */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.35);
    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, #6366f1 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.45);
}

.play-button-large:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 38px rgba(99, 102, 241, 0.55);
}

/* ============================================
   用户中心 - 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: #ffffff;
    border: 1px solid #e2e8f0;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -10px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.3);
}

/* 开关 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: #e2e8f0;
    border: 1px solid #cbd5e1;
    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: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.toggle-switch input:checked + .toggle-track {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.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(99, 102, 241, 0.35);
    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: #ffffff;
    border: 1px solid #e2e8f0;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -10px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.3);
}

/* 社交媒体圆形按钮 */
.social-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.social-icon-btn:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

/* 联系信息小图标圆 */
.contact-info-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-right: 1rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

/* ============================================
   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: #ffffff;
    border: 1px solid #e2e8f0;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px -8px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    background-color: rgba(99, 102, 241, 0.03);
}

.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: #ffffff;
    border: 1px solid #e2e8f0;
}

.privacy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px -8px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

/* ============================================
   搜索页 - search.html
   ============================================ */
/* 热门搜索标签 */
.tag-chip {
    display: inline-block;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tag-chip:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

/* ============================================
   第二批语义化类 - 进一步抽取常用 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: #475569;
    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, #6366f1 0%, #ec4899 100%);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-right: 1rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

/* 圆形分类图标容器 - 首页分类入口（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, #c084fc, #a855f7); box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35); }
.category-icon-circle-blue   { background: linear-gradient(135deg, #60a5fa, #3b82f6); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35); }
.category-icon-circle-green  { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35); }
.category-icon-circle-red    { background: linear-gradient(135deg, #fb923c, #f97316); box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35); }

/* 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: #475569;
    font-size: 0.875rem;
}

/* FAQ 项增强（浅色边框 + padding） */
.faq-item {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.faq-item:last-child { border-bottom: none; }

/* FAQ 卡片增强（浅色背景 + 淡彩边） */
.faq-card {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

/* 行布局：顶部对齐（替代 flex items-start） */
.row-top {
    display: flex;
    align-items: flex-start;
}

/* 设置项容器（浅色边框 + padding） */
.setting-item {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.setting-item:last-child { border-bottom: none; }

/* 增强分类卡片（rounded-lg p-4 flex flex-col items-center） */
.category-card {
    border-radius: 0.75rem;
    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 #e2e8f0;
    border-radius: 0.5rem 0 0 0.5rem;
    background-color: #ffffff;
    color: #0f172a;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.search-bar-input::placeholder {
    color: #94a3b8;
}
.search-bar-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.search-bar-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: #ffffff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.search-bar-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.45);
}

/* ============================================
   Tailwind utility 浅色主题重载
   —— Tailwind CDN 动态注入会覆盖自定义 CSS，
   此处用 !important 把残留的不适配色统一拉到浅色淡彩主题
   ============================================ */
/* 文本色：统一深色 slate 系（替代原深色模式） */
.text-gray-900 { color: #0f172a !important; }
.text-gray-800 { color: #1e293b !important; }
.text-gray-700 { color: #334155 !important; }
.text-gray-600 { color: #475569 !important; }
.text-gray-500 { color: #64748b !important; }
.text-gray-400 { color: #94a3b8 !important; }
/* 背景色：统一浅白系 */
.bg-white      { background-color: #ffffff !important; }
.bg-gray-100   { background-color: #f1f5f9 !important; }
.bg-gray-50    { background-color: #f8fafc !important; }
/* 边框色：统一浅灰 */
.border-gray-200 { border-color: #e2e8f0 !important; }
.divide-gray-200 > * + * { border-color: #e2e8f0 !important; }

/* Tailwind 中常用的 text-blue 系列改为主色 */
.text-blue-600 { color: #6366f1 !important; }
.text-blue-500 { color: #6366f1 !important; }
/* 其他功能性颜色柔和化，匹配淡彩主题 */
.text-purple-600 { color: #8b5cf6 !important; }
.text-green-600  { color: #10b981 !important; }
.text-green-500  { color: #10b981 !important; }
.text-yellow-600 { color: #f59e0b !important; }
.text-red-500    { color: #f43f5e !important; }
.text-red-400    { color: #fb7185 !important; }
