/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-tertiary: #555555;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 60%);
    --radius: 16px;
    --radius-sm: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 浅色主题 */
[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.1) 0%, transparent 60%);
}

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

/* 导航链接点击时立即跳转（覆盖平滑滚动） */
.nav-links a {
    scroll-margin-top: 80px;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 48px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* 主题切换按钮 */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: var(--transition);
    margin-left: 8px;
}

.theme-toggle:hover {
    background: var(--bg-card);
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #000000;
}



.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
    transform: translateY(-80px);
}

.hero-content .hero-line:nth-child(2),
.hero-content .hero-desc,
.hero-content .hero-actions {
    transform: translateY(60px);
}

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

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-1);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: gradientShift 6s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-secondary), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ========== Sections ========== */
.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.section > .container {
    position: relative;
    z-index: 1;
}

.section > .container {
    position: relative;
    z-index: 3;
}

.section-dark {
    background: transparent;
    overflow: hidden;
}

.section-dark > .container {
    position: relative;
    z-index: 3;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ========== About ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-stats {
    display: flex;
    gap: 40px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.about-profile {
    position: sticky;
    top: 120px;
}

.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 32px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.profile-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-title {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 28px;
}

.profile-details {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-item {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.profile-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.profile-item span:last-child {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== Works ========== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.work-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.work-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.work-card-large {
    grid-column: span 2;
}

.work-thumb {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.work-card-large .work-thumb {
    height: 300px;
}

.work-thumb-icon {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 0.05em;
}

.work-play {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
}

.work-card:hover .work-play {
    opacity: 1;
    transform: scale(1);
}

.work-info {
    padding: 24px;
}

.work-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #8b5cf6;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.work-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.work-info p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* ========== Contact ========== */
.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 2rem;
}

.contact-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========== Footer ========== */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

/* ========== News ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-3px);
}

.news-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
    width: fit-content;
}

.news-category.cat-game {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.news-category.cat-tech {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

.news-category.cat-ai {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.news-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.news-source {
    color: var(--text-secondary);
    font-weight: 500;
}

.news-loading {
    grid-column: span 3;
    text-align: center;
    padding: 60px 0;
    color: var(--text-tertiary);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.news-error {
    grid-column: span 3;
    text-align: center;
    padding: 40px 0;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-card, .news-loading, .news-error {
        grid-column: span 1;
    }
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.visitor-stats {
    margin-top: 8px;
    font-size: 0.8rem;
}

/* ========== 作品筛选器 ========== */
.works-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

/* ========== Animations (scroll reveal) ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 24px;
    }

    .navbar.scrolled {
        padding: 12px 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-stats {
        gap: 24px;
    }

    .about-skills {
        grid-template-columns: 1fr;
    }

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

    .work-card-large {
        grid-column: span 1;
    }

    .work-thumb {
        height: 180px;
    }

    .work-card-large .work-thumb {
        height: 220px;
    }

    .contact-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 80px 0;
    }
}

/* ========== 作品嵌入播放器自适应 ========== */
.work-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    background: #000;
}

.work-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 大卡片的播放器 */
.work-card-large .work-embed {
    padding-top: 56.25%;
}

/* 手机端优化 */
@media (max-width: 768px) {
    .work-thumb {
        height: 180px !important;
    }
    
    .work-card-large .work-thumb {
        height: 220px !important;
    }
    
    .work-embed {
        padding-top: 56.25%;
    }
}

/* ========== Profile Avatar ========== */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 2px solid rgba(99,102,241,0.3);
    transition: var(--transition);
}

.profile-avatar:hover {
    border-color: rgba(99,102,241,0.6);
    box-shadow: 0 0 20px rgba(99,102,241,0.2);
}

/* ========== Hero Animations (赛博科幻动画) ========== */
.hero-anim {
    position: absolute;
    width: 300px;
    height: 300px;
    z-index: 5;
    opacity: 0.6;
    pointer-events: none;
    object-fit: cover;
}

.hero-anim-left {
    left: 5%;
    bottom: 10%;
}

.hero-anim-right {
    right: 5%;
    top: 10%;
}

/* 作品外部链接缩略图 */
.work-thumb-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border-radius: var(--radius);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-thumb-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(100, 100, 255, 0.2);
}

.work-thumb-link .work-thumb-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.work-thumb-link .work-play {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
}

/* ========== 游戏科技动态 - 全宽视频 + 底部并排 ========== */
.news-video-full {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.news-video-full iframe {
    flex: 1;
    width: 100%;
}

.video-ad-banner {
    background: linear-gradient(135deg, #f59e0b, #d97706, #f59e0b);
    background-size: 200% 200%;
    animation: ad-gradient-shift 3s ease-in-out infinite, ad-pulse 2s ease-in-out infinite;
    color: #000;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 16px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

@keyframes ad-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.video-ad-banner::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #f59e0b, #6366f1, #f59e0b, #6366f1);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 12px;
    animation: ad-border-glow 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes ad-border-glow {
    0%, 100% { background-position: 0% 50%; opacity: 0.6; }
    50% { background-position: 100% 50%; opacity: 1; }
}

@keyframes ad-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

/* 视频下方左右并排 */
.news-bottom-row {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.news-bottom-left {
    flex: 1;
    min-width: 0;
}

.news-bottom-right {
    flex: 1;
    min-width: 0;
    background: linear-gradient(135deg, #0a0a1a, #1a0a2e, #0a1a2e);
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
}

.news-bottom-left .section-title {
    font-size: 1.1rem;
}

.news-bottom-right .section-title {
    color: #fff;
    font-size: 1.1rem;
}

.news-bottom-right .section-tag {
    color: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .news-bottom-row {
        flex-direction: column;
    }
    .news-video-full {
        aspect-ratio: 16 / 9;
    }
}
/* 每日新闻滚动条样式（嵌入news板块右侧） */
.news-ticker-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    flex: 1;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.news-ticker {
    display: flex;
    gap: 0;
    animation: ticker-scroll 40s linear infinite;
    width: max-content;
}

.news-ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-item:last-child {
    border-right: none;
}

.ticker-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ticker-tag.tag-game { background: rgba(139, 92, 246, 0.3); color: #c4b5fd; }
.ticker-tag.tag-tech { background: rgba(6, 182, 212, 0.3); color: #67e8f9; }
.ticker-tag.tag-ai   { background: rgba(236, 72, 153, 0.3); color: #f9a8d4; }

.ticker-text a {
    color: inherit;
    text-decoration: none;
}
.ticker-text a:hover {
    color: #8b5cf6;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.daily-news-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
}

/* 游戏科技财经 */
.finance-block {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex: 1;
}

.finance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.finance-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.finance-badge {
    font-size: 0.62rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    font-weight: 600;
}

.finance-ticker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    flex: 1;
}

.finance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    transition: background 0.2s;
}

.finance-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.finance-symbol {
    font-weight: 700;
    font-size: 0.75rem;
    color: rgba(16, 185, 129, 0.9);
    min-width: 56px;
}

.finance-symbol.down {
    color: #f87171;
}

.finance-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finance-change {
    font-weight: 600;
    font-size: 0.75rem;
    min-width: 52px;
    text-align: right;
}

.finance-change.up { color: #6ee7b7; }
.finance-change.down { color: #f87171; }

.finance-footer {
    text-align: center;
    margin-top: 10px;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.2);
}

/* ========== 骨架屏加载动画 ========== */
.skeleton-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
}

.skeleton-card {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 20px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-thumb {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #222 25%, #2a2a2a 50%, #222 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
    margin-bottom: 16px;
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #222 25%, #2a2a2a 50%, #222 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 7px;
    margin-bottom: 10px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* 新闻加载动画 */
.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #888;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 个人简介骨架屏 */
.profile-skeleton {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.profile-skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #222 25%, #2a2a2a 50%, #222 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.profile-skeleton-line.short { width: 40%; }
.profile-skeleton-line.medium { width: 70%; }
.profile-skeleton-line.long { width: 100%; }
/* ========== 回到顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, #818cf8, #a78bfa);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}
/* ========== 作品卡片悬停效果（优化响应速度） ========== */
.work-card {
    transition: transform 0.15s ease, 
                box-shadow 0.15s ease;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.work-card .work-info {
    transition: background 0.3s ease;
}

.work-card:hover .work-info {
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.1) 100%);
}

/* 作品缩略图悬停效果 */
.work-thumb, .work-thumb-link {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.work-card:hover .work-thumb,
.work-card:hover .work-thumb-link {
    transform: scale(1.05);
}

/* 作品标签悬停效果 */
.work-tag {
    transition: background 0.3s ease, color 0.3s ease;
}

.work-card:hover .work-tag {
    background: #6366f1;
    color: #fff;
}
