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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #1f2937;
    line-height: 1.7;
    background: #ffffff;
}


/* =========================
   导航栏
========================= */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eeeeee;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: auto;

    height: 70px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 25px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
}

.nav-links a:hover {
    color: #000;
}


/* =========================
   首页
========================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #ffffff
        );

    padding: 120px 25px 80px;
}

.hero-content {
    max-width: 900px;
    margin: auto;
    width: 100%;
}

.hello {
    font-size: 14px;
    letter-spacing: 4px;
    color: #6b7280;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(60px, 10vw, 110px);
    line-height: 1;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 25px;
}

.hero-description {
    max-width: 650px;
    color: #6b7280;
    font-size: 18px;
}

.buttons {
    margin-top: 35px;

    display: flex;
    gap: 15px;
}

.button {
    display: inline-block;

    padding: 12px 24px;

    border: 1px solid #ddd;
    border-radius: 8px;

    text-decoration: none;
    color: #222;

    transition: 0.2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    background: #111;
    color: white;
    border-color: #111;
}


/* =========================
   通用
========================= */

.section {
    padding: 100px 25px;
}

.gray {
    background: #f7f7f7;
}

.container {
    max-width: 1100px;
    margin: auto;
}

.section-label {
    font-size: 12px;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 10px;
}

.section h2 {
    font-size: 40px;
    margin-bottom: 50px;
}


/* =========================
   关于我
========================= */

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about-card {
    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 50px;

    align-items: center;
}

.avatar {
    width: 180px;
    height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 70px;

    background: #eee;
    border-radius: 50%;
}

.about-card p {
    margin-bottom: 18px;
    color: #555;
}


/* =========================
   卡片
========================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.card {
    background: white;

    padding: 35px;

    border-radius: 15px;

    border: 1px solid #eee;

    transition: 0.2s;
}

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

.icon {
    font-size: 35px;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: #666;
}


/* =========================
   技能
========================= */

.skills {
    max-width: 750px;
}

.skill {
    margin-bottom: 25px;
}

.skill > span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.progress {
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.progress div {
    height: 100%;
    background: #222;
}


/* =========================
   项目
========================= */

.projects {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.project-card {
    background: white;

    padding: 30px;

    border-radius: 15px;

    border: 1px solid #eee;

    min-height: 250px;
}

.tag {
    display: inline-block;

    padding: 4px 10px;

    background: #eee;

    border-radius: 20px;

    font-size: 12px;

    margin-bottom: 20px;
}

.project-card h3 {
    margin-bottom: 15px;
}

.project-card p {
    color: #666;
}

.tech {
    margin-top: 25px;
    font-size: 13px;
}


/* =========================
   自我评价
========================= */

.evaluation {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 30px;
}

.evaluation > div {
    padding: 35px;

    border: 1px solid #eee;

    border-radius: 15px;
}

.evaluation h3 {
    margin-bottom: 20px;
}

.evaluation ul {
    padding-left: 20px;
}

.evaluation li {
    margin-bottom: 8px;
}


/* =========================
   三年规划
========================= */

.timeline {
    max-width: 850px;
}

.timeline-item {
    display: grid;

    grid-template-columns: 70px 1fr;

    gap: 30px;

    padding-bottom: 50px;
}

.year {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #111;
    color: white;

    border-radius: 50%;

    font-weight: bold;
}

.timeline-item h3 {
    margin-bottom: 12px;
}

.timeline-item p {
    color: #666;
    margin-bottom: 10px;
}


/* =========================
   Footer
========================= */

footer {
    text-align: center;

    padding: 40px 20px;

    background: #111;
    color: #aaa;

    font-size: 14px;
}

footer p {
    margin-bottom: 5px;
}


/* =========================
   手机适配
========================= */

@media (max-width: 700px) {

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .hero h2 {
        font-size: 22px;
    }

    .hero-description {
        font-size: 16px;
    }

    .cards,
    .projects,
    .evaluation {
        grid-template-columns: 1fr;
    }

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

    .avatar {
        margin: auto;
    }

    .section {
        padding: 70px 20px;
    }

}