:root {
  --color-primary: #0f172a;
  --color-on-primary: #ffffff;
  --color-secondary: #334155;
  --color-accent: #0369a1;
  --color-accent-hover: #075985;
  --color-background: #f8fafc;
  --color-foreground: #020617;
  --color-muted: #e8ecf1;
  --color-border: #e2e8f0;
  --color-surface: #ffffff;
  --color-muted-text: #475569;
  --color-destructive: #dc2626;
  --color-ring: #0f172a;
  --color-success: #047857;
  --font-heading: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --header-h: 72px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-foreground);
  background: var(--color-background);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.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: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-muted-text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.site-nav a:hover {
  background: var(--color-muted);
  color: var(--color-foreground);
}

.nav-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--color-accent-hover) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--color-primary);
  display: block;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 10vw, 120px) 0 var(--space-6);
  background: linear-gradient(180deg, #eef3f8 0%, var(--color-background) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(3, 105, 161, 0.12), transparent 32%),
    linear-gradient(135deg, transparent 48%, rgba(15, 23, 42, 0.04) 48.2%, rgba(15, 23, 42, 0.04) 52%, transparent 52.2%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: none;
}

.eyebrow-light {
  color: #7dd3fc;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  max-width: 12em;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}

h3 {
  font-size: 20px;
}

.hero-lead,
.section p {
  color: var(--color-muted-text);
}

.hero-lead {
  max-width: 38em;
  font-size: 18px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 180ms var(--ease), transform 150ms var(--ease), border-color 180ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-surface);
}

.btn-full {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 24px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.hero-meta dt {
  font-size: 13px;
  color: var(--color-muted-text);
}

.hero-meta dd {
  margin: 4px 0 0;
  font-weight: 600;
}

.section {
  padding: var(--space-7) 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-muted {
  background: var(--color-muted);
}

.section-dark {
  background: var(--color-primary);
  color: #e2e8f0;
}

.section-dark p,
.section-dark .hero-lead {
  color: #cbd5e1;
}

.section-head {
  max-width: 42em;
  margin-bottom: var(--space-5);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-card,
.contact-card,
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-card {
  padding: 28px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-secondary);
}

.checklist svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--color-accent);
  margin-top: 3px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 28px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.card:hover {
  transform: translateY(-3px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e0f2fe;
  color: var(--color-accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.cred-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.license-figure {
  margin: 0;
}

.license-open {
  width: 100%;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.license-open:hover {
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.license-figure figcaption {
  margin-top: 10px;
  color: var(--color-muted-text);
  font-size: 14px;
}

.info-table-wrap {
  min-width: 0;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-table th,
.info-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

.info-table th {
  width: 11.5em;
  white-space: nowrap;
  color: var(--color-muted-text);
  font-weight: 500;
  background: #f1f5f9;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.info-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.contact-card {
  padding: 20px 22px;
  margin-top: 24px;
  font-style: normal;
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
  box-shadow: none;
}

.contact-card a {
  color: #7dd3fc;
}

.contact-form {
  background: #fff;
  color: var(--color-foreground);
  padding: 28px;
  border-radius: var(--radius);
}

.field {
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.field-error {
  color: var(--color-destructive);
  font-size: 13px;
  margin: 6px 0 0;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  font-size: 14px;
}

.form-status.is-success {
  color: var(--color-success);
}

.form-status.is-error {
  color: var(--color-destructive);
}

.site-footer {
  background: #020617;
  color: #94a3b8;
  padding: 40px 0 24px;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #1e293b;
}

.footer-name {
  color: #fff;
  font-weight: 700;
  margin: 0 0 8px;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 16px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

.lightbox-panel {
  position: relative;
  width: min(960px, 100%);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding: 12px 12px 16px;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lightbox-bar h2 {
  font-size: 16px;
  margin: 0;
  font-family: var(--font-body);
}

.lightbox-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--color-primary);
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 960px) {
  .split,
  .cred-layout,
  .card-grid,
  .hero-meta,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  h1 {
    max-width: none;
  }

  .section {
    padding: 64px 0;
  }

  .footer-inner {
    flex-direction: column;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    width: auto;
    white-space: normal;
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .info-table td {
    padding-top: 0;
  }

  .info-table tr {
    border-bottom: 1px solid var(--color-border);
  }

  .info-table tr:last-child {
    border-bottom: 0;
  }

  .info-table code {
    word-break: break-all;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
