*
{
    box-sizing: border-box;
}

html
{
    scroll-behavior: smooth;
}

body
{
    margin: 0;
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

img
{
    max-width: 100%;
    display: block;
}

a
{
    color: inherit;
}

.container
{
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.topbar
{
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.nav
{
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand
{
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right: auto;
}

.brand img
{
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand-title
{
    display: block;
    font-weight: 800;
    color: var(--blue);
}

.brand-subtitle
{
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
}

.nav-links
{
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a
{
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.language-selector
{
    position: relative;
}

.language-current
{
    min-width: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    font-weight: 700;
}

.language-menu
{
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 180px;
    display: none;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.language-selector.open .language-menu
{
    display: block;
}

.language-option
{
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.language-option:hover
{
    background: var(--light);
}

.hero
{
    padding: 84px 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.hero-grid
{
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 56px;
    align-items: center;
}

.eyebrow
{
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero h1
{
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1.05;
}

.hero-role
{
    margin: 22px 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.hero-description
{
    max-width: 760px;
    opacity: 0.92;
}

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

.button
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.button-primary
{
    background: var(--white);
    color: var(--blue-dark);
}

.button-secondary
{
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.portrait-card
{
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.portrait-card img
{
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.portrait-caption
{
    padding: 20px;
    color: var(--text);
}

.portrait-caption strong
{
    display: block;
    font-size: 1.2rem;
}

.portrait-caption span
{
    color: var(--muted);
}

.section
{
    padding: 82px 0;
}

.section-white
{
    background: var(--white);
}

.section-light
{
    background: var(--light);
}

.section-heading
{
    max-width: 860px;
    margin-bottom: 38px;
}

.section-kicker
{
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.section-heading h2,
.contact-content h2
{
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.profile-grid,
.education-grid,
.contact-grid
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.information-card,
.education-card,
.skill-card,
.project-card,
.timeline-content
{
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.information-card,
.education-card,
.skill-card,
.project-card
{
    padding: 28px;
}

.information-list
{
    margin: 0;
}

.information-list div
{
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.information-list div:last-child
{
    border-bottom: 0;
}

.information-list dt
{
    font-weight: 800;
}

.information-list dd
{
    margin: 0;
}

.check-list
{
    padding-left: 22px;
}

.timeline
{
    display: grid;
    gap: 24px;
}

.timeline-item
{
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 24px;
    align-items: start;
}

.timeline-date
{
    padding-top: 20px;
    color: var(--primary-dark);
    font-weight: 800;
}

.timeline-content
{
    padding: 28px;
}

.timeline-content h3
{
    margin-top: 0;
}

.position-title
{
    color: var(--blue);
    font-weight: 800;
}

.education-date,
.project-type
{
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.9rem;
}

.degree
{
    color: var(--blue);
    font-weight: 800;
}

.skills-grid,
.project-grid
{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.project-card strong
{
    display: block;
    margin: 14px 0;
    color: var(--red);
}

.contact-section
{
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.section-kicker-light
{
    color: var(--white);
    opacity: 0.82;
}

.contact-grid
{
    align-items: center;
}

.contact-links
{
    display: grid;
    gap: 10px;
}

.contact-links a
{
    text-decoration: none;
}

.qr-card
{
    justify-self: end;
    width: 260px;
    padding: 22px;
    text-align: center;
    color: var(--text);
    background: var(--white);
    border-radius: var(--radius);
}

.qr-card img
{
    width: 180px;
    margin: 0 auto 14px;
}

.footer
{
    padding: 22px 0;
    background: #0f172a;
    color: var(--white);
}

.footer-content
{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

@media print
{
    .topbar,
    .hero-actions,
    .language-selector
    {
        display: none !important;
    }

    .section
    {
        padding: 28px 0;
    }
}


/* Personal header without logo */
.brand
{
    gap: 0;
}

.curriculum-page
{
    display: block;
}
