:root {
    --bg:#f8f9f6;
    --ink:#202923;
    --muted:#68716b;
    --line:#dfe4dd;
    --green:#397853;
    --surface:#fff;
    --soft:#edf1e9}
* {
    box-sizing:border-box}
html {
    scroll-behavior:smooth;
    scroll-padding-top:32px}
body {
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
    line-height:1.7}
a {
    color:inherit;
    text-decoration:none}
button,a {
    -webkit-tap-highlight-color:transparent}
a:focus-visible {
    outline:3px solid var(--green);
    outline-offset:6px}
a:hover {
    color:var(--green)}
.wrap {
    width:min(1120px,calc(100% - 80px));
    margin-inline:auto}
.site-header {
    height:108px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid var(--line)}
.brand {
    display:flex;
    align-items:center;
    font-size:18px;
    font-weight:650;
    letter-spacing:-.7px}
.brand-dot,.period {
    color:var(--green)}
.site-header nav {
    display:flex;
    gap:34px;
    font-size:14px;
    color:var(--muted)}
.header-github {
    border:1px solid var(--line);
    border-radius:7px;
    padding:7px 15px;
    font-size:13px}
.header-github span {
    margin-left:14px}
.hero {
    display:grid;
    grid-template-columns:1.3fr 1fr;
    gap:70px;
    align-items:center;
    padding:88px 0 83px}
.eyebrow {
    font-size:10px;
    font-weight:600;
    letter-spacing:2px;
    color:var(--muted);
    display:inline-flex;
    align-items:center;
    gap:9px}
.eyebrow i {
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--green)}
h1 {
    font-size:clamp(42px,4.8vw,62px);
    line-height:1.22;
    letter-spacing:-2.5px;
    font-weight:650;
    margin:23px 0}
h1>span {
    white-space:nowrap}
.hero-description {
    font-size:25px;
    line-height:1.65;
    font-weight:500;
    letter-spacing:.4px;
    margin:0 0 18px}
.hero-detail {
    font-size:13px;
    line-height:1.9;
    color:var(--muted)}
.hero-actions {
    display:flex;
    gap:12px;
    margin-top:29px}
.button {
    display:inline-flex;
    align-items:center;
    gap:24px;
    padding:11px 19px;
    border:1px solid var(--line);
    border-radius:6px;
    font-size:13px;
    transition:transform .2s,background .2s}
.button:hover {
    transform:translateY(-2px)}
.primary {
    background:var(--green);
    border-color:var(--green);
    color:white}
.primary:hover {
    background:#2c6041;
    color:white}
.secondary {
    background:var(--surface)}
.hero-visual {
    position:relative;
    max-width:345px;
    justify-self:center;
    transform:rotate(3deg);
    padding:13px 13px 45px;
    background:#e5ebdf;
    border:1px solid #d7dfd0;
    border-radius:5px;
    box-shadow:12px 16px 0 #ecf0e7}
.portrait-frame {
    position:relative;
    overflow:hidden;
    border-radius:3px}
.portrait-frame img {
    display:block;
    width:100%;
    height:310px;
    object-fit:cover;
    object-position:center 42%;
    filter:saturate(.65)}
.portrait-label {
    position:absolute;
    bottom:15px;
    left:16px;
    color:white;
    font-size:11px;
    letter-spacing:3px;
    text-shadow:0 1px 8px #000}
.code-note {
    position:absolute;
    bottom:23px;
    left:-34px;
    right:4px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    background:var(--surface);
    padding:13px 18px;
    border:1px solid var(--line);
    border-radius:6px;
    transform:rotate(-6deg);
    box-shadow:0 8px 20px #263a2810;
    font-size:13px}
.code-dot {
    width:8px;
    height:8px;
    background:var(--green);
    border-radius:50%}
.code-note code {
    flex:1;
    font-size:12px}
.visual-caption {
    position:absolute;
    right:8px;
    bottom:-40px;
    color:var(--muted);
    font-size:11px;
    letter-spacing:2px;
    transform:rotate(-3deg)}
.intro-strip {
    display:flex;
    justify-content:space-between;
    gap:20px;
    border-block:1px solid var(--line);
    padding:21px 0;
    font-size:12px;
    color:var(--muted)}
.intro-strip>div {
    display:flex;
    gap:28px}
.intro-strip>span {
    color:var(--ink)}
section[id] {
    scroll-margin-top:30px}
.projects-section {
    padding:78px 0}
.section-heading {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin-bottom:30px}
h2 {
    font-size:30px;
    line-height:1.4;
    letter-spacing:-.8px;
    font-weight:600;
    margin:12px 0 0}
.text-link {
    font-size:12px;
    color:var(--muted);
    white-space:nowrap}
.text-link span {
    margin-left:12px}
.projects-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px}
.project-card {
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:20px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:9px;
    padding:24px;
    transition:transform .2s,border-color .2s,box-shadow .2s}
.project-card:hover {
    color:var(--ink);
    transform:translateY(-4px);
    border-color:#9bb59f;
    box-shadow:0 8px 24px #23322709}
.featured {
    background:var(--soft);
    border-color:#cbd8c7}
.project-top {
    display:flex;
    justify-content:space-between;
    align-items:center}
.project-symbol {
    display:grid;
    place-items:center;
    width:37px;
    height:37px;
    background:#f0f3ed;
    border:1px solid var(--line);
    border-radius:9px;
    font-size:19px;
    font-weight:600;
    color:var(--green)}
.featured .project-symbol {
    background:var(--green);
    color:white;
    border-color:var(--green)}
.arrow {
    color:var(--muted)}
.project-card h3 {
    font-size:16px;
    letter-spacing:-.3px;
    overflow-wrap:anywhere;
    line-height:1.5;
    margin:0 0 9px}
.project-card p {
    font-size:12px;
    color:var(--muted);
    margin:0;
    line-height:1.9}
.project-card>div:nth-child(2) {
    flex:1}
.project-meta {
    border-top:1px solid var(--line);
    padding-top:15px;
    display:flex;
    justify-content:space-between;
    font-size:10px;
    color:var(--muted);
    gap:8px}
.project-meta b {
    display:inline-block;
    width:6px;
    height:6px;
    border-radius:50%;
    background:#bf8d5b;
    margin-right:5px}
.about-section {
    border-top:1px solid var(--line);
    padding:60px 0;
    display:grid;
    grid-template-columns:1fr 1.25fr;
    gap:80px}
.about-copy p {
    font-size:14px;
    color:var(--muted);
    margin:0 0 17px;
    line-height:1.95}
.about-tags {
    display:flex;
    gap:10px;
    margin-top:24px}
.about-tags span {
    font-size:11px;
    padding:3px 11px;
    background:#edf0e9;
    border-radius:4px;
    color:#566550}
.contact-section {
    background:#edf1e9;
    border:1px solid #dce4d6;
    border-radius:10px;
    padding:42px 46px;
    display:flex;
    justify-content:space-between;
    gap:30px;
    align-items:center}
.contact-section h2 {
    font-size:29px}
.contact-section p {
    font-size:13px;
    color:var(--muted);
    margin:13px 0}
.email-link {
    font-size:21px;
    letter-spacing:-.6px}
.email-link span {
    margin-left:15px;
    color:var(--green)}
.contact-links {
    display:flex;
    gap:24px;
    margin-top:22px;
    font-size:12px;
    color:var(--muted)}
.wechat-card {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    font-size:10px;
    color:var(--muted);
    flex-shrink:0}
.wechat-card img {
    background:white;
    object-fit:contain;
    border-radius:5px}
.resources {
    display:flex;
    justify-content:center;
    gap:25px;
    padding:29px 0 45px;
    font-size:11px;
    color:var(--muted)}
.resources>span {
    color:#798178}
.site-footer {
    border-top:1px solid var(--line);
    padding:25px 0 35px;
    display:flex;
    justify-content:space-between;
    gap:15px;
    color:var(--muted);
    font-size:10px}
.site-footer>span:last-child {
    display:flex;
    gap:22px}
.skip-link {
    position:fixed;
    left:16px;
    top:-100px;
    padding:10px;
    background:var(--surface);
    z-index:10}
.skip-link:focus {
    top:10px}
@media(min-width:1400px) {
    .hero {
    padding-block:100px}
}
@media(max-width:900px) {
    .wrap {
    width:calc(100% - 48px)}
.hero {
    gap:35px}
.hero-visual {
    max-width:280px}
.portrait-frame img {
    height:270px}
.projects-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))}
.hero-description {
    font-size:22px}
.about-section {
    gap:35px}
.hero-actions {
    gap:8px}
.button {
    padding:10px 13px;
    gap:12px}
}
@media(max-width:620px) {
    .wrap {
    width:calc(100% - 40px)}
.site-header {
    height:80px}
.brand {
    font-size:15px}
.header-github {
    display:none}
.site-header nav {
    gap:18px;
    font-size:12px}
.hero {
    grid-template-columns:1fr;
    padding:48px 0 65px;
    gap:45px}
.eyebrow {
    font-size:9px;
    letter-spacing:1.4px}
h1 {
    font-size:49px}
.hero-description {
    font-size:23px}
.hero-detail {
    font-size:12px}
.hero-visual {
    width:245px;
    justify-self:center}
.portrait-frame img {
    height:236px}
.code-note {
    left:-19px}
.intro-strip {
    flex-direction:column;
    gap:10px;
    padding:18px 0}
.intro-strip>div {
    gap:21px;
    font-size:11px}
.projects-section {
    padding:48px 0}
.section-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:15px}
h2 {
    font-size:25px}
.projects-grid {
    grid-template-columns:1fr}
.project-card {
    padding:22px;
    gap:18px}
.project-card p {
    font-size:13px}
.about-section {
    grid-template-columns:1fr;
    gap:25px;
    padding:40px 0}
.contact-section {
    padding:28px 23px;
    align-items:flex-start;
    flex-direction:column;
    gap:30px}
.contact-section h2 {
    font-size:24px}
.email-link {
    font-size:19px}
.wechat-card {
    flex-direction:row;
    gap:20px}
.wechat-card img {
    width:74px;
    height:auto}
.contact-links {
    gap:19px}
.site-footer {
    flex-direction:column;
    gap:8px}
.site-footer>span:last-child {
    flex-wrap:wrap;
    gap:12px}
.resources {
    padding-bottom:30px}
}
@media(prefers-reduced-motion:reduce) {
    html {
    scroll-behavior:auto}
*,*::before,*::after {
    transition:none!important}
}

/* Language selection uses a native control for keyboard and mobile support. */
.header-actions {
    display:flex;
    align-items:center;
    gap:12px;
}
.language-switch {
    display:flex;
    align-items:center;
    gap:7px;
    color:var(--muted);
    font-size:12px;
}
.language-switch[hidden] {
    display:none;
}
.language-switch select {
    font:inherit;
    color:var(--ink);
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:7px;
    padding:9px 5px;
    max-width:155px;
    cursor:pointer;
}
.language-switch select:focus-visible {
    outline:3px solid var(--green);
    outline-offset:3px;
}
h1 > span[data-i18n] {
    white-space:normal;
}
.intro-strip > div,.about-tags,.contact-links,.hero-actions {
    flex-wrap:wrap;
}
@media(max-width:900px) {
    .site-header nav {
        gap:20px;
    }
    .header-github {
        display:none;
    }
}
@media(max-width:620px) {
    .site-header {
        height:auto;
        min-height:108px;
        padding-block:16px;
        display:grid;
        grid-template-columns:1fr auto;
        gap:14px 8px;
    }
    .site-header nav {
        grid-column:1 / -1;
        grid-row:2;
        justify-content:center;
        gap:28px;
    }
    .language-switch {
        gap:4px;
        font-size:11px;
    }
    .language-switch select {
        max-width:125px;
        padding-block:8px;
    }
    .header-actions {
        gap:0;
    }
    h1 {
        font-size:clamp(36px,11.5vw,49px);
    }
    .intro-strip > div {
        gap:8px 20px;
    }
}
/* Native GitHub statistics inspired by the profile README. */
.github-section {
    padding:0 0 65px;
}
.github-layout {
    display:grid;
    grid-template-columns:minmax(0,1fr) 300px;
    gap:20px;
}
.github-stats {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:9px;
    overflow:hidden;
}
.github-stat {
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:6px;
    padding:22px 28px;
    transition:background .2s;
}
.github-stat:nth-child(odd) {
    border-right:1px solid var(--line);
}
.github-stat:nth-child(-n+2) {
    border-bottom:1px solid var(--line);
}
.github-stat:hover {
    background:var(--soft);
}
.stat-label {
    font-size:12px;
    color:var(--muted);
}
.github-stat strong {
    font-size:34px;
    line-height:1.25;
    font-weight:600;
    letter-spacing:-1px;
    font-variant-numeric:tabular-nums;
}
.stat-arrow {
    position:absolute;
    right:20px;
    top:24px;
    font-size:12px;
    color:var(--muted);
}
.trend-card {
    display:flex;
    flex-direction:column;
    padding:26px;
    border:1px solid #cbd8c7;
    border-radius:9px;
    background:var(--soft);
    transition:border-color .2s;
}
.trend-card:hover {
    border-color:var(--green);
}
.trend-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.trend-mark {
    color:var(--green);
    font-size:21px;
}
.trend-card h3 {
    font-size:28px;
    font-weight:600;
    letter-spacing:-1px;
    margin:20px 0 9px;
}
.trend-card p {
    font-size:12px;
    color:var(--muted);
    margin:0 0 22px;
    line-height:1.9;
}
.trend-link {
    font-size:12px;
    margin-top:auto;
    color:var(--green);
}
.github-updated {
    font-size:10px;
    color:var(--muted);
    margin:12px 0 0;
}
@media(max-width:900px) {
    .github-layout {
        grid-template-columns:minmax(0,1fr) 250px;
        gap:16px;
    }
    .github-stat {
        padding:20px;
    }
    .stat-arrow {
        display:none;
    }
}
@media(max-width:620px) {
    .github-section {
        padding-bottom:40px;
    }
    .github-layout {
        grid-template-columns:1fr;
    }
    .github-stat {
        padding:20px 18px;
    }
    .github-stat strong {
        font-size:30px;
    }
    .stat-label {
        font-size:11px;
    }
    .trend-card {
        padding:24px;
    }
}
.github-stat:focus-visible {
    outline-offset:-4px;
}
