/* =====================================================
   Personal Portfolio V1.0
   Author : ChatGPT
===================================================== */

/* ---------- 全局 ---------- */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:"Poppins","Microsoft YaHei",sans-serif;

    background:#07111f;

    color:#fff;

    overflow-x:hidden;

}

/* ---------- 背景 ---------- */

.bg-blur{

    position:fixed;

    border-radius:50%;

    filter:blur(130px);

    z-index:-1;

}

.blur1{

    width:420px;
    height:420px;

    background:#2563eb;

    left:-120px;
    top:-120px;

}

.blur2{

    width:500px;
    height:500px;

    background:#7c3aed;

    right:-180px;
    bottom:-180px;

}

/* ---------- 导航 ---------- */

.navbar{

    width:90%;

    max-width:1280px;

    margin:auto;

    margin-top:25px;

    padding:18px 40px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    border-radius:20px;

    background:rgba(255,255,255,.06);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.08);

}

.logo{

    font-size:34px;

    font-weight:700;

    color:#4ea8ff;

    letter-spacing:3px;

}

nav{

    display:flex;

    gap:45px;

}

nav a{

    color:white;

    text-decoration:none;

    font-size:17px;

    transition:.3s;

}

nav a:hover{

    color:#60a5fa;

}

/* ---------- Hero ---------- */

.hero{

    width:90%;

    max-width:1280px;

    margin:80px auto;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

/* 左边 */

.hero-left{

    width:50%;

}

.hello{

    color:#60a5fa;

    letter-spacing:5px;

    margin-bottom:18px;

    font-size:18px;

}

.hero-left h1{

    font-size:82px;

    line-height:1.1;

    margin-bottom:15px;

}

.hero-left h2{

    color:#7dd3fc;

    font-size:42px;

    font-weight:500;

    margin-bottom:25px;

}

.hero-left p{

    color:#cbd5e1;

    font-size:24px;

    line-height:38px;

}

/* ---------- 按钮 ---------- */

.buttons{

    display:flex;

    gap:22px;

    margin-top:45px;

}

.buttons button,
.buttons a{

    padding:16px 38px;

    border:none;

    border-radius:50px;

    cursor:pointer;

    font-size:17px;

    transition:.35s;

}

.btn1{

    background:#2563eb;

    color:white;

    text-decoration:none;

    display:inline-block;

}

.btn1:hover{

    transform:translateY(-5px);

    box-shadow:0 12px 35px rgba(37,99,235,.45);

}

.btn2{

    background:white;

    color:#111827;
    
    text-decoration:none;

}

.btn2:hover{

    transform:translateY(-5px);

}

/* ---------- 头像 ---------- */

.hero-right{

    width:42%;

    display:flex;

    justify-content:center;

}

.avatar-box{

    width:360px;

    height:360px;

    border-radius:50%;

    padding:8px;

    background:linear-gradient(135deg,#3b82f6,#7c3aed);

    box-shadow:0 0 60px rgba(59,130,246,.35);

}

.avatar-box img{

    width:100%;

    height:100%;

    border-radius:50%;

    object-fit:cover;

    object-position:center top;

    display:block;

}

/* ==========================
   About Section
========================== */


.about{

    width:90%;

    max-width:1280px;

    margin:150px auto;

}


.about-title{

    text-align:center;

    margin-bottom:60px;

}


.about-title p{

    color:#60a5fa;

    letter-spacing:5px;

    font-size:18px;

}


.about-title h2{

    font-size:48px;

    margin-top:15px;

}


/* 卡片区域 */

.about-content{

    display:flex;

    justify-content:space-between;

    gap:30px;

}


/* 卡片 */

.about-card{


    flex:1;


    padding:40px;


    border-radius:25px;


    background:rgba(255,255,255,0.06);


    backdrop-filter:blur(15px);


    border:1px solid rgba(255,255,255,0.1);


    transition:.35s;


}


.about-card:hover{


    transform:translateY(-12px);


    border-color:#60a5fa;


    box-shadow:0 20px 50px rgba(37,99,235,.25);


}



.about-card h3{


    font-size:26px;


    color:#7dd3fc;


    margin-bottom:20px;


}



.about-card p{


    color:#cbd5e1;


    font-size:17px;


    line-height:32px;


}

/* skills */

.skills{
    width:85%;
    margin:120px auto;
}


.section-title{
    text-align:center;
}


.section-title span{
    color:#4f8cff;
    letter-spacing:5px;
}


.section-title h2{
    font-size:42px;
    margin-top:15px;
}


.skill-container{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:25px;

    margin-top:50px;

}



.skill-card{

    background:#151e32;

    border:1px solid rgba(255,255,255,.1);

    padding:35px;

    border-radius:20px;

    transition:.3s;

}



.skill-card:hover{

    transform:translateY(-10px);

    border-color:#4f8cff;

}



.skill-card h3{

    color:#61b8ff;

    font-size:26px;

}



.skill-card p{

    color:#b8c1d8;

    line-height:1.8;

}


/* projects */


.projects{

width:85%;

margin:120px auto;

}



.project-container{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:30px;

margin-top:50px;

}



/* .project-card{


background:#151e32;


padding:35px;


border-radius:20px;


border:1px solid rgba(255,255,255,.1);


transition:.3s;


} */



.project-card:hover{


transform:translateY(-10px);


border-color:#4f8cff;


}



.project-card h3{


font-size:25px;


color:#61b8ff;


}



.tag{


color:#4f8cff;


font-size:15px;


margin:15px 0;


}



.project-card p{


line-height:1.8;


color:#c4ccdc;


}



.project-card button{


margin-top:20px;


padding:10px 25px;


border-radius:30px;


border:none;


background:#3563ff;


color:white;


cursor:pointer;


}

/* projects */

.project-container{

display:flex;

gap:25px;

justify-content:center;

margin-top:50px;

}


.project-card1{

width:100%;

background:#161f35;

border:1px solid rgba(255,255,255,0.08);

border-radius:20px;

padding:30px;

transition:0.3s;

min-height:420px;

display:flex;

flex-direction:column;

align-items:flex-start;

}


.project-card:hover{

transform:translateY(-10px);

border-color:#4f8cff;

}



.project-card h3{

color:#63a9ff;

font-size:22px;

margin-bottom:15px;

}



.tags{

display:flex;

gap:10px;

margin-bottom:20px;

}



.tags span{

background:#24304d;

color:#8fc4ff;

padding:5px 12px;

border-radius:20px;

font-size:13px;

}



.project-card p{

line-height:1.8;

color:#b8c1d9;

}



.project-card button{

margin-top:20px;

background:#4169ff;

color:white;

border:none;

padding:10px 20px;

border-radius:20px;

cursor:pointer;

}

.project-btn{

display:inline-block;

margin-top:20px;

padding:10px 28px;

border-radius:25px;

background:#2563eb;

color:white;

text-decoration:none;

transition:.3s;

margin-top:auto;

}


.project-btn:hover{

transform:translateY(-3px);

}


.modal {
    display: none; /* 默认隐藏 */
    position: fixed; 
    z-index: 999; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.6); /* 半透明背景 */
}
.modal-content {
    background-color: #fff;
    margin: 10% auto; 
    padding: 30px; 
    border-radius: 10px;
    width: 90%; 
    max-width: 400px;
    text-align: center;
    color: #333; /* 确保文字是黑色的 */
    position: relative;
}
/* .close { float: right; font-size: 28px; cursor: pointer; } */
.close {  font-size: 28px; cursor: pointer; }