:root {
  --bg: #fbf8f3;
  --paper: #fffdf8;
  --text: #172a49;
  --text-strong: #0f1e38;
  --muted: #615c52;
  --soft: #ede5d3;
  --line: rgba(23, 42, 73, 0.14);
  --accent: #c99a3d;
  --accent-dark: #86621d;
  --link: #253e63;
  --shadow: 0 12px 32px rgba(10, 21, 40, 0.08);
  --max: 1080px;
  --section-content-max: 968px;
  --font-sans: "Source Han Sans SC", "Source Han Sans CN", "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-serif: "Source Han Serif SC", "Source Han Serif CN", "Noto Serif CJK SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(251, 248, 243, 0.86);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  margin: 0 auto;
  padding: 14px clamp(20px, 5vw, 48px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--text);
  border-radius: 50%;
  color: var(--bg);
  display: inline-flex;
  font-family: var(--font-serif);
  height: 34px;
  justify-content: center;
  width: 34px;
}

.header-tools {
  align-items: center;
  display: flex;
  gap: clamp(18px, 4vw, 34px);
}

.nav-links {
  display: flex;
  gap: clamp(18px, 4vw, 34px);
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.language-switch {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  padding: 3px;
}

.language-switch button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  height: 28px;
  min-width: 34px;
  padding: 0 10px;
}

.language-switch button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.hero,
.section {
  margin: 0 auto;
  max-width: var(--max);
  padding-left: clamp(20px, 5vw, 56px);
  padding-right: clamp(20px, 5vw, 56px);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  grid-template-columns: minmax(0, 1.08fr) minmax(270px, 340px);
  min-height: auto;
  padding-bottom: clamp(64px, 8vw, 104px);
  padding-top: clamp(56px, 8vw, 96px);
}

.hero-copy {
  min-width: 0;
}

.small-note {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--text-strong);
  font-size: clamp(42px, 5.4vw, 64px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.03;
  margin-bottom: 26px;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.hero-lead {
  color: var(--link);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 22px;
}

.hero-lead span {
  display: block;
}

.hero-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--text);
  box-shadow: 0 16px 42px rgba(10, 21, 40, 0.16);
  color: var(--bg);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-gallery {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  justify-self: end;
  padding: 12px;
  width: 100%;
}

.hero-gallery::before {
  display: none;
}

.hero-gallery figure {
  margin: 0;
}

.portrait-frame {
  margin: 0;
}

.portrait-frame img {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  height: auto;
  object-fit: cover;
  object-position: 52% center;
  width: 100%;
}

.profile-card {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
}

.profile-card div {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 13px 2px;
}

.profile-card div + div {
  border-top: 1px solid var(--line);
}

.profile-card span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
}

.profile-card strong {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.section {
  border-top: 1px solid var(--line);
  padding-bottom: clamp(64px, 8vw, 104px);
  padding-top: clamp(60px, 8vw, 96px);
}

.section-heading {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  margin-bottom: 34px;
}

.section-heading h2 {
  color: var(--text-strong);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
  max-width: 760px;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(18px, 4vw, 56px);
  grid-template-columns: 90px minmax(0, 1fr);
  padding: 34px 0;
}

.timeline-index {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 24px;
}

.timeline-item h3,
.work-card h3,
.project-card h3,
.project-cluster-head h3 {
  color: var(--text-strong);
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.timeline-item p,
.work-card p,
.project-card p,
.project-cluster-head p,
.quote-section p,
.contact-primary p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 0;
}

.work-section {
  position: relative;
}

.work-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 220px;
  padding: 28px;
}

.work-card a {
  color: var(--link);
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  margin-top: 30px;
}

.consulting-panel {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
  padding: 34px 0;
}

.consulting-lede {
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 8px;
}

.consulting-lede span {
  color: var(--accent-dark);
  display: block;
  font-size: 12px;
  font-weight: 700;
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.consulting-lede h3 {
  color: var(--text-strong);
  font-size: 26px;
  grid-column: 1;
  grid-row: 2;
  line-height: 1.2;
  margin-bottom: 0;
}

.consulting-lede p,
.consulting-points p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 0;
}

.consulting-lede p {
  align-self: end;
  grid-column: 2 / -1;
  grid-row: 1 / span 2;
  max-width: 640px;
}

.consulting-points {
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.consulting-points article {
  border-top: 1px solid var(--line);
  padding: 18px 28px 0;
}

.consulting-points strong {
  color: var(--text-strong);
  display: block;
  font-size: 17px;
  margin-bottom: 10px;
}

.projects-section {
  max-width: calc(var(--max) + 160px);
}

.projects-section > .section-heading {
  max-width: var(--section-content-max);
  margin-left: auto;
  margin-right: auto;
}

.project-board {
  display: grid;
  gap: 44px;
}

.project-cluster {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
}

.project-cluster-head {
  border-top: 3px solid var(--accent);
  padding-top: 18px;
}

.project-cluster-head > span {
  color: var(--accent-dark);
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 18px;
}

.project-cluster-head h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.project-cluster-head p {
  font-size: 15px;
  line-height: 1.65;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 276px;
  padding: 24px;
}

.project-card-top {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 22px;
  min-height: 38px;
  padding-bottom: 14px;
}

.project-card-top span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.project-card-top strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.project-card h3 {
  margin-bottom: 12px;
}

.project-card p {
  font-size: 16px;
  line-height: 1.7;
}

.project-card a {
  color: var(--link);
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  margin-top: auto;
  padding-top: 24px;
}

.quote-section {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.48fr);
  position: relative;
}

.quote-section::before {
  background: var(--accent);
  content: "";
  height: 3px;
  left: clamp(20px, 5vw, 56px);
  position: absolute;
  top: 56px;
  width: 72px;
}

blockquote {
  color: var(--text-strong);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

blockquote span {
  display: block;
}

.quote-section p {
  align-self: end;
  font-size: 20px;
}

.contact-layout {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  grid-template-columns: minmax(280px, 0.54fr) minmax(0, 1fr);
}

.contact-primary {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}

.email-link {
  color: var(--text);
  display: inline-block;
  font-size: clamp(28px, 2.7vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  margin: 20px 0;
  overflow-wrap: anywhere;
}

.social-list {
  align-content: start;
  column-gap: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 14px;
}

.wechat-card {
  align-items: center;
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 116px minmax(0, 1fr);
  margin-top: 26px;
  padding: 14px;
}

.wechat-card img {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  height: auto;
  width: 116px;
}

.wechat-card span {
  color: var(--accent-dark);
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.wechat-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.wechat-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.social-row {
  align-items: center;
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 86px;
  padding: 14px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.social-row:hover {
  background: var(--paper);
  border-color: rgba(23, 42, 73, 0.28);
  transform: translateY(-2px);
}

.social-row-wide {
  grid-column: 1 / -1;
}

.social-icon {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.social-icon svg {
  height: 24px;
  width: 24px;
}

.brand-logo {
  display: block;
  fill: currentColor;
  stroke: none;
}

.brand-logo-jike circle {
  fill: #ffe411;
}

.brand-logo-jike text {
  fill: #15110b;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
}

.brand-logo-bilibili {
  fill: #00aeec;
}

.brand-logo-wechat {
  fill: #07c160;
}

.brand-logo .logo-knockout {
  fill: var(--paper);
}

.social-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.social-label {
  color: var(--muted);
  font-size: 14px;
}

.social-value {
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.account-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-list .social-value {
  background: rgba(237, 229, 211, 0.58);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 28px clamp(20px, 5vw, 56px) 36px;
}

@media (max-width: 1100px) {
  .project-cluster {
    grid-template-columns: 1fr;
  }

  .project-cluster-head {
    max-width: 620px;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    gap: 16px;
  }

  .nav-links {
    gap: 16px;
  }

  .header-tools {
    align-items: flex-end;
    flex-direction: column;
    gap: 12px;
  }

  .hero,
  .section-heading,
  .consulting-panel,
  .project-cluster,
  .quote-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    min-height: auto;
    padding-bottom: 48px;
    padding-top: 52px;
  }

  .hero-gallery {
    justify-self: start;
    max-width: 420px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .consulting-lede,
  .consulting-points {
    grid-template-columns: 1fr;
  }

  .consulting-lede span,
  .consulting-lede h3,
  .consulting-lede p {
    grid-column: auto;
    grid-row: auto;
  }

  .consulting-lede p {
    max-width: none;
  }

  .consulting-points article {
    padding: 20px 0;
  }

  .consulting-points article:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .project-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-section::before {
    top: 34px;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .brand {
    font-size: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links a {
    font-size: 13px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 50px);
  }

  h1 span {
    white-space: normal;
  }

  .hero-lead {
    font-size: 23px;
  }

  .hero-gallery {
    max-width: none;
  }

  .portrait-frame img {
    aspect-ratio: 16 / 11;
    object-position: 52% 28%;
  }

  .hero-sub,
  .timeline-item p,
  .work-card p,
  .project-card p,
  .project-cluster-head p,
  .quote-section p,
  .contact-primary p {
    font-size: 16px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .work-card {
    min-height: auto;
    padding: 24px;
  }

  .project-card-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
    padding: 24px;
  }

  .social-list {
    grid-template-columns: 1fr;
  }

  .wechat-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .wechat-card img {
    width: 96px;
  }

  .social-row {
    min-height: 58px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }
}
