:root {
  --paper: #f1eee6;
  --paper-deep: #e6e0d3;
  --ink: #11233d;
  --ink-soft: #566477;
  --blue: #0969da;
  --blue-deep: #073f91;
  --signal: #ef5a3c;
  --mint: #06bd91;
  --line: rgba(17, 35, 61, 0.2);
  --white: #fffdf8;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
}

button, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(9, 105, 218, 0.35);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
}

.site-header {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid var(--ink);
  background: var(--white);
}

.mochuang-brand, .brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.mochuang-mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
}
.mochuang-mark::before, .mochuang-mark::after, .mochuang-mark i {
  content: "";
  position: absolute;
  background: var(--ink);
}
.mochuang-mark::before { width: 2px; height: 100%; left: 50%; }
.mochuang-mark::after { width: 100%; height: 2px; top: 50%; }
.mochuang-mark i:first-child { width: 13px; height: 2px; top: 8px; left: 8px; transform: rotate(-45deg); }
.mochuang-mark i:last-child { width: 13px; height: 2px; right: 8px; bottom: 8px; transform: rotate(-45deg); }
.mochuang-brand strong { display: block; font-family: var(--serif); font-size: 19px; letter-spacing: .12em; }
.mochuang-brand small, .brand-lockup small {
  display: block;
  margin-top: 1px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
}

.co-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.brand-lockup strong { display: block; font-size: 16px; line-height: 1.1; }
.tencent-logo { width: 42px; height: 30px; }
.workbuddy-logo { width: 34px; height: 34px; }
.signed-label {
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  white-space: nowrap;
}

.environment-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 9px 20px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  background: #ffd75a;
  font-size: 12px;
}
.environment-notice strong {
  padding-right: 16px;
  border-right: 1px solid rgba(17, 35, 61, .35);
  font-size: 11px;
  letter-spacing: .1em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(360px, .68fr) minmax(760px, 1.32fr);
  min-height: calc(100svh - 172px);
}
.intro-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(42px, 4.6vw, 76px);
  border-right: 1px solid var(--ink);
}
.section-code {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(58px, 5.8vw, 94px);
  font-weight: 500;
  line-height: .93;
  letter-spacing: -.065em;
}
h1 em { color: var(--blue); font-style: normal; }
.intro-lede {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.25vw, 20px);
}

.identity-card {
  padding: 18px 20px;
  border: 1px solid var(--ink);
  border-left: 5px solid var(--blue);
  background: var(--white);
}
.identity-card span, .identity-card small { display: block; color: var(--ink-soft); font-size: 11px; }
.identity-card strong {
  display: block;
  margin: 5px 0;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 600;
}

.compact-steps { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.compact-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.compact-steps li > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
}
.compact-steps p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.compact-steps strong { display: inline; margin-right: 9px; color: var(--ink); font-size: 13px; }
.action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1120px);
  justify-content: center;
  align-content: start;
  padding: clamp(30px, 3.2vw, 52px);
  color: var(--white);
  background:
    radial-gradient(circle at 90% 8%, rgba(9, 105, 218, .3), transparent 28%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 42px 42px, 42px 42px, auto;
}
.action-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}
.action-heading .section-code { color: #79b6ff; }
.action-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 500;
  line-height: 1;
}
.action-heading > p {
  max-width: 350px;
  margin: 0;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
  text-align: right;
}

.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qr-card {
  min-width: 0;
  padding: clamp(18px, 1.8vw, 28px);
  color: var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .22);
}
.qr-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.qr-card header small { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.qr-card h3 {
  margin: 1px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 2.2vw, 38px);
  font-weight: 600;
  line-height: 1;
}
.mode-tag {
  order: 2;
  padding: 5px 9px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.qr-frame {
  position: relative;
  width: min(100%, 238px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.qr-svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
.qr-placeholder {
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background:
    repeating-linear-gradient(45deg, #eef1f5, #eef1f5 8px, #fff 8px, #fff 16px);
  font-size: 11px;
  text-align: center;
}
.qr-card[data-ready="true"] .qr-placeholder { display: none; }
.qr-card[data-ready="false"] .qr-svg { display: none; }
.qr-card[data-ready="false"] { opacity: .68; }

.mode-copy { min-height: 38px; margin-bottom: 12px; color: var(--ink-soft); font-size: 12px; }
.qr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 13px;
  border: 1px solid var(--ink);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:not(:disabled):not([aria-disabled="true"]):hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.button:disabled, .button[aria-disabled="true"] { opacity: .42; cursor: not-allowed; pointer-events: none; }
.button-primary { color: var(--white); background: var(--blue); }
.button-quiet { color: var(--ink); background: transparent; font-size: 11px; }
.qr-state { display: block; min-height: 18px; margin-top: 9px; color: var(--ink-soft); font-size: 9px; text-align: center; }

.skill-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .09);
}
.skill-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--mint);
  color: var(--mint);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 16px;
  font-weight: 800;
}
.skill-copy .section-code { margin-bottom: 4px; color: #62e2bd; }
.skill-copy h2 { margin-bottom: 4px; font-family: var(--serif); font-size: clamp(21px, 1.8vw, 30px); font-weight: 500; }
.skill-copy p { margin: 0; color: rgba(255, 255, 255, .62); font-size: 11px; }
.button-download { min-width: 168px; color: var(--ink); background: #72e4c2; font-size: 12px; font-weight: 800; }
.page-message { min-height: 20px; margin: 10px 0 0; color: #ffd75a; font-size: 11px; text-align: right; }

footer {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 22px;
  border-top: 1px solid var(--ink);
  color: var(--ink-soft);
  background: var(--white);
  font-size: 10px;
}

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto 1fr; }
  .content-grid { grid-template-columns: minmax(320px, .62fr) minmax(620px, 1.38fr); }
  .intro-panel { padding: 42px 34px; }
  .action-panel { padding: 34px 28px; }
  .qr-frame { width: min(100%, 205px); }
  .qr-actions { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr; }
  .co-branding { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
  .content-grid { grid-template-columns: 1fr; }
  .intro-panel { border-right: 0; border-bottom: 1px solid var(--ink); }
  .action-panel { padding: 38px 24px; }
  .qr-frame { width: min(100%, 250px); }
}

@media (max-width: 620px) {
  .site-header { min-height: 70px; gap: 12px; padding: 12px 15px; }
  .mochuang-mark { width: 34px; height: 34px; }
  .mochuang-brand strong { font-size: 17px; }
  .mochuang-brand small { display: none; }
  .co-branding { gap: 10px 13px; }
  .brand-lockup strong { font-size: 14px; }
  .brand-lockup small { display: none; }
  .signed-label { order: 3; width: 100%; border: 0; padding: 0; }
  .tencent-logo { width: 35px; }
  .workbuddy-logo { width: 30px; height: 30px; }
  .environment-notice { align-items: flex-start; flex-direction: column; gap: 3px; padding: 10px 15px; }
  .environment-notice strong { padding: 0; border: 0; }
  .intro-panel { padding: 42px 20px; }
  h1 { font-size: clamp(54px, 17vw, 78px); }
  .intro-lede { font-size: 16px; }
  .action-panel { padding: 36px 14px; }
  .action-heading { grid-template-columns: 1fr; gap: 8px; }
  .action-heading > p { max-width: none; text-align: left; }
  .qr-grid { grid-template-columns: 1fr; gap: 16px; }
  .qr-card { padding: 22px 18px; }
  .qr-frame { width: min(100%, 280px); }
  .qr-actions { grid-template-columns: 1fr; }
  .skill-card { grid-template-columns: auto 1fr; padding: 18px; }
  .button-download { grid-column: 1 / -1; width: 100%; }
  .page-message { text-align: left; }
  footer { align-items: flex-start; flex-direction: column; gap: 3px; padding: 14px 16px; }
}

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