@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #1f242d;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at top right, 
        rgba(0,238,255,0.1) 0%, 
        rgba(31,36,45,0) 70%
    );
    z-index: -1;
    pointer-events: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 10%;
    background: rgba(31, 36, 45, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 238, 255, 0.1);
}

.header.scrolled {
    padding: 0.8rem 10%;
    background: rgba(31, 36, 45, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0ef;
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar a {
    display: inline-block;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    opacity: 0;
    transition: 0.3s;
    animation: slideTop 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.navbar a:hover,
.navbar a.active {
    color: #0ef;
}

/* 汉堡菜单按钮 */
.menu-btn {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: all 0.3s ease;
}

.menu-btn span:first-child {
    top: 0;
}

.menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-btn span:last-child {
    bottom: 0;
}

.menu-btn.active span:first-child {
    transform: rotate(45deg);
    top: 9px;
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:last-child {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .header {
        padding: 1rem 5%;
    }
    
    .menu-btn {
        display: block;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(31, 36, 45, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s ease;
        border-left: 1px solid rgba(0, 238, 255, 0.1);
    }
    
    .navbar.active {
        right: 0;
    }
    
    .navbar a {
        display: block;
        font-size: 1.5rem;
        margin: 1.5rem 0;
        text-align: center;
        transform: translateX(50px);
        opacity: 0;
    }
    
    .navbar.active a {
        transform: translateX(0);
        opacity: 1;
        animation: none;
        transition: all 0.5s ease;
        transition-delay: calc(0.1s * var(--i));
    }
}

.home {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10% 0;
    z-index: 1;
}

.home-content {
    max-width: 600px;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 span {
    color: #b7b2a9;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content p {
    font-size: 16px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 0.7s;
}

.home-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
    position: relative;
}

.home-img::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: linear-gradient(45deg, transparent, rgba(0, 238, 255, 0.1), transparent);
    animation: rotateGradient 4s linear infinite;
    border-radius: 50%;
}

.home-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
        rgba(0, 238, 255, 0.15) 0%, 
        transparent 60%
    );
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-img:hover::after {
    opacity: 1;
}

.home-img img {
    width: 70%;
    height: auto;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 25px rgba(0, 238, 255, 0.3);
    opacity: 0;
    animation: zoomIn 1s ease forwards,
             floatImage 4s ease-in-out infinite;
    animation-delay: 2s, 3s;
    transition: all 0.3s ease;
}

.home-img:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 238, 255, 0.4);
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #b7b2a9;
    border-radius: 50%;
    color: #b7b2a9;
    font-size: 20px;
    text-decoration: none;
    margin: 30px 15px 30px 0;
    transition: 0.5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(0.2s * var(--i));
    position: relative;
    overflow: hidden;
}

.social-media a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0,238,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.social-media a:hover::before {
    width: 150%;
    height: 150%;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #b7b2a9;
    text-decoration: none;
    border-radius: 40px;
    box-shadow: 0 0 10px #b7b2a9;
    font-size: 16px;
    color: #1f242d;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.5s ease;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    background: none;
    color: #b7b2a9;
    border: 2px solid #b7b2a9;
}

/* 动画 */

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-24px);
    }

    100% {
        transform: translateY(0);
    }
}

/* 关于部分样式 */
.about {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    background: linear-gradient(to bottom, #1f242d 0%, #323946 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-top: 3rem;
    min-height: 600px;
}

/* 左侧图片部分 */
.about-img {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,238,255,0.1);
    height: 600px;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,238,255,0.2);
}

/* 社交媒体悬浮效果 */
.about-social {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    gap: 2rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-img:hover .about-social {
    bottom: 0;
}

.about-social a {
    color: #fff;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.about-social a:hover {
    color: #0ef;
    transform: translateY(-5px);
}

/* 右侧内容部分 */
.about-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    height: 100%;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0ef;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #bbb;
}

/* 信息框样式 */
.about-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-box i {
    font-size: 2.5rem;
    color: #0ef;
    margin-bottom: 1rem;
}

.info-box h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-box p {
    color: #bbb;
}

/* 兴趣爱好部分 */
.about-interests h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.interests-list span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.interests-list span:hover {
    background: rgba(0, 238, 255, 0.1);
    transform: translateY(-3px);
}

.interests-list i {
    color: #0ef;
}

/* 按钮组样式 */
.about-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .about-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .about-img {
        height: 500px;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-details {
        gap: 3rem;
    }
}

@media (max-width: 617px) {
    .about {
        padding: 10rem 5% 2rem;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .interests-list span {
        width: 100%;
    }

    .about-buttons {
        flex-direction: column;
    }

    .about-img {
        height: 400px;
        max-width: 100%;
    }

    .about-social {
        padding: 1.5rem;
    }
}

/* 作品集样式 */
.portfolio {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    background: linear-gradient(to bottom, #323946 0%, #1f242d 100%);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.portfolio-box {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 0 20px rgba(0,238,255,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,238,255,0.2);
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-layer {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0.8)
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-box:hover .portfolio-layer {
    bottom: 0;
}

.portfolio-layer h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.portfolio-layer p {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1rem;
}

.portfolio-layer a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 238, 255, 0.8);
    border-radius: 50%;
    font-size: 1.5rem;
    color: #1f242d;
    transition: all 0.3s ease;
}

.portfolio-layer a:hover {
    background: #0ef;
    transform: translateY(-5px);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .portfolio-box {
        height: 350px;
    }
}

@media (max-width: 617px) {
    .portfolio {
        padding: 10rem 5% 2rem;
    }

    .portfolio-box {
        height: 300px;
    }
}

/* 联系式 */
.contact {
    min-height: 100vh;
    padding: 6rem 9% 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-box i {
    font-size: 2rem;
    color: var(--main-color);
}

.info-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-box {
    display: flex;
    gap: 1.5rem;
}

.input-box input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--main-color);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-color);
    font-size: 1rem;
}

.contact-form textarea {
    resize: none;
    height: 150px;
}

/* 地图容器样式 */
#map-container {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .input-box {
        flex-direction: column;
    }
}

/* 页样式 */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: #1f242d;
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: #0ef;
    border-radius: .8rem;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: #1f242d;
}

/* 按钮组样式 */
.btn-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid #0ef;
    color: #0ef;
}

.btn-outline:hover {
    background: #0ef;
    color: #1f242d;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }
    
    .contact form .input-box input {
        width: 100%;
    }
}

/* 动画效果 */
@keyframes fillBars {
    from {
        width: 0;
    }
}

/* 联系页面样式优化 */
.contact-page {
    min-height: 100vh;
    padding: 12rem 9% 2rem;
    background: linear-gradient(135deg, #1f242d 0%, #323946 100%);
}

.contact-header {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-header .heading {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.contact-header .subtitle {
    font-size: 1.8rem;
    color: #bbb;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

/* 信息卡片样式 */
.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(0, 238, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 2.5rem;
    color: #0ef;
}

.card-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.card-content p {
    font-size: 1.4rem;
    color: #bbb;
    line-height: 1.6;
}

/* 社交媒体连接 */
.social-connect {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-top: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-connect h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
}

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

.social-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn i {
    font-size: 2rem;
}

.social-btn span {
    font-size: 1.4rem;
}

.social-btn:hover {
    background: #0ef;
    transform: translateX(10px);
}

/* 表单容器 */
.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form h3 {
    font-size: 2.4rem;
    margin-bottom: 3rem;
    color: #fff;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group.full {
    grid-template-columns: 1fr;
}

.input-field {
    position: relative;
    margin-bottom: 1rem;
}

.input-field input,
.input-field textarea {
    width: 100%;
    padding: 1.5rem;
    padding-left: 4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: #fff;
    font-size: 1.6rem;
    transition: 0.3s;
}

.input-field textarea {
    resize: none;
}

.input-field label {
    position: absolute;
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 1.6rem;
    pointer-events: none;
    transition: 0.3s;
}

.input-field textarea ~ label {
    top: 2.5rem;
    transform: none;
}

.input-field i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #0ef;
    font-size: 1.8rem;
}

.input-field textarea ~ i {
    top: 2.5rem;
    transform: none;
}

.input-field.active label {
    top: -1rem;
    left: 1.5rem;
    font-size: 1.2rem;
    padding: 0 0.5rem;
    background: #323946;
    border-radius: 0.4rem;
    color: #0ef;
}

.input-field.error input,
.input-field.error textarea {
    border-color: #ff4444;
}

.submit-btn {
    width: 100%;
    padding: 1.5rem;
    background: #0ef;
    color: #1f242d;
    border: none;
    border-radius: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #00c4d4;
    transform: translateY(-2px);
}

.submit-btn i {
    font-size: 2rem;
}

/* 地图部分 */
.map-section {
    margin-top: 5rem;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 991px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 617px) {
    .contact-page {
        padding: 12rem 5% 2rem;
    }
    
    .contact-header .heading {
        font-size: 3.5rem;
    }
    
    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .social-btn {
        justify-content: center;
    }
}

/* 遮罩层样式 */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1f242d, #323946);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
}

.mask.active {
    transform: translateX(0);
}

.mask.loaded {
    transform: translateX(-100%);
}

/* 确保所有页面的内容在遮罩层下方 */
.section {
    position: relative;
    z-index: 1;
}

/* 页面内容动画 */
.contact-page {
    animation: fadeIn 1s ease-out;
}

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

/* 所有主要元素添加进入动画 */
.contact-header,
.info-card,
.social-connect,
.contact-form-container,
.map-section {
    opacity: 0;
    animation: slideIn 0.8s ease forwards;
}

.contact-header {
    animation-delay: 0.2s;
}

.info-card:nth-child(1) {
    animation-delay: 0.4s;
}

.info-card:nth-child(2) {
    animation-delay: 0.6s;
}

.info-card:nth-child(3) {
    animation-delay: 0.8s;
}

.social-connect {
    animation-delay: 1s;
}

.contact-form-container {
    animation-delay: 1.2s;
}

.map-section {
    animation-delay: 1.4s;
}

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

/* 炫酷动效样式 */
/* 背景动画 */
.contact-page {
    position: relative;
    overflow: hidden;
}

.contact-page::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(0,238,255,0.1) 0%, rgba(31,36,45,0) 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

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

/* 悬浮粒子效果 */
.particle {
    position: fixed;
    width: 5px;
    height: 5px;
    background: rgba(0,238,255,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
}

/* 卡片悬浮效果 */
.info-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.info-card:hover {
    transform: translateY(-5px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(0,238,255,0.1);
}

.card-icon {
    transition: transform 0.3s ease;
}

.info-card:hover .card-icon {
    transform: translateZ(20px);
}

/* 社交按钮动效 */
.social-btn {
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0,238,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

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

/* 输入框动效 */
.input-field input:focus,
.input-field textarea:focus {
    box-shadow: 0 0 15px rgba(0,238,255,0.3);
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(0,238,255,0.3);
    }
    to {
        box-shadow: 0 0 20px rgba(0,238,255,0.6);
    }
}

/* 提交按钮动效 */
.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

/* 页面切换动效 */
.mask {
    background: linear-gradient(45deg, #1f242d, #323946);
}

.mask.active {
    transform: translateX(0);
}

.mask.loaded {
    transform: translateX(-100%);
}

/* 全局动效样式 */
/* 背景动画 */
body {
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(0,238,255,0.1) 0%, rgba(31,36,45,0) 70%);
    z-index: -1;
    pointer-events: none;
}

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

/* 通用悬浮效果 */
.portfolio-box,
.info-card,
.social-media a,
.btn {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-box:hover,
.info-card:hover,
.social-media a:hover,
.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,238,255,0.1);
}

/* 粒子效果 */
.particle {
    position: fixed;
    width: 5px;
    height: 5px;
    background: rgba(0,238,255,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
}

/* 页面切换动画 */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1f242d, #323946);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
}

.mask.active {
    transform: translateX(0);
}

.mask.loaded {
    transform: translateX(-100%);
}

/* 页面内容动画 */
.section {
    animation: fadeIn 1s ease-out;
}

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

/* 添加页面容过渡动画 */
.section-active {
    animation: fadeIn 0.8s ease-out;
}

.section-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

/* 导航栏激活状态样式 */
.navbar a.active {
    color: #0ef;
    position: relative;
}

.navbar a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0ef;
    animation: slideRight 0.5s ease forwards;
}

/* 技能部分样式优化 */
.skills {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    background: linear-gradient(to bottom, #1f242d 0%, #323946 100%);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.skills-box {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 238, 255, 0.2);
    transition: all 0.3s ease;
}

.skills-box:hover {
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.1);
}

.skills-content .progress {
    position: relative;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.skills-content .progress h3 {
    font-size: 1.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skills-content .progress .bar {
    position: relative;
    height: 2.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(0, 238, 255, 0.3);
}

.skills-content .progress .bar span {
    position: absolute;
    height: 100%;
    width: 0;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, #0ef, #00b3ff);
    transition: width 1s ease;
}

/* 发光效果 */
.skills-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    background: radial-gradient(circle at var(--x) var(--y), 
        rgba(0, 238, 255, 0.1) 0%, 
        transparent 50%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skills-box:hover::after {
    opacity: 1;
}

/* 兴趣爱好部分样式优化 */
.about-interests {
    margin-top: 2rem;
}

.about-interests h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #0ef;
}

.interests-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.interest-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.interest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 238, 255, 0.1);
    background: rgba(0, 238, 255, 0.05);
}

.interest-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 238, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.interest-icon i {
    font-size: 2.5rem;
    color: #0ef;
}

.interest-item:hover .interest-icon {
    background: #0ef;
}

.interest-item:hover .interest-icon i {
    color: #1f242d;
}

.interest-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.interest-content p {
    font-size: 1rem;
    color: #bbb;
    line-height: 1.4;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .interests-list {
        grid-template-columns: 1fr;
    }
    
    .interest-item {
        padding: 1.5rem;
    }
}

/* 技能详情弹出效果位置调整 */
.skills-tooltip {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -105%);
    background: rgba(0, 238, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 238, 255, 0.2);
    width: max-content;
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.skills-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -110%);
}

/* 调整小箭头的位置 */
.skills-tooltip::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 238, 255, 0.2);
}

.skills-tooltip h4 {
    color: #0ef;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.skills-tooltip p {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
}

.skills-tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.skills-tooltip li {
    color: #bbb;
    font-size: 0.85rem;
    margin: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

.skills-tooltip li::before {
    content: '•';
    color: #0ef;
    position: absolute;
    left: 0;
}

/* 响应式设计补充 */
@media (max-width: 991px) {
    .home {
        flex-direction: column;
        padding-top: 100px;
    }
    
    .home-img {
        width: 60%;
        margin-top: 4rem;
    }
}

@media (max-width: 617px) {
    .home-img {
        width: 70%;
    }
    
    .home-img img {
        width: 80%;
    }
}

/* 添加新的动画关键帧 */
@keyframes rotateGradient {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(0, 238, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 238, 255, 0.5);
    }
}

/* 添加CSS变量，便于维护 */
:root {
    --primary-color: #0ef;
    --secondary-color: #b7b2a9;
    --background-color: #1f242d;
    --text-color: #fff;
    --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-color: rgba(0, 238, 255, 0.2);
}

/* 优化动画性能 */
.animated-element {
    will-change: transform;
    transform: translateZ(0);
}

/* 添加打印样式 */
@media print {
    .no-print {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}

/* 优化加载状态 */
.loading {
    position: fixed;
    inset: 0;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 导航栏样式优化 */
.navbar a {
    display: inline-block;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    opacity: 0;
    transition: 0.3s;
    animation: slideTop 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.navbar a:hover,
.navbar a.active {
    color: #0ef;
}

/* 保持section动画 */
.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s;
}

.section-active {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式导航栏 */
@media screen and (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(31, 36, 45, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s ease;
        border-left: 1px solid rgba(0, 238, 255, 0.1);
    }
    
    .navbar.active {
        right: 0;
    }
    
    .navbar a {
        display: block;
        font-size: 1.5rem;
        margin: 1.5rem 0;
        text-align: center;
        transform: translateX(50px);
        opacity: 0;
    }
    
    .navbar.active a {
        transform: translateX(0);
        opacity: 1;
        animation: none;
        transition: all 0.5s ease;
        transition-delay: calc(0.1s * var(--i));
    }
}

/* 防止图片拖拽和选择 */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    pointer-events: none;
}

/* 防止文本选择 */
.prevent-select {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}