/* ========================================
   构境实验室 - 旗舰级视觉系统 (v2.0 Refactor)
   仿 saibolaopo.com 布局
   ======================================== */

:root {
    --color-accent: #ff0055;

    /* 背景色系 - 深邃宇宙 (暗色主题默认) */
    --bg-deep: #030014;
    --bg-surface: #0f0c29;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-heavy: rgba(13, 12, 34, 0.7);

    /* 渐变色 */
    --gradient-hero: linear-gradient(135deg, #7d5fff 0%, #00f2ff 100%);
    --gradient-glow: linear-gradient(180deg, rgba(125, 95, 255, 0) 0%, rgba(125, 95, 255, 0.1) 100%);
    --gradient-border: linear-gradient(90deg, rgba(125, 95, 255, 0.5), rgba(0, 242, 255, 0.5));

    /* 阴影与光效 */
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glow-primary: 0 0 20px rgba(125, 95, 255, 0.6);
    --glow-text: 0 0 10px rgba(125, 95, 255, 0.4);

    /* 边框 */
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --border-highlight: 1px solid rgba(255, 255, 255, 0.2);

    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* 字体 */
    --font-heading: 'Noto Serif SC', serif;
    --font-body: 'Noto Sans SC', sans-serif;
}

/* 亮色主题变量覆盖 */
[data-theme="light"] {
    --color-accent: #7d5fff;

    /* 背景色系 - 柔和明亮 */
    --bg-deep: #f5f5f8;
    --bg-surface: #ffffff;
    --bg-glass: rgba(0, 0, 0, 0.02);
    --bg-glass-heavy: rgba(255, 255, 255, 0.9);

    /* 阴影与光效 */
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --glow-primary: 0 0 20px rgba(125, 95, 255, 0.3);
    --glow-text: 0 0 10px rgba(125, 95, 255, 0.2);

    /* 边框 */
    --border-glass: 1px solid rgba(0, 0, 0, 0.08);
    --border-highlight: 1px solid rgba(0, 0, 0, 0.15);

    /* 文字颜色 */
    --text-primary: #1a1a2e;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-muted: rgba(0, 0, 0, 0.5);
}

/* ========================================
   基础重置
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 动态背景 */
.cosmos-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 10% 20%, rgba(125, 95, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.1) 0%, transparent 40%),
        var(--bg-deep);
    z-index: -2;
}

/* 粒子层 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(white 1px, transparent 1px),
        radial-gradient(white 1px, transparent 1px);
    background-size: 50px 50px, 100px 100px;
    background-position: 0 0, 25px 25px;
    opacity: 0.2;
    animation: starsMove 100s linear infinite;
    z-index: -1;
}

@keyframes starsMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-1000px);
    }
}

/* 容器 */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ========================================
   Hero Section (核心视觉区)
   ======================================== */
/* ========================================
   Header (Sticky Glass)
   ======================================== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(3, 0, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.brand-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(125, 95, 255, 0.5));
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(125, 95, 255, 0.5);
    box-shadow: 0 0 20px rgba(125, 95, 255, 0.2);
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.action-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7d5fff, #00f2ff);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Filter Section */
.filter-section {
    max-width: 1400px;
    margin: 2rem auto 1rem;
    padding: 0 2rem;
}

.main-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.tab-item {
    padding-bottom: 1rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    font-weight: 500;
}

.tab-item.active {
    color: #fff;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-hero);
    border-radius: 3px;
}

.tag-cloud {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.tag-chip:hover,
.tag-chip.active {
    background: rgba(125, 95, 255, 0.2);
    border-color: rgba(125, 95, 255, 0.4);
    color: #fff;
}

/* ========================================
   Main Container & Grid
   ======================================== */
.main-container {
    width: 100%;
    padding: 2rem 0 6rem;
}

/* ========================================
   Hero Section target
   ======================================== */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 4rem;
    /* Offset for aesthetic balance since header is now top */
}

.hero-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(125, 95, 255, 0.5));
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #b4aee8, #00f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-subtitle span {
    color: var(--color-secondary);
    font-weight: 500;
}

/* 滚动提示 */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse-icon {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* ========================================
   Game Grid (文游列表)
   ======================================== */
.games-section {
    padding: 4rem 0 8rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-hero);
    border-radius: 3px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    width: 100%;
    gap: 2.5rem;
    padding: 1rem;
}

/* 旗舰级卡片样式 - Refined */
.game-card {
    background: rgba(20, 20, 35, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* remove anchor underline */
    height: 100%;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(125, 95, 255, 0.3);
    border-color: rgba(125, 95, 255, 0.5);
    z-index: 5;
}

/* 封面区域 */
.card-cover-wrapper {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* 热度胶囊 */
.heat-capsule {
    position: absolute;
    top: 10px;
    right: 10px;
    /* Changed to right for better balance */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #ff9f43;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* 收藏按钮 */
.favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.favorite-btn:hover {
    background: rgba(255, 68, 136, 0.3);
    transform: scale(1.1);
}

.favorite-btn.favorited {
    background: rgba(255, 68, 136, 0.5);
}

/* 卡片内容 */
.card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #ffffff !important;
    /* Force white */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7) !important;
    /* High contrast gray */
    line-height: 1.5;
    margin-bottom: 1.2rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部 Meta */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #333;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.author-info span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.likes-count {
    font-size: 0.85rem;
    color: #ff6b81;
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--glow-primary);
    border-color: rgba(125, 95, 255, 0.5);
    z-index: 10;
}

.card-cover {
    height: 180px;
    background: linear-gradient(135deg, #2a2a72 0%, #009ffd 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 动态流光遮罩 */
.card-cover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.6s;
    opacity: 0;
}

.game-card:hover .card-cover::before {
    opacity: 1;
    left: 100%;
}

.card-emoji {
    font-size: 5rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transform: scale(1);
    transition: 0.4s ease;
}

.game-card:hover .card-emoji {
    transform: scale(1.1) rotate(5deg);
}

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.card-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-play {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-hero);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-play:hover {
    box-shadow: 0 0 20px rgba(125, 95, 255, 0.6);
}

.btn-play::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: 0.3s;
}

.btn-play:hover::after {
    opacity: 1;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--color-secondary);
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* ========================================
   游戏页面特定覆盖
   ======================================== */
.game-container-modern {
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(30px);
    border: var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   用户菜单样式
   ======================================== */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 200px;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(20px);
    border: var(--border-glass);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    z-index: 1000;
}

.dropdown-header {
    padding: 1rem;
    border-bottom: var(--border-glass);
}

.dropdown-header .user-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dropdown-header .user-id {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-glass);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: rgba(125, 95, 255, 0.1);
    color: var(--text-primary);
}

/* ========================================
   通知徽标与面板样式
   ======================================== */
.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff0055, #ff4488);
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(255, 0, 85, 0.4);
}

.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 360px;
    max-height: 480px;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(20px);
    border: var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    z-index: 1001;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: var(--border-glass);
    color: var(--text-primary);
    font-weight: 600;
}

.mark-all-read {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.mark-all-read:hover {
    background: rgba(125, 95, 255, 0.1);
    color: var(--text-primary);
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: var(--border-glass);
    cursor: pointer;
    transition: 0.2s;
}

.notification-item:hover {
    background: rgba(125, 95, 255, 0.05);
}

.notification-item.unread {
    background: rgba(125, 95, 255, 0.08);
    border-left: 3px solid #7d5fff;
}

.notification-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.notification-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================================
   亮色主题额外适配
   ======================================== */
[data-theme="light"] body {
    color: var(--text-primary);
}

[data-theme="light"] .cosmos-bg {
    background:
        radial-gradient(circle at 10% 20%, rgba(125, 95, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.06) 0%, transparent 40%),
        var(--bg-deep);
}

[data-theme="light"] .particles {
    opacity: 0.08;
}

[data-theme="light"] .app-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .brand-logo {
    color: var(--text-primary);
}

[data-theme="light"] .search-bar {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .search-input {
    color: var(--text-primary);
}

[data-theme="light"] .action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero-title {
    background: linear-gradient(to right, #1a1a2e, #7d5fff, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-subtitle {
    color: var(--text-secondary);
}

[data-theme="light"] .tab-item {
    color: var(--text-muted);
}

[data-theme="light"] .tab-item.active {
    color: var(--text-primary);
}

[data-theme="light"] .main-tabs {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .tag-chip {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

[data-theme="light"] .tag-chip:hover,
[data-theme="light"] .tag-chip.active {
    background: rgba(125, 95, 255, 0.1);
    border-color: rgba(125, 95, 255, 0.3);
    color: #7d5fff;
}

[data-theme="light"] .game-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .game-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), 0 0 15px rgba(125, 95, 255, 0.15);
    border-color: rgba(125, 95, 255, 0.4);
}

[data-theme="light"] .card-title {
    color: var(--text-primary) !important;
}

[data-theme="light"] .card-desc {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .card-meta {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .author-info span {
    color: var(--text-secondary);
}

[data-theme="light"] .site-footer {
    background: rgba(0, 0, 0, 0.02);
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .site-footer p,
[data-theme="light"] .footer-link {
    color: var(--text-muted);
}

[data-theme="light"] .scroll-indicator {
    opacity: 0.5;
}

[data-theme="light"] .mouse-icon {
    border-color: var(--text-muted);
}

[data-theme="light"] .mouse-wheel {
    background: var(--text-primary);
}

/* ========================================
   响应式适配 - 移动端优化
   ======================================== */

/* 平板端 (768px 及以下) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    /* Header 导航栏 */
    .header-container {
        padding: 0 1rem;
        gap: 1rem;
    }

    .brand-logo {
        font-size: 1rem;
    }

    .search-bar {
        display: none;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .action-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    /* 用户下拉菜单 */
    .user-dropdown {
        right: -10px;
        min-width: 180px;
    }

    /* 通知面板 - 移动端全宽显示 */
    .notification-panel {
        position: fixed;
        top: 60px;
        left: 5%;
        right: 5%;
        width: 90%;
        max-width: none;
        max-height: 70vh;
        border-radius: 16px;
        z-index: 1002;
    }

    /* Hero 区域 */
    .hero-section {
        padding: 3rem 1rem 2rem;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* 标签导航 */
    .filter-section {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .main-tabs {
        gap: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .main-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-item {
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .tag-cloud {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .tag-cloud::-webkit-scrollbar {
        display: none;
    }

    .tag-chip {
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* 游戏卡片网格 */
    .main-container {
        padding: 0 1rem;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .game-card {
        border-radius: 12px;
    }

    .card-cover {
        height: 140px;
    }

    .card-content {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .card-meta {
        padding: 0.5rem 0.75rem;
    }

    .card-tags {
        display: none;
    }

    /* Footer */
    .site-footer {
        padding: 1.5rem 1rem;
    }
}

/* 手机端 (480px 及以下) */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    /* Header */
    .brand-logo {
        font-size: 0.85rem;
    }

    .brand-icon {
        font-size: 1.4rem;
    }

    .header-actions {
        gap: 0.25rem;
    }

    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    /* Hero */
    .hero-section {
        padding: 2rem 1rem 1.5rem;
    }

    .hero-logo {
        width: 60px;
        height: 60px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    /* 游戏卡片 - 保持垂直布局 */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .game-card {
        display: block;
        height: auto;
    }

    .card-cover {
        width: 100%;
        height: 160px;
        border-radius: 12px 12px 0 0;
    }

    .card-content {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .card-desc {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        margin-bottom: 0.5rem;
    }

    .card-meta {
        padding: 0.5rem 0.75rem;
        border-radius: 0 0 12px 12px;
    }

    .author-avatar {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .card-stats {
        font-size: 0.75rem;
    }

    /* 标签云 */
    .tag-cloud {
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .tag-chip {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }

    /* 通知面板 */
    .notification-panel {
        top: 60px;
        max-height: 60vh;
    }

    .notification-item {
        padding: 0.75rem 1rem;
    }

    .notification-title {
        font-size: 0.9rem;
    }

    .notification-content {
        font-size: 0.8rem;
    }

    /* Footer */
    .site-footer {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .footer-link {
        font-size: 0.8rem;
    }
}

/* 超小屏幕 (360px 及以下) */
@media (max-width: 360px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        flex-direction: column;
    }

    .card-cover {
        width: 100%;
        height: 120px;
        border-radius: 12px 12px 0 0;
    }

    .card-meta {
        border-radius: 0 0 12px 12px;
    }
}

/* ========================================
   通知详情弹框样式
   ======================================== */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-modal.show {
    opacity: 1;
}

.notification-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.notification-modal-content {
    position: relative;
    background: var(--bg-glass-heavy);
    border: var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-width: 420px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.notification-modal.show .notification-modal-content {
    transform: scale(1) translateY(0);
}

.notification-modal-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(125, 95, 255, 0.15), rgba(0, 242, 255, 0.1));
    border-bottom: var(--border-glass);
}

.notification-modal-icon {
    font-size: 1.75rem;
    margin-right: 0.75rem;
}

.notification-modal-title {
    flex: 1;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.notification-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-modal-close:hover {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
}

.notification-modal-body {
    padding: 1.5rem;
}

.notification-modal-body p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.notification-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: var(--border-glass);
    background: rgba(0, 0, 0, 0.1);
}

.notification-modal-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.notification-modal-ok {
    padding: 0.6rem 1.5rem;
    background: var(--gradient-hero);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.notification-modal-ok:hover {
    box-shadow: 0 5px 20px rgba(125, 95, 255, 0.4);
    transform: translateY(-2px);
}

/* 亮色主题适配 */
[data-theme="light"] .notification-modal-overlay {
    background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .notification-modal-content {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .notification-modal-content {
        width: 95%;
        border-radius: 16px;
    }

    .notification-modal-header {
        padding: 1rem 1.25rem;
    }

    .notification-modal-title {
        font-size: 1.1rem;
    }

    .notification-modal-body {
        padding: 1.25rem;
    }

    .notification-modal-footer {
        padding: 0.85rem 1.25rem;
    }
}