:root {
  color-scheme: light;
  --page: #f7f6f2;
  --ink: #191c29;
  --muted: #515562;
  --blue: #2b43bd;
  --blue-hover: #203397;
  --line: #d8d7d0;
  --washed: #ebeefa;
  --navy: #1b2341;
  --body-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1rem/1.8 var(--body-font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid #5269df;
  outline-offset: 5px;
}

section[id] { scroll-margin-top: 1.25rem; }
section[tabindex="-1"]:focus { outline: none; }

.wrap {
  width: min(1232px, calc(100% - 120px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 6;
  top: .75rem;
  left: .75rem;
  padding: .5rem .85rem;
  transform: translateY(-170%);
  background: var(--page);
  border: 1px solid var(--line);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 79px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 760;
  white-space: nowrap;
  text-decoration: none;
}

.brand-icon {
  display: grid;
  width: 2.12rem;
  height: 2.12rem;
  place-items: center;
  border-radius: .2rem;
  background: var(--blue);
  color: #fff;
  font-size: 1.08rem;
  line-height: 1;
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(.34rem, 1vw, .75rem);
}
.nav-sections { display: contents; }
.nav-toggle { display: none; }

.nav a, .back-top {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 640;
}

.nav a {
  justify-content: center;
  padding: .35rem .95rem;
  border: 1px solid #d9d9e4;
  border-radius: .65rem;
  background: #fcfbf8;
  line-height: 1.2;
  white-space: nowrap;
}
.nav .nav-contact { color: var(--blue); background: #ebefff; border-color: #d7dff8; }
.nav a:hover,
body:has(#ecommerce:target, #work:target, #longxu-case:target) .nav a[href="#ecommerce"],
body:has(#ai:target) .nav a[href="#ai"],
body:has(#claude:target) .nav a[href="#claude"],
body:has(#career:target) .nav a[href="#career"],
body:has(#about:target, #content:target) .nav a[href="#about"],
body:has(#contact:target) .nav a[href="#contact"] {
  color: var(--blue-hover);
  background: #e7ecfc;
  border-color: #889adf;
}
.back-top:hover { text-decoration: underline; text-underline-offset: .25em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-block: clamp(3.15rem, 5.2vw, 5.15rem);
}

.intro {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.15rem;
  color: var(--blue);
  font-weight: 720;
}

.intro span {
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

h1 {
  font-size: clamp(2.45rem, 5.4vw, 4.9rem);
  line-height: 1.13;
  letter-spacing: -.059em;
  font-weight: 800;
}

h1 span { color: var(--blue); }

.hero-lead {
  max-width: 28rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.88;
}
.hero-lead strong { color: var(--blue-hover); font-weight: 650; white-space: nowrap; }

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .68rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: .55rem 1.17rem;
  border: 1px solid transparent;
  border-radius: 100vw;
  font-weight: 690;
  text-decoration: none;
}

.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-hover); }
.button-secondary { border-color: #bfbfd0; }
.button-secondary:hover { background: #eeedf6; border-color: var(--blue); }

h2 {
  font-size: clamp(2rem, 3.65vw, 3.2rem);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.17;
}

.module {
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
  align-items: start;
  gap: clamp(1.7rem, 5vw, 4.4rem);
  padding-block: clamp(2.6rem, 6vw, 5.25rem);
}

.module.ecommerce { display: block; border-top: 1px solid var(--line); }
.ecommerce-intro {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: start;
  gap: clamp(1.3rem, 6vw, 5rem);
}
.module-lead { max-width: 37rem; margin-top: .95rem; color: var(--muted); }

.category-list { padding-top: .2rem; }
.category-list h3 {
  margin-bottom: .48rem;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}
.category-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  max-width: 32rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.category-list li {
  padding: .18rem .6rem;
  border: 1px solid #dcdcd5;
  border-radius: .45rem;
  background: #fcfbf8;
  font-size: .875rem;
}

.journal h3 {
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  font-weight: 760;
  line-height: 1.32;
  letter-spacing: -.02em;
}

.project-detail { margin-top: clamp(2rem, 4.5vw, 3.75rem); }
.project-detail > h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.35;
}
.feature-grid, .compact-grid { display: grid; gap: clamp(.72rem, 1.5vw, 1.15rem); }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.05rem; }
.case-feature, .case-compact {
  min-width: 0;
  padding: clamp(1.1rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.case-feature { background: var(--navy); color: #fff; border-color: #263357; }
#longxu-case { scroll-margin-top: .75rem; }
.case-feature:nth-child(2) { background: #e8edfc; color: #202b4e; border-color: #cbd4ec; }
.case-compact { background: #fffcf7; padding: clamp(1rem, 2vw, 1.5rem); }
.project-detail h4 { margin: 0; font-size: 1.06rem; font-weight: 700; line-height: 1.45; }
.case-feature h4 { font-size: clamp(1.23rem, 1.8vw, 1.52rem); }
.case-story { min-height: 3.4em; margin-top: .62rem; line-height: 1.65; }
.result-metrics { display: flex; margin: 1rem 0 0; }
.case-feature .result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  padding-top: .8rem;
  border-top: 1px solid #ffffff42;
}
.case-feature:nth-child(2) .result-metrics { border-color: #bfc9e0; }
.result-metrics dt { font-size: .88rem; line-height: 1.5; }
.result-metrics dd {
  margin: .15rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.result-metrics dd small { margin-left: .16em; font-size: .45em; letter-spacing: 0; }
.case-compact .result-metrics dd { font-size: clamp(1.63rem, 2.5vw, 2.15rem); color: var(--blue-hover); }
.case-compact dt, .case-compact .project-note { color: var(--muted); }
.project-note { margin-top: .8rem; font-size: .88rem; line-height: 1.5; }
.project-detail .amount { white-space: nowrap; }

.ai-band { background: var(--washed); }
.module.ai { display: block; }
.ai-intro { margin-top: .9rem; color: #485066; font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.7; }
.ai-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.4rem, 3vw, 2.45rem);
}
.ai-option {
  --copy: #464e62;
  --rule: #d7dced;
  min-width: 0;
  padding: clamp(1.3rem, 2.6vw, 2.15rem);
  border: 1px solid #cbd4ef;
  border-radius: 1.05rem;
  background: #fcfcff;
  color: #202a49;
}
.ai-option.commerce {
  --copy: #d7deed;
  --rule: #444d6a;
  background: var(--navy);
  border-color: var(--navy);
  color: #f7f8ff;
}
.ai-option h3 { font-size: clamp(1.35rem, 2.1vw, 1.82rem); line-height: 1.32; letter-spacing: -.025em; }
.ai-option p { color: var(--copy); font-size: 1rem; line-height: 1.7; }
.ai-lead { margin-top: .7rem; }
.ai-option :is(ul, ol) { margin: 1.35rem 0 0; padding: 0; list-style: none; }
.ai-option li { padding-block: .88rem; border-top: 1px solid var(--rule); }
.ai-option li:last-child { padding-bottom: 0; }
.ai-option li strong { font-size: 1.01rem; line-height: 1.45; font-weight: 720; }
.ai-option li p { margin-top: .24rem; }
.ai-option:not(.commerce) ol { counter-reset: step; }
.ai-option:not(.commerce) ol li { counter-increment: step; position: relative; padding-left: 2rem; }
.ai-option:not(.commerce) ol li::before {
  content: counter(step);
  position: absolute;
  top: .95rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.38rem;
  height: 1.38rem;
  border-radius: 50%;
  background: #e6ebfc;
  color: #314eb0;
  font-size: .8rem;
  font-weight: 700;
}
.ai-option.commerce { container-type: inline-size; }
.commerce .ai-steps {
  display: grid;
  column-gap: 1.2rem;
}
.commerce .ai-steps li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-content: start;
  column-gap: .4rem;
}
.ai-step-number {
  color: #b8c8ff;
  font-size: .88rem;
  line-height: 1.65;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ai-steps li p { grid-column: 2; }
@container (min-width: 26rem) {
  .commerce .ai-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .ai-options { grid-template-columns: minmax(0, 1fr); }
}

.module.about { grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.75rem); }
.ai-option a[href="#claude"] { color: var(--blue); text-underline-offset: .15em; }
.claude-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.6rem, 6vw, 5rem);
  padding-block: clamp(2.6rem, 6vw, 5.25rem);
  border-bottom: 1px solid var(--line);
}
.claude-copy p { max-width: 32rem; margin-top: 1rem; color: var(--muted); }
.claude-copy .button { margin-top: 1.3rem; }
.claude-steps { margin: 0; border-top: 2px solid var(--blue); }
.claude-steps > div { padding: .9rem .1rem; border-bottom: 1px solid var(--line); }
.claude-steps dt { font-size: 1.07rem; font-weight: 700; }
.claude-steps dd { margin: .2rem 0 0; color: var(--muted); }
.about-kicker { margin: 0 0 .4rem; color: var(--blue); font-size: .94rem; font-weight: 680; }
.about-copy > p:not(.about-kicker) { max-width: 57rem; margin-top: 1rem; color: var(--muted); font-size: clamp(1rem, 1.22vw, 1.12rem); }
.about-copy > p.about-lead { color: var(--ink); font-weight: 620; }
.journal {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2.5rem);
  border-top: 3px solid var(--blue);
  background: #eceffa;
}
.journal h3 + p, .career-section p { margin-top: .62rem; color: #414a62; }
.journal h3 + p, .career-section > p { max-width: 54rem; }
.module.career-section { display: block; border-bottom: 1px solid var(--line); }
.career-section h2 { text-wrap: balance; }
.career-roles {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.35rem, .75vw, .65rem);
  margin: 1rem 0 1.2rem;
  padding: 0;
  list-style: none;
}
.career-roles li {
  display: grid;
  place-items: center;
  width: clamp(4rem, 7.2vw, 4.9rem);
  aspect-ratio: 1;
  border: 1px solid #cdd7f1;
  border-radius: .5rem;
  background: #edf1fc;
  color: var(--blue-hover);
  font-size: clamp(.875rem, 1.25vw, 1rem);
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}
.career-path { margin-top: 1.35rem; }
.career-path + .career-path { padding-top: 1.35rem; border-top: 1px solid #ccd4ec; }
.career-path h3 { margin: 0; color: var(--blue-hover); font-size: 1.1rem; line-height: 1.45; }
.career-section .button { min-height: 44px; margin-top: 1.35rem; }
@media (min-width: 60rem) {
  .career-path {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.25fr);
    column-gap: clamp(1.3rem, 3vw, 3rem);
    align-items: baseline;
  }
  .career-path h3 { text-wrap: balance; }
  .career-path p { grid-column: 2; }
  .career-path h3 + p { margin-top: 0; }
}
.journal-accounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 11rem));
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid #c5cee4;
}
@media (max-width: 24rem) {
  .journal-accounts { grid-template-columns: minmax(0, 1fr); }
}
.journal-account { display: grid; justify-items: center; align-content: start; gap: .25rem; }
.journal-account img { width: 135px; height: auto; border-radius: .35rem; image-rendering: pixelated; }
.journal-account .profile { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 670; text-underline-offset: .25rem; }

.contact { padding-block: 0 clamp(3rem, 6.1vw, 5.4rem); }

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, .52fr);
  grid-template-areas: "intro methods" "topics methods";
  align-items: start;
  gap: 1.65rem clamp(2rem, 5vw, 5.2rem);
  padding: clamp(1.2rem, 4.5vw, 4rem);
  border-radius: 1.25rem;
  background: var(--navy);
  color: #fff;
  line-height: 1.7;
}

.contact-intro { grid-area: intro; }
.contact-lead { max-width: 36rem; margin-top: 1rem; color: #e1e6f4; font-size: 1.0625rem; }
.contact-topics { grid-area: topics; margin: 0; }
.contact-topics > div {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr);
  align-items: baseline;
  gap: .25rem 1rem;
  padding-block: 1rem;
  border-top: 1px solid #4c5676;
}
.contact-topics > div:last-child { padding-bottom: 0; }
.contact-topics dt { font-weight: 680; }
.contact-topics dd { margin: 0; color: #d6def2; }
.contact-panel {
  grid-area: methods;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  gap: 1rem;
  min-width: 0;
  padding: clamp(1rem, 2.6vw, 2.2rem);
  border-radius: .9rem;
  background: #263150;
}
.contact-qr { text-align: center; }
.contact-qr img { width: 10.25rem; height: auto; margin-inline: auto; border-radius: .4rem; image-rendering: pixelated; }
.contact-qr figcaption { margin-top: .45rem; font-size: .95rem; font-weight: 650; }
.contact-methods { margin: 0; }
.contact-methods > div { padding-block: .65rem; border-top: 1px solid #556180; }
.contact-methods dt { font-size: .9rem; color: #c7d2ed; }
.contact-methods dd { margin: 0; overflow-wrap: anywhere; }
.wechat-line { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; }
.contact-methods a { display: inline-block; max-width: 100%; padding-block: .25rem; color: #fff; text-underline-offset: .22rem; }
.contact-methods a:hover { color: #d6dfff; }
.copy-wechat:not([hidden]) {
  min-height: 44px;
  padding: .35rem .7rem;
  border: 1px solid #8e9abf;
  border-radius: .65rem;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .88rem;
  line-height: 1.3;
  cursor: pointer;
}
.copy-wechat:hover { background: #364567; }
.contact-panel :focus-visible { outline-color: #bdceff; }
.contact-status { color: #d6def2; font-size: .88rem; }
.contact-status:empty { position: absolute; }
@media (max-width: 49rem) {
  .contact-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "methods" "topics"; gap: 1.25rem; }
  .contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(6.5rem, 9rem); align-items: center; gap: .25rem 1rem; }
  .contact-methods { grid-column: 1; grid-row: 1; }
  .contact-qr { grid-column: 2; grid-row: 1; }
  .contact-status { grid-column: 1 / -1; }
  .contact-topics > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 27rem) {
  .contact-panel { grid-template-columns: minmax(0, 1fr); row-gap: .8rem; }
  .contact-methods, .contact-qr { grid-column: 1; grid-row: auto; }
  .contact-methods { order: -1; }
  .contact-qr img { width: 9rem; }
}

.footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 66px; }
.footer .wordmark { font-size: 1.05rem; }

@media (min-width: 1440px) {
  html {
    /* Increase type with width, while keeping the hero usable in short windows. */
    font-size: clamp(100%, min(calc(25% + .833333vw), 2.2vh), 200%);
    scroll-padding-top: 5rem;
  }
  .wrap { width: min(90%, calc(100% - 208px)); }
  .header-inner { min-height: 5rem; }
  .hero-lead { max-width: 30rem; text-wrap: balance; }
  .career-path p, .claude-steps dd, .ai-option p, .contact-topics dd { max-width: 42em; }
}

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 76px); }
  .hero { gap: clamp(1.7rem, 5vw, 4.1rem); }
}

@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .hero { grid-template-columns: 1fr; gap: 1.9rem; }
  .module, .ecommerce-intro, .claude-section { grid-template-columns: 1fr; }
  .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  html { scroll-padding-top: 102px; }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; padding-block: .48rem; }
  .header-inner .wordmark { justify-self: start; }
  .nav { display: grid; grid-template-columns: 1.4fr .9fr 1.2fr .85fr 1fr 1fr; }
  .nav a { padding-inline: .25rem; font-size: .86rem; }
}

@media (max-width: 540px) {
  .wrap { width: calc(100% - 40px); }
  .wordmark { font-size: 1.05rem; gap: .4em; }
  .brand-icon { width: 1.7rem; height: 1.7rem; font-size: .92rem; }
  .hero { padding-block: 2.6rem 2.25rem; }
  .intro { margin-bottom: .95rem; }
  .hero-lead { margin-top: 1.13rem; font-size: 1.01rem; }
  .actions { margin-top: 1.2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .case-story { min-height: 0; }
  .compact-grid { gap: .6rem; }
  .case-compact { padding: .85rem; }
}

@media (max-width: 570px) {
  html { scroll-padding-top: 150px; }
  .nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 48rem), (max-width: 920px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  html.has-mobile-menu { scroll-padding-top: 3.75rem; }
  .has-mobile-menu .header-inner {
    position: relative;
    display: flex;
    min-height: 3.75rem;
    padding-block: .35rem;
  }
  .has-mobile-menu .nav { display: flex; gap: .5rem; }
  .has-mobile-menu .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 44px;
    padding: .35rem .75rem;
    border: 1px solid #d9d9e4;
    border-radius: .65rem;
    background: #fcfbf8;
    color: var(--ink);
    font: inherit;
    font-size: .94rem;
    font-weight: 640;
    cursor: pointer;
  }
  .nav-toggle::after {
    content: "";
    width: .38rem;
    height: .38rem;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-.1rem) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"]::after { transform: translateY(.1rem) rotate(225deg); }
  .has-mobile-menu .nav-contact { padding-inline: .75rem; font-size: .94rem; }
  .has-mobile-menu .nav-sections {
    position: absolute;
    top: 100%;
    right: 0;
    display: grid;
    width: min(17rem, 100%);
    max-height: calc(100dvh - 4.25rem);
    overflow-y: auto;
    padding: .4rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: var(--page);
    box-shadow: 0 8px 24px #191c2924;
  }
  .has-mobile-menu .nav-toggle[aria-expanded="false"] + .nav-sections { display: none; }
  .has-mobile-menu .nav-sections a {
    justify-content: flex-start;
    padding-inline: .85rem;
    border-color: transparent;
    background: transparent;
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .compact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
