/* ==========================================================================
   邱良安 · 个人介绍页
   风格参考：全屏摄影 Hero + 极简导航 + pill 按钮（创意机构官网调性）
   整站深色电影感，无外部依赖，尊重 prefers-reduced-motion
   ========================================================================== */

:root{
  --bg:      #0B0F14;
  --bg-2:    #101720;
  --surf:    rgba(255,255,255,.035);
  --surf-2:  rgba(255,255,255,.06);
  --line:    rgba(255,255,255,.09);
  --line-2:  rgba(255,255,255,.16);

  --ink:     #F2F5F7;
  --ink-2:   #A6B3C0;
  --ink-3:   #6E7C8B;

  --brand:   #FF8A3D;
  --brand-2: #FFB066;
  --brand-soft: rgba(255,138,61,.13);

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --r: 18px;
  --r-sm: 12px;
  --pill: 100px;

  /* Hero 图显示区域：竖图在横屏下会裁上下，改这个值可上下挪动画面 */
  --hero-pos: center 30%;

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; scroll-padding-top:80px; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font);
  font-size:16px;
  line-height:1.78;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

.wrap{ max-width:var(--wrap); margin:0 auto; padding-inline:var(--pad); }

.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--brand); color:#12181F; padding:10px 18px; border-radius:var(--r-sm);
}
.skip:focus{ left:12px; top:12px; }

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

/* ===================== 滚动进度条 ===================== */

.scroll-progress{ position:fixed; top:0; left:0; right:0; height:2px; z-index:120; pointer-events:none; }
.scroll-progress i{
  display:block; height:100%; width:0;
  background:linear-gradient(90deg, var(--brand), var(--brand-2));
  transition:width .1s linear;
}

/* ===================== 导航 ===================== */

.site-head{
  position:fixed; top:0; left:0; right:0; z-index:100;
  transition:background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom:1px solid transparent;
}
.head-inner{
  max-width:var(--wrap); margin:0 auto;
  padding:18px var(--pad);
  display:flex; align-items:center; justify-content:space-between; gap:28px;
}

.brand{
  font-size:19px; font-weight:800; letter-spacing:.04em;
  color:#fff; text-decoration:none; white-space:nowrap;
  text-shadow:0 1px 14px rgba(0,0,0,.5);
}

.nav{ display:flex; gap:clamp(18px,2.8vw,38px); margin-inline:auto; }
.nav a{
  position:relative;
  color:rgba(255,255,255,.82); text-decoration:none;
  font-size:14px; letter-spacing:.05em; padding:6px 0;
  text-shadow:0 1px 10px rgba(0,0,0,.45);
  transition:color .25s ease;
}
.nav a::after{
  content:""; position:absolute; left:0; bottom:0; height:1.5px; width:0;
  background:#fff; border-radius:2px; transition:width .3s cubic-bezier(.4,0,.2,1);
}
.nav a:hover{ color:#fff; }
.nav a:hover::after, .nav a.is-active::after{ width:100%; }

.nav-cta{
  flex-shrink:0;
  padding:10px 22px; border-radius:var(--pill);
  background:#fff; color:#0B0F14;
  font-size:14px; font-weight:600; text-decoration:none; white-space:nowrap;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav-cta:hover{ transform:translateY(-2px); box-shadow:0 8px 22px rgba(0,0,0,.35); background:#FFB066; }

.site-head.is-solid{
  background:rgba(11,15,20,.80);
  backdrop-filter:blur(16px) saturate(150%);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  border-bottom-color:var(--line);
}
.site-head.is-solid .brand,
.site-head.is-solid .nav a{ text-shadow:none; }

.nav-toggle{ display:none; background:none; border:none; padding:8px; cursor:pointer; flex-direction:column; gap:5px; }
.nav-toggle span{ display:block; width:22px; height:2px; background:#fff; border-radius:2px; transition:transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ===================== Hero ===================== */

.hero{
  position:relative;
  min-height:100svh;
  display:flex; align-items:center;
  padding:130px var(--pad) 110px;
  overflow:hidden;
  background:#070B10; /* 图片未加载时的兜底 */
}

.hero-media{ position:absolute; inset:0; }
.hero-img{
  width:100%; height:100%;
  object-fit:cover; object-position:var(--hero-pos, center 30%);
  display:block;
  transform:scale(1.06);
  animation:heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom{
  from{ transform:scale(1.04) translate3d(0,0,0); }
  to  { transform:scale(1.12) translate3d(-1.4%,-1%,0); }
}
.hero-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(6,10,14,.92) 0%, rgba(6,10,14,.70) 38%, rgba(6,10,14,.30) 72%, rgba(6,10,14,.42) 100%),
    linear-gradient(180deg, rgba(6,10,14,.62) 0%, rgba(6,10,14,.10) 32%, rgba(11,15,20,.94) 100%);
}

.hero-inner{ position:relative; z-index:2; max-width:var(--wrap); margin:0 auto; width:100%; }

.hero-eyebrow{
  display:flex; align-items:center; gap:12px;
  margin:0 0 22px;
  font-size:13.5px; letter-spacing:.16em;
  color:rgba(255,255,255,.88);
}
.hero-eyebrow .rule{
  display:block; width:34px; height:1px; background:var(--brand);
}

.hero-title{
  margin:0;
  font-size:clamp(38px, 7vw, 82px);
  line-height:1.06;
  font-weight:800;
  letter-spacing:.01em;
  color:#fff;
  text-shadow:0 2px 30px rgba(0,0,0,.45);
  max-width:16ch;
}

.hero-rating{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  margin:26px 0 0;
  font-size:14.5px; color:rgba(255,255,255,.85);
}
.hero-rating .stars{ color:#FFC25C; letter-spacing:.14em; font-size:15px; }
.hero-rating .rating-text{ text-shadow:0 1px 10px rgba(0,0,0,.5); }

.hero-actions{ margin-top:40px; display:flex; gap:14px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:15px 34px; border-radius:var(--pill);
  font-size:15px; font-weight:600; letter-spacing:.03em;
  text-decoration:none; cursor:pointer;
  border:1px solid transparent;
  transition:transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s ease,
             background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover{ transform:translateY(-3px); }
.btn-light{
  background:#fff; color:#0B0F14;
  box-shadow:0 8px 26px rgba(0,0,0,.30);
}
.btn-light:hover{ background:var(--brand-2); box-shadow:0 14px 34px rgba(0,0,0,.40); }
.btn-dark{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.28);
  color:#fff;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.btn-dark:hover{ background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.45); }

.hero-scroll{
  position:absolute; left:50%; bottom:32px; transform:translateX(-50%);
  z-index:2; display:flex; flex-direction:column; align-items:center; gap:10px;
  font-size:11px; letter-spacing:.2em; color:rgba(255,255,255,.62);
}
.hero-scroll i{
  display:block; width:1px; height:44px;
  background:linear-gradient(180deg, rgba(255,255,255,.42), transparent);
  position:relative; overflow:hidden;
}
.hero-scroll i::after{
  content:""; position:absolute; left:0; top:0; width:1px; height:14px;
  background:var(--brand);
  animation:scrollDot 2.2s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ transform:translateY(-16px); opacity:0; }
  35%{ opacity:1; }
  100%{ transform:translateY(44px); opacity:0; }
}

/* ===================== 数据条 ===================== */

.stats{ border-bottom:1px solid var(--line); padding-block:clamp(38px,6vh,56px); }
.stats-grid{
  display:grid; gap:clamp(20px,3vw,34px);
  grid-template-columns:repeat(auto-fit, minmax(140px,1fr));
}
.stat-num{
  display:block;
  font-size:clamp(34px,5.2vw,52px); font-weight:800; line-height:1.05; letter-spacing:-.02em;
  color:#fff; font-variant-numeric:tabular-nums;
}
.stat-k{ display:block; margin-top:6px; font-size:13.5px; color:var(--ink-3); }

/* ===================== 区块 ===================== */

.section{ padding-block:clamp(64px,10vh,112px); }
.section-alt{ background:var(--bg-2); border-block:1px solid var(--line); }

.sec-head{ display:flex; align-items:baseline; gap:14px; margin-bottom:clamp(30px,5vh,48px); }
.sec-index{
  font-size:12.5px; font-weight:700; letter-spacing:.12em;
  color:var(--brand); padding:4px 10px; border-radius:6px;
  background:var(--brand-soft);
}
.sec-title{
  margin:0; font-size:clamp(26px,4vw,38px); font-weight:800;
  letter-spacing:-.01em; color:#fff;
}

/* ===================== 简介 ===================== */

.about-grid{
  display:grid; gap:clamp(28px,4vw,52px);
  grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);
  align-items:start;
}
.about-text p{
  margin:0 0 20px; font-size:clamp(15px,1.7vw,17.5px);
  color:var(--ink-2); line-height:1.9;
}
.about-text p:last-child{ margin-bottom:0; }

.info-card{
  background:var(--surf); border:1px solid var(--line);
  border-radius:var(--r); padding:26px 24px;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.info-card h3{ margin:0 0 16px; font-size:15px; font-weight:700; letter-spacing:.05em; color:#fff; }
.info-card dl{ margin:0; display:grid; gap:2px; }
.info-card dl > div{
  display:flex; justify-content:space-between; gap:16px;
  padding:11px 0; border-top:1px solid var(--line);
}
.info-card dl > div:first-child{ border-top:none; }
.info-card dt{ font-size:13.5px; color:var(--ink-3); white-space:nowrap; }
.info-card dd{ margin:0; font-size:14.5px; font-weight:600; color:#fff; text-align:right; }

/* ===================== 技能 ===================== */

.skill-cols{
  display:grid; gap:clamp(22px,3.4vw,40px);
  grid-template-columns:repeat(auto-fit, minmax(300px,1fr));
}
.skill-panel{
  background:var(--surf); border:1px solid var(--line);
  border-radius:var(--r); padding:28px 26px 30px;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  transition:transform .3s ease, border-color .3s ease, background .3s ease;
}
.skill-panel:hover{ transform:translateY(-4px); border-color:var(--line-2); background:var(--surf-2); }

.panel-title{ margin:0 0 22px; font-size:15px; font-weight:700; letter-spacing:.05em; color:#fff; }
.panel-title-2{ margin-top:32px; }

.bars{ margin:0; padding:0; list-style:none; display:grid; gap:17px; }
.bars li{ display:grid; grid-template-columns:1fr auto; gap:8px 14px; align-items:center; }
.bar-k{ font-size:14.5px; color:var(--ink-2); }
.bar-v{ font-size:13px; font-weight:700; color:var(--brand); font-variant-numeric:tabular-nums; }
.bar{
  grid-column:1 / -1;
  height:6px; border-radius:100px;
  background:rgba(255,255,255,.08); overflow:hidden;
}
.bar i{
  display:block; height:100%; width:0; border-radius:100px;
  background:linear-gradient(90deg, var(--brand), var(--brand-2));
  transition:width 1.15s cubic-bezier(.25,.8,.3,1);
}
.panel-note{ margin:18px 0 0; font-size:12.5px; color:var(--ink-3); }

.tag-list{ margin:0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:9px; }
.tag-list li{
  font-size:13.5px; color:var(--ink-2);
  padding:7px 15px; border-radius:var(--pill);
  background:rgba(255,255,255,.04); border:1px solid var(--line);
  transition:border-color .22s ease, color .22s ease, background .22s ease;
}
.tag-list li:hover{ border-color:var(--brand); color:var(--brand-2); background:var(--brand-soft); }
.tag-list-cert li{
  background:var(--brand-soft); border-color:rgba(255,138,61,.32);
  color:var(--brand-2); font-weight:600;
}

/* ===================== 时间线 ===================== */

.timeline{ margin:0; padding:0 0 0 clamp(22px,3.4vw,40px); list-style:none; position:relative; }
.timeline::before{
  content:""; position:absolute; left:5px; top:14px; bottom:14px; width:2px;
  background:var(--line); border-radius:2px;
}
.timeline::after{
  content:""; position:absolute; left:5px; top:14px; width:2px; height:0;
  background:linear-gradient(180deg, var(--brand), var(--brand-2)); border-radius:2px;
  transition:height 1.4s cubic-bezier(.3,.8,.35,1);
}
.timeline.is-drawn::after{ height:calc(100% - 28px); }

.job{ position:relative; padding-bottom:clamp(22px,3.4vh,34px); }
.job:last-child{ padding-bottom:0; }
.job::before{
  content:""; position:absolute;
  left:calc(-1 * clamp(22px,3.4vw,40px)); top:28px;
  width:12px; height:12px; border-radius:50%;
  background:var(--bg); border:2px solid var(--line-2);
  transition:background .45s ease .2s, border-color .45s ease .2s, box-shadow .45s ease .2s;
  z-index:2;
}
.job.is-in::before{
  background:var(--brand); border-color:var(--brand);
  box-shadow:0 0 0 5px rgba(255,138,61,.18);
}

.job-card{
  background:var(--surf); border:1px solid var(--line);
  border-radius:var(--r); padding:26px 26px 28px;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  transition:transform .3s ease, border-color .3s ease, background .3s ease;
}
.job-card:hover{ transform:translateY(-3px); border-color:var(--line-2); background:var(--surf-2); }

.job-top{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 18px; }
.job-title{ margin:0; font-size:clamp(18px,2.4vw,23px); font-weight:750; color:#fff; letter-spacing:-.01em; }
.job-when{ font-size:13px; color:var(--ink-3); font-variant-numeric:tabular-nums; white-space:nowrap; }
.job-org{ margin:6px 0 0; font-size:15px; font-weight:600; color:var(--brand-2); }
.job-points{ margin:16px 0 0; padding:0; list-style:none; display:grid; gap:10px; }
.job-points li{
  position:relative; padding-left:20px;
  font-size:15px; color:var(--ink-2); line-height:1.8;
}
.job-points li::before{
  content:""; position:absolute; left:0; top:.72em;
  width:9px; height:2px; border-radius:2px; background:var(--brand);
}

/* ===================== 教育 ===================== */

.edu-card{
  background:var(--surf); border:1px solid var(--line);
  border-radius:var(--r); padding:30px 28px 32px;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  transition:transform .3s ease, border-color .3s ease;
}
.edu-card:hover{ transform:translateY(-3px); border-color:var(--line-2); }
.edu-top{ display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:10px 24px; }
.edu-school{ margin:0; font-size:clamp(19px,2.6vw,25px); font-weight:750; color:#fff; letter-spacing:-.01em; }
.edu-major{ margin:6px 0 0; font-size:15.5px; color:var(--ink-2); }
.edu-when{ font-size:13.5px; color:var(--ink-3); font-variant-numeric:tabular-nums; white-space:nowrap; }
.edu-gpa{
  margin:18px 0 0; padding:12px 16px;
  font-size:14.5px; font-weight:600; color:var(--brand-2);
  background:var(--brand-soft); border-left:3px solid var(--brand);
  border-radius:0 var(--r-sm) var(--r-sm) 0;
}
.edu-courses{ margin-top:26px; }
.edu-courses h4{ margin:0 0 14px; font-size:14px; font-weight:700; letter-spacing:.05em; color:#fff; }

/* ===================== 联系 ===================== */

.contact-grid{
  display:grid; gap:clamp(16px,2.4vw,22px);
  grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
}
.contact-card{
  background:var(--surf); border:1px solid var(--line);
  border-radius:var(--r); padding:24px 24px 26px;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  transition:transform .3s ease, border-color .3s ease, background .3s ease;
}
.contact-card:hover{ transform:translateY(-4px); border-color:var(--brand); background:var(--surf-2); }
.cc-k{ display:block; font-size:12.5px; font-weight:700; letter-spacing:.12em; color:var(--brand); margin-bottom:10px; }
.cc-v{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; font-size:17px; font-weight:600; color:#fff; }
.cc-v a{ color:#fff; text-decoration:none; border-bottom:1px solid var(--line-2); transition:color .22s ease, border-color .22s ease; }
.cc-v a:hover{ color:var(--brand-2); border-color:var(--brand); }
.phone-masked{ font-variant-numeric:tabular-nums; letter-spacing:.03em; }

.link-btn{
  background:none; border:none; padding:0; cursor:pointer;
  font-family:inherit; font-size:13px; font-weight:600;
  color:var(--brand); border-bottom:1px solid transparent;
  transition:border-color .22s ease;
}
.link-btn:hover{ border-bottom-color:var(--brand); }

.contact-note{ margin:26px 0 0; font-size:13.5px; color:var(--ink-3); max-width:60ch; line-height:1.8; }

/* ===================== 页脚 ===================== */

.site-foot{ border-top:1px solid var(--line); padding-block:clamp(36px,5vh,52px); }
.foot-inner{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 24px; }
.foot-name{ margin:0; font-size:15px; font-weight:700; color:#fff; }
.foot-sub{ margin:0; font-size:13px; color:var(--ink-3); }

/* ===================== 入场动画 ===================== */

[data-anim]{ opacity:0; will-change:opacity, transform; }

/* 兜底：JS 未加载 / 执行失败时，内容必须照样可见（否则整页空白） */
.no-js [data-anim]{ opacity:1 !important; transform:none !important; }
.no-js .timeline::after{ height:calc(100% - 28px); }
.no-js .job::before{ background:var(--brand); border-color:var(--brand); }
.no-js .bar i{ width:0; }
[data-anim="up"]{ transform:translateY(24px); }
[data-anim].is-in{
  animation:animIn .85s cubic-bezier(.22,.75,.3,1) forwards;
  animation-delay:var(--d, 0ms);
}
@keyframes animIn{ from{ opacity:0; transform:translateY(24px); } to{ opacity:1; transform:none; } }
[data-anim="fade"].is-in{ animation-name:animFade; }
@keyframes animFade{ from{ opacity:0; } to{ opacity:1; } }

/* ===================== 降低动效 ===================== */

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  [data-anim]{ opacity:1 !important; transform:none !important; }
  .timeline::after{ height:calc(100% - 28px); }
  .job::before{ background:var(--brand); border-color:var(--brand); }
  .hero-img{ animation:none; transform:scale(1.04); }
}

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

@media (max-width:900px){
  .nav-cta{ display:none; }
}
@media (max-width:860px){
  .about-grid{ grid-template-columns:1fr; }
}
@media (max-width:720px){
  .nav{
    position:fixed; inset:66px 0 auto 0;
    flex-direction:column; gap:0; margin:0;
    background:rgba(11,15,20,.97);
    backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
    padding:6px var(--pad) 20px;
    border-bottom:1px solid var(--line);
    transform:translateY(-12px); opacity:0; pointer-events:none;
    transition:opacity .26s ease, transform .26s ease;
  }
  .nav.is-open{ transform:none; opacity:1; pointer-events:auto; }
  .nav a{ padding:14px 0; border-bottom:1px solid var(--line); font-size:16px; }
  .nav a::after{ display:none; }
  .nav-toggle{ display:flex; margin-left:auto; }
  .site-head{ background:rgba(11,15,20,.55); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
  .hero{ padding-top:112px; }
  .hero-title{ max-width:none; }
  .hero-scroll{ display:none; }
  .hero-scrim{
    background:
      linear-gradient(180deg, rgba(6,10,14,.78) 0%, rgba(6,10,14,.55) 40%, rgba(11,15,20,.96) 100%);
  }
}
