/* 基础样式和变量 */

:root {
    --primary-color: #0a192f;
    --primary-light: #172a45;
    --primary-dark: #020817;
    --accent-color: #64ffda;
    --secondary-color: #0066cc;
    --tech-blue: #00d4ff;
    --tech-purple: #7c3aed;
    --text-color: #8892b0;
    --light-text: #e6f1ff;
    --gray-light: #0a192f;
    --gray: #112240;
    --gray-dark: #1e3a5f;
    --shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    --shadow-hover: 0 20px 40px -10px rgba(2, 12, 27, 0.9);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* 字体系统 - 升级版 */
    /* 基础字体：保持清晰易读 */
    --font-family-base: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
                         -apple-system, BlinkMacSystemFont, sans-serif;

    /* 标题字体：使用思源宋体增加设计感 */
    --font-family-heading: 'Noto Serif SC', 'Noto Sans SC', 'PingFang SC',
                           'Hiragino Sans GB', serif;

    /* 装饰字体：站酷庆科黄油体用于特殊场景 */
    --font-family-display: 'ZCOOL KuaiLe', cursive;

    /* 等宽字体保持不变 */
    --font-family-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code',
                        'Droid Sans Mono', 'Source Code Pro', monospace;

    /* 字号层级 */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    --text-6xl: 3.75rem;   /* 60px */
    --text-7xl: 4.5rem;    /* 72px */
    --text-8xl: 5rem;      /* 80px */

    /* 字重 */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* 行高 */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.75;

    /* 间距系统 */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family-base);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: var(--text-color);
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 0, 150, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 200, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(100, 100, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    background-size: 200% 200%;
    background-attachment: fixed;
    animation: gradientShift 15s ease infinite, rainbowShift 10s ease infinite;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.section-title {
    font-family: var(--font-family-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
    color: var(--light-text);
    text-align: center;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--tech-blue), var(--tech-purple));
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-family-base);
    font-size: var(--text-lg);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: var(--space-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-family-base);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: var(--leading-none);
    letter-spacing: 0.02em;
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: var(--space-1);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 涟漪特效 */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    color: var(--primary-dark);
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.primary-btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--light-text);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.primary-btn::before {
    background: rgba(0, 212, 255, 0.2);
}

.primary-btn:hover {
    background-color: var(--tech-blue);
    border-color: var(--tech-blue);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    transform: translateY(-3px);
}


/* 导航栏样式 */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--tech-blue), var(--tech-purple));
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 0.8rem 20px;
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background-color: var(--gray);
    color: var(--accent-color);
}


/* Hero 区域样式 */

.hero-section {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-align: center;
    overflow: hidden;
    padding: var(--space-20) 0;
}

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

/* 彩虹位移动画 */
@keyframes rainbowShift {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    25% {
        background-position: 25% 25%, 75% 75%, 60% 40%;
    }
    50% {
        background-position: 50% 50%, 50% 50%, 40% 60%;
    }
    75% {
        background-position: 75% 75%, 25% 25%, 50% 60%;
    }
}

/* 副标题入场动画 */
@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* 标题发光脉冲效果 */
@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(100, 255, 218, 0.3),
                     0 0 60px rgba(100, 255, 218, 0.1);
    }
    50% {
        text-shadow: 0 0 40px rgba(100, 255, 218, 0.5),
                     0 0 80px rgba(0, 212, 255, 0.3);
    }
}

/* 科技感标题呼吸动画 */
@keyframes techPulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-5%) rotateY(-3deg) translateY(0);
        text-shadow:
            0 0 10px rgba(0, 212, 255, 0.8),
            0 0 20px rgba(0, 212, 255, 0.6),
            0 0 30px rgba(0, 212, 255, 0.4),
            0 0 40px rgba(124, 58, 237, 0.3),
            2px 2px 0 rgba(0, 0, 0, 0.8);
    }
    50% {
        opacity: 1;
        transform: translateX(-5%) rotateY(-3deg) translateY(-4px);
        text-shadow:
            0 0 15px rgba(0, 212, 255, 1),
            0 0 30px rgba(0, 212, 255, 0.8),
            0 0 45px rgba(0, 212, 255, 0.6),
            0 0 60px rgba(124, 58, 237, 0.5),
            0 0 75px rgba(100, 255, 218, 0.3),
            2px 2px 0 rgba(0, 0, 0, 0.8);
    }
}

/* 边框旋转动画 */
@keyframes borderRotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* 彩虹边框流动动画 */
@keyframes rainbowBorderFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

/* 滚动动画初始状态 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 从左侧滑入 */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 从右侧滑入 */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 从下方滑入并缩放 */
.slide-in-up-scale {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 动画激活状态 */
.animate-on-scroll.animate-in,
.slide-in-left.animate-in,
.slide-in-right.animate-in,
.slide-in-up-scale.animate-in {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* 头像呼吸光晕效果 */
@keyframes breatheGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3),
                    0 0 40px rgba(124, 58, 237, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6),
                    0 0 60px rgba(124, 58, 237, 0.4);
    }
}

/* 头像悬停呼吸光晕效果 */
@keyframes breatheGlowHover {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.5),
                    0 0 60px rgba(124, 58, 237, 0.3),
                    0 0 90px rgba(255, 0, 128, 0.2);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.8),
                    0 0 80px rgba(124, 58, 237, 0.5),
                    0 0 120px rgba(255, 0, 128, 0.3);
    }
}

/* 标题从左侧滑入 */
.section-title {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 20%, rgba(100, 255, 218, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 25, 47, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    /* 非对称网格布局 */
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-8);
    align-items: center;
    text-align: left;  /* 从 center 改为 left */
    padding: 0 var(--space-4);
}

/* Hero内容区域装饰 */
.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-title {
    font-family: var(--font-family-heading);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);

    /* 非对称定位 - 左移 */
    justify-self: start;

    /* 科技感 3D 效果 - 使用霓虹发光 */
    color: var(--light-text);
    text-shadow:
        0 0 10px rgba(0, 212, 255, 0.8),
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 30px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(124, 58, 237, 0.3),
        2px 2px 0 rgba(0, 0, 0, 0.8);

    /* 入场动画完成后保持状态 */
    opacity: 1;
    transform: translateX(-5%) rotateY(-3deg);
    animation: techPulse 3s ease-in-out infinite 1.3s;
    transition: all 0.4s ease;
}

/* 悬停效果 - 增强科技感 */
.hero-title:hover {
    transform: translateX(-5%) rotateY(0deg) scale(1.02);
    text-shadow:
        0 0 15px rgba(0, 212, 255, 1),
        0 0 30px rgba(0, 212, 255, 0.8),
        0 0 45px rgba(0, 212, 255, 0.6),
        0 0 60px rgba(124, 58, 237, 0.5),
        0 0 80px rgba(100, 255, 218, 0.3),
        3px 3px 0 rgba(0, 0, 0, 0.9);
    animation: none;
}

.hero-subtitle {
    font-family: var(--font-family-base);
    font-size: var(--text-xl);
    font-weight: 400;
    line-height: 1.8;

    /* 非对称 - 放在右侧 */
    justify-self: end;
    text-align: left;  /* 改为左对齐，更易读 */
    max-width: 420px;  /* 增加宽度 */
    padding-right: var(--space-4);

    color: var(--light-text);
    border-left: 3px solid var(--accent-color);
    padding-left: var(--space-4);

    opacity: 0;
    animation: subtitleFadeIn 1s ease forwards 0.8s;
}

/* 移动端恢复居中 */
@media (max-width: 767px) {
    .hero-subtitle {
        justify-self: center;
        text-align: center;
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--accent-color);
        padding-top: var(--space-4);
    }
}

/* Hero 按钮容器 */
.hero-content .primary-btn {
    grid-column: 1;
    justify-self: start;
    margin-top: var(--space-6);
}

@media (max-width: 767px) {
    .hero-content .primary-btn {
        grid-column: auto;
        justify-self: center;
    }
}

/* 滚动提示样式 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 2s forwards;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    position: relative;
    margin-bottom: 10px;
    cursor: pointer;
}

.scroll-wheel {
    width: 6px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

.scroll-text {
    font-size: 0.8rem;
    color: var(--accent-color);
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }
    50% {
        top: 20px;
        opacity: 0.5;
    }
    100% {
        top: 8px;
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
}


/* 作品展示区域样式 */

.projects-section {
    padding: clamp(var(--space-16), 8vh, var(--space-24)) 0;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    padding: var(--space-5);
    background-color: var(--gray);
    border-radius: var(--space-2);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-dark);
}

.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
}

#search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-dark);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    background-color: var(--primary-dark);
    color: var(--light-text);
}

#search-input::placeholder {
    color: var(--text-color);
}

#search-btn {
    padding: 0.8rem 1rem;
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

#search-btn:hover {
    background-color: var(--tech-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 0.5rem;
    font-weight: 500;
    color: var(--light-text);
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-dark);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--primary-dark);
    color: var(--light-text);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-8);
}

.project-card {
    background: rgba(17, 34, 64, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--space-2);
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff0080, #00ff80, #8000ff, #ff8000, #ff0080);
    background-size: 300% 100%;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(255, 0, 128, 0.2);
    border-color: rgba(255, 0, 128, 0.3);
}

.project-card:hover::before {
    opacity: 1;
    animation: rainbowBorderFlow 2s linear infinite;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-image {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    transition: transform 0.5s ease;
    aspect-ratio: auto;
    background-color: var(--bg-secondary);
}

.project-info {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-family: var(--font-family-base);
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--space-2);
    color: var(--light-text);
    transition: var(--transition);
}

.project-description {
    font-family: var(--font-family-base);
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--text-color);
    margin-bottom: var(--space-4);
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card:hover .project-title {
    color: var(--accent-color);
    transform: translateX(5px);
}

.project-card:hover .project-description {
    transform: translateX(3px);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    padding: var(--space-1) var(--space-3);
    font-family: var(--font-family-base);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    background-color: var(--primary-dark);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: var(--space-5);
    transition: var(--transition);
}

.project-card:hover .project-tag {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(100, 255, 218, 0.3);
}

.project-card:hover .project-tag:nth-child(1) {
    transition-delay: 0s;
}

.project-card:hover .project-tag:nth-child(2) {
    transition-delay: 0.05s;
}

.project-card:hover .project-tag:nth-child(3) {
    transition-delay: 0.1s;
}


/* 关于我区域样式 */

.about-section {
    padding: clamp(var(--space-16), 8vh, var(--space-24)) 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12);
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: var(--space-6);
    font-family: var(--font-family-base);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-loose);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-text p.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.skills {
    margin-top: var(--space-8);
}

.skills h3 {
    font-family: var(--font-family-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
    color: var(--light-text);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* 统计数据展示 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.stat-item {
    text-align: center;
    padding: var(--space-4);
    background-color: var(--gray);
    border-radius: var(--space-2);
    border: 1px solid var(--gray-dark);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
}

.stat-number {
    font-family: var(--font-family-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent-color);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-color);
}

.skill-tag {
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-family-base);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    background-color: var(--primary-dark);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: var(--space-6);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.8);
    cursor: default;
}

.skill-tag.animate-in {
    opacity: 1;
    transform: scale(1);
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--tech-blue));
    color: var(--primary-dark);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 255, 218, 0.4);
    border-color: transparent;
}

.about-image {
    flex: 0 0 auto;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--gray);
    background-image: url('../images/avatar.png?v=20260221');
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    border: 3px solid var(--tech-blue);
    animation: breatheGlow 3s ease-in-out infinite;
    transition: var(--transition);
}

.profile-pic:hover {
    transform: scale(1.05);
    animation: breatheGlowHover 2s ease-in-out infinite;
}


/* 页脚样式 */

.footer {
    padding: 3rem 0;
    color: var(--light-text);
    border-top: 1px solid var(--gray-dark);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-info,
.social-links {
    flex: 1;
    min-width: 250px;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition);
    border: 1px solid var(--tech-blue);
}

.social-link:hover {
    background-color: var(--tech-blue);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* 模态框样式 */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: var(--gray);
    margin: 5% auto;
    padding: 2rem;
    width: 100%;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--gray-dark);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-dark);
}

.modal-title {
    font-size: 1.8rem;
    color: var(--light-text);
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.close-btn:hover {
    color: var(--tech-blue);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

/* 桌面端截图样式 - 更宽的比例 */
.gallery-image-desktop {
    height: 240px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.gallery-image:hover {
    transform: scale(1.05);
}

.project-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--light-text);
}

.project-description {
    margin-bottom: 1.5rem;
}

.project-features {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.project-features li {
    margin-bottom: 0.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}


/* 响应式设计 */

/* 超大屏幕 (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: clamp(var(--text-7xl), 6vw, var(--text-8xl));
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: var(--space-10);
    }
}

/* 大屏幕 (992px - 1399px) */
@media (max-width: 1399px) {
    .hero-title {
        font-size: var(--text-6xl);
    }
}

/* 平板 (768px - 991px) */
@media (max-width: 991px) {
    .hero-title {
        font-size: var(--text-5xl);
    }

    .hero-subtitle {
        font-size: var(--text-xl);
    }

    .about-content {
        flex-direction: column-reverse;
    }

    .profile-pic {
        width: 250px;
        height: 250px;
    }
}

/* ==================== 新增：中等断点过渡 ==================== */

/* 平板横屏 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Hero 区域过渡调整 */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-6);
    }

    .hero-title {
        justify-self: center;
        transform: translateX(0) rotateY(-3deg);
    }

    .hero-title:hover {
        transform: translateX(0) rotateY(0deg) scale(1.03);
    }

    .hero-subtitle {
        justify-self: center;
        text-align: center;
        max-width: 500px;
        padding-right: 0;
        border-left: none;
        border-top: 2px solid var(--accent-color);
        padding-top: var(--space-4);
    }

    .hero-content .primary-btn {
        grid-column: auto;
        justify-self: center;
    }
}

/* 大屏过渡 (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .hero-content {
        gap: var(--space-6);
    }

    .hero-title {
        font-size: clamp(3rem, 7vw, 5rem);
    }
}

/* 手机 (小于768px) */
@media (max-width: 767px) {
    :root {
        --text-8xl: 3rem;
        --text-7xl: 2.75rem;
        --text-6xl: 2.5rem;
        --text-5xl: 2.25rem;
        --text-4xl: 2rem;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-section {
        padding: var(--space-12) 0;
    }

    /* 移动端恢复居中布局 */
    .hero-content {
        display: block;
        text-align: center;
    }

    .hero-title {
        justify-self: center;
        transform: none;
        text-shadow:
            1px 1px 0 #1a1a1a,
            2px 2px 0 #252525,
            3px 3px 10px rgba(0, 0, 0, 0.5);
    }

    .hero-title:hover {
        transform: scale(1.02);
        text-shadow:
            1px 1px 0 var(--tech-blue),
            2px 2px 0 var(--tech-purple),
            3px 3px 15px rgba(0, 212, 255, 0.4);
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4);
    }

    .search-box {
        max-width: 100%;
    }

    .filter-options {
        flex-direction: column;
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        flex: 1;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .project-image {
        height: auto;
        max-height: 240px;
    }

    .modal-content {
        margin: 5% auto;
        padding: var(--space-5);
        max-height: 90vh;
        overflow-y: auto;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }
}

/* 小屏手机 (小于576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--space-4);
    }

    .hero-content {
        padding: 0 var(--space-2);
    }

    .profile-pic {
        width: 200px;
        height: 200px;
    }

    .modal-title {
        font-size: var(--text-xl);
    }

    .project-tags {
        flex-direction: column;
    }

    .project-tag {
        width: fit-content;
    }
}


/* 动画效果 */

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

.project-card {
    animation: fadeIn 0.5s ease forwards;
}

.project-card:nth-child(2) {
    animation-delay: 0.1s;
}

.project-card:nth-child(3) {
    animation-delay: 0.2s;
}

.project-card:nth-child(4) {
    animation-delay: 0.3s;
}

.project-card:nth-child(5) {
    animation-delay: 0.4s;
}

.project-card:nth-child(6) {
    animation-delay: 0.5s;
}


/* 平滑滚动 */

html {
    scroll-behavior: smooth;
}


/* 图片查看器 */

.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.image-viewer.active {
    display: flex;
}

.viewer-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}


/* 加载动画 */

.loader {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

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


/* 滚动指示器 */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}


/* 粒子画布样式 */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}


/* 项目链接按钮样式 */
.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.no-links {
    color: var(--text-color);
    font-style: italic;
}


/* ==================== 首页迷你音乐播放器 ==================== */

.mini-music-player {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: rgba(17, 34, 64, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--space-4);
    border: 1px solid rgba(100, 255, 218, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.mini-music-player.hidden {
    display: none;
}

.mini-music-player:hover {
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
}

/* 播放器封面 */
.mini-player-cover {
    width: 48px;
    height: 48px;
    border-radius: var(--space-2);
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* 播放器信息 */
.mini-player-info {
    flex: 1;
    min-width: 0;
}

.mini-player-title {
    font-family: var(--font-family-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--light-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-artist {
    font-size: var(--text-xs);
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 播放/暂停按钮 */
.mini-player-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--primary-dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    transition: var(--transition);
}

.mini-player-toggle:hover {
    background: var(--tech-blue);
    transform: scale(1.1);
}

/* 关闭按钮 */
.mini-player-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(136, 146, 176, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    transition: var(--transition);
}

.mini-player-close:hover {
    background: rgba(136, 146, 176, 0.1);
    color: var(--light-text);
}

/* 音乐开始按钮（自动播放被阻止时显示） */
.music-start-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
    color: var(--light-text);
    border-radius: var(--space-6);
    border: none;
    font-family: var(--font-family-base);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    z-index: 998;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.music-start-btn.hidden {
    display: none;
}

.music-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

/* 移动端优化 */
@media (max-width: 767px) {
    .mini-music-player {
        bottom: 80px;
        right: 16px;
        padding: var(--space-2) var(--space-3);
    }

    .mini-player-cover {
        width: 40px;
        height: 40px;
    }

    .mini-player-toggle {
        width: 36px;
        height: 36px;
    }

    .music-start-btn {
        bottom: 80px;
        right: 16px;
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }
}