 /* 全局样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f3f4f6;
    --transition: all 0.3s ease;
    
}
@font-face {
    font-family: 'MaokenZhuyuanTi';
    src: url('http://8.137.58.194:55/阿里妈妈方圆体.ttf') format('truetype'); /* 字体文件路径 */
}
* {
    /* 保留原有布局重置 */
    padding: 0;
    margin: 0;
    font-family: 'MaokenZhuyuanTi', "Microsoft YaHei", sans-serif;
    box-sizing: border-box;

}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 30px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-btn {
    display: none;
    cursor: pointer;
}

/* 移动端导航样式 */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
        font-size: 24px;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
    }

    .nav-links.active {
        height: 200px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 15px 30px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }
}

/* 移除冲突的响应式样式 */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
    }
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.hero p {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.2s forwards;
}

.highlight {
    color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin: 10px;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    
}

.mouse {

    height: 50px;
    border-radius: 15px;             /* 保留圆角 */
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
}

.mouse::before {
    content: 'Echo.🍊';                /* 替换内容为'滚动' */
    position: absolute;
    font-size: 10px;                 /* 文字大小 */
    color: var(--text-color);        /* 文字颜色 */
    left: 50%;                     /* 横向居中 */
    transform: translateX(-50%);    /* 让元素水平居中 */
    top: 15px;                       /* 距离顶部一定距离 */
    background: rgba(0, 0, 0, 0.1); /* 添加背景色叫强调文字 */
    padding: 2px 5px;                /* 添加内边距，使文字更美观 */
    border-radius: 5px;              /* 圆角效果 */
    animation: scroll 2s infinite alternate; /* 更流畅的动画 */
}

@keyframes scroll {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); } /* 上移 */
    100% { transform: translateY(0); }    /* 返回原位 */
}

/* 关于部分样式 */
.about {
    padding: 100px 0;

}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item .number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

/* 技能部分样式 */
.skills {
    padding: 100px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.skill-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 1.5s ease-in-out;
}

.skill-progress.animate {
    width: var(--progress);
}

/* 项目部分样式 */
.projects {
    padding: 100px 0;
    background: var(--section-bg);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-info p {
    color: var(--light-text);
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    padding: 4px 12px;
    background-color: var(--section-bg);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}



.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 鼠标悬停时缩放效果 */
.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* 联系部分样式 */
.contact {
    padding: 100px 0;
    background: var(--background);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: grid;
    gap: 20px;
}

.form-group {
    display: grid;
    gap: 10px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

.info-item .info-text {
    flex: 1;
}

.info-item .info-text h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.info-item .info-text p {
    color: var(--light-text);
}

/* 页脚样式 */
.footer {
    background: var(--text-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* 动画 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .contact-info,
    .contact-form {
        padding: 20px;
    }

    .info-item {
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 15px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

/* 返回顶部按钮样式 */
#back-to-top {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

#back-to-top i {
    font-size: 20px;
}

   .logo a img {
            height: 50px; /* 控制图像的高度，与字体大小一致 */
margin-top: 5px; /* 文本与图片之间的间距 */
            
        }

        /* 原有 CSS，不可更改 */
        .app {
            display: inline-block;
            width: 25%;
            max-width: 180px;
            margin: 30px auto;
            cursor: pointer;
            
        }
        .app-title {
            text-align: center;
            margin: 8px 0;
            color: #1A1A1A;
            font-size: 13.5px;
        }
        .app-img {
            width: 45%;
            max-width: 80px;
            border: 1px solid #FFFFFFFF;
            border-radius: 5px;
            clear: both;
            display: block;
            margin: auto;
        }
        .kui {
            /*padding: 10px 10px;*/
            padding: 0;
            border-radius: 10px;
            margin-bottom: 13px;
            font-size: 14px;
            color: #3e4449;
            background-color: #fbfcfc;
        }
.block {
    width: 90%;
    
    border-radius: 10px;
    /* 设置上下间距为0和15px，左右自动，使元素居中显示 */
    margin: 0 auto 15px;
    font-size: 16px; 
            
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    
}



        /* 由于原有 .app-img 重复，此处保留一致 */

        /* 新增二级分类标题的样式 */
        .subtitle {
            font-size: 14px;
            font-weight: bold;
            color: #737373;
            margin: 10px 15px;
        }
        
        /* 新增规则：解决空白间隙问题 */
.block {
    display: flex;          /* 启用 Flex 布局 */
    flex-wrap: wrap;        /* 允许换行 */
    justify-content: space-between; /* 均匀分配空间 */
}

/* 确保标题单独占一行 */
.subtitle {
    width: 100%;
}

/* 精确控制每个应用项的宽度 */
.app {
    flex: 0 0 calc(25% - 1px); /* 每行4个，留出间隙 */
    margin: 15px 0;         /* 保留上下间距，移除左右auto */
    box-sizing: border-box; /* 防止宽度溢出 */
}
   #fpsCounter {
  position: fixed;
  bottom: 10px;  /* 距离底部 10px */
  right: 10px;   /* 距离右侧 10px */
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 8px;  /* 减小内边距 */
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 14px;   /* 调整字体大小（可选） */
  z-index: 9999;
}



.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 鼠标悬停时缩放效果 */
.project-card:hover .project-image img {
    transform: scale(1.05);
}


/* 高级美化按钮样式 */
.project-image button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    padding: 6px 12px;               /* 增大内边距 */
    cursor: pointer;
    font-size: 18px;                  /* 调整字体大小 */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 30px;              /* 圆角边框 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.project-image button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.project-image button:active {
    transform: translateY(-50%) scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.project-image .prev {
    left: 15px;
}
.project-image .next {
    right: 15px;
}