:root {
  --ink: #172033;
  --ink-soft: #263248;
  --muted: #5f6b7c;
  --subtle: #8490a1;
  --line: #d7dee8;
  --paper: #ffffff;
  --soft: #f7f9fc;
  --wash: #edf3f7;
  --sky: #1677b8;
  --rose: #cf3150;
  --green: #17806d;
  --gold: #a96f18;
  --shadow: 0 18px 44px rgba(23, 32, 51, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 32, 51, 0.025) 1px, transparent 1px),
    #f3f7fa;
  background-size: 80px 80px, 80px 80px, auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-weight: 400;
  font-synthesis-weight: none;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, strong, b { font-weight: 650; }
img { display: block; max-width: 100%; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(22, 119, 184, 0.3);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.edge-line {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: 4px;
  background: linear-gradient(180deg, var(--rose), var(--sky), var(--green));
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 58px;
  padding: 11px max(18px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid rgba(215, 222, 232, 0.9);
  background: rgba(250, 252, 254, 0.94);
  backdrop-filter: blur(18px);
}
.mark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 21px;
  font-weight: 750;
}
.mark b { color: var(--rose); }
.site-nav nav {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.site-nav nav a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.site-nav nav a:hover,
.site-nav nav a.active {
  border-color: rgba(22, 119, 184, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}
.nav-cta {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}
.nav-cta:hover { background: var(--ink-soft); transform: translateY(-1px); }

.home-hero {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 62px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.86fr);
  gap: 50px;
  align-items: center;
}
.hero-copy,
.hero-system { min-width: 0; }
.section-label {
  color: var(--rose);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin-top: 12px;
  font-size: 76px;
  line-height: 1.03;
  letter-spacing: 0;
}
.subtitle {
  max-width: 720px;
  margin-top: 16px;
  color: #344054;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.3;
}
.accent-bars { display: flex; gap: 7px; margin: 24px 0; }
.accent-bars i { display: block; height: 3px; border-radius: 99px; }
.accent-bars i:nth-child(1) { width: 60px; background: var(--rose); }
.accent-bars i:nth-child(2) { width: 38px; background: var(--sky); }
.accent-bars i:nth-child(3) { width: 24px; background: var(--green); }
.lead { max-width: 720px; color: #475467; font-size: 16px; line-height: 1.9; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-proof span,
.tag-cloud span {
  padding: 7px 10px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #344054;
  font-size: 12px;
  font-weight: 650;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.button:hover { border-color: rgba(22, 119, 184, 0.42); transform: translateY(-1px); }
.button.primary { border-color: var(--ink); background: var(--ink); color: white; }
.button.primary:hover { background: var(--ink-soft); }

.system-panel {
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(23, 32, 51, 0.1);
}
.system-panel-head {
  min-height: 56px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.system-panel-head span { color: var(--rose); font-size: 11px; font-weight: 750; }
.system-panel-head strong { color: var(--muted); font-size: 12px; }
.system-visual { height: 190px; overflow: hidden; border-bottom: 1px solid var(--line); background: #e8eef3; }
.system-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.86) contrast(1.04); }
.system-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.system-metrics article { min-height: 84px; padding: 14px 16px; border-right: 1px solid var(--line); }
.system-metrics article:last-child { border-right: 0; }
.system-metrics b { display: block; font-size: 34px; line-height: 1; }
.system-metrics span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.system-routes { display: grid; }
.system-routes a { padding: 10px 18px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; border-bottom: 1px solid var(--line); }
.system-routes a:hover { background: var(--soft); }
.system-routes span { color: var(--sky); font-size: 12px; font-weight: 750; }
.system-routes strong { font-size: 14px; }
.wechat-card {
  padding: 13px 18px;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 14px;
  align-items: center;
  background: #101828;
  color: white;
}
.wechat-card img { width: 66px; height: 66px; border: 7px solid white; border-radius: 6px; }
.wechat-card b { display: block; font-size: 16px; }
.wechat-card small { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.7); line-height: 1.5; }

.page-section,
.subpage { width: min(1200px, calc(100% - 36px)); margin: 0 auto; padding: 64px 0; }
.section-head {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}
.section-head h2 { max-width: 760px; font-size: 48px; line-height: 1.12; }
.section-head > span,
.section-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.section-link { color: var(--sky); }
.section-link:hover,
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-head.compact h2 { font-size: 40px; }

.timeline-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.timeline-track article {
  min-height: 310px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}
.timeline-track article.now { background: var(--ink); color: white; }
.timeline-track article > p { color: var(--rose); font-size: 12px; font-weight: 700; }
.timeline-track time { margin-top: 14px; color: var(--muted); font-size: 13px; font-weight: 650; }
.timeline-track h3 { margin-top: auto; font-size: 25px; line-height: 1.2; }
.timeline-track article > span { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.timeline-track article.now time,
.timeline-track article.now > span { color: rgba(255, 255, 255, 0.7); }

.featured-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.featured-work {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.featured-work:hover,
.work-feature:hover,
.work-card:hover,
.contact-card:hover,
.service-grid article:hover { transform: translateY(-3px); border-color: rgba(22, 119, 184, 0.36); box-shadow: var(--shadow); }
.featured-work figure { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: #e8eef3; }
.featured-work figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.3s ease; }
.featured-work:hover figure img { transform: scale(1.015); }
.featured-work > div { padding: 24px; }
.featured-work span,
.project-index span,
.work-feature-copy > span,
.work-card > span,
.service-grid article > span,
.contact-card > span {
  color: var(--rose);
  font-size: 11px;
  font-weight: 750;
}
.featured-work h3 { margin-top: 8px; font-size: 30px; line-height: 1.2; }
.featured-work p { margin-top: 12px; color: #475467; }
.featured-work em,
.work-feature em,
.work-card em {
  display: block;
  margin-top: 16px;
  color: var(--sky);
  font-style: normal;
  font-weight: 700;
}
.project-index {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project-index a { min-height: 142px; padding: 20px; border-right: 1px solid var(--line); }
.project-index a:last-child { border-right: 0; }
.project-index a:hover { background: rgba(255, 255, 255, 0.58); }
.project-index strong { display: block; margin-top: 8px; font-size: 20px; }
.project-index p { margin-top: 6px; color: var(--muted); font-size: 14px; }

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-band h2 { margin-top: 8px; font-size: 50px; line-height: 1.1; }
.feature-band p:not(.section-label) { max-width: 760px; margin-top: 16px; color: #475467; font-size: 17px; }
.feature-band img { width: 150px; height: 150px; border: 9px solid white; border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08); }
.text-link { display: inline-flex; margin-top: 18px; color: var(--sky); font-weight: 700; }

.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-footer > span,
.site-footer > a { min-height: 36px; display: inline-flex; align-items: center; line-height: 1.4; }
.site-footer > a:hover { color: var(--sky); }
.site-footer-note { flex-basis: 100%; color: #758195; font-size: 12px; line-height: 1.6; }

.subpage { padding-top: 44px; }
.back-link { min-height: 36px; margin-bottom: 24px; display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; font-weight: 650; }
.back-link:hover { color: var(--sky); }
.page-hero { max-width: 960px; padding-bottom: 44px; }
.page-hero h1 { margin-top: 10px; font-size: 72px; line-height: 1.06; }
.page-hero > p:last-child,
.article-hero > div > p:last-child { max-width: 780px; margin-top: 16px; color: #475467; font-size: 18px; }
.article-hero { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 28px; align-items: end; }
.article-hero img { width: 132px; height: 132px; border: 8px solid white; border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08); }

.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.content-card,
.contact-card,
.work-card,
.service-grid article,
.article-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.045);
}
.content-card { min-height: 230px; padding: 24px; }
.content-card.large { grid-column: 1 / -1; }
.content-card h2,
.contact-card h2,
.service-grid h2 { font-size: 27px; line-height: 1.2; }
.content-card p,
.contact-card p,
.service-grid p { margin-top: 12px; color: #475467; }
.clean-list { margin: 16px 0 0; padding: 0; list-style: none; color: #475467; }
.clean-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.clean-list li:last-child { border-bottom: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.merged-contact { margin-top: 58px; padding-top: 58px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.merged-contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr); gap: 12px; }
.contact-card { min-height: 250px; padding: 24px; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.contact-card h2 { margin-top: 8px; }
.contact-card b { display: block; margin-top: 16px; color: var(--sky); }
.contact-card-main { background: var(--ink); color: white; }
.contact-card-main > span { color: rgba(255, 255, 255, 0.66); }
.contact-card-main p { color: rgba(255, 255, 255, 0.72); }
.contact-card-main dl { display: grid; gap: 12px; margin: 24px 0 0; }
.contact-card-main dl div { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.contact-card-main dt { color: rgba(255, 255, 255, 0.56); font-size: 11px; font-weight: 700; }
.contact-card-main dd { margin: 3px 0 0; font-size: 17px; font-weight: 700; }
.contact-card-main dd a:hover { text-decoration: underline; }
.contact-card-qr { display: grid; place-items: center; padding: 16px; }
.contact-card-qr img { width: min(185px, 100%); max-height: 218px; border-radius: 8px; object-fit: cover; object-position: top; }

.resume-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; }
.resume-summary {
  position: sticky;
  top: 84px;
  align-self: start;
  padding: 22px;
  display: grid;
  gap: 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}
.resume-summary span { color: rgba(255, 255, 255, 0.68); }
.resume-summary a { margin-top: 6px; color: #8fd0f5; font-weight: 700; }
.resume-list article,
.change-list article { padding: 24px 0; border-top: 1px solid var(--line); }
.resume-list time,
.change-list time,
.article-entry > span { color: var(--rose); font-size: 12px; font-weight: 700; }
.resume-list h2,
.change-list h2 { margin-top: 7px; font-size: 28px; line-height: 1.2; }
.resume-list p,
.change-list p { margin-top: 8px; color: #475467; }

.work-showcase { display: grid; gap: 16px; }
.work-feature {
  min-height: 380px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.work-feature figure { min-height: 380px; overflow: hidden; border-right: 1px solid var(--line); background: #e8eef3; }
.work-feature figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.3s ease; }
.work-feature:hover figure img { transform: scale(1.012); }
.work-feature-copy { padding: 28px; display: flex; flex-direction: column; }
.work-feature-copy h2 { margin-top: 9px; font-size: 34px; line-height: 1.16; }
.work-feature-copy > p { margin-top: 14px; color: #475467; }
.work-feature-copy dl { margin: 22px 0 0; display: grid; gap: 10px; }
.work-feature-copy dl div { padding-top: 10px; display: grid; grid-template-columns: 46px 1fr; gap: 10px; border-top: 1px solid var(--line); }
.work-feature-copy dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.work-feature-copy dd { margin: 0; color: #344054; }
.work-feature-copy em { margin-top: auto; padding-top: 18px; }
.work-library { margin-top: 62px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.work-card { min-height: 270px; padding: 22px; display: flex; flex-direction: column; scroll-margin-top: 90px; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.work-card h2 { margin-top: auto; font-size: 28px; line-height: 1.18; }
.work-card p { margin-top: 10px; color: #475467; }
.avatar-work-card img { width: 76px; height: 76px; margin-bottom: 16px; border: 4px solid white; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 22px rgba(16, 24, 40, 0.14); }

.article-stack { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.article-entry { padding: 28px; }
.article-entry h2 { margin-top: 8px; font-size: 34px; line-height: 1.2; }
.article-entry > p { max-width: 920px; margin-top: 12px; color: #475467; font-size: 16px; line-height: 1.85; }
.article-entry .clean-list { max-width: 920px; }
.article-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.article-actions a { color: var(--sky); font-weight: 700; }
.article-actions a:hover { text-decoration: underline; text-underline-offset: 4px; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-grid article { min-height: 250px; padding: 24px; display: flex; flex-direction: column; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.service-grid article h2 { margin-top: 8px; }
.service-grid article a { margin-top: auto; padding-top: 18px; color: var(--sky); font-weight: 700; }
.contact-brief { margin-top: 54px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.82); }
.contact-brief h2 { max-width: 760px; margin-top: 8px; font-size: 40px; line-height: 1.16; }
.contact-brief > div { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.contact-brief > div span { min-height: 86px; padding: 17px; display: flex; align-items: center; border-right: 1px solid var(--line); color: #475467; font-weight: 700; }
.contact-brief > div span:last-child { border-right: 0; }
.collaboration-brief .button { margin-top: 22px; }

.redirect-page { width: min(680px, calc(100% - 32px)); margin: 16vh auto 0; padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); }
.redirect-page h1 { margin-top: 8px; font-size: 38px; line-height: 1.2; }
.redirect-page > p:not(.section-label) { margin-top: 14px; color: var(--muted); }
.redirect-page .button { margin-top: 20px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hui-avatar-root { position: relative; z-index: 90; }
.hui-avatar-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 91;
  min-width: 206px;
  min-height: 68px;
  padding: 7px 13px 7px 7px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(23, 32, 51, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.18);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.hui-avatar-launcher:hover { transform: translateY(-2px); border-color: rgba(22, 119, 184, 0.45); box-shadow: 0 20px 44px rgba(16, 24, 40, 0.22); }
.hui-avatar-launcher-photo {
  position: relative;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #dbe3e9;
}
.hui-avatar-launcher-photo img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.hui-avatar-launcher-photo i { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border: 2px solid white; border-radius: 50%; background: var(--green); }
.hui-avatar-launcher-copy { min-width: 0; display: grid; gap: 1px; }
.hui-avatar-launcher-copy strong { font-size: 14px; line-height: 1.25; }
.hui-avatar-launcher-copy small { color: var(--muted); font-size: 12px; line-height: 1.35; white-space: nowrap; }

.hui-avatar-panel {
  position: fixed;
  right: 24px;
  bottom: 104px;
  z-index: 92;
  width: min(430px, calc(100vw - 32px));
  height: min(650px, calc(100dvh - 128px));
  min-height: 480px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.18);
  border-radius: 8px;
  background: white;
  box-shadow: 0 28px 76px rgba(16, 24, 40, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.985);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.hui-avatar-root.is-open .hui-avatar-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.hui-avatar-root.is-open .hui-avatar-launcher { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); }
.hui-avatar-header {
  min-height: 86px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #101828;
  color: white;
}
.hui-avatar-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.hui-avatar-identity > div:last-child { min-width: 0; display: grid; gap: 3px; }
.hui-avatar-identity strong { font-size: 16px; line-height: 1.25; }
.hui-avatar-identity [data-avatar-status] { overflow: hidden; color: rgba(255, 255, 255, 0.68); font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.hui-avatar-portrait { position: relative; flex: 0 0 60px; width: 60px; height: 60px; border: 2px solid rgba(255, 255, 255, 0.68); border-radius: 50%; background: #dbe3e9; }
.hui-avatar-portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hui-avatar-wave { position: absolute; right: -7px; bottom: 0; width: 25px; height: 20px; display: flex; align-items: center; justify-content: center; gap: 2px; border: 2px solid #101828; border-radius: 7px; background: var(--sky); }
.hui-avatar-wave i { width: 2px; height: 6px; border-radius: 2px; background: white; opacity: 0.72; }
.hui-avatar-root[data-state="thinking"] .hui-avatar-portrait,
.hui-avatar-root[data-state="listening"] .hui-avatar-portrait { animation: hui-avatar-pulse 1.25s ease-in-out infinite; }
.hui-avatar-root[data-state="speaking"] .hui-avatar-wave i,
.hui-avatar-root[data-state="listening"] .hui-avatar-wave i { animation: hui-avatar-wave 0.72s ease-in-out infinite alternate; }
.hui-avatar-root[data-state="speaking"] .hui-avatar-wave i:nth-child(2),
.hui-avatar-root[data-state="listening"] .hui-avatar-wave i:nth-child(2) { animation-delay: 0.12s; }
.hui-avatar-root[data-state="speaking"] .hui-avatar-wave i:nth-child(3),
.hui-avatar-root[data-state="listening"] .hui-avatar-wave i:nth-child(3) { animation-delay: 0.24s; }
.hui-avatar-root[data-state="speaking"] .hui-avatar-wave i:nth-child(4),
.hui-avatar-root[data-state="listening"] .hui-avatar-wave i:nth-child(4) { animation-delay: 0.36s; }
@keyframes hui-avatar-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(22, 119, 184, 0); } 50% { box-shadow: 0 0 0 7px rgba(22, 119, 184, 0.24); } }
@keyframes hui-avatar-wave { from { height: 5px; } to { height: 13px; } }
.hui-avatar-close { flex: 0 0 42px; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: white; font-size: 24px; line-height: 1; cursor: pointer; }
.hui-avatar-close:hover { background: rgba(255, 255, 255, 0.16); }
.hui-avatar-disclosure { min-height: 48px; padding: 8px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.hui-avatar-disclosure span { color: var(--rose); font-size: 11px; font-weight: 700; white-space: nowrap; }
.hui-avatar-disclosure p { color: var(--muted); font-size: 11px; line-height: 1.45; }
.hui-avatar-messages { min-height: 0; padding: 16px 14px 10px; overflow-y: auto; overscroll-behavior: contain; background: #f3f6f9; scrollbar-width: thin; }
.hui-avatar-message { margin-bottom: 14px; display: grid; justify-items: start; gap: 4px; }
.hui-avatar-message.user { justify-items: end; }
.hui-avatar-message-label { color: var(--subtle); font-size: 10px; font-weight: 700; }
.hui-avatar-bubble { position: relative; max-width: 88%; padding: 11px 12px 9px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 5px 14px rgba(16, 24, 40, 0.04); }
.hui-avatar-message.user .hui-avatar-bubble { border-color: #101828; background: #101828; color: white; }
.hui-avatar-bubble p { font-size: 13px; line-height: 1.68; }
.hui-avatar-message-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.hui-avatar-message-actions a { min-height: 36px; padding: 0 9px; display: inline-flex; align-items: center; border: 1px solid rgba(22, 119, 184, 0.22); border-radius: 6px; background: rgba(22, 119, 184, 0.06); color: #0b679d; font-size: 11px; font-weight: 700; }
.hui-avatar-message-actions a:hover { border-color: rgba(22, 119, 184, 0.45); background: rgba(22, 119, 184, 0.11); }
.hui-avatar-speak { min-width: 44px; min-height: 36px; margin-top: 7px; padding: 0; display: inline-flex; align-items: center; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.hui-avatar-speak:hover { color: var(--sky); }
.hui-avatar-prompts { padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); background: white; }
.hui-avatar-prompts button { min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: white; color: #475467; font-size: 11px; font-weight: 700; cursor: pointer; }
.hui-avatar-prompts button:hover { border-color: rgba(22, 119, 184, 0.4); color: var(--ink); }
.hui-avatar-prompts button:disabled,
.hui-avatar-voice:disabled,
.hui-avatar-send:disabled { cursor: not-allowed; opacity: 0.48; }
.hui-avatar-form { padding: 10px 14px 6px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; border-top: 1px solid var(--line); background: white; }
.hui-avatar-input-wrap { min-width: 0; height: 42px; padding: 0 11px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; }
.hui-avatar-input-wrap:focus-within { border-color: rgba(22, 119, 184, 0.56); box-shadow: 0 0 0 3px rgba(22, 119, 184, 0.1); }
.hui-avatar-input-wrap input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.hui-avatar-input-wrap input::placeholder { color: #98a2b3; }
.hui-avatar-voice,
.hui-avatar-send { min-width: 48px; height: 42px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.hui-avatar-voice { border: 1px solid var(--line); background: white; color: #475467; }
.hui-avatar-voice:hover:not(:disabled) { border-color: rgba(22, 119, 184, 0.42); color: var(--ink); }
.hui-avatar-voice.is-listening { border-color: rgba(207, 49, 80, 0.42); background: rgba(207, 49, 80, 0.08); color: var(--rose); }
.hui-avatar-send { border: 1px solid #101828; background: #101828; color: white; }
.hui-avatar-send:hover:not(:disabled) { background: var(--ink-soft); }
.hui-avatar-privacy { min-height: 26px; padding: 0 14px 8px; background: white; color: var(--subtle); font-size: 10px; line-height: 1.6; text-align: center; }

@media (max-width: 1120px) {
  .site-nav { grid-template-columns: auto auto; gap: 10px; }
  .nav-cta { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-nav nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .site-nav nav::-webkit-scrollbar { display: none; }
  .home-hero { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr); gap: 34px; }
  .timeline-track { overflow-x: auto; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(280px, 38vw); padding-bottom: 10px; cursor: grab; scrollbar-color: var(--subtle) transparent; }
}

@media (max-width: 900px) {
  .home-hero,
  .resume-layout,
  .work-feature { grid-template-columns: 1fr; }
  .hero-system { max-width: 680px; }
  .featured-work-grid,
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-feature figure { min-height: 330px; border-right: 0; border-bottom: 1px solid var(--line); }
  .resume-summary { position: static; }
}

@media (max-width: 640px) {
  body.avatar-open { overflow: hidden; }
  .site-nav { padding: 10px 14px 8px; }
  .site-nav nav { gap: 1px; padding-bottom: 2px; }
  .site-nav nav a { padding: 7px 8px; font-size: 12px; }
  .nav-cta { min-height: 32px; padding: 0 12px; }
  .home-hero { width: min(100% - 28px, 1240px); padding: 30px 0 44px; gap: 26px; }
  .hero-copy h1 { font-size: 58px; }
  .subtitle { font-size: 24px; }
  .lead { font-size: 15px; line-height: 1.82; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .avatar-entry { grid-column: 1 / -1; }
  .system-panel-head { min-height: 50px; }
  .system-visual { height: 190px; border-bottom: 0; }
  .system-metrics,
  .system-routes,
  .wechat-card { display: none; }
  .page-section,
  .subpage { width: min(100% - 28px, 1200px); padding: 52px 0; }
  .section-head { grid-template-columns: 1fr; gap: 7px; align-items: start; }
  .section-head h2,
  .section-head.compact h2 { font-size: 36px; }
  .timeline-track { grid-auto-columns: minmax(280px, 88vw); }
  .timeline-track article { min-height: 300px; }
  .featured-work-grid,
  .project-index,
  .content-grid,
  .merged-contact-grid,
  .work-grid,
  .service-grid,
  .contact-brief > div { grid-template-columns: 1fr; }
  .project-index a { min-height: 118px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-index a:last-child { border-bottom: 0; }
  .featured-work > div { padding: 20px; }
  .featured-work h3 { font-size: 27px; }
  .feature-band,
  .article-hero { grid-template-columns: 1fr; }
  .feature-band h2 { font-size: 40px; }
  .feature-band img,
  .article-hero img { width: 124px; height: 124px; }
  .page-hero { padding-bottom: 36px; }
  .page-hero h1 { font-size: 54px; }
  .page-hero > p:last-child,
  .article-hero > div > p:last-child { font-size: 16px; }
  .content-card,
  .contact-card,
  .service-grid article { min-height: auto; padding: 21px; }
  .work-feature { min-height: 0; }
  .work-feature figure { min-height: 0; aspect-ratio: 16 / 10; }
  .work-feature-copy { padding: 22px; }
  .work-feature-copy h2 { font-size: 29px; }
  .work-card { min-height: 245px; }
  .article-entry { padding: 22px; }
  .article-entry h2 { font-size: 28px; }
  .contact-brief { padding: 22px; }
  .contact-brief h2 { font-size: 34px; }
  .contact-brief > div span { min-height: 68px; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-brief > div span:last-child { border-bottom: 0; }
  .redirect-page h1 { font-size: 30px; }
  .hui-avatar-launcher { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); min-width: 64px; width: 64px; min-height: 64px; height: 64px; padding: 5px; }
  .hui-avatar-launcher-photo,
  .hui-avatar-launcher-photo img { width: 52px; height: 52px; }
  .hui-avatar-launcher-photo { flex-basis: 52px; }
  .hui-avatar-launcher-copy { display: none; }
  .hui-avatar-panel { inset: auto 0 0; width: 100%; height: min(680px, calc(100dvh - 10px)); max-height: calc(100dvh - 10px); min-height: 0; border-radius: 8px 8px 0 0; transform-origin: bottom center; }
  .hui-avatar-prompts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hui-avatar-prompts::-webkit-scrollbar { display: none; }
  .hui-avatar-prompts button { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
