:root {
            --primary-color: #007FFF;
            --secondary-color: #1E1E2E;
            --accent-color: #7C3AED;
            --text-color: #F5F5F7;
            --bg-color: #0A0A0F;
            --card-bg: rgba(30, 30, 46, 0.8);
            --icon-color: #F5F5F7;
            --social-bg: #000000;
            --social-icon: #FFFFFF;
            --form-bg: #1E1E2E;
            --form-border: #444444;
            --form-text: #F5F5F7;
            --bg-mask: rgba(10, 10, 15, 0.7);
        }
        
        /*[data-theme="light"] {
            --primary-color: #007FFF;
            --secondary-color: #F0F0F0;
            --accent-color: #7C3AED;
            --text-color: #1A1A1A;
            --bg-color: #ece9e9;
            --card-bg: rgba(255, 255, 255, 0.9);
            --icon-color: #1E1E2E;
            --social-bg: #000000;
            --social-icon: #FFFFFF;
            --form-bg: #FFFFFF;
            --form-border: #D1D5DB;
            --form-text: #1A1A1A;
            --bg-mask: rgba(255, 255, 255, 0.7);
        }*/
        [data-theme="light"]
        {
            --primary-color: #007FFF;
            --secondary-color: #1E1E2E;
            --accent-color: #7C3AED;
            --text-color: #F5F5F7;
            --bg-color: #0A0A0F;
            --card-bg: rgba(30, 30, 46, 0.8);
            --icon-color: #F5F5F7;
            --social-bg: #000000;
            --social-icon: #FFFFFF;
            --form-bg: #1E1E2E;
            --form-border: #444444;
            --form-text: #F5F5F7;
            --bg-mask: rgba(10, 10, 15, 0.7);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            scroll-behavior: smooth;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            overflow-x: hidden;
            transition: all 0.3s ease;
            /* 隐藏滚动条但保持滚动功能 */
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }
        
        /* 隐藏Chrome, Safari和Opera的滚动条 */
        body::-webkit-scrollbar {
            display: none;
        }
        
        #particles-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }
        
        .nav-link {
            position: relative;
            transition: all 0.3s ease;
            color: var(--text-color);
        }
        
        .nav-link:hover {
            color: var(--primary-color);
        }
        
        .nav-link.active {
            color: var(--primary-color);
            font-weight: 600;
            position: relative;
        }
        
        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
            background-size: 200% 100%;
            animation: progressExpand 0.5s ease-out forwards, gradientShift 3s ease infinite;
        }
        
        @keyframes progressExpand {
            from { width: 0; }
            to { width: 100%; }
        }
        
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        /* 导航栏滚动动效 */
        .navbar {
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            background-color: rgba(30, 30, 46, 0.8);
            position: relative;
        }
        
        .nav-progress-bar {
            position: absolute;
            top: 0;
            left: 0;
            height: 3px;
            background: linear-gradient(90deg, #007FFF 0%, #7C3AED 50%, #007FFF 100%);
            background-size: 200% 100%;
            animation: gradientFlow 3s ease infinite;
            z-index: 51;
            transition: width 0.3s ease-out;
            width: 0%;
        }
        
        @keyframes gradientFlow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        [data-theme="light"] .navbar.scrolled {
            background-color: rgba(245, 245, 247, 0.9);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        
        /* 导航链接进入动画 */
        .nav-item {
            opacity: 0;
            transform: translateY(-20px);
            animation: navItemFadeIn 0.6s ease forwards;
        }
        
        .nav-item:nth-child(1) { animation-delay: 0.1s; }
        .nav-item:nth-child(2) { animation-delay: 0.2s; }
        .nav-item:nth-child(3) { animation-delay: 0.3s; }
        .nav-item:nth-child(4) { animation-delay: 0.4s; }
        .nav-item:nth-child(5) { animation-delay: 0.5s; }
        
        @keyframes navItemFadeIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .btn-primary {
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
            transition: all 0.3s ease;
            z-index: -1;
        }
        
        .btn-primary:hover::before {
            left: 0;
        }
        
        .card {
            background-color: var(--card-bg);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }
        
        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(0, 127, 255, 0.3);
            border: 1px solid rgba(0, 127, 255, 0.5);
        }
        
        .timeline-item {
            position: relative;
            padding-left: 30px;
        }
        
        .timeline-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 2px;
            background-color: var(--primary-color);
        }
        
        .timeline-item::after {
            content: '';
            position: absolute;
            left: -4px;
            top: 0;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: var(--accent-color);
        }
        
        .section {
            opacity: 1;
            transform: translateY(0);
            transition: all 0.8s ease;
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            backdrop-filter: blur(5px);
        }
        
        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80%;
            max-width: 800px;
            background-color: var(--secondary-color);
            border-radius: 10px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }
        
        .close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-color);
        }
        
        .skill-item {
            position: relative;
            margin-bottom: 20px;
        }
        
        .skill-progress {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
            border-radius: 5px;
            width: 0;
            transition: width 1.5s ease;
        }
        
        .theme-toggle {
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .theme-toggle:hover {
            transform: rotate(180deg);
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .navbar {
                background-color: rgba(30, 30, 46, 0.9);
                backdrop-filter: blur(10px);
            }
            
            .modal-content {
                width: 95%;
                padding: 1rem;
            }
        }
        
        /* 加载动画 */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--bg-color);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }
        
        .loader.hidden {
            opacity: 0;
            pointer-events: none;
        }
        
        .loader-circle {
            width: 50px;
            height: 50px;
            border: 3px solid rgba(0, 127, 255, 0.3);
            border-top: 3px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* 滚动条样式 */
        ::-webkit-scrollbar {
            width: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: var(--secondary-color);
        }
        
        ::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent-color);
        }
