:root {
  --ink: #0B1220;
  --paper: #F4F6F8;
  --card: #FFFFFF;
  --text: #121826;
  --muted: #5C6778;
  --line: #E6E8EC;
  --line-strong: #D5DAE1;
  --blue: #2563EB;
  --blue-press: #1D4ED8;
  --blue-soft: #EEF4FF;
  --on-ink: #F4F7FB;
  --on-ink-muted: #A8B3C7;
  --brass-bg: #FBF6EE;
  --brass-text: #8A5E16;
  --error: #B42318;
  --shadow: 0 1px 2px rgba(18, 24, 38, 0.04);
  --font: "PingFang SC", "HarmonyOS Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
}
#main { flex: 1 0 auto; }
img { max-width: 100%; }
button, input, textarea { font-family: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 26px; line-height: 1.3; font-weight: 600; }
h2 { font-size: 22px; line-height: 1.35; font-weight: 600; margin-bottom: 12px; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 600; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { background: #DBE7FF; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 8px; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
.muted { color: var(--muted); }
.lede { color: var(--muted); max-width: 720px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 18, 32, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  min-width: 0;
}
.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mark { width: 28px; height: 28px; flex-shrink: 0; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  min-width: 64px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: transparent;
  font-size: 15px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}
.nav-panel { display: none; }
.nav-link {
  color: #C6D2E4;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-link.is-active { color: #fff; }
.nav-cta { display: none; }

@media (max-width: 1023px) {
  .nav-panel.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 56px 0 0 0;
    background: #fff;
    z-index: 50;
    overflow: auto;
  }
  .nav-panel.is-open .nav-link {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    color: var(--text);
  }
  .nav-panel.is-open .nav-link.is-active { color: var(--blue); }
  .nav-panel.is-open .nav-cta {
    display: inline-flex;
    margin: 16px 20px;
  }
  body.nav-open { overflow: hidden; }
}

.hero {
  background:
    linear-gradient(rgba(244, 247, 251, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 251, 0.035) 1px, transparent 1px),
    radial-gradient(620px 280px at 85% 0%, rgba(37, 99, 235, 0.28), transparent 70%),
    var(--ink);
  background-size: 32px 32px, 32px 32px, auto, auto;
  color: var(--on-ink);
  padding: 48px 0 56px;
}
.hero-copy { max-width: 720px; }
.hero-figure { display: none; }
.float-panel {
  position: absolute;
  background: #101A2E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.p-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #7C90B0;
  font-size: 11px;
  font-family: ui-monospace, Consolas, monospace;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: block; }
.dot.r { background: #F87171; }
.dot.y { background: #FBBF24; }
.dot.g { background: #34D399; }
.p-head span { margin-left: 6px; }
.float-panel pre {
  margin: 0;
  padding: 12px 14px 14px;
  color: #C7D2E2;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
}
.float-panel .cmt { color: #7C90B0; }
.float-panel .cmd { color: #FCD34D; }
.float-panel .ok { color: #86EFAC; }
.float-panel text { font-family: ui-monospace, Consolas, monospace; }
.float-net { top: 0; right: 0; width: 280px; }
.float-code { top: 176px; left: 0; width: 250px; }
.float-term { right: 28px; bottom: 0; width: 250px; }
.hero h1 {
  margin: 0 0 16px;
  color: var(--on-ink);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 600;
}
.hero p {
  margin: 0 0 28px;
  color: var(--on-ink-muted);
  font-size: 16px;
  line-height: 1.75;
}

.section { padding: 56px 0; }
.section-white { background: #fff; }
.section-ink {
  background: var(--ink);
  color: var(--on-ink);
}
.section-ink h2,
.section-ink h3 { color: #fff; }
.section-ink .eyebrow { color: #93C5FD; }
.section-ink .process p { color: #A8B3C7; }
.section-ink .process::before { background: rgba(122, 162, 255, 0.35); }
.eyebrow {
  margin: 0 0 8px;
  color: var(--brass-text);
  font-size: 13px;
  font-weight: 600;
}
.talk {
  background: #E8EEF8;
  padding: 40px 0;
}
.talk-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.talk h2 { margin-bottom: 8px; }
.talk p { margin: 0; max-width: 640px; }
.send-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.send-list li {
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.page-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 32px 0 28px;
}
.page-head h1 { margin-bottom: 12px; }
.page-main { padding: 32px 0 64px; }
.stack { display: grid; gap: 32px; }
.stack-gap { margin-top: 48px; }
.reading { max-width: 680px; }

.card-grid { display: grid; gap: 16px; }
.content-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 150ms;
}
.card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-body h3, .problem-card h3, .service-card h3 { margin: 0; }
.card-body p, .problem-card p, .service-card p { margin: 0; }
.problem-card, .service-card {
  padding: 20px;
  gap: 12px;
}
.problem-card { border-top: 3px solid var(--blue); }
.problem-card:nth-child(2) { border-top-color: #5C6B82; }
.problem-card:nth-child(3) { border-top-color: #C4A574; }
.problem-card .text-btn, .service-card .text-btn { margin-top: auto; }
.num {
  color: var(--blue);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}
.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mini-chips li {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.cover {
  aspect-ratio: 16 / 10;
  background: #E8EDF5;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag, .tags li {
  display: inline-flex;
  align-self: flex-start;
  background: var(--brass-bg);
  color: var(--brass-text);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.5;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-press); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn-ghost { color: var(--on-ink); border-color: rgba(244, 247, 251, 0.28); background: transparent; }
.btn-row { display: flex; flex-direction: column; gap: 12px; }
.text-btn {
  color: var(--blue);
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.more-link { display: inline-block; margin-top: 20px; }
.icon-btn {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
}

.process {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.process::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: #D6E2FB;
}
.process li { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: start; }
.process h3 { margin-bottom: 4px; }
.process p { margin: 0; color: var(--muted); }
.process-num {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
}

.facts, .contact-list { margin: 0; padding-left: 1.2em; }
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tech-list li {
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  line-height: 1.5;
  font-size: 14px;
}
.facts { display: grid; gap: 8px; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.filters a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.filters a.is-active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-press); }

.article-list { display: grid; gap: 12px; }
.article-row {
  display: grid;
  gap: 4px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.article-row strong { font-size: 18px; line-height: 1.4; }
.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #E8EDF5;
}
.prose { font-size: 16px; line-height: 1.75; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose pre {
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  line-height: 1.6;
}
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; }
.prose :not(pre) > code { background: var(--paper); padding: 0 4px; border-radius: 4px; }
.prose img { border-radius: 8px; }
.prose blockquote {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
}
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

.gallery { display: grid; gap: 12px; }
.gallery-item {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #E8EDF5;
  cursor: pointer;
}
.gallery-item img { display: block; width: 100%; }

.contact-grid { display: grid; gap: 32px; }
.qr, .qr-fallback {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.qr-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
}
.qr-hint { color: var(--muted); font-size: 13px; }
.contact-strip {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.contact-strip p { margin: 0; }

.lead-form { position: relative; }
.field { margin-bottom: 20px; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field-error { color: var(--error); font-size: 13px; margin: 8px 0 0; }
.form-note { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.form-success {
  background: var(--blue-soft);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
input[type="text"], textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--text);
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.choices { display: grid; gap: 8px; }
.choices-identity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; min-width: 0; }
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
}
.choice input:checked + span {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-press);
}
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 20px;
}
.empty p { margin-top: 0; }

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding: 48px 0 32px;
}
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
.footer-title { margin: 0 0 12px; color: var(--on-ink-muted); font-size: 13px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-qr {
  width: 96px;
  height: 96px;
  margin-top: 16px;
  background: #fff;
  border-radius: 8px;
}
.legal { margin-top: 32px; color: var(--on-ink-muted); font-size: 13px; }
.legal p { margin: 0; }

.overlay[hidden] { display: none !important; }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(11, 18, 32, 0.56);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px 20px 28px;
  max-height: min(90vh, 720px);
  overflow: auto;
}
.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin: 0 auto 12px;
}
.sheet-close { position: absolute; top: 8px; right: 8px; }
.copy-row { display: grid; gap: 8px; margin-bottom: 16px; }
.copy-field { background: var(--paper); }
.lightbox { align-items: center; padding: 56px 16px 16px; }
.lightbox img { max-width: min(1120px, 100%); max-height: 86vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #fff;
}
body.modal-open { overflow: hidden; }

@media (max-width: 767px) {
  .btn-row .btn, .lead-form .btn-primary { width: 100%; }
}

@media (min-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .talk { padding: 48px 0; }
  .talk-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .talk .btn { flex-shrink: 0; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .choices-identity { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .choices-service { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-strip { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .overlay { align-items: center; padding: 24px; }
  .sheet { width: min(440px, 100%); border-radius: 12px; }
  .sheet-handle { display: none; }
}

@media (min-width: 1024px) {
  .header-inner { height: 64px; }
  .brand { max-width: 280px; }
  .nav-toggle { display: none; }
  .nav-cta { display: inline-flex; min-height: 40px; padding: 0 14px; margin-left: 4px; }
  .nav-panel .nav-link { color: #C6D2E4; }
  .nav-panel .nav-link.is-active { color: #fff; }
  .nav-panel, .nav-panel.is-open {
    display: flex;
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    background: transparent;
    overflow: visible;
  }
  .hero { padding: 72px 0 80px; }
  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 32px;
    align-items: center;
  }
  .hero-figure {
    display: block;
    position: relative;
    min-height: 430px;
  }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 18px; }
  .section { padding: 88px 0; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .problem-card, .service-card { padding: 24px; }
  .process { grid-template-columns: repeat(5, 1fr); }
  .process::before {
    left: 18px;
    right: 18px;
    top: 17px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .process li { display: block; }
  .process-num { margin-bottom: 14px; }
  .choices-service { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
}

@media (hover: hover) {
  .content-card:hover, .article-row:hover { border-color: #C5CDD8; }
}
