 /* 全局样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f3f4f6;
    --transition: all 0.3s ease;
}
/* 彻底移除移动端点击高亮 */
* {
    -webkit-tap-highlight-color: transparent !important; /* 兼容 Safari/Chrome */
    tap-highlight-color: transparent !important;         /* 标准属性 */
}

/* 同步移除键盘焦点环 */
input:focus,
textarea:focus,
button:focus,
a:focus {
    outline: none !important;
    box-shadow: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 禁用文本选择 */.menu-btn
* {
  -webkit-user-select: none; /* Safari/iOS */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge */
  user-select: none;
}

/* 禁用长按弹出菜单 (iOS Safari) */
* {
  -webkit-touch-callout: none;
}


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);
    -webkit-touch-callout: none; /* 禁用长按菜单 */
    
}

.loading-mask {
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       background: white;
       z-index: 9999;
       display: flex;
       justify-content: center;
       align-items: center;
       opacity: 1;
       pointer-events: none; /* 允许下方内容交互 */
       animation: fadeOutMask 1s ease 2s forwards;
   }

   .loading-logo {
       width: 100px;
       height: 100px;
       opacity: 0;
       animation: fadeInLogo 0.5s ease 0.5s forwards, logoDisappear 1s ease 1s forwards;
   }

   .loading-circle {
       position: absolute;
       width: 100px;
       height: 100px;
       border-radius: 50%;
       border: 2px solid rgba(0,0,0,0.1);
       opacity: 0;
       animation: circleFadeIn 0.5s ease 0.5s forwards, scaleUp 1s ease 1s forwards;
   }

   @keyframes fadeInLogo {
       from { opacity: 0; transform: scale(0.8); }
       to { opacity: 1; transform: scale(1); }
   }

   @keyframes circleFadeIn {
       from { opacity: 0; transform: scale(0.5); }
       to { opacity: 1; transform: scale(1); }
   }

   @keyframes scaleUp {
       to { transform: scale(20); opacity: 0; }
   }

   @keyframes logoDisappear {
       to { opacity: 0; filter: blur(10px); transform: scale(0.5); }
   }

   @keyframes fadeOutMask {
       to { opacity: 0; }
   }



/* 加强圆角、添加高斯模糊背景和灰色描边 */
.swal2-popup {
  border-radius: 26px !important; /* 加强圆角 */
  border: 0.3px solid #cccccc !important; /* 灰色描边 */
  backdrop-filter: blur(14px) !important; /* 背景高斯模糊 */
  background-color: rgba(255, 255, 255, 0.8) !important; /* 半透明背景 */
}

/* 针对深色模式的调整 */
@media (prefers-color-scheme: dark) {
  .swal2-popup {
    background-color: rgba(50, 50, 50, 0.8) !important;
    border-color: #666666 !important;
  }
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 添加按钮波纹效果 */
.btn, .nav-links a, input[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* 定义html的video标签 <video src="bj.mp4" class="bjimg" autoplay loop muted></video> */
   .bjimg {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      z-index: -10;
      object-fit: cover;
    }


/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(244,245,247,0.000);
    backdrop-filter: blur(23px);
    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);
    position: relative;
    overflow: hidden;
    padding: 5px 0; /* 增加点击区域 */    
}



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

.menu-btn {
    display: none;
    cursor: pointer;
}

/* 移动端导航样式 */
@media (max-width: 768px) {
        /* 隐藏PC端导航 */
    .pc-navbar,
    .pc-menu,
    .pc-menu-overlay {
        display: none !important;
    }
    /* 保留原有移动端样式... */
    .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;
    }
}

/* 移除冲突的响应式样式 */
/* 在style.css中删除原有移动端菜单样式后添加 */
/* 移动端菜单新样式 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: calc(100% - 50px);
    max-width: 400px;
    padding: 25px;
    border-radius: 25px;
    border: 0.5px solid rgba(150, 150, 150, 0.2);
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links li a {
    display: block;
    padding: 18px;
    font-size: 1.2rem;
    color: var(--text-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 0.5px solid rgba(200, 200, 200, 0.15);
    text-decoration: none;
}

/* 删除原有.nav-links相关移动端样式 */
@media (max-width: 768px) {
    .nav-links {
        display: none !important; /* 隐藏原菜单 */
    }
}
/* 英雄区域样式 */
.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%);
   background: radial-gradient(circle, #ff7e5f, #E1FFFF);
//background: linear-gradient(to right, #ff7e5f, #E1FFFF);
}

.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;
    position: relative;
    overflow: hidden;    
}


.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;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: var(--text-color);
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

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

.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: rgba(226,242,250,1.000);
}

.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;
    text-align: left;
    vertical-align: top;
    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: 30px;
    right: 30px;
    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;
}

/* 在style.css中添加 */
/* 关键帧动画 */
@keyframes menuOpen {
    0% { 
        transform: translate(-50%, -45%) scale(0.9);
        opacity: 0;
        filter: blur(10px);
    }
    100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes menuClose {
    0% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -55%) scale(0.9);
        opacity: 0;
        filter: blur(10px);
    }
}

/* 调整层级 */
.mobile-menu-overlay {
    z-index: 999; /* 低于菜单容器 */
}

.mobile-menu {
    z-index: 1001; /* 高于遮罩层 */
    /* 添加Safari兼容 */
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95); /* 兼容备用 */
}

/* 新增动画关键帧 */
@keyframes scaleFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* 修改现有元素初始状态 */
.project-card,
.skill-card,
.stat-item {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  filter: blur(3px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease-out;
  will-change: transform, opacity, filter;
}

/* 添加动画类 */
.reveal-animate {
  animation: scaleFadeIn 0.8s forwards !important;
}

/* 在style.css中添加 */
/* 确保菜单按钮可点击 */
.menu-btn {
    touch-action: manipulation;
    z-index: 1001;
}

/* 修复移动菜单层级 */
.mobile-menu {
    z-index: 1002 !important;
}











/* 在style.css末尾添加 */
/* PC端专用菜单 */
@media (min-width: 769px) {
    .pc-navbar {
        position: fixed;
        top: 30px;
        right: 30px;
        z-index: 2000;
    }

    .terminal-menu {
        width: 45px;
        height: 35px;
        cursor: pointer;
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .terminal-line {
        width: 65%;
        height: 2px;
        background: #4a5568;
        margin: 6px auto;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }

    .terminal-menu.active .terminal-line:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
        width: 50%;
        margin-left: 15px;
    }

    .terminal-menu.active .terminal-line:nth-child(2) {
        opacity: 0;
    }

    .terminal-menu.active .terminal-line:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
        width: 50%;
        margin-left: 15px;
    }

    .pc-menu {
        position: fixed;
        top: 30px;
        right: -550px;
        width: 400px;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(25px);
        border-radius: 23px;
        border: 1px solid rgba(209, 213, 219, 0.3);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
        padding: 25px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1999;
    }

    .pc-menu.active {
        right: 30px;
        opacity: 1;
    }

    .pc-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .pc-menu-list li {
        margin: 8px 0;
        perspective: 1000px;
    }

    .pc-menu-list a {
        display: block;
        padding: 18px 25px;
        color: #2d3748;
        font-size: 1.1rem;
        text-decoration: none;
        border-radius: 15px;
        backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, 0.3);
        border: 0.8px solid rgba(229, 231, 235, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-style: preserve-3d;
    }

    .pc-menu-list a:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.45);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    .pc-menu-list a:active {
        transform: translateY(1px);
        transition-duration: 0.1s;
    }

    .pc-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1998;
    }

    .pc-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}