:root { --purple:#55198b; --violet:#645beb; --pale:#faf9ff; --lavender:#eeeafe; --ink:#171c28; --muted:#667085; --line:#e5e7eb; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:90px; }
body { margin:0; color:var(--ink); font-family:"Noto Sans SC",sans-serif; }
.english { font-family:"Montserrat","Noto Sans SC",sans-serif; }
.english .logo { font-family:"Montserrat",sans-serif; font-size:22px; font-weight:700; }
a { color:inherit; text-decoration:none; }
.header { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; max-width:1240px; height:76px; margin:auto; padding:0 28px; background:rgba(255,255,255,.92); backdrop-filter:blur(14px); }
.logo { color:var(--purple); font:400 30px "Ma Shan Zheng",cursive; }
.header nav { display:flex; gap:8px; }
.header nav a { padding:11px 13px; border-radius:8px; color:#4b5563; font-size:14px; }
.header nav a:hover { color:var(--purple); background:var(--lavender); }
.header nav .language-switch { border:1px solid var(--purple); color:var(--purple); font-weight:700; }
.nav-toggle { display:none; border:0; background:none; font-size:25px; }
main { overflow:hidden; }
.hero,.section,.contact { max-width:1180px; margin:auto; padding:90px 28px; }
.hero { display:grid; grid-template-columns:1.05fr .95fr; gap:70px; align-items:center; min-height:calc(100vh - 76px); padding-top:60px; }
.hello,.kicker { margin:0 0 10px; color:var(--purple); font-size:12px; font-weight:700; letter-spacing:.18em; }
.hero h1 { margin:0; font-size:clamp(52px,7vw,82px); line-height:1.1; letter-spacing:-.05em; }
.hero h1 span { display:inline-block; font-size:.6em; animation:wave 2s infinite; transform-origin:70% 70%; }
.hero h2 { margin:15px 0 22px; color:#4b5563; font-size:clamp(22px,3vw,32px); font-weight:400; }
.hero-desc { color:var(--muted); font-size:18px; line-height:1.9; }
.socials,.hero-actions { display:flex; gap:12px; margin:25px 0; }
.socials a,.socials span { display:grid; place-items:center; width:42px; height:42px; border-radius:50%; color:#fff; background:var(--ink); font-weight:700; transition:.2s; }
.socials a:hover { background:var(--purple); transform:translateY(-3px); }
.button { display:inline-block; padding:13px 24px; border:2px solid var(--purple); border-radius:7px; color:#fff; background:var(--purple); font-size:13px; font-weight:700; box-shadow:0 5px 14px rgba(85,25,139,.2); transition:.2s; }
.button:hover { transform:translateY(-2px); box-shadow:0 9px 22px rgba(85,25,139,.25); }
.button.outline { color:var(--purple); background:#fff; }
.hero-visual { position:relative; min-height:500px; }
.blob { position:absolute; inset:20px 0 0 20px; border-radius:58% 42% 48% 52%/42% 52% 48% 58%; background:linear-gradient(135deg,#aaa5ff,#d8c7ff); animation:morph 8s ease-in-out infinite; }
.hero-visual img { position:absolute; inset:45px 20px 25px 45px; width:calc(100% - 65px); height:calc(100% - 70px); object-fit:cover; object-position:40% center; border-radius:48% 52% 55% 45%/45% 45% 55% 55%; box-shadow:0 25px 60px rgba(55,30,90,.2); }
.floating-note { position:absolute; right:-8px; bottom:30px; padding:16px 22px; border-radius:13px; background:#fff; box-shadow:0 12px 36px rgba(0,0,0,.14); }
.floating-note b { display:block; color:var(--purple); font-size:25px; }
.floating-note span { color:var(--muted); font-size:12px; }
.section { padding-top:105px; padding-bottom:105px; }
.section-heading { margin-bottom:55px; text-align:center; }
.section-heading h2,.section-copy h2,.contact h2 { margin:0; font-size:clamp(36px,5vw,52px); line-height:1.25; }
.section-heading>p:last-child,.section-copy>p:last-child { color:var(--muted); line-height:1.9; }
.section-heading>p:last-child { max-width:690px; margin:16px auto 0; }
.section#skills { display:grid; grid-template-columns:.8fr 1.2fr; gap:80px; align-items:center; }
.section-copy h2 span { color:var(--purple); }
.skill-panel { padding:35px; border-radius:20px; background:var(--pale); box-shadow:0 12px 40px rgba(63,33,90,.08); }
.tech-cloud { display:flex; flex-wrap:wrap; gap:10px; }
.tech-cloud span { padding:9px 13px; border:1px solid #dcd4f6; border-radius:7px; color:var(--purple); background:#fff; font-size:12px; font-weight:600; }
.skill-panel ul { margin:25px 0 0; padding-left:1.2em; color:var(--muted); line-height:2; }
.projects-section,.honors-section { max-width:none; background:var(--pale); }
.projects-section>* ,.honors-section>* { max-width:1180px; margin-left:auto; margin-right:auto; }
.projects { display:grid; gap:24px; }
.project-card { display:grid; grid-template-columns:140px 1fr; gap:30px; align-items:start; padding:34px; border:1px solid #ece8f5; border-radius:15px; background:#fff; box-shadow:0 7px 24px rgba(0,0,0,.055); transition:.25s; }
.project-card:hover,.experience-card:hover { transform:translateY(-5px); box-shadow:0 15px 35px rgba(85,25,139,.12); }
.card-icon { display:grid; place-items:center; width:130px; min-height:100px; padding:14px; border-radius:22px; color:#fff; background:linear-gradient(135deg,var(--purple),var(--violet)); text-align:center; font-size:16px; font-weight:800; line-height:1.45; }
.card-icon-long { font-size:14px; }
.tag { margin:0; color:var(--purple); font-size:11px; font-weight:700; letter-spacing:.1em; }
.project-card h3 { margin:6px 0 10px; font-size:23px; }
.project-card p:not(.tag),.honor-card p { margin:0; color:var(--muted); line-height:1.8; }
.metrics { display:flex; flex-wrap:wrap; gap:24px; margin-top:20px; }
.metrics span { color:var(--muted); font-size:12px; }
.metrics b { display:block; color:var(--ink); font-size:18px; }
.experience-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.experience-card { overflow:hidden; border-radius:15px; background:#fff; box-shadow:0 10px 32px rgba(0,0,0,.09); transition:.25s; }
.company { display:grid; place-items:center; height:120px; color:#fff; font-size:34px; font-weight:900; }
.company.byte { background:linear-gradient(120deg,#121b2c,#344969); }
.company.tencent { background:linear-gradient(120deg,#1769e0,#43a8ff); }
.experience-body { padding:28px; }
.experience-body time { color:var(--purple); font-size:12px; font-weight:600; }
.experience-body h3 { margin:5px 0 0; font-size:23px; }
.experience-body h4 { margin:2px 0 14px; color:var(--muted); font-weight:400; }
.award { display:inline-block; padding:5px 9px; border-radius:5px; color:var(--purple); background:var(--lavender); font-size:11px; }
.experience-body ul { padding-left:1.2em; color:var(--muted); font-size:13px; line-height:1.9; }
.timeline { position:relative; max-width:850px; margin:auto; }
.timeline:before { content:""; position:absolute; left:40px; top:25px; bottom:25px; width:2px; background:#ddd5f4; }
.timeline-item { position:relative; display:grid; grid-template-columns:80px 1fr; gap:25px; align-items:center; padding:22px 0; }
.dot { position:absolute; left:35px; width:12px; height:12px; border:3px solid var(--purple); border-radius:50%; background:#fff; }
.school-mark { z-index:1; display:grid; place-items:center; width:70px; height:70px; border-radius:50%; color:#fff; background:var(--purple); font-weight:900; }
.school-mark.ali { background:#ff6a00; } .school-mark.netease { background:#d9272e; }
.timeline-item h3 { margin:0; font-size:20px; } .timeline-item p { margin:3px 0; color:var(--muted); } .timeline-item b { color:var(--purple); font-size:13px; }
.honor-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.honor-card { padding:30px; border-radius:14px; background:#fff; box-shadow:0 8px 28px rgba(0,0,0,.06); }
.honor-card>div { font-size:34px; } .honor-card h3 { margin:14px 0 8px; } .honor-card p { font-size:14px; }
.contact { display:flex; justify-content:space-between; align-items:center; gap:40px; }
.contact p { color:var(--muted); } .contact>div:last-child { display:flex; flex-direction:column; align-items:center; gap:13px; } .phone { color:var(--purple); font-weight:600; }
footer { padding:30px; color:#8a8f98; text-align:center; font-size:12px; }
.reveal { opacity:0; transform:translateY(25px); transition:opacity .65s,transform .65s; } .reveal.visible { opacity:1; transform:none; }
@keyframes wave { 0%,60%,100%{transform:rotate(0)} 10%{transform:rotate(14deg)} 20%{transform:rotate(-8deg)} 30%{transform:rotate(14deg)} 40%{transform:rotate(-4deg)} }
@keyframes morph { 0%,100%{border-radius:58% 42% 48% 52%/42% 52% 48% 58%} 50%{border-radius:43% 57% 57% 43%/55% 43% 57% 45%} }
@media(max-width:850px) { .header{height:65px}.nav-toggle{display:block}.header nav{display:none;position:absolute;top:65px;left:15px;right:15px;flex-direction:column;padding:12px;border-radius:10px;background:#fff;box-shadow:0 12px 35px rgba(0,0,0,.13)}.header.open nav{display:flex}.hero{grid-template-columns:1fr;padding-top:55px;text-align:center}.socials,.hero-actions{justify-content:center}.hero-visual{min-height:430px;max-width:520px;width:100%;margin:auto}.section#skills{grid-template-columns:1fr;gap:35px}.experience-grid,.honor-grid{grid-template-columns:1fr}.contact{flex-direction:column;text-align:center} }
@media(max-width:560px) { .hero,.section,.contact{padding-left:20px;padding-right:20px}.hero h1{font-size:48px}.hero-desc{font-size:15px}.hero-visual{min-height:340px}.project-card{grid-template-columns:1fr;padding:25px}.card-icon{width:auto;min-height:64px;border-radius:14px}.section{padding-top:75px;padding-bottom:75px}.skill-panel{padding:24px}.timeline-item{grid-template-columns:65px 1fr;gap:15px}.timeline:before{left:32px}.dot{left:27px}.school-mark{width:58px;height:58px}.hero-actions{flex-direction:column}.button{width:100%;text-align:center} }
@media print { .header,.socials,.hero-actions,.contact,footer{display:none}.hero,.section{min-height:0;padding:30px 20px}.hero-visual{display:none}.reveal{opacity:1;transform:none}.project-card,.experience-card,.honor-card{break-inside:avoid;box-shadow:none} }
