/* 2026 visual refresh. Original content and responsive breakpoints retained. */
:root{--navy:#103c57;--navy2:#17667c;--blue:#176c86;--cyan:#60eddb;--ink:#172a36;--muted:#607580;--line:#dce6e9;--alt:#f0f5f6;--radius:18px;--container:1160px}
::selection{background:#99efdf;color:#081321}
a:focus-visible,button:focus-visible{outline:3px solid #12a795;outline-offset:5px}
body{background:#fbfcfc}button{font-family:inherit}h1,h2,h3,h4{overflow-wrap:anywhere}
.reading-progress{position:fixed;top:0;left:0;width:100%;height:3px;background:linear-gradient(90deg,#26cab8,#76b7ff);transform:scaleX(0);transform-origin:left;z-index:90;pointer-events:none}
.hero{background:radial-gradient(ellipse at 90% 50%,#123e50 0,transparent 52%),linear-gradient(115deg,#070f1b,#0b2130);isolation:isolate}
.hero::before{width:700px;height:700px;top:-450px;right:5%;background:radial-gradient(circle,#71f3d5,transparent 65%);opacity:.16;pointer-events:none}
.hero::after{content:"";position:absolute;inset:auto 0 0;height:1px;background:linear-gradient(90deg,transparent,#73e6d880,transparent)}
.hero__pattern{opacity:.25;background-size:64px 64px;mask-image:linear-gradient(100deg,transparent,#000);pointer-events:none}
.masthead{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:25px 0;border-bottom:1px solid #ffffff18}
.wordmark{font-size:19px;font-weight:850;letter-spacing:.04em;display:flex;align-items:center;gap:5px}.wordmark span{color:#60eddb;font-weight:400}.wordmark b{font-size:12px;font-weight:500;letter-spacing:.08em;color:#a9becb;margin-left:18px;padding-left:18px;border-left:1px solid #ffffff30}
.masthead__link{font-size:12px;color:#c5d9e3;white-space:nowrap}.masthead__link span{color:#6de3cf;margin-left:12px;font-size:19px}
.hero__layout{grid-template-columns:minmax(0,1fr) 280px;grid-template-areas:"headline portrait" "details portrait";min-height:600px;column-gap:100px;row-gap:22px;padding:68px 0 62px;align-items:start}
.hero__headline{grid-area:headline;align-self:end}.hero__details{grid-area:details;min-width:0}.portrait-wrap{grid-area:portrait;align-self:center;position:relative}
.eyebrow{display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:.17em;opacity:1;color:#98b9c7;margin-bottom:27px}.status-dot{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#65edcc;box-shadow:0 0 14px #65edcc80}
.hero h1{font-size:clamp(58px,6.5vw,82px);font-weight:800;letter-spacing:.1em;margin-bottom:22px;line-height:1.15}.hero__role{font-size:17px;line-height:1.8;color:#bce0e6;max-width:650px;margin-bottom:0;font-weight:500}
.hero__summary{color:#a7bdca;font-size:14px;line-height:1.95;max-width:620px;margin-bottom:20px}.project-tag{font-size:12px;color:#b0e5de;padding:7px 12px;border:1px solid #5aafa644;background:#123b3f66;border-radius:6px;margin-bottom:26px}
.button{border-radius:8px;font-size:13px;gap:24px;min-height:48px}.button--primary{background:#94f1df;color:#10252e;box-shadow:0 6px 30px #38e5c015}.button--primary:hover{background:#b3ffed;box-shadow:0 8px 32px #38e5c02a}.button--ghost{border-color:#ffffff30;background:#ffffff05;color:#d6e3e9}.button--ghost:hover{background:#ffffff12}
.stats{margin:32px 0 0;gap:24px;padding-top:25px;border-top:1px solid #ffffff16;grid-template-columns:repeat(3,minmax(0,1fr))}.stats div{border-left:0;padding-left:0}.stats dt{font-size:28px;font-weight:650;color:#f0f8fa;letter-spacing:-.04em}.stats dd{margin-top:8px;color:#8da8b9;font-size:11px}
.portrait-card{position:relative;padding:10px;width:280px;border-radius:14px;border:1px solid #8ce5dc40;background:linear-gradient(135deg,#ffffff14,#ffffff04);box-shadow:0 25px 80px #0004;backdrop-filter:none}.portrait-card img{border-radius:7px;aspect-ratio:3/4;height:auto;object-fit:cover}.portrait-card__caption{padding:16px 5px 8px}.portrait-card__caption strong:empty{display:none}.portrait-card__caption span{font-size:9px;color:#99bac6}.portrait-label{position:absolute;top:-27px;left:1px;color:#7da8b9;font:10px ui-monospace,monospace;letter-spacing:.14em}
.hero-orbit{position:absolute;right:-30px;top:100px;width:600px;height:600px;pointer-events:none;opacity:.55;animation:orbit 70s linear infinite}.hero-orbit i{position:absolute;inset:0;border:1px solid #85cfcb24;border-radius:50%}.hero-orbit i:nth-child(2){inset:55px;border-style:dashed}.hero-orbit i:nth-child(3){inset:115px}.hero-orbit::after{content:"";position:absolute;left:82px;top:80px;width:7px;height:7px;border-radius:50%;background:#7cf0d3;box-shadow:0 0 18px #7cf0d3}
@keyframes orbit{to{transform:rotate(360deg)}}
.section-nav{background:#fbfcfcf0;border-bottom-color:#dde7e9}.section-nav__inner{justify-content:space-between;gap:16px}.section-nav a{position:relative;font-size:13px;letter-spacing:.04em;padding:20px 12px;color:#637780}.section-nav a::after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;background:#218c87;transform:scaleX(0);transition:transform .2s}.section-nav a.is-active{color:#145968}.section-nav a.is-active::after,.section-nav a:hover::after{transform:scaleX(1)}
.section{padding:78px 0;scroll-margin-top:76px}.section-heading{margin-bottom:32px;gap:24px}.section-heading h2{font-size:30px;letter-spacing:-.025em}.section-heading>div{gap:15px}.section-index{font:700 12px ui-monospace,monospace;color:#fff;letter-spacing:.04em;border:1px solid #176c86;border-radius:8px;min-width:36px;height:36px;display:inline-grid;place-items:center;background:#176c86;box-shadow:0 7px 18px #176c8626}.section-heading p{font-size:10px;letter-spacing:.08em;color:#75878e;text-align:right}
.filter{border-radius:6px;font-size:12px;padding:8px 18px}.filter.is-active{background:#133e4b;border-color:#133e4b}.filter:hover{border-color:#207e81}
.certificate-card,.media-card,.paper-card,.patent-card{box-shadow:0 4px 18px #18364406;border-color:#dae5e7}.certificate-card:hover,.media-card:hover,.patent-card:hover{box-shadow:0 16px 35px #18364412;border-color:#99c3c6}
.certificate-card .image-button{background:#eef2f3;padding:16px}.certificate-card .image-button img{object-fit:contain}.badge{border-radius:4px;font-size:10px;left:12px;top:12px;background:#123e4bef;box-shadow:0 3px 12px #0001}
.certificate-card__body{padding:20px}.certificate-card h3,.media-card h3{font-size:16px;line-height:1.65}.certificate-card__meta{font-size:11px}.certificate-card p{font-size:13px}.media-card__body{padding:20px}.media-card__source{font-size:11px}.media-card p{line-height:1.9}.media-card .image-button{padding:12px;background:#eef2f3}.media-card .image-button img{background:transparent}
.research-stack{display:grid;gap:38px}.research-panel{min-width:0}.research-panel__header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.research-panel__eyebrow{font-size:10px;letter-spacing:.18em;color:#6c888d}.research-panel__header h3{font-size:19px;margin:4px 0 0}.research-count{font-size:11px;color:#397078;border:1px solid #cddfe1;border-radius:6px;padding:4px 10px;white-space:nowrap}.paper-list{display:grid;gap:22px}
.paper-card{grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr)}.paper-card__media{background:#e7eef0;padding:20px;display:flex;align-items:center}.paper-card .image-button{min-height:0;height:320px}.paper-card .image-button img{object-fit:contain;background:#e7eef0}.paper-card__body{padding:30px;min-width:0}.paper-card__topline{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.paper-card__number{font:12px ui-monospace,monospace;color:#7a9199}.paper-card__label{margin:0;font-size:10px;border-radius:4px;background:#e6f3ef;color:#236d60}.paper-card h3{font-size:20px;line-height:1.55}.paper-card__citation{font-size:13px;overflow-wrap:anywhere}.paper-card__meta span{background:#f0f5f6;font-size:11px;border-radius:4px}.paper-card p{font-size:13px;line-height:1.9}
.text-action{display:inline-flex;align-items:center;gap:25px;margin-top:20px;padding:7px 0;border:0;border-bottom:1px solid #94bdbb;background:transparent;color:#176777;font-size:12px;cursor:pointer;min-height:38px}.text-action:disabled{opacity:.5;cursor:default}.text-action span{font-size:16px}
.patent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.patent-card__image{padding:16px;background:#e7eef0}.patent-card__image img{background:transparent}.patent-card__body{padding:22px}.patent-card__topline{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:11px;color:#277480}.patent-card__index{font-family:ui-monospace,monospace;color:#7a9199}.patent-card__meta{display:flex;flex-wrap:wrap;gap:7px 14px;color:#6c7f88;font-size:12px;margin-bottom:18px}.patent-card__number{padding:12px;background:#f1f6f6;border-radius:6px;overflow-wrap:anywhere}.patent-card__number small{display:block;font-size:10px;color:#768b91;margin-bottom:4px}.patent-card__number strong{font-size:12px;font-weight:550}
.section--dark{position:relative;background:radial-gradient(ellipse at 80% 120%,#18535e,transparent 65%),#0a1d2b}.resume-panel h2{font-size:38px}.resume-panel p{font-size:14px}.section-index--light{color:#10252e;border-color:#a0efdf;background:#a0efdf;box-shadow:0 7px 18px #0003}.contact-line{font-size:13px;overflow-wrap:anywhere}.contact-line span{min-width:0}.button--light{background:#a0efdf;color:#15313a}.footer{background:#081722;padding:25px 0}.footer__inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;font-size:12px}.footer .icp-link{color:#c3d2d8;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}.footer a:hover{color:#a0efdf}
.lightbox{overscroll-behavior:contain}.lightbox__close{width:44px;height:44px}.lightbox img{max-height:calc(90dvh - 100px)}.lightbox figcaption{overflow-wrap:anywhere}body:has(.lightbox[open]){overflow:hidden}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.hero__headline{animation:enter .65s ease both}.hero__details{animation:enter .8s ease both}.portrait-wrap{animation:enter 1s ease both}}@keyframes enter{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}
@media(max-width:980px){.hero__layout{grid-template-columns:minmax(0,1fr) 240px;column-gap:42px;min-height:560px}.portrait-card{width:240px}.hero h1{font-size:64px}.hero__role{font-size:15px}.section-heading p{max-width:220px}.paper-card{grid-template-columns:minmax(220px,.75fr) minmax(0,1.25fr)}.paper-card__body{padding:24px}}
@media(max-width:720px){.container{width:calc(100% - 36px)}.masthead{padding:19px 0}.wordmark{font-size:16px}.wordmark b{font-size:10px;margin-left:8px;padding-left:10px}.masthead__link{font-size:10px}.masthead__link span{margin-left:3px}.hero__layout{grid-template-columns:minmax(0,1fr) 110px;grid-template-areas:"headline portrait" "details details";column-gap:18px;row-gap:26px;min-height:0;padding:40px 0 38px}.hero__headline{align-self:center}.portrait-wrap{order:0;align-self:center}.portrait-card{width:110px;padding:5px;border-radius:9px}.portrait-card img{border-radius:5px}.portrait-label{display:none}.portrait-card__caption{display:none}.eyebrow{font-size:8px;letter-spacing:.05em;gap:6px;line-height:1.8;margin-bottom:16px;max-width:230px}.hero h1{font-size:43px;letter-spacing:.06em;margin-bottom:14px}.hero__role{font-size:12px;line-height:1.85;margin:0}.hero__summary{font-size:13px;line-height:1.95;margin-bottom:16px}.project-tag{font-size:11px;border-radius:5px;margin-bottom:23px}.hero__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.button{padding:0 12px;font-size:12px;gap:12px;min-height:46px}.stats{margin-top:26px;padding-top:24px;gap:14px}.stats dt{font-size:23px}.stats dd{font-size:10px;line-height:1.55;margin-top:6px}.hero-orbit{width:400px;height:400px;right:-170px;top:65px;animation:none;opacity:.35}.section-nav__inner{gap:6px;justify-content:space-between;width:100%;padding-inline:12px}.section-nav a{font-size:12px;padding:16px 8px;letter-spacing:0}.section-nav a::after{left:8px;right:8px}.section{padding:48px 0;scroll-margin-top:64px}.section-heading{gap:11px;margin-bottom:24px}.section-heading h2{font-size:25px}.section-heading>div{gap:11px}.section-heading p{text-align:left;max-width:none;font-size:9px;padding-left:43px}.section-index{font-size:10px}.filters{gap:8px;margin-bottom:20px}.filter{font-size:12px;padding:8px 16px;min-height:40px}.card-grid,.media-grid{gap:18px}.paper-card{grid-template-columns:1fr}.paper-card__media{padding:18px}.paper-card .image-button{height:250px;aspect-ratio:auto}.paper-card__body{padding:22px}.paper-card h3{font-size:18px}.research-stack{gap:30px}.patent-grid{grid-template-columns:1fr}.resume-panel{gap:22px}.resume-panel h2{font-size:31px}.contact-line{font-size:12px;gap:9px}.footer__inner{flex-direction:column;text-align:center;gap:14px}.lightbox{width:calc(100% - 20px);max-height:94dvh}.lightbox figcaption{font-size:12px}.lightbox img{max-height:calc(90dvh - 130px)}}
@media(max-width:360px){.wordmark b{display:none}.hero__layout{grid-template-columns:minmax(0,1fr) 94px;gap:22px 12px}.portrait-card{width:94px}.hero h1{font-size:36px}.eyebrow{font-size:7px}.section-nav a{font-size:11px;padding-inline:7px}.section-heading h2{font-size:22px}.stats{gap:8px}.stats dt{font-size:21px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}


/* ============================================================
   Mobile card column selector
   - Only active at <= 720px, so desktop layout stays unchanged.
   - Applies to certificate / patent / media / project card grids.
   - Publication cards remain single-column for text readability.
   ============================================================ */

.mobile-layout-toolbar{display:none;}
@media(max-width:720px)
{
.mobile-layout-toolbar{display:block;margin:0 0 18px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;}
.mobile-layout-toolbar__inner{display:flex;align-items:center;gap:14px;min-height:auto;}
.mobile-layout-toolbar__label{ flex:0 0 auto;font-size:11px;font-weight:700;letter-spacing:.08em; color:#75878e; white-space:nowrap;}
.mobile-layout-control{ --mobile-cols-index:0;position:relative;flex:1;display:grid;grid-template-columns:repeat(3,1fr);width:auto;padding:3px;border:1px solid #d8e4e6;border-radius:8px;background:#f5f8f8;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none;}
.mobile-layout-control::before{content:"";position:absolute;left:3px;top:3px;bottom:3px;width:calc((100% - 6px)/3);border-radius:6px;background:#133e4b;transform:translateX(calc(var(--mobile-cols-index)*100%));transition:transform .22s ease;box-shadow:none; }
.mobile-layout-control button{position:relative;z-index:1;min-height:34px;padding:0 6px;border:0;background:transparent;color:#647980; font-size:11px;font-weight:700;cursor:pointer;} .mobile-layout-control button[aria-pressed="true"]{color:#fff;}
}
  body[data-mobile-columns="2"] .mobile-layout-control{--mobile-cols-index:1}
  body[data-mobile-columns="3"] .mobile-layout-control{--mobile-cols-index:2}

  body[data-mobile-columns="1"] .card-grid,
  body[data-mobile-columns="1"] .patent-grid,
  body[data-mobile-columns="1"] .media-grid{grid-template-columns:1fr}

  body[data-mobile-columns="2"] .card-grid,
  body[data-mobile-columns="2"] .patent-grid,
  body[data-mobile-columns="2"] .media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}

  body[data-mobile-columns="3"] .card-grid,
  body[data-mobile-columns="3"] .patent-grid,
  body[data-mobile-columns="3"] .media-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}

  body[data-mobile-columns="2"] .certificate-card .image-button,
  body[data-mobile-columns="2"] .media-card .image-button,
  body[data-mobile-columns="2"] .patent-card__image{padding:9px}
  body[data-mobile-columns="2"] .certificate-card__body,
  body[data-mobile-columns="2"] .media-card__body,
  body[data-mobile-columns="2"] .patent-card__body{padding:12px}
  body[data-mobile-columns="2"] .certificate-card h3,
  body[data-mobile-columns="2"] .media-card h3,
  body[data-mobile-columns="2"] .patent-card__body h4{font-size:13px;line-height:1.55}
  body[data-mobile-columns="2"] .certificate-card p,
  body[data-mobile-columns="2"] .media-card p,
  body[data-mobile-columns="2"] .patent-card__meta,
  body[data-mobile-columns="2"] .patent-card__number{font-size:11px}
  body[data-mobile-columns="2"] .certificate-card__meta,
  body[data-mobile-columns="2"] .media-card__source,
  body[data-mobile-columns="2"] .patent-card__topline{font-size:10px}

  body[data-mobile-columns="3"] .certificate-card,
  body[data-mobile-columns="3"] .media-card,
  body[data-mobile-columns="3"] .patent-card{border-radius:10px}
  body[data-mobile-columns="3"] .certificate-card .image-button,
  body[data-mobile-columns="3"] .media-card .image-button,
  body[data-mobile-columns="3"] .patent-card__image{padding:6px}
  body[data-mobile-columns="3"] .certificate-card__body,
  body[data-mobile-columns="3"] .media-card__body,
  body[data-mobile-columns="3"] .patent-card__body{padding:8px}
  body[data-mobile-columns="3"] .certificate-card h3,
  body[data-mobile-columns="3"] .media-card h3,
  body[data-mobile-columns="3"] .patent-card__body h4{font-size:10.5px;line-height:1.5;margin-bottom:5px}
  body[data-mobile-columns="3"] .certificate-card p,
  body[data-mobile-columns="3"] .media-card p,
  body[data-mobile-columns="3"] .patent-card__meta,
  body[data-mobile-columns="3"] .patent-card__number{font-size:9px;line-height:1.55}
  body[data-mobile-columns="3"] .certificate-card__meta,
  body[data-mobile-columns="3"] .media-card__source,
  body[data-mobile-columns="3"] .patent-card__topline{font-size:8.5px;gap:4px}
  body[data-mobile-columns="3"] .badge{left:6px;top:6px;padding:3px 5px;font-size:8px}
  body[data-mobile-columns="3"] .text-action--compact{font-size:9px;gap:6px;margin-top:9px;min-height:30px}
  body[data-mobile-columns="3"] .patent-card__number{padding:7px}
  body[data-mobile-columns="3"] .patent-card__number small{font-size:8px}
  body[data-mobile-columns="3"] .patent-card__number strong{font-size:9px}

  .section-index{min-width:36px;height:36px;font-size:11px}
}

/* ============================================================
   Section heading alignment refinement
   - Keep the current visual language; only improve optical alignment
     between the numbered badge and the Chinese section title.
   ============================================================ */
.section-heading > div{
  align-items:center;
}
.section-heading h2{
  margin:0;
  line-height:1.16;
}
.section-index{
  width:40px;
  min-width:40px;
  height:40px;
  flex:0 0 40px;
  line-height:1;
  border-radius:9px;
  box-shadow:0 5px 14px #176c8620;
}

@media(max-width:720px){
  .section-heading > div{gap:10px}
  .section-heading h2{line-height:1.18}
  .section-index{
    width:36px;
    min-width:36px;
    height:36px;
    flex-basis:36px;
    border-radius:8px;
  }
  .section-heading p{padding-left:46px}
}

/* ============================================================
   Job-search emphasis
   - Adds clear target roles / core skills without changing the
     existing two-column desktop hero structure.
   - Project cards use a recruiter-friendly: overview / role /
     technology / result hierarchy.
   ============================================================ */
.career-focus{display:grid;gap:10px;margin:0 0 18px;padding:14px 15px;border:1px solid #ffffff18;border-radius:10px;background:#ffffff08}
.career-focus__row{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:start;gap:12px}
.career-focus__label{padding-top:4px;color:#75e6d2;font-size:10px;font-weight:800;letter-spacing:.08em;white-space:nowrap}
.career-focus__roles,.career-focus__skills{display:flex;flex-wrap:wrap;gap:7px}
.career-focus__roles span{color:#eef9fb;font-size:12px;font-weight:700}
.career-focus__roles span:not(:last-child)::after{content:"/";margin-left:7px;color:#668792;font-weight:400}
.career-focus__skills span{padding:4px 8px;border:1px solid #75e6d22b;border-radius:5px;background:#75e6d20c;color:#bcd8df;font-size:10.5px;line-height:1.4}
.hero__actions .button--primary{font-weight:800}

.section--job-focus .section-heading{position:relative}
.job-focus-badge{display:inline-flex;align-items:center;min-height:24px;margin-left:2px;padding:0 8px;border:1px solid #8dcfc8;border-radius:999px;background:#e7f7f4;color:#176c68;font-size:10px;font-weight:800;letter-spacing:.05em;white-space:nowrap}
.project-card{border-color:#cfdfe2}
.project-card__source{align-items:flex-start}
.project-card__body{display:flex;flex-direction:column}
.project-card__role{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 15px}
.project-card__role span{padding:4px 8px;border-radius:6px;background:#e9f4f5;color:#176c86;font-size:11px;font-weight:800}
.project-card__summary,.project-card__detail,.project-card__tech{padding-top:13px;border-top:1px solid #edf1f2}
.project-card__detail,.project-card__tech{margin-top:13px}
.project-card__label{display:block;margin-bottom:6px;color:#294d5b;font-size:10px;font-weight:850;letter-spacing:.09em}
.project-card__summary p,.project-card__detail p{margin:0;color:#607580;font-size:12.5px;line-height:1.85}
.project-card__result{margin-bottom:1px}
.tech-tags{display:flex;flex-wrap:wrap;gap:6px}
.tech-tags span{padding:5px 7px;border:1px solid #d8e6e7;border-radius:5px;background:#f4f8f8;color:#385965;font-size:10.5px;font-weight:700;line-height:1.2}

@media(max-width:720px){
  .career-focus{gap:9px;margin-bottom:15px;padding:12px}
  .career-focus__row{grid-template-columns:54px minmax(0,1fr);gap:8px}
  .career-focus__label{font-size:9px}
  .career-focus__roles span{font-size:10.5px}
  .career-focus__skills{gap:5px}
  .career-focus__skills span{font-size:9.5px;padding:4px 6px}
  .job-focus-badge{min-height:21px;padding-inline:7px;font-size:9px}
  .project-card__summary p,.project-card__detail p{font-size:12px;line-height:1.75}
  .tech-tags span{font-size:9.5px}

  body[data-mobile-columns="2"] .project-card__role{margin-bottom:10px}
  body[data-mobile-columns="2"] .project-card__summary,
  body[data-mobile-columns="2"] .project-card__detail,
  body[data-mobile-columns="2"] .project-card__tech{padding-top:9px}
  body[data-mobile-columns="2"] .project-card__detail,
  body[data-mobile-columns="2"] .project-card__tech{margin-top:9px}
  body[data-mobile-columns="2"] .project-card__label{font-size:8.5px;margin-bottom:4px}
  body[data-mobile-columns="2"] .project-card__summary p,
  body[data-mobile-columns="2"] .project-card__detail p{font-size:10px;line-height:1.6}
  body[data-mobile-columns="2"] .tech-tags{gap:4px}
  body[data-mobile-columns="2"] .tech-tags span{font-size:8px;padding:3px 5px}

  /* Three columns are intentionally a quick-scan mode. Full project
     details remain available in one- and two-column modes. */
  body[data-mobile-columns="3"] .project-card__role,
  body[data-mobile-columns="3"] .project-card__summary,
  body[data-mobile-columns="3"] .project-card__detail{display:none}
  body[data-mobile-columns="3"] .project-card__tech{margin-top:7px;padding-top:7px}
  body[data-mobile-columns="3"] .project-card__label{font-size:7.5px;margin-bottom:4px}
  body[data-mobile-columns="3"] .tech-tags{gap:3px}
  body[data-mobile-columns="3"] .tech-tags span{font-size:7.5px;padding:3px 4px}
  body[data-mobile-columns="3"] .tech-tags span:nth-child(n+4){display:none}
}


/* ============================================================
   Hero achievement summary — compact alignment refinement
   - Keep three columns on desktop.
   - Make heading smaller and keep “title - value” on one line.
   - Increase the visual gap between columns.
   ============================================================ */
.stats{
  grid-template-columns:minmax(235px,1.18fr) minmax(205px,1fr) minmax(190px,.92fr);
  align-items:start;
  column-gap:42px;
  row-gap:18px;
  margin-top:30px;
  padding-top:22px;
}
.stats__item{min-width:0}
.stats dt.stats__heading{
  display:flex;
  align-items:baseline;
  gap:6px;
  margin:0;
  color:#f0f8fa;
  font-size:21px;
  font-weight:760;
  line-height:1.24;
  letter-spacing:-.025em;
  white-space:nowrap;
}
.stats__name{min-width:0}
.stats__separator{
  flex:0 0 auto;
  color:#6b95a5;
  font-weight:500;
  transform:translateY(-1px);
}
.stats__value{
  flex:0 0 auto;
  color:#f0f8fa;
  font-weight:820;
}
.stats dd{display:block;margin:8px 0 0}
.stats__details{
  display:grid;
  gap:3px;
  margin:0;
  padding:0;
  list-style:none;
  color:#82a1af;
  font-size:9.5px;
  line-height:1.5;
}
.stats__details li{position:relative;padding-left:9px}
.stats__details li::before{
  content:"";
  position:absolute;
  left:0;
  top:.68em;
  width:3px;
  height:3px;
  border-radius:50%;
  background:#65d9c5;
}

@media(max-width:980px){
  .stats{
    grid-template-columns:minmax(210px,1.16fr) minmax(180px,1fr) minmax(170px,.9fr);
    column-gap:24px;
  }
  .stats dt.stats__heading{font-size:18px;gap:5px}
  .stats__details{font-size:9px}
}

@media(max-width:720px){
  .stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-top:25px;
    padding-top:20px;
  }
  .stats dt.stats__heading{
    display:block;
    font-size:13px;
    line-height:1.38;
    white-space:normal;
  }
  .stats__separator{margin:0 3px;transform:none}
  .stats dd{margin-top:6px}
  .stats__details{gap:3px;font-size:8px;line-height:1.45}
  .stats__details li{padding-left:7px}
  .stats__details li::before{width:2px;height:2px;top:.66em}
}

@media(max-width:390px){
  .stats{grid-template-columns:1fr;gap:15px}
  .stats__item{padding:0 0 13px;border-bottom:1px solid #ffffff14}
  .stats__item:last-child{padding-bottom:0;border-bottom:0}
  .stats dt.stats__heading{display:flex;font-size:17px;white-space:nowrap}
  .stats__details{font-size:9px}
}

/* ============================================================
   证书区布局修正
   目标：
   - 电脑端固定两列（像 academic 的效果）
   - 手机端才允许单列/双列/三列切换
   ============================================================ */

/* ---------- 电脑端：固定两列 ---------- */
@media (min-width: 981px) {

  #certificateGrid.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
  }

  #certificateGrid .certificate-card {
    width: 100%;
    min-width: 0;
  }

  #certificateGrid .image-button,
  #certificateGrid .image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: block;
  }

  #certificateGrid .image-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f7f9fb;
  }
}


/* ---------- 手机/平板：布局切换只在小屏生效 ---------- */
@media (max-width: 980px) {

  body.mobile-cols-1 #certificateGrid.card-grid {
    grid-template-columns: 1fr;
  }

  body.mobile-cols-2 #certificateGrid.card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mobile-cols-3 #certificateGrid.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
