* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #ffffff;
    color: #1d1d1f;
}

/* 顶部毛玻璃栏 */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.glass-header.active {
    opacity: 1;
    pointer-events: auto;
}

.glass-header-inner {
    max-width: 980px;
    margin: 0 auto;
    height: 52px;
    padding: 0 22px;
    display: flex;
    align-items: center;
}

.glass-header-title {
    font-size: 21px;
    font-weight: 700;
    color: #1d1d1f;
}

/* 黑色导航栏 */
nav {
    background-color: #1d1d1f;
    padding: 12px 0;
}

.nav-container {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    padding: 0 22px;
}

.nav-brand {
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    text-decoration: none;
    margin-right: auto;
}

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

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

.nav-links a:hover {
    opacity: 1;
}

/* 浅灰色头部区域 */
.hero-dark {
    background-color: #f5f5f7;
    color: #1d1d1f;
    padding: 40px 20px 50px;
    overflow: hidden;
}

.hero-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 20px 30px;
    overflow: hidden;
}

.avatar-hero {
    float: right;
    margin: -20px 0 20px 60px;
    width: 360px;
}

.avatar-hero img {
    width: 360px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.045);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.hero-inner h1 {
    font-size: 48px;
    font-weight: 600;
    margin: 100px 0 14px 40px;
}

.hero-inner h2 {
    font-size: 24px;
    font-weight: 400;
    color: #6e6e73;
    margin-left: 40px;
}

.hero-desc {
    font-size: 17px;
    color: #424245;
    margin: 20px 0 0 40px;
    max-width: 560px;
    line-height: 1.47;
}

/* 白色正文区 */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    background-color: #ffffff;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 0;
}

.two-column p {
    font-size: 17px;
    line-height: 1.47;
    color: #424245;
    margin-bottom: 16px;
}

/* 各板块标题上边距拉到160px，区块之间留白非常宽松 */
#skills .section-title {
    font-size: 28px;
    font-weight: 600;
    margin: 160px 0 24px;
}
#projects .section-title {
    font-size: 28px;
    font-weight: 600;
    margin: 160px 0 24px;
}
#contact .section-title {
    font-size: 28px;
    font-weight: 600;
    margin: 160px 0 24px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.025);
    border: 1px solid rgba(0, 0, 0, 0.045);
    font-size: 13px;
    letter-spacing: 0.3px;
    font-weight: 500;
    color: #1d1d1f;
    padding: 6px 14px;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: rgba(0, 0, 0, 0.055);
    border-color: rgba(0, 0, 0, 0.085);
    transform: translateY(-1px);
}

.projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.project-card {
    text-decoration: none; /* 新增，去掉a标签默认下划线 */
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.055);
    padding: 24px;
    border-radius: 20px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.project-card h3{
    color:#1d1d1f; /* 防止链接文字变蓝 */
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
    border-color: rgba(0, 0, 0, 0.09);
}

.project-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #111111;
}

.project-icon svg {
    width: 22px;
    height: 22px;
}

.project-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-card p {
    color: #424245;
    line-height: 1.5;
    font-size: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 12px;
}

.contact-grid p {
    font-size: 17px;
    color: #424245;
    margin-bottom: 8px;
}

.contact-note {
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid #f0f0f2;
}

.contact-note p {
    font-size: 14px;
    color: #6e6e73;
}

footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #d2d2d7;
}

footer p {
    color: #6e6e73;
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
    }

    .hero-inner h1 {
        font-size: 38px;
        margin: 40px 0 14px 0;
    }

    .hero-inner h2 {
        font-size: 20px;
        margin-left: 0;
    }

    .hero-desc {
        margin: 20px 0 0 0;
    }

    .avatar-hero {
        float: none;
        width: 100%;
        text-align: center;
        margin: 0 0 30px;
    }

    .avatar-hero img {
        width: 300px;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 18px;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .project-card:hover {
        transform: none;
        box-shadow: none;
    }

    /* 移动端板块间距 110px */
    #skills .section-title {
        margin: 110px 0 20px;
    }
    #projects .section-title {
        margin: 110px 0 20px;
    }
    #contact .section-title {
        margin: 110px 0 20px;
    }
}
