/* =========================================================
   赵婧 · 个人学术主页
   配色：浅蓝 + 嫩绿
   ========================================================= */

:root {
  /* 蓝 */
  --blue-050: #F4FAFE;
  --blue-100: #E6F3FB;
  --blue-200: #CBE5F6;
  --blue-300: #A9D4EF;
  --blue-400: #7BB8E4;
  --blue-500: #4E96CF;
  --blue-600: #2E6F9E;

  /* 绿 */
  --green-050: #F3FBF6;
  --green-100: #E4F6EA;
  --green-200: #CCEDD8;
  --green-300: #A6DDB8;
  --green-400: #78C896;
  --green-500: #479E6B;

  /* 中性 */
  --ink: #1E2E38;
  --ink-2: #46606D;
  --ink-3: #74909E;
  --line: #DCEBF3;
  --line-soft: #EAF4F9;
  --white: #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(46, 111, 158, .06);
  --shadow-md: 0 10px 30px rgba(46, 111, 158, .09);
  --shadow-lg: 0 20px 50px rgba(46, 111, 158, .13);

  --radius: 18px;
  --nav-h: 66px;
  --ease: cubic-bezier(.22, .68, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 78% -8%, var(--blue-100) 0%, transparent 62%),
    radial-gradient(900px 520px at 8% 8%, var(--green-100) 0%, transparent 58%),
    linear-gradient(180deg, #FBFDFF 0%, #FAFEFB 52%, #F7FCF9 100%);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }

.container {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

/* ========================= 导航 ========================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255, 255, 255, .74);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(46, 111, 158, .06);
}

.nav-inner {
  height: 100%;
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .04em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-400), var(--green-300));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(78, 150, 207, .28);
}
.brand-text { font-size: 15px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color .22s var(--ease), background .22s var(--ease);
}
.nav-links a:hover { color: var(--blue-600); background: var(--blue-050); }
.nav-links a.active { color: var(--blue-600); background: var(--blue-100); font-weight: 600; }

.lang-toggle {
  flex: none;
  margin-left: 10px;
  padding: 6px 13px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--blue-600);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  cursor: pointer;
  transition: background .22s var(--ease), border-color .22s var(--ease),
              color .22s var(--ease), transform .12s var(--ease);
}
.lang-toggle:hover {
  background: var(--blue-100);
  border-color: var(--blue-300);
  color: var(--blue-600);
}
.lang-toggle:active { transform: scale(.96); }
.lang-toggle:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink-2);
  transition: transform .28s var(--ease), opacity .2s;
}

/* ========================= HERO ========================= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 76px) 0 96px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--blue-600);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--blue-400), var(--green-400));
  border-radius: 2px;
}

.hero-name {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5.2vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: .06em;
  font-weight: 700;
  background: linear-gradient(120deg, var(--ink) 30%, var(--blue-600) 68%, var(--green-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 14.5px;
  letter-spacing: .01em;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .22s var(--ease), border-color .22s var(--ease);
  word-break: break-all;
}
.hero-mail svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--blue-400);
  transition: color .22s var(--ease);
}
.hero-mail:hover {
  color: var(--blue-600);
  border-bottom-color: var(--blue-200);
}
.hero-mail:hover svg { color: var(--blue-500); }
.hero-mail:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.hero-lede {
  margin: 0 0 26px;
  max-width: 30em;
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.9;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.chip {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform .2s var(--ease);
}
.chip:hover { transform: translateY(-2px); }
.chip-blue  { background: var(--blue-100);  color: var(--blue-600);  border-color: var(--blue-200); }
.chip-green { background: var(--green-100); color: var(--green-500); border-color: var(--green-200); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--green-400));
  box-shadow: 0 10px 24px rgba(78, 150, 207, .28);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(78, 150, 207, .36);
}
.btn-ghost {
  color: var(--blue-600);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--blue-200);
}
.btn-ghost:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* 右侧：抽象画 */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 10% -4% -8% 10%;
  background: url("../assets/hero-art.svg") center / cover no-repeat;
  filter: blur(34px);
  opacity: .38;
  border-radius: 30px;
  z-index: -1;
}

.art-frame {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow:
    0 34px 70px rgba(46, 111, 158, .20),
    0 8px 20px rgba(46, 111, 158, .08);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.art-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 44px 84px rgba(46, 111, 158, .24),
    0 10px 24px rgba(46, 111, 158, .10);
}
.art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .82));
  pointer-events: none;
}

/* ========================= 通用区块 ========================= */
.section { padding: 96px 0; scroll-margin-top: var(--nav-h); }
.section-tint {
  background: linear-gradient(180deg, rgba(230, 243, 251, .42) 0%, rgba(228, 246, 234, .34) 100%);
  border-block: 1px solid var(--line-soft);
}

.section-head { margin-bottom: 44px; }
.section-head h2 {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 1.62rem;
  letter-spacing: .06em;
  color: var(--ink);
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: .28em; bottom: .28em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--blue-400), var(--green-400));
}
.section-head p {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-3);
  font-size: 14.5px;
}

/* ========================= 卡片 ========================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}

.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--blue-600);
  background: var(--blue-100);
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon.icon-green { color: var(--green-500); background: var(--green-100); }

.card h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  letter-spacing: .02em;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.85;
}

/* ========================= 时间线 ========================= */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 3px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-300), var(--green-300));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 16px 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px; top: 30px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue-400);
  box-shadow: 0 0 0 4px rgba(123, 184, 228, .16);
}
.timeline-year {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: .05em;
  padding-top: 2px;
}
.timeline-body h3 {
  margin: 0 0 4px;
  font-size: 1.04rem;
}
.timeline-body p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14.5px;
}

/* ========================= 论文 ========================= */
.pubs {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pub;
}

.pub {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 22px;
  padding: 22px 22px 22px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background .25s var(--ease);
  border-radius: 12px;
}
.pub:hover { background: rgba(255, 255, 255, .72); }
.pub:last-of-type { border-bottom: none; }

.pub-year {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--blue-600);
  background: var(--blue-100);
  border-radius: 9px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.pub-body p { margin: 0; }
.pub-authors {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.7;
}
.pub-authors b { color: var(--ink); font-weight: 700; }
.pub-authors sup, .legend sup { color: var(--green-500); font-weight: 700; }

.pub-title {
  margin: 3px 0 5px !important;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink);
  font-weight: 500;
}
.pub-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}
.pub-title a::after {
  content: "↗";
  display: inline-block;
  margin-left: .3em;
  font-size: .76em;
  color: var(--blue-400);
  transform: translateY(-.12em);
  opacity: .75;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.pub-title a:hover {
  color: var(--blue-600);
  border-bottom-color: var(--blue-200);
}
.pub-title a:hover::after {
  opacity: 1;
  transform: translate(-.05em, -.22em);
}
.pub-title a:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.pub-journal {
  font-size: 13.5px;
  color: var(--ink-2);
}
.pub-journal i { color: var(--blue-600); font-style: italic; }

.legend {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* ========================= 软件 ========================= */
.empty-state {
  text-align: center;
  padding: 56px 28px;
  border: 1.5px dashed var(--blue-200);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .56);
}
.empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--blue-500);
  background: var(--blue-100);
}
.empty-icon svg { width: 26px; height: 26px; }
.empty-state h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
  color: var(--ink);
}
.empty-state p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
}

/* ========================= 页脚 ========================= */
.footer {
  padding: 54px 0 46px;
  background: linear-gradient(180deg, rgba(230, 243, 251, .5), rgba(228, 246, 234, .6));
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.footer-name {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
}
.footer-org {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.footer-copy {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
}
.footer-icp {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.footer-icp a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-bottom-color .2s ease;
}
.footer-icp a:hover {
  color: var(--ink-2);
  border-bottom-color: currentColor;
}

/* ========================= 滚动出现 ========================= */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========================= 响应式 ========================= */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 320px; margin-inline: auto; order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .timeline-item::before { top: 22px; }
}

@media (max-width: 720px) {
  .container, .nav-inner { width: calc(100% - 36px); }

  .nav-toggle { display: grid; }
  .lang-toggle { margin-left: auto; margin-right: 10px; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 18px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(46, 111, 158, .10);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .26s var(--ease), transform .26s var(--ease);
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 12px 14px; font-size: 15px; }

  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; }
  .hero-art { max-width: 268px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 30px; }

  .pub { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .pub-year { width: fit-content; height: 24px; padding: 0 10px; font-size: 12px; }

  .empty-state { padding: 40px 20px; }
}
