/* ==========================================================================
   个人作品集 · 样式表
   风格：浅色学术极简 + 卡片式布局｜主色：靛蓝
   全站自适应：手机 / 平板 / 桌面
   ========================================================================== */

/* ---------- 设计变量：想换主色，只改这里的 --accent 即可 ---------- */
:root{
  --bg:        #FBFAF8;
  --bg-alt:    #F4F3EF;
  --surface:   #FFFFFF;

  --text:      #191919;
  --text-2:    #4A4A4A;
  --muted:     #8A8A85;

  --line:      #E6E3DC;
  --line-soft: #EFEDE8;

  --accent:      #4046C8;
  --accent-dark: #2F35A8;
  --accent-soft: rgba(64,70,200,.07);
  --accent-line: rgba(64,70,200,.22);

  --radius:    14px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(20,20,30,.04);
  --shadow-md: 0 6px 22px -10px rgba(20,20,40,.18), 0 2px 6px rgba(20,20,40,.04);
  --shadow-lg: 0 26px 70px -24px rgba(20,20,45,.34), 0 4px 14px rgba(20,20,40,.06);

  --font-serif: "Source Han Serif SC","Noto Serif SC","Songti SC",STSong,"SimSun",Georgia,serif;
  --font-sans:  -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Source Han Sans SC",sans-serif;

  --nav-h: 62px;
  --wrap: 1120px;
}

/* ---------- 基础重置 ---------- */
*,*::before,*::after{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  font-size:16px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body.is-locked{ overflow:hidden; }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ margin:0; font-weight:600; letter-spacing:-.01em; }
p{ margin:0; }
ul,ol{ margin:0; padding:0; list-style:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }

/* 关键：作者样式里的 display 会盖掉浏览器默认的 [hidden]，必须显式兜住。
   否则弹窗、灯箱、未启用的头像会一直显示在页面上。 */
[hidden]{ display:none !important; }

:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:4px; }

.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 24px; }


/* ==========================================================================
   顶部导航
   ========================================================================== */
.nav{
  position:sticky; top:0; z-index:60;
  height:var(--nav-h);
  background:rgba(251,250,248,.82);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled{
  border-bottom-color:var(--line);
  box-shadow:0 1px 12px rgba(20,20,40,.045);
}

.nav__inner{
  height:100%; max-width:var(--wrap); margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}

.nav__brand{ display:flex; align-items:baseline; gap:9px; min-width:0; }
.nav__brand-name{ font-family:var(--font-serif); font-size:1.12rem; font-weight:700; letter-spacing:.02em; }
.nav__brand-en{
  font-size:.62rem; letter-spacing:.19em; color:var(--muted);
  text-transform:uppercase; white-space:nowrap;
}

.nav__links{ display:flex; align-items:center; gap:4px; }
.nav__link{
  position:relative; padding:7px 13px; border-radius:8px;
  font-size:.9rem; color:var(--text-2);
  transition:color .2s ease, background .2s ease;
}
.nav__link:hover{ color:var(--text); background:var(--accent-soft); }
.nav__link.is-active{ color:var(--accent); font-weight:600; }
.nav__link.is-active::after{
  content:""; position:absolute; left:13px; right:13px; bottom:1px; height:2px;
  background:var(--accent); border-radius:2px;
}
.nav__resume{
  margin-left:8px; padding:7px 15px;
  background:var(--accent); color:#fff !important;
  font-weight:600; border-radius:999px;
}
.nav__resume:hover{ background:var(--accent-dark); }

.nav__burger{
  display:none; width:42px; height:42px; margin-right:-8px;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.nav__burger span{
  display:block; width:20px; height:2px; background:var(--text);
  border-radius:2px; transition:transform .25s ease, opacity .2s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav__burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }


/* ==========================================================================
   首页 Hero
   ========================================================================== */
.hero{ padding:clamp(52px,8vw,96px) 0 clamp(44px,6vw,72px); }

.hero__inner{
  display:grid; grid-template-columns:minmax(0,1fr) 232px;
  gap:clamp(32px,5vw,64px); align-items:center;
}

.hero__eyebrow{
  font-size:.68rem; letter-spacing:.24em; text-transform:uppercase;
  color:var(--accent); font-weight:700; margin-bottom:16px;
}
.hero__name{
  font-family:var(--font-serif);
  font-size:clamp(2.5rem,6.4vw,3.9rem);
  line-height:1.12; letter-spacing:.01em;
  margin-bottom:14px;
}
.hero__title{
  font-family:var(--font-serif);
  font-size:clamp(1.12rem,2.5vw,1.5rem);
  color:var(--accent); font-weight:600; margin-bottom:8px;
}
.hero__tagline{ color:var(--text-2); font-size:.98rem; margin-bottom:22px; }

.hero__intro p{ color:var(--text-2); font-size:.99rem; line-height:1.85; }
.hero__intro p + p{ margin-top:12px; }

.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.chips li{
  padding:5px 12px; border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface);
  font-size:.79rem; color:var(--text-2);
  letter-spacing:.01em;
}

.hero__actions{ display:flex; flex-wrap:wrap; gap:11px; margin-top:30px; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 22px; border-radius:999px;
  font-size:.9rem; font-weight:600;
  border:1px solid transparent;
  transition:transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn--primary{ background:var(--accent); color:#fff; box-shadow:0 6px 18px -10px var(--accent); }
.btn--primary:hover{ background:var(--accent-dark); transform:translateY(-1px); }
.btn--ghost{ border-color:var(--line); background:var(--surface); color:var(--text-2); }
.btn--ghost:hover{ border-color:var(--accent-line); color:var(--accent); background:var(--accent-soft); }

.hero__media{
  margin:0; position:relative;
  aspect-ratio:4/5; border-radius:var(--radius);
  overflow:hidden; background:var(--bg-alt);
  border:1px solid var(--line);
  box-shadow:var(--shadow-md);
}
.hero__media img{ width:100%; height:100%; object-fit:cover; object-position:center 28%; }

.hero__media-fallback{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
  background:
    linear-gradient(140deg,#EEF0FB 0%,#E3E6F6 55%,#EDEEF8 100%);
  text-align:center;
}
.hero__media-fallback span{
  font-family:var(--font-serif); font-size:clamp(3rem,9vw,4.2rem);
  font-weight:700; color:var(--accent); opacity:.24; letter-spacing:.06em;
}
.hero__media-fallback small{ font-size:.72rem; color:var(--muted); line-height:1.7; padding:0 16px; }


/* ==========================================================================
   区块通用
   ========================================================================== */
.section{ padding:clamp(56px,7vw,88px) 0; }
.section--alt{
  background:var(--bg-alt);
  border-top:1px solid var(--line-soft);
  border-bottom:1px solid var(--line-soft);
}

.sec-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:20px; flex-wrap:wrap;
  margin-bottom:clamp(30px,4vw,44px);
}
.sec-head--center{ flex-direction:column; align-items:center; text-align:center; }

.sec-head__kicker{
  font-size:.68rem; letter-spacing:.24em; text-transform:uppercase;
  color:var(--accent); font-weight:700; margin-bottom:10px;
}
.sec-head__title{
  font-family:var(--font-serif);
  font-size:clamp(1.55rem,3.4vw,2.15rem);
  line-height:1.25;
}
.sec-head__hint{ font-size:.85rem; color:var(--muted); }
.sec-head__hint--center{ margin-top:12px; }

/* 区块小标题：关于我左栏的「教育与经历 / 实习与科研」与右栏的
   「专业技能 / 荣誉证书 / 自我评价」共用同一字号，保持视觉统一 */
.block-title{
  font-family:var(--font-serif);
  font-size:1.15rem; line-height:1.4; margin-bottom:18px;
  padding-bottom:9px; border-bottom:1px solid var(--line);
}


/* ==========================================================================
   作品网格
   ========================================================================== */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(310px,1fr));
  gap:clamp(18px,2.4vw,26px);
}
.grid__empty{ text-align:center; color:var(--muted); font-size:.9rem; padding:40px 0; }

.card{
  display:flex; flex-direction:column;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  text-align:left; width:100%;
  font:inherit; color:inherit; cursor:pointer;
  -webkit-appearance:none; appearance:none;
  box-shadow:var(--shadow-sm);
  transition:transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, border-color .25s ease;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
  border-color:var(--accent-line);
}

.card__cover{
  position:relative; aspect-ratio:16/10;
  background:var(--bg-alt); overflow:hidden;
}
.card__cover img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s cubic-bezier(.2,.7,.3,1);
}
.card:hover .card__cover img{ transform:scale(1.04); }

.card__cat{
  position:absolute; top:12px; left:12px;
  padding:4px 11px; border-radius:999px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(0,0,0,.05);
  font-size:.72rem; font-weight:600; color:var(--accent);
  backdrop-filter:blur(6px);
}

.card__body{ padding:18px 19px 20px; display:flex; flex-direction:column; flex:1; }
.card__title{
  font-family:var(--font-serif);
  font-size:1.09rem; line-height:1.5; margin-bottom:9px;
}
.card__summary{
  font-size:.86rem; color:var(--text-2); line-height:1.72;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.card__meta{
  margin-top:auto; padding-top:15px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  border-top:1px solid var(--line-soft); margin-top:16px;
}
.card__tools{ display:flex; flex-wrap:wrap; gap:6px; }
.card__tools span{
  font-size:.71rem; color:var(--muted);
  padding:3px 9px; border-radius:6px; background:var(--bg-alt);
}
.card__more{
  font-size:.8rem; font-weight:600; color:var(--accent);
  white-space:nowrap; display:inline-flex; align-items:center; gap:4px;
}
.card:hover .card__more{ gap:8px; }
.card__more::after{ content:"→"; transition:transform .25s ease; }


/* ==========================================================================
   关于我
   ========================================================================== */
.about{
  display:grid; grid-template-columns:minmax(0,1.32fr) minmax(0,1fr);
  gap:clamp(26px,4vw,52px); align-items:start;
}

.timeline{ position:relative; padding-left:26px; }
.timeline::before{
  content:""; position:absolute; left:5px; top:8px; bottom:8px;
  width:1px; background:linear-gradient(180deg,var(--accent-line),var(--line) 70%,transparent);
}
/* 「教育与经历」「实习与科研」两块共用 .block-title，之间留出组间距 */
.about__group + .about__group{ margin-top:clamp(30px,3.6vw,44px); }

.tl-item{ position:relative; padding-bottom:28px; }
.tl-item:last-child{ padding-bottom:0; }
.tl-item::before{
  content:""; position:absolute; left:-26px; top:8px;
  width:11px; height:11px; border-radius:50%;
  background:var(--bg-alt); border:2px solid var(--accent);
}
.tl-item--edu::before{ border-color:var(--muted); }
.tl-period{
  display:inline-block; font-size:.75rem; font-weight:700; letter-spacing:.06em;
  color:var(--accent); margin-bottom:6px;
}
.tl-item--edu .tl-period{ color:var(--muted); }
.tl-org{ font-family:var(--font-serif); font-size:1.03rem; margin-bottom:2px; }
.tl-role{ font-size:.86rem; color:var(--text-2); margin-bottom:7px; }
.tl-detail{ font-size:.85rem; color:var(--muted); line-height:1.75; }

.side-group + .side-group{ margin-top:22px; }

.about__side .panel{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px 22px 24px;
  box-shadow:var(--shadow-sm);
}
.about__side .panel + .panel{ margin-top:20px; }
.panel--soft{ background:var(--bg); }

.skills .skill + .skill{ margin-top:16px; }
.skill__name{
  font-size:.79rem; font-weight:700; color:var(--accent);
  letter-spacing:.05em; margin-bottom:8px;
}
.skill__items{ display:flex; flex-wrap:wrap; gap:6px; }
.skill__items li{
  font-size:.78rem; color:var(--text-2);
  padding:4px 10px; border-radius:7px;
  background:var(--bg-alt); border:1px solid var(--line-soft);
}

.honors li{
  position:relative; padding-left:17px;
  font-size:.85rem; color:var(--text-2); line-height:1.72;
}
.honors li + li{ margin-top:9px; }
.honors li::before{
  content:""; position:absolute; left:0; top:11px;
  width:5px; height:5px; border-radius:50%; background:var(--accent); opacity:.55;
}

.eval p{ font-size:.85rem; color:var(--text-2); line-height:1.8; }
.eval p + p{ margin-top:10px; }


/* ==========================================================================
   联系方式
   ========================================================================== */
.contact{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:stretch;
  gap:clamp(16px,2.4vw,24px);
  max-width:760px; margin:0 auto;
}

.contact__card{
  flex:1 1 280px; min-width:0;
  display:flex; align-items:center; gap:15px;
  padding:22px 24px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  transition:border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
a.contact__card:hover{
  border-color:var(--accent-line); transform:translateY(-3px); box-shadow:var(--shadow-md);
}

.contact__icon{
  flex:0 0 42px; width:42px; height:42px; border-radius:11px;
  display:grid; place-items:center;
  background:var(--accent-soft); color:var(--accent);
  font-size:1.05rem; font-weight:700;
}
.contact__body{ display:block; flex:1 1 auto; min-width:0; }
.contact__label{
  display:block;
  font-size:.73rem; color:var(--muted); letter-spacing:.1em; text-transform:uppercase;
}
.contact__value{
  display:block;
  font-size:.98rem; font-weight:600; word-break:break-all; line-height:1.5;
}
.contact__value--sm{ font-size:.86rem; font-weight:500; color:var(--text-2); }

.contact__qr{
  flex:0 0 auto; width:100%; max-width:280px; margin:0 auto;
  padding:22px 24px; text-align:center;
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow-sm);
}
.contact__qr-img{
  width:auto; height:auto;
  max-width:100%; max-height:300px;
  margin:0 auto 12px;
  border-radius:10px; object-fit:contain;
  background:var(--bg-alt); border:1px solid var(--line-soft);
}
.contact__qr-empty{
  width:168px; height:168px; margin:0 auto 12px;
  border:1.5px dashed var(--accent-line); border-radius:10px;
  display:grid; place-items:center; text-align:center;
  color:var(--muted); font-size:.72rem; line-height:1.6; padding:14px;
  background:var(--accent-soft);
}


/* ==========================================================================
   页脚
   ========================================================================== */
.footer{
  border-top:1px solid var(--line);
  padding:26px 0 calc(26px + env(safe-area-inset-bottom));
  background:var(--bg);
}
.footer__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
}
.footer p{ font-size:.8rem; color:var(--muted); }
.footer__top{ font-size:.8rem; color:var(--muted); transition:color .2s ease; }
.footer__top:hover{ color:var(--accent); }


/* ==========================================================================
   作品详情弹窗
   ========================================================================== */
.modal{ position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:22px; }
.modal__backdrop{
  position:absolute; inset:0;
  background:rgba(24,24,32,.5);
  backdrop-filter:blur(3px);
  animation:fadeIn .22s ease;
}
.modal__panel{
  position:relative; z-index:1;
  width:min(940px,100%); max-height:min(88vh,900px);
  background:var(--surface);
  border-radius:18px; overflow:hidden;
  box-shadow:var(--shadow-lg);
  display:flex; flex-direction:column;
  animation:rise .28s cubic-bezier(.2,.8,.3,1);
}
.modal__close{
  position:absolute; top:14px; right:14px; z-index:3;
  width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  display:grid; place-items:center; font-size:.85rem; color:var(--text-2);
  box-shadow:var(--shadow-sm);
  transition:background .2s ease, color .2s ease;
}
.modal__close:hover{ background:var(--accent); color:#fff; border-color:var(--accent); }

.modal__body{ flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; }

.m-hero{ position:relative; aspect-ratio:16/7; background:var(--bg-alt); }
.m-hero img{ width:100%; height:100%; object-fit:cover; }

.m-content{ padding:clamp(22px,3.4vw,36px); }
.m-cat{
  display:inline-block; font-size:.72rem; font-weight:700;
  color:var(--accent); letter-spacing:.11em; text-transform:uppercase;
  margin-bottom:10px;
}
.m-title{
  font-family:var(--font-serif);
  font-size:clamp(1.25rem,3vw,1.72rem); line-height:1.36; margin-bottom:14px;
}
.m-facts{
  display:flex; flex-wrap:wrap; gap:20px 32px;
  padding:15px 0; margin:0 0 20px;
  border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft);
}
.m-fact dt{ font-size:.72rem; color:var(--muted); letter-spacing:.09em; margin-bottom:3px; }
.m-fact dd{ margin:0; font-size:.87rem; font-weight:600; }

.m-summary{ font-size:.95rem; color:var(--text-2); line-height:1.9; }

.m-block{ margin-top:28px; }
.m-block__title{
  font-family:var(--font-serif); font-size:1rem; margin-bottom:13px;
  padding-bottom:8px; border-bottom:1px solid var(--line);
}
.m-list li{
  position:relative; padding-left:19px;
  font-size:.88rem; color:var(--text-2); line-height:1.75;
}
.m-list li + li{ margin-top:8px; }
.m-list li::before{
  content:""; position:absolute; left:0; top:10px;
  width:6px; height:6px; border-radius:2px; background:var(--accent); opacity:.6;
}

.m-gallery{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:12px;
}
.m-gallery button{
  padding:0; border-radius:10px; overflow:hidden;
  border:1px solid var(--line); background:var(--bg-alt);
  aspect-ratio:4/3; cursor:zoom-in;
  transition:transform .22s ease, border-color .22s ease;
}
.m-gallery button:hover{ transform:translateY(-3px); border-color:var(--accent-line); }
.m-gallery img{ width:100%; height:100%; object-fit:cover; }

.m-empty{
  padding:26px; border:1.5px dashed var(--line);
  border-radius:var(--radius-sm); text-align:center;
  color:var(--muted); font-size:.83rem; line-height:1.8;
  background:var(--bg);
}
.m-empty code{
  font-family:ui-monospace,Consolas,monospace; font-size:.79rem;
  background:var(--surface); padding:2px 6px; border-radius:5px;
  border:1px solid var(--line);
}

@keyframes fadeIn{ from{ opacity:0; } to{ opacity:1; } }
@keyframes rise{ from{ opacity:0; transform:translateY(18px) scale(.98); } to{ opacity:1; transform:none; } }


/* ==========================================================================
   图片灯箱
   ========================================================================== */
.lightbox{
  position:fixed; inset:0; z-index:120;
  display:flex; align-items:center; justify-content:center;
  background:rgba(16,16,22,.93); padding:56px 20px;
  animation:fadeIn .2s ease;
}
.lightbox img{
  max-width:min(1180px,100%); max-height:100%;
  object-fit:contain; border-radius:8px;
}
.lightbox__close{
  position:absolute; top:18px; right:20px;
  width:42px; height:42px; border-radius:50%;
  color:#fff; font-size:1rem; background:rgba(255,255,255,.12);
  display:grid; place-items:center; transition:background .2s ease;
}
.lightbox__close:hover{ background:rgba(255,255,255,.24); }
.lightbox__nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:48px; height:48px; border-radius:50%;
  color:#fff; font-size:1.7rem; line-height:1;
  background:rgba(255,255,255,.12);
  display:grid; place-items:center; transition:background .2s ease;
}
.lightbox__nav:hover{ background:rgba(255,255,255,.24); }
.lightbox__nav--prev{ left:18px; }
.lightbox__nav--next{ right:18px; }
.lightbox__count{
  position:absolute; bottom:20px; left:50%; transform:translateX(-50%);
  color:rgba(255,255,255,.7); font-size:.82rem; letter-spacing:.08em;
}


/* ==========================================================================
   响应式
   ========================================================================== */

/* 平板横向以下：Hero 改单列 */
@media (max-width: 900px){
  .hero__inner{ grid-template-columns:1fr; }
  .hero__media{ max-width:236px; aspect-ratio:1/1; order:-1; }
  .hero__media-fallback small{ font-size:.68rem; }

  .about{ grid-template-columns:1fr; }
}

/* 平板竖向以下：导航折叠成汉堡菜单 */
@media (max-width: 760px){
  .nav__burger{ display:flex; }

  .nav__links{
    position:absolute; top:var(--nav-h); left:0; right:0;
    flex-direction:column; align-items:stretch; gap:2px;
    padding:12px 20px 20px;
    background:rgba(251,250,248,.98);
    backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line);
    box-shadow:0 12px 26px -18px rgba(20,20,40,.3);
    display:none;
  }
  .nav__links.is-open{ display:flex; animation:fadeIn .18s ease; }
  .nav__link{ padding:12px 14px; border-radius:10px; font-size:.95rem; }
  .nav__link.is-active::after{ display:none; }
  .nav__link.is-active{ background:var(--accent-soft); }
  .nav__resume{ margin:8px 0 0; text-align:center; justify-content:center; }

  .footer__inner{ flex-direction:column; align-items:flex-start; }
}

/* 手机 */
@media (max-width: 560px){
  .wrap{ padding:0 18px; }
  .nav__inner{ padding:0 18px; }
  .nav__brand-en{ display:none; }

  body{ font-size:15.5px; }

  .grid{ grid-template-columns:1fr; }
  .hero{ padding-top:30px; }
  .hero__media{ max-width:172px; }

  .btn{ flex:1 1 auto; justify-content:center; }
  .hero__actions{ gap:9px; }

  .contact__card{ flex:1 1 100%; padding:18px 18px; }
  .contact__qr{ max-width:100%; }

  .m-facts{ gap:14px 22px; }
  .m-gallery{ grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); }
  .lightbox__nav{ width:40px; height:40px; font-size:1.4rem; }
  .lightbox__nav--prev{ left:8px; }
  .lightbox__nav--next{ right:8px; }
  .modal{ padding:12px; }
  .modal__panel{ max-height:92vh; border-radius:14px; }
}

/* 尊重系统的"减少动效"设置 */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .card:hover{ transform:none; }
}

/* 打印：去掉导航与弹窗，方便 HR 直接打印 */
@media print{
  .nav,.footer__top,.modal,.lightbox,.hero__actions{ display:none !important; }
  body{ background:#fff; }
  .section--alt{ background:#fff; }
  .card{ break-inside:avoid; box-shadow:none; }
}
