:root {
  --page-bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2933;
  --text-secondary: #5b6673;
  --text-muted: #687480;
  --brand: #245b7a;
  --brand-dark: #17394d;
  --brand-soft: #e8f1f6;
  --accent: #a76f2b;
  --accent-soft: #f7efe4;
  --border: #dce2e8;
  --border-strong: #b9c7d4;
  --success: #2f7d4f;
  --success-soft: #eaf5ee;
  --warning: #b7791f;
  --warning-soft: #fff5dd;
  --error: #b42318;
  --error-soft: #fff0ee;
  --focus: #4c9fd8;
  --shadow: 0 16px 36px rgba(23, 57, 77, 0.08);
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Inter, Arial, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.skip-link {
  position: fixed;
  left: 20px;
  top: 16px;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--brand-dark);
  color: #ffffff;
  padding: 8px 12px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(23, 57, 77, 0.08);
}

.header-inner {
  min-height: var(--header-height);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 6px;
  border: 1px solid rgba(36, 91, 122, 0.28);
  background:
    linear-gradient(90deg, transparent 46%, rgba(36, 91, 122, 0.18) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(167, 111, 43, 0.24) 46% 54%, transparent 54%),
    #f2f6f9;
}

.brand-name,
.brand-domain {
  display: block;
  white-space: nowrap;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.brand-domain {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.site-nav ul,
.footer-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--brand-dark);
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section-anchor {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.hero {
  padding: 80px 0 56px;
  background:
    linear-gradient(90deg, rgba(220, 226, 232, 0.5) 1px, transparent 1px),
    linear-gradient(180deg, rgba(220, 226, 232, 0.42) 1px, transparent 1px),
    var(--page-bg);
  background-size: 56px 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

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

h1 {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.18;
}

h2 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.hero-subtitle,
.section-heading p,
.contact-copy p,
.principle-block p,
.business-template p,
.boundary-note p,
.contact-entry p {
  color: var(--text-secondary);
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--brand);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--brand-dark);
}

.button-secondary {
  background: #ffffff;
  border-color: var(--brand);
  color: var(--brand);
}

.button-secondary:hover {
  background: var(--brand-soft);
}

.button-light {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--brand-dark);
}

.button-light:hover {
  background: #eef5f9;
}

.hero-meta {
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(36, 91, 122, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 91, 122, 0.06) 1px, transparent 1px),
    var(--surface);
  background-size: 28px 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-kicker {
  color: var(--brand-dark);
  font-weight: 600;
}

.panel-status {
  border: 1px solid rgba(167, 111, 43, 0.32);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #6e4413;
  padding: 3px 10px;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

.summary-list,
.info-grid,
.info-table dl,
.field-rules {
  margin: 0;
}

.summary-list div,
.info-table dl div,
.field-rules div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.summary-list dt,
.info-grid dt,
.info-table dt,
.field-rules dt {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.summary-list dd,
.info-grid dd,
.info-table dd,
.field-rules dd {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.info-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.info-grid div {
  padding: 22px 18px;
  border-left: 1px solid var(--border);
}

.info-grid div:first-child {
  border-left: 0;
  padding-left: 0;
}

.info-grid div:last-child {
  padding-right: 0;
}

.info-grid dd {
  margin-top: 4px;
  font-weight: 500;
}

.section {
  padding: 80px 0;
}

.section-surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-heading.wide-heading {
  max-width: 780px;
}

.section-heading p {
  margin-bottom: 0;
}

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

.guide-card,
.compact-steps li,
.process-flow li {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.guide-card:hover,
.compact-steps li:hover,
.process-flow li:hover {
  border-color: rgba(36, 91, 122, 0.42);
  box-shadow: 0 14px 28px rgba(23, 57, 77, 0.08);
}

.guide-card:active {
  transform: translateY(1px);
}

.card-marker {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 36px;
  height: 4px;
  border-radius: 8px 0 4px 0;
  background: var(--brand);
}

.guide-card p,
.compact-steps p,
.process-flow p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 48px;
  align-items: start;
}

.step-grid,
.process-flow {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.compact-steps span,
.process-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.contact-entry {
  background: var(--brand-dark);
  color: #ffffff;
  padding: 56px 0;
}

.contact-entry .eyebrow {
  color: #e3b373;
}

.contact-entry h2,
.contact-entry p {
  color: #ffffff;
}

.contact-entry-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.entry-helper {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.6;
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1fr);
  gap: 40px;
  align-items: start;
}

.company-layout .principle-block {
  grid-column: 1 / -1;
}

.info-table {
  border-top: 2px solid var(--brand);
  background: var(--surface);
}

.info-table dl div {
  grid-template-columns: 110px minmax(0, 1fr);
}

.principle-block,
.boundary-note {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 22px 24px;
}

.principle-block p,
.boundary-note p {
  margin-bottom: 0;
}

.business-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.business-template {
  border-top: 2px solid var(--brand);
}

.business-template > p {
  margin-bottom: 18px;
}

.field-rules div {
  background: #ffffff;
  padding-left: 18px;
  padding-right: 18px;
}

.field-rules div:first-child {
  border-top: 1px solid var(--border);
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.process-flow li:last-child {
  grid-column: 1 / -1;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 44px;
  align-items: start;
}

.notice {
  margin-top: 24px;
  border-radius: 8px;
  padding: 14px 16px;
}

.notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.notice-info {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
}

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

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.field label span {
  color: var(--error);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 10px 12px;
  line-height: 1.6;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 136px;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--border-strong);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(76, 159, 216, 0.18);
  outline: none;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.16);
}

.field-error {
  min-height: 20px;
  margin: 5px 0 0;
  color: var(--error);
  font-size: 13px;
  line-height: 1.5;
}

.privacy-text {
  margin: 14px 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.form-status {
  display: none;
  margin-top: 16px;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: var(--success-soft);
  color: var(--success);
}

.form-status.is-error {
  background: var(--error-soft);
  color: var(--error);
}

.site-footer {
  background: #eef2f5;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.footer-identity p {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-company {
  color: var(--text);
  font-weight: 600;
}

.footer-icp {
  color: var(--text);
}

.footer-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.footer-nav a:hover {
  color: var(--brand);
  text-decoration: underline;
}

@media (max-width: 1199px) {
  .container,
  .header-inner {
    max-width: 960px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-inner,
  .split-layout,
  .company-layout,
  .business-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 36px;
  }

  .hero-panel {
    max-width: 720px;
  }

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

  .info-grid div {
    border-top: 1px solid var(--border);
  }

  .info-grid div:nth-child(-n + 3) {
    border-top: 0;
  }

  .info-grid div:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }

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

  .guide-card:last-child {
    grid-column: 1 / -1;
  }

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

  .company-layout .principle-block,
  .process-flow li:last-child {
    grid-column: auto;
  }

  .contact-layout {
    gap: 32px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }

  body.menu-open {
    position: fixed;
    width: 100%;
  }

  .container,
  .header-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    max-width: calc(100vw - 112px);
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
  }

  .brand-domain {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(23, 57, 77, 0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
    padding: 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav li:last-child a {
    border-bottom: 0;
  }

  .site-nav a[aria-current="page"]::after {
    left: 0;
    right: auto;
    bottom: 7px;
    width: 32px;
  }

  .hero {
    padding: 48px 0 40px;
    background-size: 40px 40px;
  }

  .hero-inner {
    gap: 28px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.22;
  }

  h2 {
    font-size: 24px;
    line-height: 1.35;
  }

  h3 {
    font-size: 19px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-panel,
  .guide-card,
  .compact-steps li,
  .process-flow li,
  .contact-form {
    padding: 20px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-list div,
  .info-table dl div,
  .field-rules div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .info-grid,
  .guide-grid,
  .compact-steps,
  .process-flow,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .info-grid div {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 14px 0;
  }

  .info-grid div:first-child {
    border-top: 0;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .guide-grid,
  .compact-steps,
  .process-flow {
    gap: 12px;
  }

  .guide-card:last-child,
  .field-wide {
    grid-column: auto;
  }

  .split-layout {
    gap: 24px;
  }

  .contact-entry {
    padding: 48px 0;
  }

  .contact-entry-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .business-layout,
  .company-layout {
    gap: 24px;
  }

  .principle-block,
  .boundary-note {
    padding: 18px 20px;
  }

  .footer-inner {
    display: block;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .footer-nav {
    justify-content: flex-start;
    margin-top: 18px;
  }
}

/* 2026 visual direction: architectural order */
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(820px, calc(100svh - 72px)); padding: 104px 0 68px; overflow: hidden; background: #0d1822; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,11,18,.12) 10%, rgba(4,11,18,.3) 48%, rgba(4,11,18,.92) 100%); }
.kc-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-inner { display: block; }
.hero-copy { max-width: 850px; }
.hero h1 { max-width: 820px; color: #fff; font-size: clamp(42px, 6vw, 76px); }
.hero .eyebrow, .hero-subtitle, .hero-meta { color: rgba(255,255,255,.78); }
.hero-panel { display: none; }
.hero .button-secondary { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.08); }
.kc-icp-link { margin: 14px 0 0; text-align: center; font-size: 13px; }
.kc-icp-link a { color: #176f9c; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px) { .hero { min-height: 720px; padding: 96px 0 48px; } .hero h1 { font-size: 42px; } .kc-hero-image { object-position: 64% center; } }
