/* ============================================
   加载动画样式（毛玻璃效果）
   ============================================= */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 加载界面装饰元素 */
.loader-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.loader-decoration .floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.2) 0%, transparent 70%);
    animation: loaderFloat 15s infinite ease-in-out;
}

.loader-decoration .el-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.loader-decoration .el-2 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    right: 15%;
    animation-delay: -5s;
}

.loader-decoration .el-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    right: 30%;
    animation-delay: -10s;
}

@keyframes loaderFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(80px, -80px) scale(1.2);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.8);
    }
}

/* ============================================
   全局样式重置
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   根变量定义 - 深色主题配色
   ============================================= */
:root {
    --primary-color: #ffffff;          /* 主文字颜色 */
    --secondary-color: #888888;        /* 次要文字颜色 */
    --accent-color: #faa755;           /* 强调色 - 橙色 */
    --bg-primary: #000000;             /* 主背景色 - 黑色 */
    --bg-secondary: #0a0a0a;          /* 次要背景色 */
    --bg-card: #1a1a1a;               /* 卡片背景色 */
    --border-color: #2a2a2a;          /* 边框颜色 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 平滑过渡动画 */
}

/* ============================================
   浅色主题配色
   ============================================= */
/* 设备颜色模式自动切换 */
@media (prefers-color-scheme: light) {
    :root {
        --primary-color: #000000;          /* 主文字颜色 - 黑色 */
        --secondary-color: #333333;        /* 次要文字颜色 - 深黑色 */
        --accent-color: #faa755;           /* 强调色 - 橙色保持不变 */
        --bg-primary: #ffffff;             /* 主背景色 - 白色 */
        --bg-secondary: #f8f8f8;          /* 次要背景色 - 浅灰色 */
        --bg-card: #f0f0f0;               /* 卡片背景色 - 稍深的浅灰色 */
        --border-color: #e0e0e0;          /* 边框颜色 - 浅灰色 */
    }

    /* 导航栏背景调整 */
    .navbar {
        background-color: #ffffff !important; /* 纯白色背景 */
        border-bottom: 1px solid var(--border-color) !important;
    }

    .navbar.scrolled {
        background-color: #ffffff !important; /* 纯白色背景 */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }

    /* 导航菜单文字颜色调整 */
    .nav-menu a {
        color: var(--secondary-color);
    }

    .nav-menu a:hover {
        color: var(--accent-color);
    }

    /* 文字渐变移除 */
    .hero-title .title-line:nth-child(2) {
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: var(--accent-color) !important;
        background-clip: text !important;
    }

    .stat-item h3 {
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: var(--accent-color) !important;
        background-clip: text !important;
    }

    /* 浅色模式二维码图片切换 */
    .qr-placeholder img[src*="qrcode-WeChat-clean.png"] {
        content: url('images/qrcode-WeChat-black.png');
    }

    /* 英雄区装饰元素调整 */
    .floating-element {
        background: radial-gradient(circle, rgba(250, 167, 85, 0.08) 0%, transparent 70%);
    }

    /* 粒子装饰调整 */
    .hero-decoration div {
        background-color: rgba(250, 167, 85, 0.08);
    }

    /* 英雄区模糊层调整 */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 50% 50%, rgba(250, 167, 85, 0.03) 0%, transparent 70%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 0;
    }

    /* 加载动画背景调整 */
    .loader-overlay {
        background: rgba(255, 255, 255, 0.9);
    }

    .loader-decoration .floating-element {
        background: radial-gradient(circle, rgba(250, 167, 85, 0.1) 0%, transparent 70%);
    }
}

/* 手动主题切换支持 */
.light-theme {
    --primary-color: #000000 !important;          /* 主文字颜色 - 黑色 */
    --secondary-color: #333333 !important;        /* 次要文字颜色 - 深黑色 */
    --accent-color: #faa755 !important;           /* 强调色 - 橙色保持不变 */
    --bg-primary: #ffffff !important;             /* 主背景色 - 白色 */
    --bg-secondary: #f8f8f8 !important;          /* 次要背景色 - 浅灰色 */
    --bg-card: #f0f0f0 !important;               /* 卡片背景色 - 稍深的浅灰色 */
    --border-color: #e0e0e0 !important;          /* 边框颜色 - 浅灰色 */
}

/* 强制深色主题（设备浅色模式下点击按钮切换到此） */
.dark-theme {
    --primary-color: #ffffff !important;
    --secondary-color: #888888 !important;
    --accent-color: #faa755 !important;
    --bg-primary: #000000 !important;
    --bg-secondary: #0a0a0a !important;
    --bg-card: #1a1a1a !important;
    --border-color: #2a2a2a !important;
}

/* 深色主题导航栏调整 */
.dark-theme .navbar {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.dark-theme .navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5) !important;
}

.dark-theme .nav-menu a {
    color: var(--secondary-color) !important;
}

.dark-theme .nav-menu a:hover {
    color: var(--accent-color) !important;
}

/* 深色模式文字渐变 */
.dark-theme .hero-title .title-line:nth-child(2) {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.dark-theme .stat-item h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 深色模式二维码图片切换 */
.dark-theme .qr-placeholder img[src*="qrcode-WeChat-black.png"] {
    content: url('images/qrcode-WeChat-clean.png');
}

.dark-theme .floating-element {
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%) !important;
}

.dark-theme .hero-decoration div {
    background-color: rgba(255, 140, 0, 0.1) !important;
}

.dark-theme .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(250, 167, 85, 0.03) 0%, transparent 70%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 0 !important;
}

.dark-theme .loader-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
}

.dark-theme .loader-decoration .floating-element {
    background: radial-gradient(circle, rgba(255, 140, 0, 0.2) 0%, transparent 70%) !important;
}

/* 浅色模式导航栏调整 */
.light-theme .navbar {
    background-color: #ffffff !important; /* 纯白色背景 */
    border-bottom: 1px solid var(--border-color) !important;
}

.light-theme .navbar.scrolled {
    background-color: #ffffff !important; /* 纯白色背景 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.light-theme .nav-menu a {
    color: var(--secondary-color) !important;
}

.light-theme .nav-menu a:hover {
    color: var(--accent-color) !important;
}

/* 浅色模式文字渐变移除 */
.light-theme .hero-title .title-line:nth-child(2) {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: var(--accent-color) !important;
    background-clip: text !important;
}

.light-theme .stat-item h3 {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: var(--accent-color) !important;
    background-clip: text !important;
}

/* 浅色模式二维码图片切换 */
.light-theme .qr-placeholder img[src*="qrcode-WeChat-clean.png"] {
    content: url('images/qrcode-WeChat-black.png');
}

.light-theme .floating-element {
    background: radial-gradient(circle, rgba(250, 167, 85, 0.08) 0%, transparent 70%);
}

.light-theme .hero-decoration div {
    background-color: rgba(250, 167, 85, 0.08);
}

.light-theme .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(250, 167, 85, 0.03) 0%, transparent 70%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 0;
}

.light-theme .loader-overlay {
    background: rgba(255, 255, 255, 0.9);
}

.light-theme .loader-decoration .floating-element {
    background: radial-gradient(circle, rgba(250, 167, 85, 0.1) 0%, transparent 70%);
}

/* ============================================
   基础样式
   ============================================= */
html {
    scroll-behavior: auto;          /* 平滑滚动 */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器样式 - 居中布局 */
.container {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
}

/* ============================================
   导航栏样式
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%; /* 确保容器宽度铺满 */
}

/* 导航菜单居中 */
.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* 品牌logo样式 */
.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.logo:hover {
    color: var(--accent-color);
}

/* 导航按钮容器样式 */
.nav-buttons {
    display: flex;
    gap: 0.5rem; /* 两个按钮之间的间距 */
}

/* 主题切换按钮样式 */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--secondary-color);
}

.theme-toggle:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
/* ============================================
   英雄区装饰元素
   ============================================= */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
    filter: blur(15px); /* 添加模糊效果 */
}

/* 浅色模式下的浮动元素 */
.light-theme .floating-element {
    background: radial-gradient(circle, rgba(250, 167, 85, 0.08) 0%, transparent 70%);
    filter: blur(20px); /* 浅色模式下可以适当增加模糊度，使其更柔和 */
}

.el-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.el-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 15%;
    animation-delay: -5s;
}

.el-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 30%;
    animation-delay: -10s;
}

}

@keyframes loaderFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(80px, -80px) scale(1.2);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.8);
    }
}

/* ============================================
   全局样式重置
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   根变量定义 - 深色主题配色
   ============================================= */
:root {
    --primary-color: #ffffff;          /* 主文字颜色 */
--secondary-color: #888888;        /* 次要文字颜色 */
    --accent-color: #faa755;           /* 强调色 - 橙色 */
    --bg-primary: #000000;             /* 主背景色 - 黑色 */
    --bg-secondary: #0a0a0a;          /* 次要背景色 */
    --bg-card: #1a1a1a;               /* 卡片背景色 */
    --border-color: #2a2a2a;          /* 边框颜色 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 平滑过渡动画 */
}

/* ============================================
   浅色主题配色
   ============================================= */
/* 设备颜色模式自动切换 */
@media (prefers-color-scheme: light) {
    :root {
        --primary-color: #000000;          /* 主文字颜色 - 黑色 */
        --secondary-color: #333333;        /* 次要文字颜色 - 深黑色 */
        --accent-color: #faa755;           /* 强调色 - 橙色保持不变 */
        --bg-primary: #ffffff;             /* 主背景色 - 白色 */
        --bg-secondary: #f8f8f8;          /* 次要背景色 - 浅灰色 */
        --bg-card: #f0f0f0;               /* 卡片背景色 - 稍深的浅灰色 */
        --border-color: #e0e0e0;          /* 边框颜色 - 浅灰色 */
    }

    /* 导航栏背景调整 */
    .navbar {
        background-color: #ffffff !important; /* 纯白色背景 */
        border-bottom: 1px solid var(--border-color) !important;
    }

    .navbar.scrolled {
        background-color: #ffffff !important; /* 纯白色背景 */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }

    /* 导航菜单文字颜色调整 */
    .nav-menu a {
        color: var(--secondary-color);
    }

    .nav-menu a:hover {
        color: var(--accent-color);
    }

    /* 文字渐变移除 */
    .hero-title .title-line:nth-child(2) {
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: var(--accent-color) !important;
        background-clip: text !important;
    }

    .stat-item h3 {
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: var(--accent-color) !important;
        background-clip: text !important;
    }

    /* 浅色模式二维码图片切换 */
    .qr-placeholder img[src*="qrcode-WeChat-clean.png"] {
        content: url('images/qrcode-WeChat-black.png');
    }

    /* 英雄区装饰元素调整 */
    .floating-element {
        background: radial-gradient(circle, rgba(250, 167, 85, 0.08) 0%, transparent 70%);
    }

    /* 粒子装饰调整 */
    .hero-decoration div {
        background-color: rgba(250, 167, 85, 0.08);
    }

    /* 英雄区模糊层调整 */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 50% 50%, rgba(250, 167, 85, 0.03) 0%, transparent 70%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 0;
    }

    /* 加载动画背景调整 */
    .loader-overlay {
        background: rgba(255, 255, 255, 0.9);
    }

    .loader-decoration .floating-element {
        background: radial-gradient(circle, rgba(250, 167, 85, 0.1) 0%, transparent 70%);
    }
}

/* 手动主题切换支持 */
.light-theme {
    --primary-color: #000000 !important;          /* 主文字颜色 - 黑色 */
    --secondary-color: #333333 !important;        /* 次要文字颜色 - 深黑色 */
    --accent-color: #faa755 !important;           /* 强调色 - 橙色保持不变 */
    --bg-primary: #ffffff !important;             /* 主背景色 - 白色 */
    --bg-secondary: #f8f8f8 !important;          /* 次要背景色 - 浅灰色 */
    --bg-card: #f0f0f0 !important;               /* 卡片背景色 - 稍深的浅灰色 */
    --border-color: #e0e0e0 !important;          /* 边框颜色 - 浅灰色 */
}

/* 强制深色主题（设备浅色模式下点击按钮切换到此） */
.dark-theme {
    --primary-color: #ffffff !important;
    --secondary-color: #888888 !important;
    --accent-color: #faa755 !important;
    --bg-primary: #000000 !important;
    --bg-secondary: #0a0a0a !important;
    --bg-card: #1a1a1a !important;
    --border-color: #2a2a2a !important;
}

/* 深色主题导航栏调整 */
.dark-theme .navbar {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.dark-theme .navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5) !important;
}

.dark-theme .nav-menu a {
    color: var(--secondary-color) !important;
}

.dark-theme .nav-menu a:hover {
    color: var(--accent-color) !important;
}

/* 深色模式文字渐变 */
.dark-theme .hero-title .title-line:nth-child(2) {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.dark-theme .stat-item h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 深色模式二维码图片切换 */
.dark-theme .qr-placeholder img[src*="qrcode-WeChat-black.png"] {
    content: url('images/qrcode-WeChat-clean.png');
}

.dark-theme .floating-element {
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%) !important;
}

.dark-theme .hero-decoration div {
    background-color: rgba(255, 140, 0, 0.1) !important;
}

.dark-theme .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(250, 167, 85, 0.03) 0%, transparent 70%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 0 !important;
}

.dark-theme .loader-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
}

.dark-theme .loader-decoration .floating-element {
    background: radial-gradient(circle, rgba(255, 140, 0, 0.2) 0%, transparent 70%) !important;
}

/* 浅色模式导航栏调整 */
.light-theme .navbar {
    background-color: #ffffff !important; /* 纯白色背景 */
    border-bottom: 1px solid var(--border-color) !important;
}

.light-theme .navbar.scrolled {
    background-color: #ffffff !important; /* 纯白色背景 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.light-theme .nav-menu a {
    color: var(--secondary-color) !important;
}

.light-theme .nav-menu a:hover {
    color: var(--accent-color) !important;
}

/* 浅色模式文字渐变移除 */
.light-theme .hero-title .title-line:nth-child(2) {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: var(--accent-color) !important;
    background-clip: text !important;
}

.light-theme .stat-item h3 {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: var(--accent-color) !important;
    background-clip: text !important;
}

/* 浅色模式二维码图片切换 */
.light-theme .qr-placeholder img[src*="qrcode-WeChat-clean.png"] {
    content: url('images/qrcode-WeChat-black.png');
}

.light-theme .floating-element {
    background: radial-gradient(circle, rgba(250, 167, 85, 0.08) 0%, transparent 70%);
    filter: blur(20px);
}

.light-theme .hero-decoration div {
    background-color: rgba(250, 167, 85, 0.08);
}

.light-theme .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(250, 167, 85, 0.03) 0%, transparent 70%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 0;
}

.light-theme .loader-overlay {
    background: rgba(255, 255, 255, 0.9);
}

.light-theme .loader-decoration .floating-element {
    background: radial-gradient(circle, rgba(250, 167, 85, 0.1) 0%, transparent 70%);
}

/* ============================================
   基础样式
   ============================================= */
html {
    scroll-behavior: auto;          /* 平滑滚动 */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器样式 - 居中布局 */
.container {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
}

/* ============================================
   导航栏样式
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%; /* 确保容器宽度铺满 */
}

/* 导航菜单居中 */
.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* 品牌logo样式 */
.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.logo:hover {
    color: var(--accent-color);
}

/* 导航按钮容器样式 */
.nav-buttons {
    display: flex;
    gap: 0.5rem; /* 两个按钮之间的间距 */
}

/* 主题切换按钮样式 */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--secondary-color);
}

.theme-toggle:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
transition: var(--transition);
}

/* 深色主题下的月亮图标隐藏，太阳图标显示 */
.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

/* 浅色主题下的太阳图标显示，月亮图标隐藏 */
.light-theme .theme-toggle .sun-icon {
    display: block;
}

.light-theme .theme-toggle .moon-icon {
    display: none;
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* 导航栏链接字体设置 */
.nav-menu a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    /* 优化字体声明，确保Times New Roman和Noto Serif SC的优先级正确 */
    font-family: 'Times New Roman', 'Noto Serif SC', Times, serif;
    transition: var(--transition);
    position: relative;
}

/* 英雄区标题字体设置 */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    /* 优化字体声明，确保Times New Roman和Noto Serif SC的优先级正确 */
    font-family: 'Times New Roman', 'Noto Serif SC', Times, serif;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

/* ============================================
   英雄区样式
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

/* 标题行动画 */
.greeting-line, .welcome-line {
    /* 移除冲突的animation属性 */
    opacity: 0;
    transform: translateY(20px);
    /* 保留初始状态，但移除animation */
    /* animation: fadeInUp 0.8s ease-out 0.5s forwards; */
}

.welcome-line {
    font-size: 1.2em;
}

/* 主标题容器 - 固定高度，确保标题切换时下方组件位置不变 */
.hero-title-container {
    min-height: 180px; /* 设置足够大的固定高度，容纳不同长度的标题 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

/* 主标题样式 */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
}

.title-line {
    display: block;
}

.title-line:nth-child(2) {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 副标题样式 */
.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

/* 英雄区社交媒体图标样式 */
.hero-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

.hero-social a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.hero-social a:hover {
    transform: translateY(-3px);
}

/* 为每个图标设置不同的 hover 颜色 */
.hero-social a[aria-label="GitHub"]:hover {
    color: #ffffff; /* 白色（深色模式） */
}

.hero-social a[aria-label="Modrinth"]:hover {
    color: #4ade80; /* 绿色 */
}

.hero-social a[aria-label="Bilibili"]:hover {
    color: #f391a9; /* 粉色 */
}

.hero-social a[aria-label="CurseForge"]:hover {
    color: #f26522; /* CurseForge 橙色 */
}

/* 浅色模式下 GitHub 图标 hover 颜色为黑色 */
@media (prefers-color-scheme: light) {
    .hero-social a[aria-label="GitHub"]:hover {
        color: #000000; /* 黑色 */
    }
}

.light-theme .hero-social a[aria-label="GitHub"]:hover {
    color: #000000; /* 黑色 */
}

.hero-social svg {
    width: 32px;
    height: 32px;
}

/* 行动号召按钮样式 */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    min-width: 120px; /* 设置固定最小宽度，确保按钮宽度一致 */
    text-align: center; /* 确保文字居中对齐 */
}

/* 主按钮样式 */
.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
}

/* 次要按钮样式 */
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* ============================================
   英雄区装饰元素
   ============================================= */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
    filter: blur(15px);
}

.el-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.el-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 15%;
    animation-delay: -5s;
}

.el-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 30%;
    animation-delay: -10s;
}

/* ============================================
   关于我部分样式
   ============================================= */
.about {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

.about-text {
    text-align: center;
}

/* 标题样式 */
.about-text h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -1px;
}

/* 描述文字样式 */
.about-text p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* 统计数据样式 */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    justify-items: center; /* 确保网格项居中 */
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center; /* 移动端也保持居中 */
    }
}

.stat-item {
    text-align: center;
}

/* 统计数字样式 */
.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    min-width: 120px; /* 添加固定最小宽度，根据最大数字长度调整 */
    text-align: center; /* 确保文本居中对齐 */
    display: inline-block; /* 确保宽度设置生效 */
}

/* 统计标签样式 */
.stat-item p {
    color: var(--secondary-color);
    font-size: 1rem; /* 增大文字大小 */
    margin: 0;
}

/* 头像容器样式 */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    width: 300px;
    height: 400px;
    background-color: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.profile-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.1);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.profile-card:hover::before {
    opacity: 1;
}

/* 头像占位符样式 */
.profile-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* 头像下方名字样式 */
.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

/* 头像图片样式 */
.profile-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* 添加这一行确保图片也是圆形 */
}

/* ============================================
   技能部分样式
   ============================================= */
.skills {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 4rem;
}

/* 技能网格布局 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* 技能卡片链接 */
.skill-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 技能卡片样式 */
.skill-card {
    background-color: var(--bg-card);
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
    height: 100%; /* 确保所有技能卡片高度一致 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skill-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.1);
}

/* 技能图标样式 */
.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* ============================================
   项目表格样式
   ============================================= */
.project-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
}

.project-table th {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    font-weight: 600;
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.project-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--secondary-color);
    line-height: 1.6;
}

.project-table tr:hover {
    background-color: var(--bg-primary);
}

.project-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   工具栈样式
   ============================================= */
.tool-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.tool-item {
    padding: 0.6rem 1.2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--secondary-color);
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition);
}

/* ============================================
   作品部分样式
   ============================================= */
.work {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

/* 作品描述文字 */
.work-description {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 4rem;
    font-size: 1rem;
    font-weight: 300;
}

/* 作品网格布局 */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* 作品链接样式 */
.work-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 作品项目样式 */
.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%; /* 确保所有项目高度一致 */
}

/* 作品信息区域最小高度 */
.work-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 140px; /* 最小高度，确保文字少的项目也有足够高度 */
}

/* 作品标题 */
.work-info h3 {
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

/* 作品描述 */
.work-info p {
    flex: 1;
    margin-bottom: 0;
}

.work-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.1);
}

/* 作品图片样式 */
.work-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-card));
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 作品图片img标签样式 */
.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 确保所有项目图片容器中的img元素都有正确的尺寸 */
.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

/* 作品信息样式 */
.work-info {
    padding: 1.5rem;
}

.work-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.work-info p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* ============================================
   联系部分样式
   ============================================= */
.contact {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

/* 联系内容布局 */
/* 增加二维码组件距离页面左侧的距离，让布局更加美观 */
.contact-content {
    display: flex;
    justify-content: center;
    gap: 4rem;
    align-items: center;
    padding-left: 350px; /* 增加左侧间距，使二维码远离页面左边缘 */
}

/* 移动端联系部分布局调整 */
@media (max-width: 768px) {
    .contact-content {
        padding-left: 0; /* 移动端去掉左侧间距 */
        flex-direction: column; /* 二维码和联系信息垂直排列 */
        gap: 2rem; /* 减小间距 */
    }
}

.contact-info {
    max-width: 600px;
    width: 100%;
}

/* 二维码样式 */
.contact-qr {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code {
    width: 180px;
    height: 180px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
}

.qr-code:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.1);
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--secondary-color);
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.qr-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

.qr-placeholder p {
    font-size: 0.9rem;
    text-align: center;
    margin-top: auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: left;
}

.contact-info p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: left;
}

/* 联系详情样式 */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--secondary-color);
    justify-content: flex-start;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* 联系表单样式 */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

/* ============================================
   页脚样式
   ============================================= */
.footer {
    padding: 50px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

.footer-copyright {
    flex: 1;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* 社交媒体图标样式 */
.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.footer-social a:hover {
    transform: translateY(-3px);
}

/* 为页脚每个图标设置不同的 hover 颜色，与英雄区保持一致 */
.footer-social a[aria-label="GitHub"]:hover {
    color: #ffffff; /* 白色（深色模式） */
}

.footer-social a[aria-label="Modrinth"]:hover {
    color: #4ade80; /* 绿色 */
}

.footer-social a[aria-label="Bilibili"]:hover {
    color: #f391a9; /* 粉色 */
}

.footer-social a[aria-label="CurseForge"]:hover {
    color: #f26522; /* CurseForge 橙色 */
}

/* 浅色模式下 GitHub 图标 hover 颜色为黑色 */
@media (prefers-color-scheme: light) {
    .footer-social a[aria-label="GitHub"]:hover {
        color: #000000; /* 黑色 */
    }
}

.light-theme .footer-social a[aria-label="GitHub"]:hover {
    color: #000000; /* 黑色 */
}

.footer-social svg {
    width: 24px;
height: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* ============================================
   动画定义
   ============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
}
    to {
        opacity: 1;
    }
}

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

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* 粒子浮动动画 */
@keyframes particleFloat {
0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(80px, -80px) scale(1.2);
}
    66% {
        transform: translate(-50px, 50px) scale(0.8);
    }
}

/* 英雄区模糊层 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(250, 167, 85, 0.03) 0%, transparent 70%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 0;
}

/* 粒子闪烁动画 */
@keyframes particleBlink {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
}
}

/* 磁吸滚动效果 */
html {
    scroll-behavior: auto; /* 平滑滚动 */
}

/* 优化英雄区滚动体验 */
.hero {
    /* 添加渐变效果，提示用户可以滚动 */
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-primary) 90%, var(--bg-secondary) 100%);
    /* 添加底部阴影，增强深度感 */
    box-shadow: inset 0 -5px 20px rgba(0, 0, 0, 0.1);
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.scroll-indicator svg {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover svg {
    opacity: 1;
}

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

/* ============================================
   滚动动画样式 - 双向响应效果
   ============================================= */
.fade-in-section {
    opacity: 0;
    transform: translateY(60px) scale(0.95); /* 更大的位移和缩放 */
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 更平滑的缓动函数 - 双向过渡 */
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 技能卡片动画增强 - 双向响应 */
.skill-card {
    opacity: 0;
    transform: translateY(50px) rotateX(-10deg);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 移除固定延迟，使用交错延迟类 */
}

.skill-card.is-visible {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* 作品项目动画增强 - 双向响应 */
.work-item {
    opacity: 0;
    transform: translateY(50px) rotateY(-10deg);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 移除固定延迟，使用交错延迟类 */
}

.work-item.is-visible {
    opacity: 1;
    transform: translateY(0) rotateY(0);
}

/* 技能卡片和作品项目的交错动画 - 双向响应 */
.skill-card:nth-child(1) { transition-delay: 0.05s; }
.skill-card:nth-child(2) { transition-delay: 0.1s; }
.skill-card:nth-child(3) { transition-delay: 0.15s; }
.skill-card:nth-child(4) { transition-delay: 0.2s; }

.work-item:nth-child(1) { transition-delay: 0.05s; }
.work-item:nth-child(2) { transition-delay: 0.1s; }
.work-item:nth-child(3) { transition-delay: 0.15s; }
.work-item:nth-child(4) { transition-delay: 0.2s; }
.work-item:nth-child(5) { transition-delay: 0.25s; }
.work-item:nth-child(6) { transition-delay: 0.3s; }

/* 统计数字动画增强 - 双向响应 */
.stat-item h3 {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-item.is-visible h3 {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 个人资料卡片动画增强 - 双向响应 */
.profile-card {
opacity: 0;
    transform: translateY(50px) rotateZ(-5deg);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.profile-card.is-visible {
    opacity: 1;
    transform: translateY(0) rotateZ(0);
}

/* ============================================
   响应式设计
   ============================================= */
@media (max-width: 768px) {
/* 移动端导航菜单 */
    .nav-menu {
        gap: 1rem;
    }

    /* 移动端导航栏logo字体大小调整 */
    .logo {
        font-size: 1.2rem;
    }

    /* 移动端英雄区标题 - 调大字体大小，保持与网页端一致的缩放逻辑 */
    .hero-title {
        font-size: clamp(2.8rem, 10vw, 5rem);
    }

    /* 移动端布局调整 */
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* 关于我区域优化 */
    .about {
        padding: 80px 0;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    @media (max-width: 768px) {
        .profile-card {
            width: 350px; /* 增加宽度 */
            height: 150px; /* 减少高度 */
            flex-direction: row; /* 改为横向布局 */
            padding: 0 1rem; /* 添加内边距 */
        }

        .profile-placeholder {
            width: 100px;
            height: 100px;
            margin-bottom: 0; /* 移除底部边距 */
            margin-right: 1rem; /* 添加右侧边距 */
        }

        .profile-name {
            font-size: 1.3rem;
            margin: 0;
            align-self: center; /* 垂直居中 */
        }
    }

    /* 技能区域优化 */
    .skills {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .skills-grid {
        gap: 1.5rem;
        grid-template-columns: 1fr;  /* 修改为单列布局 */
    }

    .skill-card {
        padding: 2rem 1.2rem;
    }

    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .skill-card h3 {
        font-size: 1.1rem;
    }

    /* 作品区域优化 */
    .work {
        padding: 80px 0;
    }

    .work-grid {
        gap: 1.5rem;
    }

    .work-image {
        height: 180px;
    }

    /* 联系区域优化 */
    .contact {
        padding: 80px 0;
    }

    /* 移动端统计数据布局 */
    .about-stats {
        grid-template-columns: repeat(2, 1fr); /* 改为每行显示2个计数器 */
        gap: 1rem;
    }

    @media (max-width: 768px) {
        .stat-item h3 {
            font-size: 3rem;
            min-width: 100px; /* 移动端适当减小固定宽度 */
        }
    }

    /* 移动端页脚布局 */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    /* 小屏幕导航菜单隐藏 */
    .nav-menu {
        display: none;
    }

    /* 小屏幕导航栏logo字体大小调整 */
    .logo {
        font-size: 1.2rem;
    }

    /* 小屏幕英雄区标题 - 调大字体大小，保持与网页端一致的缩放逻辑 */
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    /* 关于我区域进一步优化 */
    .about {
        padding: 60px 0;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .profile-card {
        width: 220px;
        height: 320px;
    }

    .profile-placeholder {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    .profile-name {
        font-size: 1.2rem;
    }

    /* 技能区域进一步优化 */
    .skills {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .skills-grid {
        gap: 1.2rem;
        grid-template-columns: 1fr;  /* 确保小屏幕也是单列布局 */
    }

    .skill-card {
        padding: 1.8rem 1rem;
    }

    .skill-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .skill-card h3 {
        font-size: 1rem;
    }

    /* 作品区域进一步优化 */
    .work {
        padding: 60px 0;
    }

    .work-grid {
        gap: 1.2rem;
    }

    .work-image {
        height: 160px;
    }

    .work-info h3 {
        font-size: 1rem;
    }

    /* 联系区域进一步优化 */
    .contact {
        padding: 60px 0;
    }

    .qr-code {
        width: 150px;
        height: 150px;
    }

    /* 统计数据进一步优化 */
    .stat-item h3 {
        font-size: 2.5rem;
    }

    /* 小屏幕按钮布局 */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px; /* 设置固定宽度，确保按钮宽度一致 */
        max-width: none; /* 取消最大宽度限制 */
    }
}

@media (max-width: 480px) {
    /* 关于我区域进一步优化 */
    .profile-card {
        width: 320px; /* 调整为横向宽度 */
        height: 140px; /* 调整为横向高度 */
        flex-direction: row; /* 改为横向布局 */
        padding: 0 1rem; /* 添加内边距 */
    }
    
    .profile-placeholder {
        width: 100px;
        height: 100px;
        margin-top: 1rem;
        margin-bottom: 1rem;
        margin-right: 1rem; /* 添加右侧边距 */
        margin-left: auto; /* 自动左侧边距 */
    }
    
    .profile-name {
        font-size: 1.2rem;
        margin: 0;
        margin-right: auto; /* 自动右侧边距 */
        align-self: center; /* 垂直居中 */
    }
}

/* ============================================
   关于我部分样式
   ============================================= */
.about {
    min-height: 100vh; /* 调整为页面高度 */
    display: flex; /* 使用flex布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    background-color: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    width: 100%; /* 确保内容占据整个宽度 */
    max-width: 1200px; /* 限制最大宽度 */
    margin: 0 auto; /* 居中对齐 */
    padding: 0 20px; /* 添加内边距 */
}

.about-text {
    text-align: center;
}

/* 标题样式 */
.about-text h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -1px;
}

/* 描述文字样式 */
.about-text p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* 统计数据样式 */
.about-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 1rem;
}

.stat-item {
    text-align: center;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 项目和视频计数器 - 较小宽度 */
.stat-item:nth-child(1),
.stat-item:nth-child(2){
    width: 120px; /* 项目和视频使用较小宽度 */
    min-width: 120px;
}

 .stat-item:nth-child(3){
    width: 200px; /* 项目和视频使用较小宽度 */
    min-width: 200px;
}
/* 项目下载量和视频播放量计数器 - 较大宽度 */
.stat-item:nth-child(4) {
    width: 260px; /* 长数字使用260px宽度 */
    min-width: 260px;
}

/* 统计数字样式 */
.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
    display: block;
    white-space: nowrap;
    overflow: visible;
}

/* 统计标签样式 */
.stat-item p {
    color: var(--secondary-color);
    font-size: 1rem;
    margin: 0;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
}

/* 移动端响应式调整 */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        gap: 1rem;
        justify-content: space-around;
    }
    
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        width: 200px;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .about {
        min-height: auto; /* 移动端恢复自动高度 */
        padding: 80px 0; /* 添加适当的内边距 */
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: space-around;
    }
    
    .stat-item {
        width: 45%;
        min-width: auto;
    }
    
    .stat-item h3 {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 60px 0;
    }
    
    .about-stats {
        gap: 0.3rem;
    }
    
    .stat-item {
        width: 48%;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
}