
:root{color-scheme:light;--ink:#253c47;--red:#9e304c;--sky:#eaf6fb;--yellow:#ffe9a2;--line:#ccdce1}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:30px}
body{margin:0;background:#fffefb;color:var(--ink);font:16px/1.8 "Segoe UI","Microsoft YaHei UI",sans-serif}
a{color:inherit;text-decoration:none}
a:focus-visible,summary:focus-visible{outline:3px solid var(--red);outline-offset:5px}
header{max-width:1260px;margin:auto;min-height:94px;display:flex;align-items:center;justify-content:space-between;padding:20px 28px;gap:24px}
.logo{font-size:24px;font-weight:800;display:flex;align-items:center;gap:12px}
.logo span{background:var(--red);color:white;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;font-family:Georgia;font-style:italic}
nav{display:flex;gap:28px}
nav a,.hello{min-height:44px;display:inline-flex;align-items:center}
.hello{border-bottom:2px solid var(--red);font-weight:700}
main{overflow:hidden}
.hero{background:var(--sky);position:relative}
.hero-inner{max-width:1200px;margin:auto;display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center;min-height:650px;padding:54px 28px 58px}
.hello-line{display:flex;align-items:center;gap:10px;font-size:16px;margin:0 0 24px}
.hello-line:before{content:"";width:9px;height:9px;border-radius:50%;background:var(--red)}
h1{font-size:clamp(48px,5.5vw,78px);line-height:1.2;letter-spacing:-3px;margin:0 0 25px;font-weight:800}
h1 span{display:block}
h1 em{font:italic 48px Georgia;color:var(--red);margin-left:15px;letter-spacing:-2px;white-space:nowrap}
.intro{max-width:495px;line-height:1.9;margin:0;color:#475e68}
.actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:30px}
.button{padding:10px 23px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:30px;border:1px solid #99b1bd;transition:transform .18s,background .18s;font-weight:700}
.button:hover{transform:translateY(-3px);background:white}
.button.primary{color:white;background:var(--red);border-color:var(--red)}
.interest{font-size:14px;color:#4f6770;margin:26px 0 0;word-spacing:12px}
.visual{position:relative;max-width:440px;width:100%;justify-self:end;padding:12px 20px}
.sun{position:absolute;right:-30px;top:-28px;width:144px;height:144px;background:var(--yellow);border-radius:50%}
.portrait{position:relative;background:white;padding:13px 13px 0;transform:rotate(4deg);box-shadow:0 12px 25px #4f6f7c18;margin:0}
.portrait img{display:block;width:100%;height:403px;object-fit:cover;object-position:50% 63%;border-radius:3px}
.portrait figcaption{font-size:15px;display:flex;justify-content:space-between;align-items:center;padding:13px 6px 16px;color:#536772}
.portrait figcaption b{font:italic 22px Georgia;color:var(--red)}
.note{position:absolute;left:-28px;bottom:-30px;background:var(--yellow);padding:13px 22px;transform:rotate(-7deg);font-size:15px;box-shadow:0 6px 10px #253c4709}
.scribble{position:absolute;left:-25px;top:9px;width:52px;height:52px;transform:rotate(-12deg);color:var(--red)}
.stats{max-width:1200px;margin:auto;display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr;padding:32px 28px;gap:30px}
.stats .lead{font-size:17px;align-self:center;font-weight:700}
.stat{border-left:1px solid var(--line);padding-left:26px}
.stat strong{font-size:31px;display:block;line-height:1.3;letter-spacing:-1px}
.stat span{font-size:14px;color:#536772}
.section{max-width:1200px;margin:auto;padding:85px 28px}
.section h2{font-size:38px;line-height:1.35;letter-spacing:-1px;margin:0 0 25px}
.about{display:grid;grid-template-columns:1fr 1.4fr;gap:70px}
.about p{margin:0 0 22px}
.traits{display:flex;flex-wrap:wrap;gap:10px}
.traits span{font-size:14px;background:#f5f0e7;padding:5px 12px;border-radius:6px}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:20px}
.section-head p{margin:0 0 26px;color:#536772}
.projects{background:#f8f4f0}
.project{display:grid;grid-template-columns:260px 1fr;gap:52px;padding:38px 0;border-top:1px solid #d8d4d0}
.project-side .project-label{font-size:46px;line-height:1.3;font-weight:800;color:var(--red);letter-spacing:-2px}
.project-side p{margin:12px 0;font-size:14px}
.project h3{font-size:24px;line-height:1.6;margin:0 0 12px}
.project p{margin:0 0 15px}
.tags{display:flex;gap:10px;flex-wrap:wrap;font-size:14px;color:#536772}
.project details{margin-top:20px}
.project summary{cursor:pointer;min-height:44px;display:list-item;padding:8px 0;font-weight:700}
.project li{margin-bottom:9px}
.award{display:inline-block;background:#ffe9a2;padding:6px 12px;font-size:14px;border-radius:6px}
.project-link{display:inline-block;border-bottom:1px solid;min-height:44px;padding:8px 0}
.learning{display:grid;grid-template-columns:1fr 1fr;gap:64px}
.courses summary{cursor:pointer;min-height:44px;padding:8px 0}
.course{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 0}
.skill{padding:18px 0;border-bottom:1px solid var(--line)}
.skill h3{font-size:18px;margin:0 0 4px}
.skill p{font-size:16px;margin:0;color:#536772}
.skill .tags{margin-top:8px}
.honors{background:#edf6ed}
.honor{display:grid;grid-template-columns:110px 1fr auto;gap:22px;border-top:1px solid #c9d9cb;padding:18px 0}
.honor time{font-size:14px}
.honor strong{font-size:16px;color:#324f3a}
.contact{display:grid;grid-template-columns:1fr 1fr;gap:60px}
.contact h2{font-size:46px}
.contact-info a,.contact-info p{display:flex;gap:24px;padding:12px 0;margin:0;min-height:44px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.contact-info span{color:#536772;min-width:60px}
footer{max-width:1200px;margin:auto;border-top:1px solid var(--line);padding:24px 28px;display:flex;justify-content:space-between;font-size:14px;color:#536772}
.skip{position:fixed;left:16px;top:-90px;background:white;padding:10px;z-index:9}
.skip:focus{top:10px}
h1>span{white-space:nowrap}
@media(max-width:900px){.hero-inner{gap:26px}
.hero h1 em{display:block;margin:10px 0 0;font-size:36px}
.hero-inner{padding-top:45px;padding-bottom:45px}
.visual{padding:12px}
.portrait img{height:360px}
.note{left:-10px}
.sun{right:-10px;width:110px;height:110px}
.project{grid-template-columns:200px 1fr;gap:30px}
.about{gap:35px}
.learning{gap:35px}
nav{gap:16px}
.hello{display:none}
}
@media(max-width:600px){header{padding:16px 22px;flex-wrap:wrap;gap:10px;min-height:90px}
.logo{font-size:21px}
nav{gap:16px;width:100%;justify-content:space-between;font-size:14px}
.hero-inner{display:flex;flex-direction:column;align-items:stretch;gap:35px;padding:35px 24px 45px}
.hello-line{font-size:14px;margin-bottom:18px}
h1{font-size:49px;letter-spacing:-2px}
.hero h1 em{display:inline;font-size:29px;margin-left:6px}
.intro{font-size:16px}
.visual{width:calc(100% - 32px);max-width:370px;align-self:center}
.portrait img{height:310px;object-position:50% 63%}
.note{left:-18px;bottom:-28px;font-size:14px;padding:8px 14px}
.portrait figcaption{font-size:14px}
.scribble{left:-20px}
.stats{grid-template-columns:1fr 1fr;padding:28px 24px;gap:24px}
.stats .lead{font-size:16px}
.stat{padding-left:14px}
.stat strong{font-size:27px}
.section{padding:58px 24px}
.section h2{font-size:30px}
.about,.learning,.contact{grid-template-columns:1fr;gap:22px}
.section-head{display:block}
.section-head p{margin-top:-10px;font-size:16px}
.project{display:block;padding:28px 0}
.project-side{display:flex;gap:14px;align-items:center;margin-bottom:15px}
.project-side .project-label{font-size:32px}
.project-side p{font-size:13px}
.project h3{font-size:22px}
.honor{grid-template-columns:1fr auto;gap:6px 12px}
.honor time{grid-column:1/-1}
.honor strong{font-size:14px;align-self:center}
.honor>span{font-size:16px}
.contact-info a,.contact-info p{font-size:14px;gap:10px}
.contact-info span{min-width:50px}
footer{padding:24px;display:block}
footer span{display:block}
.interest{line-height:2}
.actions{gap:10px}
.button{padding:9px 18px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}
*{transition:none!important}
}


.back-top { position:fixed; bottom:20px; right:20px; border:1px solid var(--line); border-radius:28px; background:white; color:var(--ink); padding:12px 18px; min-height:44px; cursor:pointer; font:inherit; box-shadow:0 4px 18px #253c4712; z-index:5; }
.back-top:focus-visible {outline:3px solid var(--red);outline-offset:4px}
footer #year{display:inline}
@media(max-width:360px){h1{font-size:43px}.hero h1 em{font-size:25px}}
