:root {
    --bg: #eef7ff;
    --bg-soft: #f8fcff;
    --surface: rgba(255, 255, 255, 0.76);
    --surface-strong: #ffffff;
    --primary: #67aee6;
    --primary-deep: #2f6fa7;
    --accent: #98d8f4;
    --text: #1f3850;
    --text-soft: #5f7c93;
    --line: rgba(111, 165, 210, 0.22);
    --shadow: 0 18px 45px rgba(108, 154, 199, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(160, 222, 255, 0.58), transparent 32%),
        radial-gradient(circle at top right, rgba(202, 235, 255, 0.85), transparent 28%),
        linear-gradient(180deg, #f5fbff 0%, #eef7ff 48%, #e7f3ff 100%);
}

a {
    color: #0f69c2;
    text-decoration: none;
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(245, 251, 255, 0.78);
    border-bottom: 1px solid rgba(126, 180, 220, 0.18);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-deep);
}

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

.nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--text-soft);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
    background: rgba(103, 174, 230, 0.12);
    color: var(--primary-deep);
    transform: translateY(-1px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 36px;
    align-items: center;
    padding: 72px 0 48px;
}

.hero-copy {
    padding: 10px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(152, 216, 244, 0.18);
    color: var(--primary-deep);
    font-size: 0.95rem;
    font-weight: 600;
}

.hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0;
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-soft);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.button-primary {
    background: linear-gradient(135deg, #79bbea, #5f9dd2);
    color: #fff;
    box-shadow: 0 12px 28px rgba(95, 157, 210, 0.28);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(103, 174, 230, 0.24);
    color: var(--primary-deep);
}

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

.hero-visual {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
}

.avatar-panel {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 1 / 1.08;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(231, 245, 255, 0.9));
    box-shadow: var(--shadow);
    border: 1px solid rgba(155, 206, 240, 0.28);
    overflow: hidden;
}

.avatar-panel::before,
.avatar-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(152, 216, 244, 0.35);
}

.avatar-panel::before {
    width: 220px;
    height: 220px;
    top: -70px;
    right: -45px;
}

.avatar-panel::after {
    width: 160px;
    height: 160px;
    bottom: -48px;
    left: -36px;
}

.avatar {
    position: absolute;
    inset: 62px 72px 86px;
    border-radius: 30px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
        url("assets/pic.jpg") center/cover no-repeat;
    border: 1px solid rgba(103, 174, 230, 0.22);
}

.avatar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.avatar-note {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 24px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-soft);
    font-size: 0.95rem;
    box-shadow: 0 12px 24px rgba(120, 167, 208, 0.14);
}

.section {
    padding: 34px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

.section-heading p {
    margin: 0;
    max-width: 520px;
    line-height: 1.8;
    color: var(--text-soft);
}

.intro-card,
.project-card,
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.intro-card {
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.intro-item {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
}

.intro-item strong {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-deep);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.intro-item p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.85;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.project-card {
    padding: 24px;
}

.project-tag {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(103, 174, 230, 0.14);
    color: var(--primary-deep);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.project-card h3 {
    margin: 18px 0 12px;
    font-size: 1.28rem;
}

.project-card p {
    margin: 0 0 18px;
    color: var(--text-soft);
    line-height: 1.8;
}

.project-meta {
    color: var(--primary-deep);
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 28px;
}

.contact-card h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
}

.contact-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.contact-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-pill {
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid rgba(103, 174, 230, 0.22);
    color: var(--primary-deep);
    font-weight: 600;
}

.site-footer {
    padding: 34px 0 48px;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.96rem;
}

.site-footer a {
    color: var(--primary-deep);
    font-weight: 600;
}

@media (max-width: 940px) {
    .hero,
    .contact-card,
    .intro-card,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 48px;
    }

    .hero-visual {
        min-height: auto;
    }

    .avatar-panel {
        max-width: 340px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .nav-wrap {
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions,
    .contact-links {
        width: 100%;
    }

    .button,
    .contact-pill {
        width: 100%;
    }

    .avatar {
        inset: 48px 38px 92px;
    }

    .avatar::before {
        width: 128px;
        height: 128px;
        font-size: 2.4rem;
    }
}
