* { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; }

/* Logo 流光照射效果 - 光影扫过 */
.logo-shine {
    position: relative;
    color: #ffffff;
    overflow: hidden;
}

/* Logo 图片的流光效果 - 先显示 */
.logo-shine.logo-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(192, 132, 252, 0.3) 30%,
        rgba(192, 132, 252, 0.8) 50%,
        rgba(192, 132, 252, 0.3) 70%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: lightSweepImg 6s ease-in-out infinite;
    pointer-events: none;
}

/* 文字的流光效果 - 后显示 */
.logo-shine.logo-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(192, 132, 252, 0.3) 30%,
        rgba(192, 132, 252, 0.8) 50%,
        rgba(192, 132, 252, 0.3) 70%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: lightSweepText 6s ease-in-out infinite;
    pointer-events: none;
}

/* Logo 图片动画：0-4秒扫过，4-6秒等待 */
@keyframes lightSweepImg {
    0% { left: -50%; }
    66.67% { left: 150%; }
    100% { left: 150%; }
}

/* 文字动画：0-4秒等待，4-6秒扫过 */
@keyframes lightSweepText {
    0% { left: -50%; }
    66.67% { left: -50%; }
    100% { left: 150%; }
}

/* 消息提示弹窗样式 */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* 成功样式 - 绿色 */
.toast-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(21, 128, 61, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.toast-success .toast-icon {
    color: #22c55e;
}

.toast-success .toast-progress {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

/* 错误样式 - 红色 */
.toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(185, 28, 28, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-error .toast-progress {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.toast-close {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 0 12px;
    animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress {
    0% { width: 100%; }
    100% { width: 0%; }
}

body {
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
}

/* 动态光晕背景 */
.gradient-bg {
    background: 
        radial-gradient(circle at 20% 30%, rgba(120, 50, 150, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(50, 100, 200, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(200, 50, 100, 0.1) 0%, transparent 40%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* 科技感网格 */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

/* 扫描线效果 */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

/* 毛玻璃卡片 */
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}

/* 霓虹渐变文字 */
.neon-text {
    background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neon-text-cyan {
    background: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neon-text-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 脉冲光点 */
.live-pulse {
    animation: livePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #22c55e; }
    50% { opacity: 0.5; box-shadow: 0 0 20px #22c55e; }
}

/* 发光按钮 */
.glow-btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.glow-btn:hover::before {
    left: 100%;
}

/* 平台标签 */
.platform-tag {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.3s;
}

.platform-tag:hover {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.4), rgba(59, 130, 246, 0.4));
    transform: scale(1.05);
}

/* 功能图标容器 */
.feature-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 导航栏滚动效果 */
.nav-scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 礼物特效模拟 */
@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-100px) scale(0.5); opacity: 0; }
}

.gift-anim {
    animation: floatUp 3s ease-out infinite;
}

/* 弹幕滚动 */
@keyframes danmaku {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.danmaku-text {
    animation: danmaku 10s linear infinite;
}

/* 游戏卡片悬停 */
.game-card:hover .game-overlay {
    opacity: 1;
}

.game-overlay {
    opacity: 0;
    transition: opacity 0.3s;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

/* 标签 */
.tag {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(168, 85, 247, 0.3);
}

.tag-hot {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.tag-new {
    background: rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.3);
    color: #22d3ee;
}

/* 搜索框 */
.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

/* 分页按钮 */
.page-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    transition: all 0.3s;
}

.page-btn:hover, .page-btn.active {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    border-color: transparent;
    color: white;
}

/* 筛选按钮 */
.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(236, 72, 153, 0.3));
    border-color: rgba(168, 85, 247, 0.5);
    color: white;
}

/* 分类标签激活状态 */
.category-active {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border-color: transparent;
    color: white;
}

/* 下载按钮动画 */
.download-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* 统计数字 */
.stat-number {
    background: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* 礼物图标发光效果 */
.gift-icon-glow {
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.4));
}

.luxury-gift {
    position: relative;
    overflow: hidden;
}

.luxury-gift::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
}

/* 文章正文样式 */
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #c084fc;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.article-content ul li {
    color: #d1d5db;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9333ea, #ec4899);
}

.article-content code {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: transparent;
    color: #e5e7eb;
    padding: 0;
}

.article-content blockquote {
    border-left: 3px solid #9333ea;
    background: rgba(168, 85, 247, 0.1);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #e5e7eb;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 目录 */
.toc {
    position: sticky;
    top: 100px;
}

.toc a {
    color: #9ca3af;
    transition: all 0.3s;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.toc a:hover, .toc a.active {
    color: #c084fc;
    border-left-color: #9333ea;
}

/* 评论区 */
.comment-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-item:last-child {
    border-bottom: none;
}

/* 批量下载悬浮按钮 */
.batch-download {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 50;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 热度条 */
.heat-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.heat-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #c084fc);
    border-radius: 2px;
}

/* 平台图标 */
.platform-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}
