/* 全局样式 */

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:"PingFang SC","Helvetica Neue",Arial,sans-serif;

    background:#e1f1ff;

    color:#222;

    line-height:1.8;
}

/* 首页 */

.hero{

    height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:20px;

    position:relative;
    overflow:hidden;

    background:linear-gradient(
        -45deg,
        #ffffff,
        #eff6ff,
        #d6e8ff,
        #ffffff
    );

    background-size:400% 400%;

    animation:gradientMove 6s ease infinite;

}



@keyframes gradientMove{

    0%{
        background-position:0% 50%;
    }

    50%{
        background-position:100% 50%;
    }

    100%{
        background-position:0% 50%;
    }

}

.hero::before{

    content:"";

    position:absolute;

    width:450px;

    height:450px;

    background:#93c5fd;

    border-radius:50%;

    filter:blur(120px);

    opacity:.25;

    top:5%;

    left:8%;

}


.hero::after{

    content:"";

    position:absolute;

    width:350px;

    height:350px;

    background:#bfdbfe;

    border-radius:50%;

    filter:blur(100px);

    opacity:.3;

    bottom:5%;

    right:10%;

}


.hero h1,
.hero h2,
.hero p,
.hero .buttons{

    position:relative;

    z-index:1;

}

.hero h1{

    font-size:90px;

    font-weight:800;

    letter-spacing:6px;

    color:#111827;

    text-shadow:0 10px 30px rgba(0,0,0,.08);

}

.hero h2{

    font-size:36px;

    font-weight:300;

    color:#64748b;

    letter-spacing:8px;

    margin-bottom:36px;

}

.hero p{
    margin:0;
}

.subtitle{

    font-size:30px;
    font-weight:700;
    margin-top:12px;
    margin-bottom:40px;

}




/* 按钮 */

.buttons{
    margin-top:40px;
    display:flex;
    gap:20px;
}

.btn{

    border:2px solid #2563EB;

    color:#2563EB;

    background:white;

    text-decoration:none;

    padding:14px 30px;

    border-radius:10px;

    transition:.35s ease;

    box-shadow:0 8px 20px rgba(37,99,235,.12);

}

.btn:hover{

    background:#2563EB;
    color:white;

}

.btn-outline{

    border:2px solid #2563EB;
    color:#2563EB;
    background:white;
    text-decoration:none;
    padding:14px 30px;
    border-radius:10px;
    transition:.35s ease;

}

.btn-outline:hover{

    background:#2563EB;

    color:white;

}

/* 导航栏 */

nav{

    position:fixed;
    top:0;
    left:0;

    width:100%;

    background:white;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:16px 80px;

    box-shadow:0 10px 30px rgba(15,23,42,.06);

    z-index:1000;
}

nav ul{

    display:flex;

    list-style:none;

    gap:35px;

}

nav a{

    position:relative;

    text-decoration:none;

    color:#333;

    font-weight:500;

    padding-bottom:6px;

}

nav a::after{

    content:"";

    position:absolute;

    left:50%;

    bottom:0;

    width:0;

    height:2px;

    background:#2563EB;

    transition:.3s;

    transform:translateX(-50%);

}


nav a:hover::after{

    width:100%;

}

.logo{

font-size:24px;

font-weight:700;

letter-spacing:1px;

}

/* ========================= */
/* About */
/* ========================= */

.about{

    background:#e1f1ff;

    padding:120px 12%;

}

.section-title{

    text-align:center;

    margin-bottom:60px;

}

.section-title h2{

font-size:46px;

font-weight:700;

letter-spacing:5px;

}


.section-title p{

    color:#999;

    letter-spacing:4px;

    font-size:14px;

}

.about-card{

    max-width:850px;

    margin:0 auto;

    background:white;

    border:1px solid #e8e8e8;

    border-radius:16px;

    overflow:hidden;

}

.info-row{

    display:flex;

    padding:22px 32px;

    border-bottom:1px solid #f1f1f1;

}

.info-row:last-child{

    border-bottom:none;

}

.label{

    width:130px;

    color:#2563EB;

    font-weight:600;

}

.value{

    color:#333;

}

.about-text{

    max-width:850px;

    margin:45px auto 0;

}

.about-text p{

    color:#555;

    line-height:2;

    margin-bottom:20px;

    font-size:17px;

}

/* ==========================
   Education
========================== */

.education{

    background:#e1f1ff;

    padding:120px 12%;

}

.edu-card{

    background:white;

    border-radius:16px;

    padding:30px;

    margin:35px auto;

    max-width:900px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

    transition:.35s ease;

}

.edu-card:hover,
.internship-card:hover,
.project-card:hover,
.contact-card:hover{

    transform:translateY(-6px);

    box-shadow:
    0 20px 40px rgba(0,0,0,.08);

}

.edu-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:15px;

}

.edu-header h3{

    color:#2563EB;

    font-size:26px;

}

.edu-header span{

    color:#888;

}

.edu-card h4{

    margin-bottom:18px;

    font-size:20px;

}

.edu-card p{

    color:#555;

    line-height:2;

}

.edu-item{
    margin-top:28px;
}

.edu-item h5{
    font-size:16px;
    font-weight:600;
    color:#2563EB;
    margin-bottom:10px;
    text-transform:uppercase;
}

.edu-item p{
    color:#555;
    margin:6px 0;
}

/* ==========================
   Internship
========================== */


.internship{

    background:#e1f1ff;

    padding:120px 12%;

}



.internship-card{

    max-width:900px;

    margin:40px auto;

    background:white;

    border-radius:16px;

    padding:35px;

    border:1px solid #eee;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

}



.internship-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

}



.internship-header h3{

    font-size:24px;

    margin-bottom:10px;

}



.internship-header h4{

    color:#2563EB;

    font-size:18px;

    font-weight:500;

}



.internship-header span{

    color:#888;

}



.toggle-btn{

    margin-top:25px;

    padding:10px 22px;

    border:2px solid #2563EB;

    background:white;

    color:#2563EB;

    border-radius:8px;

    cursor:pointer;

}



.toggle-btn:hover{

    background:#2563EB;

    color:white;

}



.internship-content{

    display:none;

    margin-top:35px;

}



.internship-item{

    margin-bottom:30px;

}



.internship-item h5{

    border-left:4px solid #2563EB;

    padding-left:12px;

    font-size:17px;

    margin-bottom:12px;

}



.internship-item p{

    color:#555;

    line-height:2;

}

/* ==========================
   Projects
========================== */


.projects{

    background:#e1f1ff;

    padding:120px 12%;

}



.project-card{

    max-width:900px;

    margin:40px auto;

    background:white;

    border-radius:16px;

    padding:35px;

    border:1px solid #eee;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

}



.project-header{

    display:flex;

    justify-content:space-between;

}



.project-header h3{

    font-size:24px;

    margin-bottom:10px;

}



.project-header h4{

    color:#2563EB;

    font-weight:500;

}



.project-header span{

    color:#888;

}



.project-content{

    display:none;

    margin-top:35px;

}



.project-item{

    margin-bottom:28px;

}



.project-item h5,
.project-file h5{

    border-left:4px solid #2563EB;

    padding-left:12px;

    margin-bottom:10px;

    font-size:17px;

}



.project-item p,
.project-file p{

    color:#555;

    line-height:2;

}



.project-file{

    margin-top:35px;

    padding:20px;

    background:#f8fafc;

    border-radius:10px;

}

.project-images{

    display:flex;

    gap:20px;

    margin:20px 0;

}


.project-images img{

    width:220px;

    height:150px;

    object-fit:cover;

    max-width:100%;

    border-radius:12px;

    transition:.35s ease;

}


.project-images img:hover{

    transform:scale(1.05);

}


.project-file a{

    color:#2563EB;

    text-decoration:none;

}


.project-file a:hover{

    text-decoration:underline;

}

/* ==========================
   Contact
========================== */


.contact{

    background:#e1f1ff;

    padding:120px 12%;

    min-height:100vh;

}



.contact-card{

    max-width:700px;

    margin:50px auto;

    background:white;

    padding:45px;

    border-radius:16px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

    text-align:center;

}



.contact-card h3{

    font-size:28px;

    margin-bottom:20px;

}



.contact-card>p{

    color:#666;

    line-height:2;

    margin-bottom:35px;

}



.contact-info{

    text-align:left;

}



.contact-item{

    display:flex;

    justify-content:space-between;

    padding:18px 0;

    border-bottom:1px solid #eee;

}



.contact-item span{

    color:#2563EB;

    font-weight:600;

}



.contact-item p{

    color:#444;

}

.profile img{

    width:180px;

    height:180px;

    object-fit:cover;

    border-radius:50%;

}

.profile{

    display:flex;

    justify-content:center;

    margin-bottom:40px;

}


.profile img{

    width:200px;

    height:200px;

    object-fit:cover;

    border-radius:50%;

    border:6px solid rgba(255,255,255,.8);

    backdrop-filter:blur(10px);

    box-shadow:0 8px 25px rgba(0,0,0,.1);

}

.personal-container{

    display:flex;

    gap:30px;

    max-width:850px;

    margin:50px auto;

}


.personal-section{

    flex:1;

    background:white;

    padding:30px;

    border-radius:16px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

    text-align:center;

}


.personal-section h3{

    color:#2563EB;

    margin-bottom:15px;

}


.personal-section p{

    color:#555;

    line-height:2;

}

@media(max-width:768px){

    .hero h1{

        font-size:55px;

    }


    nav{

        padding:15px 20px;

    }


    nav ul{

        gap:15px;

        font-size:14px;

    }


    .personal-container{

        flex-direction:column;

    }


}

nav a.active{

    color:#2563EB;

}

nav a.active::after{

    width:100%;

}

/* ==========================
   Mobile Responsive
========================== */

@media (max-width:768px){

    /* 导航栏 */
    nav{

        padding:15px 20px;

    }

    nav ul{

        gap:15px;

    }

    nav a{

        font-size:14px;

    }

    .logo{

        font-size:20px;

    }


    /* 首页 */

    .hero h1{

        font-size:55px;

    }

    .hero h2{

        font-size:26px;

    }

    .subtitle{

        font-size:20px;

    }


    .buttons{

        flex-direction:column;

        width:80%;

    }

    .btn,
    .btn-outline{

        text-align:center;

    }


    /* 各页面左右间距 */

    .about,
    .education,
    .internship,
    .projects,
    .contact{

        padding:90px 20px;

    }


    /* 标题 */

    .section-title h2{

        font-size:32px;

    }


    /* 教育/实习/项目卡片 */

    .edu-card,
    .internship-card,
    .project-card{

        padding:25px 20px;

    }


    .edu-header,
    .internship-header,
    .project-header{

        flex-direction:column;

        gap:10px;

    }


    /* 项目图片 */

    .project-images{

        flex-direction:column;

    }


    .project-images img{

        width:100%;

        height:auto;

    }


    /* 联系页 */

    .contact-card{

        padding:30px 20px;

    }


    /* 兴趣+格言 */

    .personal-container{

        flex-direction:column;

        margin:30px auto;

    }


    /* 头像 */

    .profile img{

        width:160px;

        height:160px;

    }

}

/* ==========================
   Fix mobile horizontal overflow
========================== */

html,
body{

    max-width:100%;

    overflow-x:hidden;

}


img{

    max-width:100%;

    height:auto;

}

