:root {
  --ink: #172033;
  --muted: #5f6b7c;
  --subtle: #8a95a5;
  --line: #d7dee8;
  --paper: #ffffff;
  --soft: #f7f9fc;
  --wash: #edf3f7;
  --sky: #1677b8;
  --rose: #cf3150;
  --green: #17806d;
  --gold: #b7791f;
  --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, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 32, 51, .025) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfe 0%, #eef4f8 100%);
  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.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }
strong, b { font-weight: 600; }
img { max-width: 100%; display: block; }
.edge-line {
  position: fixed;
  inset: 0 auto 0 0;
  width: 4px;
  z-index: 100;
  background: linear-gradient(180deg, var(--rose), var(--sky), var(--green));
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  margin: 0;
  padding: 12px max(18px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: rgba(251, 252, 254, .9);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(217, 224, 234, .86);
}
.site-nav::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, .54);
}
.mark { display: inline-flex; align-items: baseline; gap: 2px; font-size: 21px; font-weight: 700; }
.mark span { color: var(--ink); }
.mark b { color: var(--rose); }
.site-nav nav {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.site-nav nav a {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 10px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.site-nav nav a:hover, .site-nav nav a.active {
  color: var(--ink);
  border-color: rgba(11, 139, 220, .28);
  background: rgba(255, 255, 255, .72);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-cta:hover { background: #263248; }

.home-hero {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  min-height: auto;
  padding: 64px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .86fr);
  gap: 46px;
  align-items: start;
}
.hero-copy, .hero-system { min-width: 0; }
.section-label {
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-copy h1 { margin-top: 14px; font-size: clamp(48px, 6vw, 82px); line-height: 1.02; letter-spacing: 0; font-weight: 600; }
.subtitle {
  margin-top: 18px;
  max-width: 760px;
  color: #344054;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.28;
  font-weight: 600;
}
.accent-bars { display: flex; gap: 7px; margin: 26px 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.85; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.hero-proof span {
  padding: 7px 10px;
  border: 1px solid rgba(16, 24, 40, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  color: #344054;
  font-size: 12px;
  font-weight: 600;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}
.profile-grid a,
.bento-card,
.content-card,
.work-card,
.service-grid article,
.pricing-grid article,
.contact-grid article {
  border: 1px solid rgba(217, 224, 234, .96);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .045);
}
.profile-grid a {
  padding: 15px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.profile-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 119, 184, .35);
  background: white;
  box-shadow: var(--shadow);
}
.profile-grid span, .work-card span, .service-grid span, .contact-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.profile-grid strong { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  font-weight: 700;
}
.button.primary { color: white; border-color: var(--ink); background: var(--ink); }
.button:hover { border-color: rgba(11, 139, 220, .42); }

.hero-system { position: relative; align-self: start; }
.system-panel {
  border: 1px solid rgba(16, 24, 40, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 60px rgba(23, 32, 51, .09);
  overflow: hidden;
}
.system-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.system-panel-head span { color: var(--rose); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.system-panel-head strong { font-size: 13px; color: var(--muted); }
.system-visual {
  height: 185px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.system-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.05); }
.system-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.system-metrics article {
  min-height: 88px;
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}
.system-metrics article:last-child { border-right: 0; }
.system-metrics b { display: block; font-size: clamp(28px, 3.2vw, 40px); line-height: .95; }
.system-metrics span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.system-routes { display: grid; }
.system-routes a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
}
.system-routes a:hover { background: var(--soft); }
.system-routes span { color: var(--sky); font-weight: 700; }
.system-routes strong { font-size: 15px; }
.wechat-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: #101828;
  color: white;
}
.wechat-card img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: white;
}
.wechat-card b { display: block; font-size: 17px; }
.wechat-card small { display: block; margin-top: 6px; color: rgba(255,255,255,.72); line-height: 1.6; }

.page-section, .subpage { width: min(1200px, calc(100% - 36px)); margin: 0 auto; padding: 68px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2 { max-width: 760px; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.12; font-weight: 600; }
.section-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  white-space: nowrap;
}
.timeline-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 38vw);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  cursor: grab;
  scrollbar-color: var(--subtle) transparent;
}
.timeline-track article {
  min-height: 330px;
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16,24,40,.045);
  display: flex;
  flex-direction: column;
}
.timeline-track article.now { color: white; background: var(--ink); }
.timeline-track p { color: var(--rose); font-size: 12px; font-weight: 600; }
.timeline-track time { margin-top: 16px; color: var(--muted); font-weight: 600; }
.timeline-track article.now time, .timeline-track article.now span { color: rgba(255,255,255,.68); }
.timeline-track h3 { margin-top: auto; font-size: 28px; line-height: 1.12; font-weight: 600; }
.timeline-track span { display: block; margin-top: 14px; color: var(--muted); }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bento-card {
  min-height: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 119, 184, .32);
  box-shadow: var(--shadow);
}
.bento-card.wide { grid-column: span 2; }
.bento-card.dark { color: white; background: #101828; }
.bento-card.accent { background: linear-gradient(135deg, rgba(226,60,85,.10), rgba(11,139,220,.08)), white; }
.bento-card.education,
.work-card.education {
  background:
    linear-gradient(135deg, rgba(23, 128, 109, .12), rgba(183, 121, 31, .10)),
    rgba(255,255,255,.9);
}
.bento-card span { color: var(--rose); font-size: 12px; font-weight: 600; }
.bento-card h3 { margin-top: auto; font-size: 28px; line-height: 1.14; font-weight: 600; }
.bento-card p { margin-top: 14px; color: var(--muted); }
.bento-card.dark p { color: rgba(255,255,255,.72); }
.bento-card em {
  margin-top: 18px;
  color: var(--sky);
  font-style: normal;
  font-weight: 700;
}
.bento-card.dark em { color: white; }

.depth-section { padding-top: 34px; }
.depth-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 12px;
}
.depth-tabs {
  display: grid;
  gap: 8px;
  align-self: start;
}
.depth-tabs button {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.depth-tabs button:hover,
.depth-tabs button.active {
  border-color: rgba(22, 119, 184, .36);
  background: white;
  color: var(--ink);
}
.depth-panels {
  min-height: 290px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.depth-panel {
  display: none;
  min-height: 290px;
  padding: 30px;
}
.depth-panel.active {
  display: flex;
  flex-direction: column;
}
.depth-panel span {
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.depth-panel h3 {
  margin-top: 18px;
  max-width: 760px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 600;
}
.depth-panel p {
  margin-top: 18px;
  max-width: 820px;
  color: #475467;
  font-size: 17px;
  line-height: 1.85;
}
.depth-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: auto;
  color: var(--sky);
  font-weight: 700;
}

.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: 10px; max-width: 820px; font-size: clamp(32px, 5vw, 58px); line-height: 1.08; font-weight: 600; }
.feature-band p:not(.section-label) { margin-top: 18px; max-width: 760px; color: #475467; font-size: 17px; }
.feature-band img {
  width: 150px;
  border: 10px solid white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}

.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.site-footer a:hover { color: var(--sky); }

.subpage { padding-top: 48px; }
.back-link { display: inline-flex; margin-bottom: 28px; color: var(--muted); font-size: 13px; font-weight: 600; }
.back-link:hover { color: var(--sky); }
.page-hero { max-width: 960px; padding-bottom: 46px; }
.page-hero h1 { margin-top: 12px; font-size: clamp(46px, 7vw, 82px); line-height: 1.04; font-weight: 600; }
.page-hero p:last-child { margin-top: 18px; color: #475467; font-size: 18px; max-width: 760px; }
.article-hero {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 28px;
  align-items: end;
}
.article-hero img {
  width: 132px;
  border: 8px solid white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}
.content-grid, .work-grid, .service-grid, .pricing-grid, .contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.content-card { padding: 24px; min-height: 250px; }
.content-card.large { grid-column: span 2; }
.content-card h2, .service-grid h2, .pricing-grid h2, .contact-grid h2 { font-size: 28px; line-height: 1.16; font-weight: 600; }
.content-card p { margin-top: 14px; color: #475467; }
.clean-list { margin: 18px 0 0; padding: 0; list-style: none; color: #475467; }
.clean-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-cloud span {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.merged-contact {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.merged-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 280px;
  gap: 12px;
}
.contact-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .045);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
a.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 119, 184, .35);
  background: white;
  box-shadow: var(--shadow);
}
.contact-card span {
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.contact-card h2 {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.16;
}
.contact-card p {
  margin-top: 12px;
  color: #475467;
  line-height: 1.85;
}
.contact-card b {
  display: block;
  margin-top: 18px;
  color: var(--sky);
}
.contact-card-main {
  grid-row: span 2;
  background: var(--ink);
  color: white;
}
.contact-card-main span { color: rgba(255,255,255,.68); }
.contact-card-main p { color: rgba(255,255,255,.72); }
.contact-card-main dl {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}
.contact-card-main dl div {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.contact-card-main dt {
  color: rgba(255,255,255,.56);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.contact-card-main dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
}
.contact-card-qr {
  display: grid;
  place-items: center;
  padding: 18px;
}
.contact-card-qr img {
  width: min(220px, 100%);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}

.resume-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.resume-summary {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}
.resume-summary span { color: rgba(255,255,255,.68); }
.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: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.resume-list h2, .change-list h2 { margin-top: 8px; font-size: 28px; line-height: 1.18; font-weight: 600; }
.resume-list p, .change-list p { margin-top: 8px; color: #475467; }

.work-card {
  scroll-margin-top: 96px;
  min-height: 300px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.work-card:hover, .service-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 139, 220, .32);
  box-shadow: var(--shadow);
}
.work-card.featured {
  grid-column: span 2;
  color: white;
  background:
    linear-gradient(180deg, rgba(16,24,40,.20), rgba(16,24,40,.94)),
    url("assets/ai-platform-hero.png") center / cover;
}
.work-card.featured span, .work-card.featured p { color: rgba(255,255,255,.78); }
.work-card h2 { margin-top: auto; font-size: 32px; line-height: 1.12; font-weight: 600; }
.work-card p { margin-top: 12px; color: #475467; }
.work-card b, .work-card em {
  display: block;
  margin-top: 18px;
  color: var(--sky);
  font-style: normal;
  font-weight: 600;
}
.work-card.featured b, .work-card.featured em { color: white; }
.work-card.featured em { opacity: .72; }
.avatar-work-card img {
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
  border: 4px solid white;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .16);
}
.avatar-work-card h2 { margin-top: auto; }

.article-stack {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.article-entry {
  display: block;
  scroll-margin-top: 92px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .045);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.article-entry:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 119, 184, .35);
  background: white;
  box-shadow: var(--shadow);
}
.article-entry:target {
  border-color: rgba(22, 119, 184, .45);
  box-shadow: var(--shadow);
}
.article-entry h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
}
.article-entry p {
  margin-top: 14px;
  max-width: 920px;
  color: #475467;
  font-size: 16px;
  line-height: 1.85;
}
.article-entry b {
  display: block;
  margin-top: 18px;
  color: var(--sky);
  font-weight: 700;
}

.service-grid article, .pricing-grid article, .contact-grid article {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.service-grid a, .pricing-grid a, .contact-grid a { margin-top: auto; color: var(--sky); font-weight: 600; overflow-wrap: anywhere; }
.service-grid p, .pricing-grid li, .contact-grid p { color: #475467; }
.pricing-grid article.featured { color: white; background: var(--ink); }
.pricing-grid article.featured li, .pricing-grid article.featured p { color: rgba(255,255,255,.72); }
.pricing-grid strong { display: block; margin: 18px 0; font-size: 24px; }
.pricing-grid ul { margin: 0; padding-left: 18px; }
.contact-grid article { min-height: 210px; }
.contact-grid .qr-contact {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 24px;
}
.qr-contact img {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: 220px;
  border-radius: 8px;
  border: 8px solid white;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}

.contact-page { padding-top: 40px; }
.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
  padding-bottom: 42px;
}
.contact-hero h1 {
  margin-top: 12px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1.04;
}
.contact-hero p:not(.section-label) {
  margin-top: 18px;
  max-width: 760px;
  color: #475467;
  font-size: 18px;
}
.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.contact-tags span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.contact-signal {
  align-self: end;
  padding: 24px;
  border: 1px solid rgba(16, 24, 40, .14);
  border-radius: 8px;
  background: var(--ink);
  color: white;
}
.contact-signal span,
.contact-qr-panel span,
.contact-method span {
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.contact-signal strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.18;
}
.contact-signal p {
  margin-top: 14px;
  color: rgba(255,255,255,.72);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 12px;
}
.contact-qr-panel,
.contact-method,
.contact-brief {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .045);
}
.contact-qr-panel {
  min-height: 470px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
}
.contact-qr-panel h2,
.contact-method h2,
.contact-brief h2 {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.16;
}
.contact-qr-panel p,
.contact-method p {
  margin-top: 12px;
  color: #475467;
  line-height: 1.85;
}
.contact-qr-panel img {
  width: 220px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}
.contact-facts {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}
.contact-facts div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.contact-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.contact-facts dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
}
.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.contact-method {
  min-height: 228px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.contact-method:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 119, 184, .35);
  background: white;
  box-shadow: var(--shadow);
}
.contact-method b {
  display: block;
  margin-top: auto;
  color: var(--sky);
  overflow-wrap: anywhere;
}
.contact-brief {
  margin-top: 56px;
  padding: 28px;
}
.contact-brief h2 {
  max-width: 760px;
  font-size: clamp(30px, 4.2vw, 50px);
}
.contact-brief div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}
.contact-brief div span {
  min-height: 96px;
  padding: 18px;
  background: rgba(255,255,255,.78);
  color: #475467;
  font-weight: 700;
}

.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;
}

.button.avatar-entry {
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hui-avatar-root {
  position: relative;
  z-index: 90;
}

.hui-avatar-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 91;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 206px;
  min-height: 68px;
  padding: 7px 13px 7px 7px;
  border: 1px solid rgba(23, 32, 51, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(16, 24, 40, .18);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hui-avatar-launcher:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 119, 184, .45);
  box-shadow: 0 20px 44px rgba(16, 24, 40, .22);
}

.hui-avatar-launcher:focus-visible,
.hui-avatar-close:focus-visible,
.hui-avatar-prompts button:focus-visible,
.hui-avatar-voice:focus-visible,
.hui-avatar-send:focus-visible,
.hui-avatar-speak:focus-visible {
  outline: 3px solid rgba(22, 119, 184, .28);
  outline-offset: 2px;
}

.hui-avatar-launcher-photo {
  position: relative;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  overflow: visible;
  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 {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.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, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 76px rgba(16, 24, 40, .24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(.985);
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease, visibility .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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  padding: 12px 14px;
  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,.68);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hui-avatar-portrait {
  position: relative;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border: 2px solid rgba(255,255,255,.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: 8px;
  background: var(--sky);
}

.hui-avatar-wave i {
  width: 2px;
  height: 6px;
  border-radius: 2px;
  background: white;
  opacity: .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 .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: .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: .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: .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, .24); }
}

@keyframes hui-avatar-wave {
  from { height: 5px; }
  to { height: 13px; }
}

.hui-avatar-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: white;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.hui-avatar-close:hover { background: rgba(255,255,255,.16); }

.hui-avatar-disclosure {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  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;
  overflow-y: auto;
  padding: 16px 14px 10px;
  background: #f3f6f9;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.hui-avatar-message {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin-bottom: 14px;
}

.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, .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;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(22, 119, 184, .22);
  border-radius: 6px;
  background: rgba(22, 119, 184, .06);
  color: #0b679d;
  font-size: 11px;
  font-weight: 700;
}

.hui-avatar-message-actions a:hover {
  border-color: rgba(22, 119, 184, .45);
  background: rgba(22, 119, 184, .11);
}

.hui-avatar-speak {
  min-width: 44px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.hui-avatar-speak:hover { color: var(--sky); }

.hui-avatar-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  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: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.hui-avatar-prompts button:hover {
  border-color: rgba(22, 119, 184, .4);
  color: var(--ink);
}

.hui-avatar-prompts button:disabled,
.hui-avatar-voice:disabled,
.hui-avatar-send:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.hui-avatar-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 14px 6px;
  border-top: 1px solid var(--line);
  background: white;
}

.hui-avatar-input-wrap {
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.hui-avatar-input-wrap:focus-within {
  border-color: rgba(22, 119, 184, .56);
  box-shadow: 0 0 0 3px rgba(22, 119, 184, .1);
}

.hui-avatar-input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.hui-avatar-input-wrap input::placeholder { color: #98a2b3; }

.hui-avatar-voice,
.hui-avatar-send {
  height: 42px;
  min-width: 48px;
  padding: 0 10px;
  border-radius: 6px;
  font: inherit;
  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, .42);
  color: var(--ink);
}

.hui-avatar-voice.is-listening {
  border-color: rgba(207, 49, 80, .42);
  background: rgba(207, 49, 80, .08);
  color: var(--rose);
}

.hui-avatar-send {
  border: 1px solid #101828;
  background: #101828;
  color: white;
}

.hui-avatar-send:hover:not(:disabled) { background: #263248; }

.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: 12px;
  }
  .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;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .site-nav nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 980px) {
  .home-hero, .resume-layout, .depth-shell, .contact-hero, .contact-layout { grid-template-columns: 1fr; }
  .hero-system { max-width: 680px; }
  .bento-grid, .content-grid, .work-grid, .service-grid, .pricing-grid, .contact-grid { grid-template-columns: 1fr; }
  .bento-card.wide, .content-card.large, .work-card.featured, .contact-grid .qr-contact { grid-column: auto; }
  .resume-summary { position: static; }
  .depth-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .depth-tabs button { text-align: center; }
  .contact-signal { align-self: stretch; }
}

@media (max-width: 640px) {
  .site-nav { padding-inline: 14px; }
  .site-nav nav a { padding: 8px 11px; font-size: 12px; }
  .nav-cta { min-height: 32px; padding-inline: 12px; }
  .home-hero { width: min(100% - 28px, 1240px); padding-top: 30px; gap: 30px; }
  .hero-copy h1 { font-size: clamp(50px, 16vw, 70px); }
  .subtitle { font-size: 22px; }
  .profile-grid { grid-template-columns: 1fr; }
  .system-panel-head { display: grid; }
  .system-visual { height: 190px; }
  .system-metrics { grid-template-columns: 1fr; }
  .system-metrics article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .system-metrics article:last-child { border-bottom: 0; }
  .wechat-card { grid-template-columns: 72px 1fr; }
  .wechat-card img { width: 72px; height: 72px; }
  .page-section, .subpage { width: min(100% - 28px, 1200px); padding: 58px 0; }
  .section-head { display: grid; align-items: start; }
  .section-head h2 { font-size: clamp(30px, 10vw, 42px); }
  .timeline-track { grid-auto-columns: minmax(280px, 88vw); }
  .depth-tabs { grid-template-columns: 1fr; }
  .depth-panel { padding: 22px; }
  .depth-panel h3 { font-size: 28px; }
  .feature-band, .article-hero, .contact-grid .qr-contact, .contact-qr-panel, .contact-methods, .contact-brief div { grid-template-columns: 1fr; }
  .feature-band img, .article-hero img {
    grid-column: auto;
    grid-row: auto;
    width: 124px;
  }
  .qr-contact img {
    grid-column: auto;
    grid-row: auto;
    width: min(180px, 100%);
  }
  .contact-hero h1 { font-size: clamp(46px, 14vw, 72px); }
  .contact-qr-panel { min-height: auto; padding: 22px; }
  .contact-qr-panel img { width: min(210px, 100%); }
  .contact-method { min-height: 210px; }
  .page-hero h1 { font-size: clamp(46px, 14vw, 72px); }
  .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-header { padding-inline: 12px; }
  .hui-avatar-disclosure { padding-inline: 12px; }
  .hui-avatar-messages { padding: 14px 12px 8px; }
  .hui-avatar-prompts {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-inline: 12px;
    scrollbar-width: none;
  }
  .hui-avatar-prompts::-webkit-scrollbar { display: none; }
  .hui-avatar-prompts button { flex: 0 0 auto; }
  .hui-avatar-form { padding-inline: 12px; }
  .hui-avatar-privacy { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hui-avatar-launcher,
  .hui-avatar-panel,
  .hui-avatar-portrait,
  .hui-avatar-wave i {
    animation: none !important;
    transition: none !important;
  }
}
