@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/noto-serif-sc-500.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/noto-serif-sc-600.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/noto-sans-sc-400.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/noto-sans-sc-500.woff2") format("woff2");
}

:root {
  --ink: #081526;
  --ink-2: #0e2a45;
  --paper: #f4f1ea;
  --paper-2: #e8e2d6;
  --surface: #ffffff;
  --brand: #1c6a86;
  --brand-deep: #134e63;
  --rule: #b08a4f;
  --text: #122033;
  --text-secondary: #5c6b78;
  --text-on-ink: #f4f1ea;
  --muted-on-ink: #a8b4c0;
  --line: #d8d2c6;
  --line-on-ink: #2a4158;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
}

img {
  max-width: 100%;
  border: 0;
}

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

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 56px;
  line-height: 70px;
  letter-spacing: -0.01em;
  color: var(--text-on-ink);
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 36px;
  line-height: 46px;
  letter-spacing: -0.005em;
  color: var(--ink);
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 30px;
  color: var(--ink);
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--rule);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 5;
  padding: 8px 12px;
  background: var(--brand);
  color: var(--text-on-ink);
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

.wrap {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-inline: 80px;
}

.site-header {
  position: relative;
  background: var(--paper);
}

.header-bar {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: 18px 80px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: none;
}

.logo-mark img {
  position: absolute;
  inset: -12.62% 0 0 0;
  width: 100%;
  height: auto;
  max-width: none;
}

.logo-word {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: 0.02em;
}

.logo-en {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  color: var(--brand);
}

.logo.on-ink {
  color: var(--text-on-ink);
}

.logo.on-ink .logo-en {
  color: var(--rule);
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  min-width: 0;
}

.primary-nav a,
.footer-nav a {
  padding: 8px 0;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.footer-nav a:hover,
.menu-link:hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--brand);
  color: var(--text-on-ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.button-ghost {
  background: transparent;
  border-color: var(--line-on-ink);
}

.button-static {
  cursor: default;
}

.mobile-menu {
  display: none;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  list-style: none;
  cursor: pointer;
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.menu-icon span {
  display: block;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink);
}

.menu-icon span:nth-child(1),
.menu-icon span:nth-child(2) {
  width: 18px;
}

.menu-icon span:nth-child(3) {
  width: 12px;
}

.menu-panel {
  padding: 16px 20px 40px;
  background: var(--paper);
}

.menu-link {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 30px;
  text-decoration: none;
}

.menu-link:first-child {
  border-top: 1px solid var(--line);
}

.menu-cta-wrap {
  padding-top: 24px;
}

.hero {
  background: var(--ink);
  color: var(--text-on-ink);
}

.hero-grid {
  width: min(1440px, 100%);
  margin-inline: auto;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hero-copy {
  display: flex;
  align-items: center;
}

.hero-copy-inner {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  padding: 88px 56px 72px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-sub {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 30px;
  color: var(--text-on-ink);
}

.hero-lead {
  max-width: 520px;
  font-size: 16px;
  line-height: 28px;
  color: var(--muted-on-ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-photo {
  position: relative;
  min-height: 640px;
}

.hero-photo img,
.media img,
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo img {
  position: absolute;
  inset: 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.12em;
}

.kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  flex: none;
  background: var(--rule);
}

.hero .kicker::before {
  width: 24px;
}

.kicker-ink {
  color: var(--rule);
}

.kicker-ink::before {
  background: var(--rule);
}

.section {
  padding: 96px 0;
}

.bg-paper {
  background: var(--paper);
}

.bg-paper-2 {
  background: var(--paper-2);
}

.bg-ink {
  background: var(--ink);
  color: var(--text-on-ink);
}

.bg-ink h2,
.bg-ink h3 {
  color: var(--text-on-ink);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.section-head.tight {
  margin-bottom: 40px;
}

.body {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 28px;
}

.body.strong {
  color: var(--text);
}

.small {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 24px;
}

.index,
.case-category {
  color: var(--brand);
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.12em;
}

.case-category {
  font-weight: 400;
  letter-spacing: 0;
}

.grid-2,
.grid-3,
.grid-4,
.grid-6 {
  display: grid;
  gap: 16px;
}

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

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

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

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

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  overflow: hidden;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}

.card-body,
.case-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.case-body {
  gap: 6px;
  padding: 16px 18px;
}

.case-title {
  color: var(--ink);
  font-size: 14px;
  line-height: 24px;
}

.media {
  height: 220px;
}

.media-case {
  height: 200px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.process-index {
  color: var(--rule);
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.12em;
}

.process-line {
  height: 1px;
  background: var(--line);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 64px;
  align-items: center;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) 440px;
}

.about-copy,
.contact-copy,
.about-photos,
.consult-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.about-copy {
  gap: 24px;
}

.contact-copy {
  gap: 20px;
}

.about-copy .section-head {
  margin-bottom: 0;
}

.about-photos {
  gap: 16px;
}

.about-photo {
  height: 280px;
  border-radius: 2px;
  overflow: hidden;
}

.about-photo.secondary {
  height: 200px;
}

.about-photo img {
  display: block;
}

.contact-lead {
  color: var(--muted-on-ink);
  font-size: 16px;
  line-height: 28px;
}

.consult-card {
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--line-on-ink);
  border-radius: 2px;
  background: var(--ink-2);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label,
.consult-note,
.contact-mobile-note,
.footer-note,
.footer-legal {
  color: var(--muted-on-ink);
  font-size: 12px;
  line-height: 18px;
}

.field-shell {
  padding: 12px 14px;
  border: 1px solid var(--line-on-ink);
  border-radius: 2px;
  color: var(--muted-on-ink);
  font-size: 14px;
  line-height: 24px;
}

.site-footer {
  background: var(--ink);
  color: var(--text-on-ink);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 40px;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-left: auto;
}

.footer-rule {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line-on-ink);
}

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

.footer-operator {
  color: var(--text-on-ink);
  font-size: 14px;
  line-height: 24px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-legal a {
  color: var(--text-on-ink);
}

.legal-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.legal h1 {
  color: var(--ink);
  font-size: 36px;
  line-height: 46px;
  letter-spacing: -0.005em;
}

.legal p {
  color: var(--text);
  font-size: 16px;
  line-height: 28px;
}

.text-link {
  color: var(--brand);
}

.only-mobile {
  display: none;
}

@media (max-width: 1100px) {
  .primary-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .menu-toggle {
    position: absolute;
    top: 8px;
    right: 12px;
  }
}

@media (max-width: 899px) {
  h1 {
    font-size: 36px;
    line-height: 46px;
  }

  h2,
  .legal h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .wrap,
  .header-bar {
    padding-inline: 20px;
  }

  .header-bar {
    padding-block: 14px;
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-photo {
    order: -1;
    min-height: 0;
    height: 240px;
  }

  .hero-copy-inner {
    max-width: none;
    margin: 0;
    padding: 28px 20px 36px;
    gap: 14px;
  }

  .hero-sub {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
  }

  .hero-lead,
  .body,
  .contact-lead {
    max-width: none;
    font-size: 14px;
    line-height: 24px;
  }

  .button-ghost,
  .only-desktop {
    display: none;
  }

  .only-mobile {
    display: block;
  }

  .button.only-mobile {
    display: inline-flex;
  }

  .kicker {
    gap: 10px;
  }

  .kicker::before,
  .hero .kicker::before {
    width: 16px;
  }

  .section .kicker:not(.kicker-ink)::before {
    background: var(--brand);
  }

  .section {
    padding: 40px 0;
  }

  .section-head,
  .section-head.tight {
    gap: 20px;
    margin-bottom: 20px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-6,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid,
  .contact-grid,
  .about-copy,
  .contact-copy {
    gap: 16px;
  }

  .about-photo,
  .about-photo.secondary {
    height: 180px;
  }

  .process-section {
    background: var(--paper);
  }

  .footer-inner {
    gap: 20px;
    padding-top: 40px;
    padding-bottom: 32px;
  }

  .footer-top,
  .footer-nav,
  .footer-operator {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-operator {
    display: flex;
    gap: 0;
  }

  .footer-nav {
    margin-left: 0;
    gap: 0;
  }

  .footer-sep {
    display: none;
  }
}
