        /* 深色模式变量 */
        :root {
            --bg-primary: #f8fafc;
            --bg-secondary: #ffffff;
            --bg-tertiary: #f1f5f9;
            --text-primary: #1e293b;
            --text-secondary: #475569;
            --text-muted: #64748b;
            --border-color: rgba(14, 165, 233, 0.1);
            --glass-bg: rgba(255, 255, 255, 0.75);
            --glass-border: rgba(255, 255, 255, 0.6);
            --card-bg: #ffffff;
            --card-hover-shadow: rgba(14, 165, 233, 0.25);
            --scrollbar-track: #f0f9ff;
            --scrollbar-thumb: #7dd3fc;
        }

        .dark-mode {
            --bg-primary: #0f172a;
            --bg-secondary: #1e293b;
            --bg-tertiary: #334155;
            --text-primary: #f1f5f9;
            --text-secondary: #cbd5e1;
            --text-muted: #94a3b8;
            --border-color: rgba(56, 189, 248, 0.15);
            --glass-bg: rgba(15, 23, 42, 0.85);
            --glass-border: rgba(56, 189, 248, 0.2);
            --card-bg: #1e293b;
            --card-hover-shadow: rgba(56, 189, 248, 0.3);
            --scrollbar-track: #1e293b;
            --scrollbar-thumb: #38bdf8;
        }

        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--scrollbar-track); }
        ::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: #0ea5e9; }

        .bg-grid {
            background-size: 48px 48px;
            background-image:
                linear-gradient(to right, rgba(14, 165, 233, 0.04) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
        }
        .dark-mode .bg-grid {
            background-image:
                linear-gradient(to right, rgba(56, 189, 248, 0.06) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
        }

        .bg-dots {
            background-image: radial-gradient(circle, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
            background-size: 24px 24px;
        }
        .dark-mode .bg-dots {
            background-image: radial-gradient(circle, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
        }
        .text-gradient {
            background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #22d3ee 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }
        .text-gradient-soft {
            background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }
        .glass {
            background: var(--glass-bg);
            backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
        }
        .glass-dark {
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(56, 189, 248, 0.15);
        }
        .dark-mode .glass-dark {
            background: rgba(30, 41, 59, 0.8);
            border: 1px solid rgba(56, 189, 248, 0.25);
        }
        .card-hover {
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .card-hover:hover {
            transform: translateY(-6px) scale(1.01);
            box-shadow: 0 25px 50px -12px var(--card-hover-shadow);
        }
        .btn-primary {
            background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #3b82f6 100%);
            background-size: 200% 200%;
            transition: all 0.3s ease;
        }
        .btn-primary:hover {
            background-position: 100% 0;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.5);
        }
        .star-four {
            clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
        }
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .reveal.active { opacity: 1; transform: translateY(0); }
        .counter { font-variant-numeric: tabular-nums; }
        .geo-circle {
            position: absolute; border-radius: 50%;
            border: 1px solid rgba(56, 189, 248, 0.2);
        }
        .geo-square {
            position: absolute;
            border: 1px solid rgba(56, 189, 248, 0.15);
            transform: rotate(15deg);
        }
        /* ========== 全新移动端菜单系统 ========== */
        
        /* 汉堡菜单线条动画 */
        .menu-line { 
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
        }
        .menu-open .menu-line:nth-child(1) { 
            transform: rotate(45deg) translate(5px, 5px); 
        }
        .menu-open .menu-line:nth-child(2) { 
            opacity: 0;
            transform: scaleX(0);
        }
        .menu-open .menu-line:nth-child(3) { 
            transform: rotate(-45deg) translate(5px, -5px); 
        }
        
        /* 菜单遮罩层 - 使用GPU加速 */
        .mobile-menu-overlay {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateZ(0);
            will-change: opacity;
            -webkit-overflow-scrolling: touch;
        }
        
        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        
        /* 背景装饰层 - 多层渐变增强质感 */
        .mobile-menu-bg {
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
                linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.95) 100%);
            backdrop-filter: blur(30px) saturate(200%);
            -webkit-backdrop-filter: blur(30px) saturate(200%);
            transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            opacity: 0;
        }
        
        .mobile-menu-overlay.active .mobile-menu-bg {
            opacity: 1;
        }
        
        /* 内容容器 - 弹性布局 */
        .mobile-menu-container {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            height: 100%;
            max-height: 100dvh;
            padding: 80px 24px 32px;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
        }
        
        .mobile-menu-container::-webkit-scrollbar {
            display: none;
        }
        .mobile-menu-container {
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        
        /* 关闭按钮 - 增大点击区域，优化视觉反馈 */
        .mobile-menu-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 52px;
            height: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 16px;
            color: rgba(255, 255, 255, 0.85);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 10;
        }
        
        .mobile-menu-close:active {
            transform: scale(0.92);
            background: rgba(255, 255, 255, 0.15);
        }
        
        .mobile-menu-close .close-icon {
            width: 28px;
            height: 28px;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .mobile-menu-close:active .close-icon {
            transform: rotate(90deg);
        }
        
        /* Logo头部区域 */
        .mobile-menu-header {
            text-align: center;
            margin-bottom: 40px;
            opacity: 0;
            transform: translateY(-20px);
            transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }
        
        .mobile-menu-overlay.active .mobile-menu-header {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.1s;
        }
        
        .menu-logo-text {
            font-family: 'Orbitron', sans-serif;
            font-size: 42px;
            font-weight: 900;
            background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 50%, #38bdf8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 2px;
            margin-bottom: 8px;
        }
        
        .menu-logo-subtitle {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.6);
            letter-spacing: 2px;
            font-weight: 500;
        }
        
        /* 导航菜单列表 */
        .mobile-menu-nav {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }
        
        /* 菜单项 - 卡片式设计，增强交互反馈 */
        .mobile-menu-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 18px 20px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            transform: translateX(-30px);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
        }
        
        /* 菜单项激活状态（打开时） */
        .mobile-menu-overlay.active .mobile-menu-item {
            opacity: 1;
            transform: translateX(0);
        }
        
        /* 交错延迟动画 */
        .mobile-menu-overlay.active .mobile-menu-item[data-index="0"] { transition-delay: 0.15s; }
        .mobile-menu-overlay.active .mobile-menu-item[data-index="1"] { transition-delay: 0.2s; }
        .mobile-menu-overlay.active .mobile-menu-item[data-index="2"] { transition-delay: 0.25s; }
        .mobile-menu-overlay.active .mobile-menu-item[data-index="3"] { transition-delay: 0.3s; }
        .mobile-menu-overlay.active .mobile-menu-item[data-index="4"] { transition-delay: 0.35s; }
        .mobile-menu-overlay.active .mobile-menu-item[data-index="5"] { transition-delay: 0.4s; }
        
        /* 触摸/悬停反馈 */
        .mobile-menu-item:active,
        .mobile-menu-item:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(56, 189, 248, 0.4);
            transform: translateX(4px) scale(1.02);
            box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
        }
        
        /* 图标样式 - SVG线条图标 */
        .menu-item-icon {
            width: 24px;
            height: 24px;
            flex-shrink: 0;
            color: rgba(255, 255, 255, 0.85);
            transition: all 0.3s ease;
        }
        
        .mobile-menu-item:active .menu-item-icon,
        .mobile-menu-item:hover .menu-item-icon {
            color: #38bdf8;
            transform: scale(1.1);
        }
        
        /* 文字样式 */
        .menu-item-text {
            flex: 1;
            font-size: 20px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.95);
            letter-spacing: 0.5px;
        }
        
        /* 箭头指示器 */
        .menu-item-arrow {
            font-size: 28px;
            color: rgba(255, 255, 255, 0.3);
            transition: all 0.3s ease;
            transform: translateX(-4px);
        }
        
        .mobile-menu-item:active .menu-item-arrow,
        .mobile-menu-item:hover .menu-item-arrow {
            color: rgba(56, 189, 248, 0.9);
            transform: translateX(0);
        }
        
        /* 底部操作区 */
        .mobile-menu-footer {
            margin-top: auto;
            padding-top: 24px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }
        
        .mobile-menu-overlay.active .mobile-menu-footer {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.45s;
        }
        
        /* 主题切换按钮 */
        .mobile-theme-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 16px 24px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 14px;
            color: rgba(255, 255, 255, 0.9);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            font-size: 16px;
            font-weight: 600;
        }
        
        .mobile-theme-toggle:active {
            transform: scale(0.96);
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(56, 189, 248, 0.5);
        }
        
        .theme-icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        
        .theme-icon.sun {
            opacity: 1;
            transform: rotate(0deg) scale(1);
        }
        
        .theme-icon.moon {
            opacity: 0;
            transform: rotate(-90deg) scale(0);
        }
        
        .dark-mode .theme-icon.sun {
            opacity: 0;
            transform: rotate(90deg) scale(0);
        }
        
        .dark-mode .theme-icon.moon {
            opacity: 1;
            transform: rotate(0deg) scale(1);
        }
        
        .theme-label {
            font-size: 15px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            white-space: nowrap;
        }
        
        /* 品牌标语 */
        .menu-brand-tagline {
            text-align: center;
            padding: 12px;
        }
        
        .tagline-en {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.4);
            letter-spacing: 3px;
            font-weight: 600;
            font-family: 'Orbitron', sans-serif;
        }
        
        .hero-title { font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1.1; letter-spacing: -0.02em; }
        @media (min-width: 768px) {
            .hero-title { font-size: clamp(3.5rem, 11.2vw, 6.3rem); }
        }
        .input-glass {
            background: rgba(255,255,255,0.6);
            border: 1px solid rgba(14, 165, 233, 0.2);
            transition: all 0.3s ease;
            color: var(--text-primary);
        }
        .dark-mode .input-glass {
            background: rgba(30, 41, 59, 0.6);
            border: 1px solid rgba(56, 189, 248, 0.2);
            color: var(--text-primary);
        }
        .input-glass:focus {
            background: rgba(255,255,255,0.9);
            border-color: #0ea5e9; outline: none;
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
        }
        .dark-mode .input-glass:focus {
            background: rgba(30, 41, 59, 0.9);
        }
        .input-glass::placeholder {
            color: var(--text-muted);
        }
        .dark-mode .input-glass::placeholder {
            color: var(--text-muted);
        }
        
        /* 深色模式下导航栏适配 */
        .dark-mode nav .glass {
            background: rgba(15, 23, 42, 0.9);
            border-color: rgba(56, 189, 248, 0.15);
        }
        
        /* 深色模式下主题切换按钮 */
        .dark-mode .theme-toggle:hover {
            background: rgba(56, 189, 248, 0.15);
        }
        
        /* 深色模式下导航链接颜色 */
        .dark-mode nav a.text-feliko-600 {
            color: #38bdf8;
        }
        .dark-mode nav a.text-slate-600 {
            color: #cbd5e1;
        }
        .dark-mode nav a:hover.bg-feliko-50 {
            background-color: rgba(56, 189, 248, 0.1);
        }
        .dark-mode nav a:hover.text-feliko-600 {
            color: #7dd3fc;
        }
        
        /* 深色模式下汉堡菜单按钮 */
        .dark-mode .menu-line {
            background-color: #f1f5f9 !important;
        }
        .dark-mode #menuBtn:hover {
            background-color: rgba(56, 189, 248, 0.1);
        }
        
        /* 深色模式下Hero区域背景渐变 */
        .dark-mode #hero .bg-gradient-to-b {
            background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 0%, transparent 100%);
        }
        
        /* 深色模式下作品专区背景渐变 */
        .dark-mode #works.bg-gradient-to-b {
            background: linear-gradient(to bottom, #0f172a 0%, #1e293b 100%) !important;
        }
        
        /* 深色模式下博客专区背景渐变 */
        .dark-mode #blog.bg-gradient-to-b {
            background: linear-gradient(to bottom, #0f172a 0%, #1e293b 100%) !important;
        }
        
        /* 深色模式下项目开发区域背景 */
        .dark-mode #projects.bg-gradient-to-b {
            background: linear-gradient(to bottom, #0f172a 0%, #020617 100%) !important;
        }
        
        /* 深色模式下项目状态标签 */
        .dark-mode .bg-feliko-500\/20 {
            background-color: rgba(56, 189, 248, 0.2) !important;
        }
        .dark-mode .text-feliko-300 {
            color: #7dd3fc !important;
        }
        .dark-mode .bg-slate-600\/20 {
            background-color: rgba(148, 163, 184, 0.2) !important;
        }
        
        /* 深色模式下标题文字 */
        .dark-mode .text-slate-900 {
            color: #f1f5f9 !important;
        }
        /* 确保渐变文字在深色模式下不受 text-slate-900 影响 */
        .dark-mode .text-slate-900.gradient-text-animated,
        .dark-mode .text-slate-900 .gradient-text-animated {
            color: transparent !important;
            -webkit-text-fill-color: transparent !important;
        }
        .dark-mode .text-slate-800 {
            color: #e2e8f0 !important;
        }
        .dark-mode .text-slate-700 {
            color: #cbd5e1 !important;
        }
        .dark-mode .text-slate-600 {
            color: #94a3b8 !important;
        }
        .dark-mode .text-slate-500 {
            color: #64748b !important;
        }
        
        /* 深色模式下卡片背景 */
        .dark-mode .bg-white {
            background-color: #1e293b !important;
        }
        .dark-mode .bg-feliko-50 {
            background-color: rgba(30, 41, 59, 0.6) !important;
        }
        .dark-mode .border-feliko-100 {
            border-color: rgba(56, 189, 248, 0.15) !important;
        }
        .dark-mode .border-slate-200 {
            border-color: rgba(148, 163, 184, 0.2) !important;
        }
        
        /* 深色模式下的hover效果 */
        .dark-mode .hover\:bg-feliko-50:hover {
            background-color: rgba(56, 189, 248, 0.1) !important;
        }
        .dark-mode .hover\:bg-feliko-100:hover {
            background-color: rgba(56, 189, 248, 0.15) !important;
        }
        .dark-mode .hover\:border-feliko-200:hover {
            border-color: rgba(56, 189, 248, 0.3) !important;
        }
        .dark-mode .hover\:border-feliko-300:hover {
            border-color: rgba(56, 189, 248, 0.4) !important;
        }
        .dark-mode .hover\:text-feliko-600:hover {
            color: #38bdf8 !important;
        }
        .dark-mode .hover\:shadow-md:hover {
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        }
        
        /* 深色模式下输入框 */
        .dark-mode .input-glass {
            background: rgba(30, 41, 59, 0.6);
            border-color: rgba(56, 189, 248, 0.2);
            color: #f1f5f9;
        }
        .dark-mode .input-glass:focus {
            background: rgba(30, 41, 59, 0.9);
            border-color: #38bdf8;
        }
        .dark-mode .input-glass::placeholder {
            color: #64748b;
        }
        
        /* 深色模式下按钮 */
        .dark-mode .bg-white.border-2 {
            background-color: transparent !important;
            border-color: rgba(148, 163, 184, 0.3) !important;
            color: #f1f5f9;
        }
        .dark-mode .bg-white.border-2:hover {
            border-color: #38bdf8 !important;
            color: #38bdf8;
            background-color: rgba(56, 189, 248, 0.1) !important;
        }
        
        /* 深色模式下标签 */
        .dark-mode .bg-white\/80 {
            background-color: rgba(30, 41, 59, 0.8) !important;
        }
        .dark-mode .border-feliko-100 {
            border-color: rgba(56, 189, 248, 0.15) !important;
        }
        
        /* 深色模式下阴影 */
        .dark-mode .shadow-lg {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
        }
        .dark-mode .shadow-lg.shadow-feliko-400\/20 {
            box-shadow: 0 10px 15px -3px rgba(56, 189, 248, 0.15);
        }
        
        /* 深色模式下作品/博客卡片内的覆盖层 */
        .dark-mode .bg-black\/20 {
            background-color: rgba(0, 0, 0, 0.3) !important;
        }
        .dark-mode .bg-black\/10 {
            background-color: rgba(0, 0, 0, 0.2) !important;
        }
        .dark-mode .group-hover\:bg-black\/10:hover {
            background-color: rgba(0, 0, 0, 0.15) !important;
        }
        
        /* 深色模式下视频标签 */
        .dark-mode .bg-black\/50 {
            background-color: rgba(0, 0, 0, 0.6) !important;
        }
        
        /* 深色模式下装饰星星 */
        .dark-mode .bg-feliko-400\/10 {
            background-color: rgba(56, 189, 248, 0.2) !important;
        }
        .dark-mode .bg-accent-cyan\/20 {
            background-color: rgba(34, 211, 238, 0.25) !important;
        }
        
        /* 深色模式下状态徽章 */
        .dark-mode .status-badge {
            opacity: 0.9;
        }
        
        /* 深色模式下滚动条 */
        .dark-mode ::-webkit-scrollbar-track {
            background: #1e293b;
        }
        .dark-mode ::-webkit-scrollbar-thumb {
            background: #38bdf8;
        }
        .dark-mode ::-webkit-scrollbar-thumb:hover {
            background: #0ea5e9;
        }
        
        /* 深色模式下项目区域背景网格 */
        .dark-mode #projects .bg-grid {
            opacity: 0.05 !important;
        }
        
        /* 深色模式下页脚分隔线 */
        .dark-mode .border-white\/10 {
            border-color: rgba(255, 255, 255, 0.08) !important;
        }
        
        /* 深色模式下页脚社交按钮 */
        .dark-mode footer .bg-white\/10 {
            background-color: rgba(255, 255, 255, 0.08) !important;
        }
        .dark-mode footer .bg-white\/10:hover {
            background-color: rgba(255, 255, 255, 0.15) !important;
        }
        
        /* 深色模式下几何图形增强可见性 */
        .dark-mode .geo-circle {
            border-color: rgba(56, 189, 248, 0.3);
        }
        .dark-mode .geo-square {
            border-color: rgba(56, 189, 248, 0.25);
        }
        
        /* 深色模式下Hero区域渐变覆盖层 */
        .dark-mode #hero > div:first-child {
            background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8) 0%, transparent 100%);
        }
        
        /* 深色模式下徽章文字 */
        .dark-mode .text-feliko-600 {
            color: #38bdf8 !important;
        }
        
        /* 深色模式下播放按钮 */
        .dark-mode .play-ring {
            border-color: rgba(56, 189, 248, 0.3);
        }
        
        /* 深色模式下项目卡片内的标签 */
        .dark-mode .bg-slate-700 {
            background-color: #334155 !important;
        }
        .dark-mode .text-slate-300 {
            color: #cbd5e1 !important;
        }
        .dark-mode .text-slate-400 {
            color: #94a3b8 !important;
        }
        
        /* 深色模式下footer链接 */
        .dark-mode footer a:hover {
            background-color: rgba(56, 189, 248, 0.2) !important;
        }
        
        .project-glow {
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        
        .project-glow:hover {
            border-color: rgba(56, 189, 248, 0.4) !important;
            box-shadow: 0 20px 40px -12px rgba(56, 189, 248, 0.25);
        }
        
        .project-glow::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                45deg,
                transparent 0%,
                rgba(255, 255, 255, 0) 30%,
                rgba(255, 255, 255, 0.25) 50%,
                rgba(255, 255, 255, 0) 70%,
                transparent 100%
            );
            transform: rotate(45deg) translate(-100%, -100%);
            transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }
        
        .project-glow:hover::before {
            transform: rotate(45deg) translate(100%, 100%);
        }

        /* ========== 项目卡片点击动画与详情展示 ========== */
        
        /* 项目卡片可点击状态 */
        .project-card-clickable {
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .project-card-clickable:active {
            transform: scale(0.98);
        }
        
        /* 几何图形动画容器 */
        .geometry-animation {
            position: absolute;
            inset: 0;
            pointer-events: none;
            overflow: hidden;
            border-radius: inherit;
            z-index: 0;
        }
        
        /* 几何图形元素 */
        .geo-shape {
            position: absolute;
            opacity: 0;
            transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        /* 点击触发的几何图形动画 */
        .project-card-clickable.animating .geo-shape {
            animation: geoExpand 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }
        
        .project-card-clickable.animating .geo-shape:nth-child(1) {
            animation-delay: 0s;
        }
        
        .project-card-clickable.animating .geo-shape:nth-child(2) {
            animation-delay: 0.1s;
        }
        
        .project-card-clickable.animating .geo-shape:nth-child(3) {
            animation-delay: 0.2s;
        }
        
        .project-card-clickable.animating .geo-shape:nth-child(4) {
            animation-delay: 0.3s;
        }
        
        @keyframes geoExpand {
            0% {
                opacity: 0;
                transform: scale(0) rotate(0deg);
            }
            50% {
                opacity: 0.6;
            }
            100% {
                opacity: 0;
                transform: scale(1.5) rotate(180deg);
            }
        }
        
        /* 项目详情面板 */
        .project-detail-panel {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                        opacity 0.4s ease,
                        margin-top 0.4s ease;
            opacity: 0;
        }
        
        .project-detail-panel.expanded {
            max-height: 500px;
            opacity: 1;
            margin-top: 16px;
        }
        
        /* 详情内容样式 */
        .project-detail-content {
            padding-top: 16px;
            border-top: 1px solid rgba(148, 163, 184, 0.2);
        }
        
        .detail-item {
            margin-bottom: 12px;
        }
        
        .detail-label {
            font-size: 11px;
            color: rgba(148, 163, 184, 0.8);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 4px;
        }
        
        .detail-value {
            font-size: 13px;
            color: rgba(241, 245, 249, 0.9);
            line-height: 1.6;
        }
        
        .detail-value.slogan {
            font-style: italic;
            color: rgba(56, 189, 248, 0.9);
            font-size: 12px;
        }
        
        /* 展开/收起指示器 */
        .expand-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            margin-top: 12px;
            font-size: 11px;
            color: rgba(148, 163, 184, 0.6);
            transition: color 0.3s ease;
        }
        
        .project-card-clickable:hover .expand-indicator {
            color: rgba(56, 189, 248, 0.8);
        }
        
        .expand-arrow {
            transition: transform 0.3s ease;
        }
        
        .project-card-clickable.expanded .expand-arrow {
            transform: rotate(180deg);
        }

        /* 深色模式项目卡片 */
        .dark-mode .project-glow {
            background: rgba(30, 41, 59, 0.95) !important;
            border-color: rgba(56, 189, 248, 0.25) !important;
        }
        .dark-mode .project-glow:hover {
            border-color: rgba(56, 189, 248, 0.5) !important;
            box-shadow: 0 20px 40px -12px rgba(56, 189, 248, 0.3);
        }

        /* 主题切换按钮动画 */
        .theme-toggle {
            position: relative;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: transparent;
            border: none;
        }
        .theme-toggle:hover {
            background: var(--bg-tertiary);
        }
        .theme-toggle .sun-icon,
        .theme-toggle .moon-icon {
            position: absolute;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        .theme-toggle .sun-icon {
            opacity: 1;
            transform: rotate(0deg) scale(1);
        }
        .theme-toggle .moon-icon {
            opacity: 0;
            transform: rotate(-90deg) scale(0);
        }
        .dark-mode .theme-toggle .sun-icon {
            opacity: 0;
            transform: rotate(90deg) scale(0);
        }
        .dark-mode .theme-toggle .moon-icon {
            opacity: 1;
            transform: rotate(0deg) scale(1);
        }

        /* ========== 蓝色渐变动画文字 - 全面修复版 ========== */
        .gradient-text-animated {
            font-weight: 900;
            background: linear-gradient(90deg,
              #2585f5,
              #4399ff,
              #64b5ff,
              #33ccff,
              #2585f5
            );
            background-size: 400% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent !important;
            -webkit-text-fill-color: transparent !important;
            animation: gradientLoop 6s linear infinite;
            display: inline-block;
            position: relative;
        }
        
        /* 确保任何父元素的颜色类不会影响渐变文字 */
        span.gradient-text-animated,
        div.gradient-text-animated,
        .gradient-text-animated span,
        a.gradient-text-animated {
            color: transparent !important;
            -webkit-text-fill-color: transparent !important;
        }

        @keyframes gradientLoop {
            0% { 
                background-position: 0% 50%; 
            }
            100% { 
                background-position: 400% 50%; 
            }
        }
        
        /* 兼容旧版类名 */
        .gradient-animated {
            font-weight: 900;
            background: linear-gradient(90deg,
              #2585f5,
              #4399ff,
              #64b5ff,
              #33ccff,
              #2585f5
            );
            background-size: 400% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            -webkit-text-fill-color: transparent;
            animation: gradientLoop 6s linear infinite;
            display: inline-block;
        }
        
        /* 深色模式下保持渐变效果 - 不使用 !important 避免覆盖 */
        .dark-mode .gradient-text-animated,
        .dark-mode .gradient-animated {
            background: linear-gradient(90deg,
              #2585f5,
              #4399ff,
              #64b5ff,
              #33ccff,
              #2585f5
            );
            background-size: 400% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            -webkit-text-fill-color: transparent;
        }
        
        /* 移动端优化 - 确保动画流畅 */
        @media (max-width: 768px) {
            .gradient-text-animated,
            .gradient-animated {
                -webkit-transform: translateZ(0);
                -webkit-perspective: 1000;
                -webkit-backface-visibility: hidden;
            }
        }
        
        /* 减少动画偏好设置支持 */
        @media (prefers-reduced-motion: reduce) {
            .gradient-text-animated,
            .gradient-animated {
                animation: none;
                background-position: 50% 50%;
            }
        }
        
        /* ========== 游戏中心样式 ========== */
        
        /* 游戏中心遮罩层 */
        .game-center-overlay {
            position: fixed;
            inset: 0;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        .game-center-overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        
        /* 游戏中心容器 */
        .game-center-container {
            width: 95%;
            max-width: 500px;
            max-height: 90vh;
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            border-radius: 24px;
            border: 1px solid rgba(56, 189, 248, 0.2);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            overflow: hidden;
            transform: scale(0.9) translateY(20px);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .game-center-overlay.active .game-center-container {
            transform: scale(1) translateY(0);
        }
        
        /* 游戏中心头部 */
        .game-header {
            padding: 20px 24px;
            border-bottom: 1px solid rgba(56, 189, 248, 0.15);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .game-title {
            font-size: 20px;
            font-weight: 800;
            color: #f1f5f9;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .game-title-icon {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .game-close-btn {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #cbd5e1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .game-close-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }
        
        /* 游戏选择标签 */
        .game-tabs {
            display: flex;
            padding: 12px 16px;
            gap: 8px;
            border-bottom: 1px solid rgba(56, 189, 248, 0.1);
            overflow-x: auto;
        }
        
        .game-tabs::-webkit-scrollbar {
            display: none;
        }
        
        .game-tab {
            flex: 1;
            min-width: 80px;
            padding: 10px 16px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #94a3b8;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            white-space: nowrap;
        }
        
        .game-tab:hover {
            background: rgba(56, 189, 248, 0.1);
            color: #cbd5e1;
        }
        
        .game-tab.active {
            background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.2) 100%);
            border-color: rgba(56, 189, 248, 0.4);
            color: #38bdf8;
        }
        
        /* 游戏区域 */
        .game-area {
            padding: 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 400px;
        }
        
        .game-canvas-wrapper {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            border: 2px solid rgba(56, 189, 248, 0.2);
            background: rgba(0, 0, 0, 0.3);
        }
        
        .game-canvas {
            display: block;
            background: #0a0a0a;
        }
        
        /* 俄罗斯方块布局 - 桌面端横向 */
        .tetris-layout {
            display: flex;
            gap: 20px;
            align-items: flex-start;
            justify-content: center;
        }
        
        /* 右侧信息面板 */
        .tetris-right-panel {
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 20px;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 12px;
            padding: 16px;
            border: 1px solid rgba(56, 189, 248, 0.2);
            min-width: 100px;
        }
        
        .tetris-info-block {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .tetris-info-label {
            font-size: 10px;
            color: rgba(56, 189, 248, 0.7);
            text-align: center;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-weight: 500;
        }
        
        .tetris-info-value {
            font-size: 28px;
            font-weight: 800;
            color: #fbbf24;
            text-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
            font-family: 'Orbitron', sans-serif;
            transition: transform 0.1s ease;
        }
        
        .tetris-info-value.pulse {
            animation: valuePulse 0.2s ease;
        }
        
        @keyframes valuePulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); color: #fff; }
            100% { transform: scale(1); }
        }
        
        #nextPieceCanvas {
            background: rgba(0, 0, 0, 0.5);
            border-radius: 8px;
            border: 1px solid rgba(56, 189, 248, 0.3);
        }
        
        /* 加速状态指示器 */
        .tetris-speed-indicator {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            border: 1px solid rgba(56, 189, 248, 0.15);
            transition: all 0.15s ease;
        }
        
        .tetris-speed-indicator.active {
            background: rgba(251, 191, 36, 0.2);
            border-color: rgba(251, 191, 36, 0.5);
            box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
        }
        
        .speed-label {
            font-size: 9px;
            color: rgba(56, 189, 248, 0.6);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .tetris-speed-indicator.active .speed-label {
            color: #fbbf24;
        }
        
        .speed-bars {
            display: flex;
            gap: 3px;
            align-items: flex-end;
            height: 16px;
        }
        
        .speed-bar {
            width: 6px;
            background: rgba(56, 189, 248, 0.3);
            border-radius: 2px;
            transition: all 0.15s ease;
        }
        
        .speed-bar:nth-child(1) { height: 6px; }
        .speed-bar:nth-child(2) { height: 10px; }
        .speed-bar:nth-child(3) { height: 14px; }
        
        .tetris-speed-indicator.active .speed-bar {
            background: #fbbf24;
            box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
        }
        
        .tetris-speed-indicator.active .speed-bar:nth-child(1) {
            animation: barPulse 0.3s ease infinite;
        }
        .tetris-speed-indicator.active .speed-bar:nth-child(2) {
            animation: barPulse 0.3s ease infinite 0.1s;
        }
        .tetris-speed-indicator.active .speed-bar:nth-child(3) {
            animation: barPulse 0.3s ease infinite 0.2s;
        }
        
        @keyframes barPulse {
            0%, 100% { transform: scaleY(1); }
            50% { transform: scaleY(1.3); }
        }
        
        .next-piece-label {
            font-size: 10px;
            color: #64748b;
            text-align: center;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        /* 游戏信息面板 */
        .game-info {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            padding: 12px 20px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
        
        .game-info-item {
            text-align: center;
        }
        
        .game-info-label {
            font-size: 11px;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 4px;
        }
        
        .game-info-value {
            font-size: 20px;
            font-weight: 800;
            color: #38bdf8;
            font-family: 'Orbitron', sans-serif;
        }
        
        /* 无限模式开关 */
        .infinite-mode-toggle {
            position: relative;
            display: inline-block;
            width: 52px;
            height: 28px;
            cursor: pointer;
        }
        
        .infinite-mode-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .toggle-slider {
            position: absolute;
            inset: 0;
            background: rgba(100, 116, 139, 0.4);
            border-radius: 28px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 2px solid rgba(100, 116, 139, 0.3);
        }
        
        .toggle-slider::before {
            content: '';
            position: absolute;
            height: 20px;
            width: 20px;
            left: 2px;
            bottom: 2px;
            background: white;
            border-radius: 50%;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        .infinite-mode-toggle input:checked + .toggle-slider {
            background: linear-gradient(135deg, rgba(56, 189, 248, 0.6) 0%, rgba(14, 165, 233, 0.6) 100%);
            border-color: rgba(56, 189, 248, 0.8);
        }
        
        .infinite-mode-toggle input:checked + .toggle-slider::before {
            transform: translateX(24px);
            background: #38bdf8;
        }
        
        .infinite-mode-toggle:active .toggle-slider::before {
            width: 24px;
        }
        
        .infinite-mode-toggle input:checked:active + .toggle-slider::before {
            transform: translateX(20px);
        }
        
        /* 倒计时特殊样式 */
        #gameTimer {
            transition: all 0.3s ease;
        }
        
        #gameTimer.warning {
            color: #fbbf24;
            animation: timerPulse 1s ease-in-out infinite;
        }
        
        #gameTimer.danger {
            color: #ef4444;
            animation: timerPulse 0.5s ease-in-out infinite;
        }
        
        @keyframes timerPulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.1); opacity: 0.8; }
        }
        
        /* 游戏结束弹窗增强 */
        .game-over-title.new-record {
            background: linear-gradient(135deg, #fbbf24, #f97316);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: recordGlow 1.5s ease-in-out infinite;
        }
        
        @keyframes recordGlow {
            0%, 100% { filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5)); }
            50% { filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8)); }
        }
        
        /* 消消乐动画效果 - 性能优化版 */
        .match3-cell {
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: transform;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }
        
        .match3-cell.swapping {
            z-index: 10;
            transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
            will-change: transform;
        }
        
        .match3-cell.matched {
            animation: matchEliminate 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
            will-change: transform, opacity;
        }
        
        @keyframes matchEliminate {
            0% { transform: scale(1); opacity: 1; }
            30% { transform: scale(1.15); opacity: 0.8; }
            100% { transform: scale(0); opacity: 0; }
        }
        
        .match3-cell.falling {
            transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
            will-change: transform;
        }
        
        .match3-cell.spawned {
            animation: spawnDrop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            will-change: transform, opacity;
        }
        
        @keyframes spawnDrop {
            0% { transform: translateY(-50px) scale(0.7); opacity: 0; }
            50% { transform: translateY(8px) scale(1.08); opacity: 1; }
            70% { transform: translateY(-3px) scale(0.98); }
            100% { transform: translateY(0) scale(1); opacity: 1; }
        }
        
        /* 粒子爆炸效果容器 - 性能优化 */
        .particle-container {
            position: absolute;
            pointer-events: none;
            overflow: hidden;
            will-change: auto;
        }
        
        .particle {
            position: absolute;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            animation: particleExplode 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
            will-change: transform, opacity;
        }
        
        @keyframes particleExplode {
            0% { transform: translate(0, 0) scale(1); opacity: 1; }
            100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
        }
        
        /* 游戏控制按钮 */
        .game-controls {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }
        
        .game-btn {
            padding: 12px 24px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin: 0 auto;
            width: auto;
            max-width: 100%;
        }
        
        .game-btn-primary {
            background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
            color: white;
        }
        
        .game-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.4);
        }
        
        .game-btn-secondary {
            background: rgba(255, 255, 255, 0.08);
            color: #cbd5e1;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .game-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.15);
        }
        
        /* 移动端触摸控制 - 重新设计 */
        .game-touch-controls {
            display: none;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 20px;
            max-width: 220px;
            margin-left: auto;
            margin-right: auto;
            padding: 15px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        @media (max-width: 768px) {
            .game-touch-controls {
                display: grid;
            }
        }
        
        .touch-btn {
            width: 60px;
            height: 60px;
            border-radius: 16px;
            background: linear-gradient(145deg, rgba(56, 189, 248, 0.1), rgba(14, 165, 233, 0.15));
            border: 1.5px solid rgba(56, 189, 248, 0.25);
            color: #38bdf8;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
            -webkit-user-select: none;
            backdrop-filter: blur(10px);
            box-shadow: 
                0 4px 12px rgba(56, 189, 248, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
        }
        
        .touch-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(56, 189, 248, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.3s, height 0.3s;
        }
        
        .touch-btn:active::before {
            width: 100px;
            height: 100px;
        }
        
        .touch-btn:active {
            background: linear-gradient(145deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.3));
            transform: scale(0.92);
            box-shadow: 
                0 2px 8px rgba(56, 189, 248, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.2);
            border-color: rgba(56, 189, 248, 0.5);
        }
        
        .touch-btn.up { grid-column: 2; }
        .touch-btn.left { grid-column: 1; grid-row: 2; }
        .touch-btn.down { grid-column: 2; grid-row: 2; }
        .touch-btn.right { grid-column: 3; grid-row: 2; }
        .touch-btn.action { 
            grid-column: 1 / 4; 
            grid-row: 3;
            width: 100%;
            max-width: 180px;
            margin: 0 auto;
            font-size: 14px;
            letter-spacing: 1px;
        }
        
        /* 俄罗斯方块专用2x2田字形布局 - 16:9宽屏比例 */
        .tetris-controls {
            grid-template-columns: repeat(2, 1fr) !important;
            grid-template-rows: repeat(2, 1fr) !important;
            gap: 12px !important;
            max-width: 360px !important;
            width: 90vw !important;
            min-width: 280px !important;
            padding: 14px !important;
            aspect-ratio: 16 / 9 !important;
        }
        
        /* 隐藏贪吃蛇按钮 */
        .tetris-controls .snake-only {
            display: none !important;
        }
        
        /* 俄罗斯方块按钮样式 - 加大尺寸 */
        .tetris-controls .tetris-only {
            display: flex !important;
            width: 100% !important;
            height: 100% !important;
            min-height: 65px !important;
            font-size: 18px !important;
            font-weight: 700 !important;
            border-radius: 14px !important;
            letter-spacing: 3px !important;
            align-items: center !important;
            justify-content: center !important;
        }
        
        /* 2x2网格位置 */
        .tetris-controls .tetris-only:nth-child(1) { grid-column: 1; grid-row: 1; }
        .tetris-controls .tetris-only:nth-child(2) { grid-column: 2; grid-row: 1; }
        .tetris-controls .tetris-only:nth-child(3) { grid-column: 1; grid-row: 2; }
        .tetris-controls .tetris-only:nth-child(4) { grid-column: 2; grid-row: 2; }
        
        /* 贪吃蛇专用布局 */
        .snake-controls {
            grid-template-columns: repeat(3, 1fr) !important;
        }
        
        .snake-controls .tetris-only {
            display: none !important;
        }
        
        .snake-controls .snake-only.up { grid-column: 2; grid-row: 1; display: flex !important; }
        .snake-controls .snake-only.left { grid-column: 1; grid-row: 2; display: flex !important; }
        .snake-controls .snake-only.down { grid-column: 2; grid-row: 2; display: flex !important; }
        .snake-controls .snake-only.right { grid-column: 3; grid-row: 2; display: flex !important; }
        .snake-controls .snake-only.action { grid-column: 1 / 4; grid-row: 3; display: flex !important; }
        
        /* 游戏控制按钮 - 重新设计 */
        .game-controls {
            display: flex;
            gap: 15px;
            margin-top: 20px;
            justify-content: center;
        }
        
        .game-btn {
            padding: 14px 28px;
            border-radius: 16px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            border: none;
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;
            overflow: hidden;
            letter-spacing: 0.5px;
        }
        
        .game-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }
        
        .game-btn:hover::before {
            left: 100%;
        }
        
        .game-btn-primary {
            background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
            color: white;
            box-shadow: 
                0 4px 15px rgba(56, 189, 248, 0.3),
                0 2px 8px rgba(14, 165, 233, 0.2);
        }
        
        .game-btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 
                0 8px 25px rgba(56, 189, 248, 0.4),
                0 4px 12px rgba(14, 165, 233, 0.3);
        }
        
        .game-btn-primary:active {
            transform: translateY(-1px);
            box-shadow: 
                0 4px 15px rgba(56, 189, 248, 0.3),
                0 2px 8px rgba(14, 165, 233, 0.2);
        }
        
        .game-btn-secondary {
            background: rgba(255, 255, 255, 0.06);
            color: #cbd5e1;
            border: 1.5px solid rgba(255, 255, 255, 0.12);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        .game-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .game-btn-secondary:active {
            transform: translateY(0);
        }
        
        /* 游戏结束弹窗 */
        .game-over-modal {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 10;
        }
        
        .game-over-modal.active {
            opacity: 1;
            visibility: visible;
        }
        
        .game-over-content {
            text-align: center;
            padding: 32px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .game-over-title {
            font-size: 28px;
            font-weight: 900;
            color: #f1f5f9;
            margin-bottom: 8px;
        }
        
        .game-over-score {
            font-size: 48px;
            font-weight: 900;
            color: #38bdf8;
            font-family: 'Orbitron', sans-serif;
            margin-bottom: 24px;
        }
        
        /* 消消乐特殊样式 */
        .match3-grid {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 4px;
            padding: 12px;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 12px;
        }
        
        .match3-cell {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }
        
        .match3-cell:hover {
            transform: scale(1.1);
        }
        
        .match3-cell.selected {
            box-shadow: 0 0 0 3px #38bdf8, 0 0 15px rgba(56, 189, 248, 0.5);
        }
        
        @media (max-width: 480px) {
            .match3-cell {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }
        }
        
        /* ========== 移动端优化 ========== */
        
        /* 禁用移动端点击高亮 */
        * {
            -webkit-tap-highlight-color: transparent;
        }
        
        /* 触摸优化 - 更快的响应 */
        @media (hover: none) and (pointer: coarse) {
            .card-hover:hover {
                transform: none;
            }
            .card-hover:active {
                transform: translateY(-2px) scale(0.98);
                box-shadow: 0 10px 25px -5px var(--card-hover-shadow);
            }
            
            .btn-primary:active,
            .btn-secondary:active,
            .btn-danger:active {
                transform: scale(0.96);
            }
        }
        
        /* 平滑滚动优化 */
        html {
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }
        
        /* 防止iOS缩放 */
        @supports (-webkit-touch-callout: none) {
            input, textarea, select {
                font-size: 16px !important;
            }
        }
        
        /* 移动端菜单响应式优化 */
        @media (max-width: 768px) {
            .mobile-menu-container {
                padding: 70px 20px 28px !important;
            }
            
            .mobile-menu-close {
                top: 14px !important;
                right: 14px !important;
                width: 48px !important;
                height: 48px !important;
            }
            
            .mobile-menu-header {
                margin-bottom: 32px !important;
            }
            
            .menu-logo-text {
                font-size: 36px !important;
            }
            
            .menu-logo-subtitle {
                font-size: 12px !important;
            }
            
            .mobile-menu-item {
                padding: 16px 18px !important;
            }
            
            .menu-item-icon {
                width: 22px !important;
                height: 22px !important;
            }
            
            .menu-item-text {
                font-size: 18px !important;
            }
            
            .menu-item-arrow {
                font-size: 24px !important;
            }
            
            .mobile-theme-toggle {
                padding: 14px 20px !important;
                font-size: 15px !important;
            }
            
            .tagline-en {
                font-size: 10px !important;
                letter-spacing: 2px !important;
            }
        }
        
        /* 小屏幕进一步优化 */
        @media (max-width: 375px) {
            .mobile-menu-container {
                padding: 65px 16px 24px !important;
            }
            
            .menu-logo-text {
                font-size: 32px !important;
            }
            
            .mobile-menu-item {
                padding: 14px 16px !important;
                gap: 12px !important;
            }
            
            .menu-item-text {
                font-size: 17px !important;
            }
        }
        
        /* 减少动画偏好设置支持 */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }
        
        /* GPU加速层优化 */
        .gpu-accelerated {
            transform: translateZ(0);
            backface-visibility: hidden;
            perspective: 1000px;
        }
        
        /* ========== 游戏中心移动端单屏优化 ========== */
        @media (max-width: 768px) {
            /* 游戏中心容器 - 全屏显示 */
            .game-center-container {
                width: 100% !important;
                max-width: 100% !important;
                height: 100dvh !important;
                max-height: 100dvh !important;
                border-radius: 0 !important;
                display: flex !important;
                flex-direction: column !important;
            }
            
            /* 头部紧凑化 */
            .game-header {
                padding: 12px 16px !important;
                flex-shrink: 0 !important;
            }
            
            .game-title {
                font-size: 16px !important;
                gap: 8px !important;
            }
            
            .game-title-icon {
                width: 28px !important;
                height: 28px !important;
            }
            
            .game-close-btn {
                width: 36px !important;
                height: 36px !important;
            }
            
            /* 游戏标签紧凑化 */
            .game-tabs {
                padding: 8px 12px !important;
                gap: 6px !important;
                flex-shrink: 0 !important;
            }
            
            .game-tab {
                padding: 8px 12px !important;
                font-size: 12px !important;
                min-width: 70px !important;
            }
            
            /* 游戏信息面板紧凑化 */
            .game-info {
                padding: 8px 12px !important;
                margin-bottom: 8px !important;
                gap: 12px !important;
                flex-shrink: 0 !important;
            }
            
            .game-info-label {
                font-size: 10px !important;
                margin-bottom: 2px !important;
            }
            
            .game-info-value {
                font-size: 16px !important;
            }
            
            /* 无限模式开关移动端适配 */
            .infinite-mode-toggle {
                width: 48px !important;
                height: 26px !important;
            }
            
            .toggle-slider::before {
                height: 18px !important;
                width: 18px !important;
            }
            
            .infinite-mode-toggle input:checked + .toggle-slider::before {
                transform: translateX(22px) !important;
            }
            
            /* 游戏区域自适应 */
            .game-area {
                padding: 8px 12px !important;
                flex: 1 !important;
                min-height: auto !important;
                display: flex !important;
                flex-direction: column !important;
                justify-content: flex-start !important;
                overflow: visible !important;
                gap: 8px !important;
            }
            
            /* 俄罗斯方块移动端竖屏布局 - 信息面板在右侧 */
            .tetris-layout {
                flex-direction: row !important;
                align-items: flex-start !important;
                justify-content: center !important;
                gap: 10px !important;
            }
            
            .tetris-right-panel {
                flex-direction: column !important;
                justify-content: flex-start !important;
                align-items: center !important;
                gap: 12px !important;
                padding: 10px 8px !important;
                width: auto !important;
                min-width: 70px !important;
                max-width: 90px !important;
            }
            
            .tetris-info-block {
                flex-direction: column !important;
                align-items: center !important;
                min-width: auto !important;
            }
            
            .tetris-info-label {
                font-size: 8px !important;
                margin-bottom: 3px !important;
                letter-spacing: 1px !important;
            }
            
            .tetris-info-value {
                font-size: 18px !important;
            }
            
            #nextPieceCanvas {
                width: 48px !important;
                height: 48px !important;
            }
            
            .tetris-speed-indicator {
                padding: 5px 8px !important;
                width: 100% !important;
            }
            
            .speed-bars {
                height: 10px !important;
            }
            
            .speed-bar {
                width: 4px !important;
            }
            
            .speed-bar:nth-child(1) { height: 3px !important; }
            .speed-bar:nth-child(2) { height: 6px !important; }
            .speed-bar:nth-child(3) { height: 10px !important; }
            
            /* 画布包装器自适应 */
            .game-canvas-wrapper {
                flex: 1 1 auto !important;
                max-height: none !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: 100% !important;
                overflow: visible !important;
            }
            
            /* 修复：确保被隐藏的游戏容器真正隐藏（覆盖上面的display: flex） */
            .game-canvas-wrapper[style*="display: none"] {
                display: none !important;
            }
            
            /* Canvas自适应 - 关键修复：不使用auto，保持比例缩放 */
            .game-canvas {
                display: block !important;
                object-fit: contain !important;
            }
            
            /* 消消乐网格自适应 */
            #match3Game .game-canvas-wrapper {
                align-items: flex-start !important;
            }
            
            /* 俄罗斯方块Canvas移动端适配 - 右侧信息面板布局 */
            #tetrisGame .game-canvas-wrapper {
                padding: 0 !important;
                margin: 0 auto !important;
                align-items: flex-start !important;
            }
            
            #tetrisCanvas {
                max-width: calc(100vw - 120px) !important;
                height: auto !important;
                margin: 0 !important;
                display: block !important;
                will-change: transform !important;
                transform: translateZ(0) !important;
            }
            
            /* 贪吃蛇Canvas移动端修复 - 消除右侧空白 */
            #snakeGame .game-canvas-wrapper {
                padding: 0 !important;
                margin: 0 auto !important;
            }
            
            #snakeCanvas {
                max-width: 100% !important;
                height: auto !important;
                margin: 0 auto !important;
                display: block !important;
                will-change: transform !important;
                transform: translateZ(0) !important;
            }
            
            .match3-grid {
                gap: 3px !important;
                padding: 8px !important;
                max-height: calc(100dvh - 260px) !important;
                overflow: hidden !important;
            }
            
            .match3-cell {
                width: calc((100vw - 48px) / 8 - 3px) !important;
                height: calc((100vw - 48px) / 8 - 3px) !important;
                max-width: 45px !important;
                max-height: 45px !important;
                font-size: clamp(16px, 5vw, 24px) !important;
            }
            
            /* 触摸控制紧凑化 */
            .game-touch-controls {
                margin-top: 8px !important;
                padding: 10px !important;
                gap: 8px !important;
                flex-shrink: 0 !important;
            }
            
            .touch-btn {
                width: 50px !important;
                height: 50px !important;
                font-size: 18px !important;
            }
            
            /* 游戏控制按钮紧凑化 */
            .game-controls {
                margin-top: 8px !important;
                gap: 10px !important;
                flex-shrink: 0 !important;
            }
            
            .game-btn {
                padding: 10px 18px !important;
                font-size: 13px !important;
                margin: 0 auto !important;
            }
            
            /* 游戏结束弹窗优化 */
            .game-over-content {
                padding: 24px !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
            }
            
            .game-over-title {
                font-size: 22px !important;
            }
            
            .game-over-score {
                font-size: 36px !important;
                margin-bottom: 16px !important;
            }
        }
        
        /* 小屏幕进一步优化 */
        @media (max-width: 375px) {
            .game-header {
                padding: 10px 12px !important;
            }
            
            .game-title {
                font-size: 14px !important;
            }
            
            .game-tabs {
                padding: 6px 10px !important;
            }
            
            .game-tab {
                padding: 6px 10px !important;
                font-size: 11px !important;
            }
            
            .game-info {
                padding: 6px 10px !important;
                margin-bottom: 6px !important;
            }
            
            .game-info-value {
                font-size: 14px !important;
            }
            
            .game-area {
                padding: 6px 10px !important;
            }
            
            /* 俄罗斯方块小屏幕优化 */
            .next-piece-panel {
                padding: 4px 12px !important;
                min-width: 120px !important;
                gap: 8px !important;
            }
            
            .next-piece-label {
                font-size: 10px !important;
            }
            
            #nextPieceCanvas {
                width: 40px !important;
                height: 40px !important;
            }
            
            .touch-btn {
                width: 46px !important;
                height: 46px !important;
                font-size: 16px !important;
            }
            
            /* 俄罗斯方块小屏幕2x2按钮适配 */
            .tetris-controls {
                max-width: 300px !important;
                width: 85vw !important;
                gap: 10px !important;
                padding: 10px !important;
            }
            
            .tetris-controls .tetris-only {
                font-size: 16px !important;
                letter-spacing: 2px !important;
                min-height: 55px !important;
                border-radius: 12px !important;
            }
            
            .game-btn {
                padding: 8px 14px !important;
                font-size: 12px !important;
            }
            
            .match3-cell {
                width: calc((100vw - 36px) / 8 - 3px) !important;
                height: calc((100vw - 36px) / 8 - 3px) !important;
            }
        }
        
        /* 横屏模式优化 */
        @media (max-height: 500px) and (orientation: landscape) {
            .game-center-container {
                flex-direction: row !important;
            }
            
            .game-area {
                flex-direction: row !important;
                gap: 12px !important;
            }
            
            .game-canvas-wrapper {
                max-height: calc(100dvh - 80px) !important;
            }
            
            .game-touch-controls,
            .game-controls {
                flex-direction: column !important;
            }
        }
        
        }
