/* 未夜网络官网 · 亮色纸面
 * 公司门户：产品在本域看完。页眉下拉由 site-config.solutions 的 path 生成。
 */

:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --bg-alt: #efeae1;
  --surface: #ffffff;
  --text: #1c1914;
  --muted: #5c564c;
  --dim: #6d675c;
  --line: rgba(28, 25, 20, 0.12);
  --line-strong: #7a7368;
  --accent: #8a4318;
  --accent-soft: #c46a2e;
  --on-accent: #fffdf8;
  --ink: #1c1914;
  --danger: #9b2c2c;
  --radius-sm: 8px;
  --radius: 12px;
  --shell: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(196, 106, 46, 0.25); }
a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.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;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -72px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-accent);
  font-weight: 700;
}
.skip-link:focus,
.skip-link:focus-visible { top: calc(12px + env(safe-area-inset-top, 0px)); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#main:focus { outline: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(247, 244, 238, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.brand-latin {
  color: var(--dim);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 14px;
}
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 650; }
.site-nav > a:not(.button):hover,
.nav-trigger:hover { color: var(--text); }
.nav-toggle {
  position: relative;
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.nav-toggle span:not(.sr-only) {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 150ms ease, opacity 150ms ease, top 150ms ease;
}
.nav-toggle span:nth-of-type(2) { top: 15px; }
.nav-toggle span:nth-of-type(3) { top: 20px; }
.nav-toggle span:nth-of-type(4) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
  top: 20px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-of-type(4) {
  top: 20px;
  transform: rotate(-45deg);
}

.has-menu { position: relative; }
.nav-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 650;
}
.nav-trigger::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  transition: transform 150ms ease;
}
.has-menu.is-open .nav-trigger::after {
  transform: translateY(0.1em) rotate(225deg);
}
.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  min-width: 280px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(28, 25, 20, 0.08);
  transition: visibility 150ms ease, opacity 150ms ease, transform 150ms ease;
}
.has-menu.is-open .nav-menu,
.has-menu:focus-within .nav-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.has-menu.is-escaped:not(.is-open) .nav-menu {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .has-menu:hover .nav-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}
.nav-menu-item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
}
.nav-menu-item:hover,
.nav-menu-item:focus-visible { background: var(--bg-alt); }
.nav-menu-item strong {
  color: var(--text);
  font-size: 14px;
}
.nav-menu-item span {
  color: var(--dim);
  font-size: 12px;
}

.nav-overlay { display: none; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.button-primary {
  background: var(--ink);
  color: var(--on-accent);
}
.button-primary:hover { background: #2c261e; }
.button-primary:active { background: #100e0b; }
.button-ghost {
  border-color: var(--line-strong);
  background: transparent;
}
.button-ghost:hover { background: var(--bg-alt); }
.button-ghost:active { background: #e4ddd2; }
.button-small { min-height: 40px; padding-inline: 14px; font-size: 13px; }

.hero { padding: 56px 0 32px; }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero-lede {
  margin: 0;
  max-width: 32em;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.section { padding: 56px 0; }
main:has(.hero) > .section:last-of-type { padding-bottom: 80px; }
.section-alt { background: var(--bg-alt); }
.module {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.module h2 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.module > p { margin: 0 0 28px; color: var(--muted); max-width: 42em; }
.module .hero-actions { margin-top: 0; }
main:has(#contact) #contact .module { max-width: 36em; padding: 32px; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
}
.module-grid h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.module-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.product-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 150ms ease;
}
a.product-card:hover { border-color: var(--line-strong); }
.product-card h2,
.product-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.product-card p { margin: 0; color: var(--muted); font-size: 14px; }
.product-card .product-audience {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.product-card .product-limit {
  margin-top: 8px;
  color: var(--dim);
  font-size: 13px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-card .text-link { margin-top: 16px; }
.text-link::after {
  content: none;
  display: inline-block;
  text-decoration: none;
  transition: transform 150ms ease;
}
.text-link:hover::after,
a:hover .text-link::after { transform: translateX(2px); }

.page { padding: 48px 0 80px; }
.page-title,
.prose h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-weight: 700;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current="page"] { color: var(--text); }
.section-heading { max-width: 40em; margin-bottom: 28px; }
.section-heading h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.section-heading h2,
.section-heading .page-title { margin-top: 0; }
.section-heading p { color: var(--muted); }
.prose {
  max-width: 68ch;
  line-height: 1.7;
}
.prose h2 {
  margin: 36px 0 12px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.prose p, .prose li { color: var(--muted); }
.prose li + li { margin-top: 6px; }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose code {
  color: var(--text);
  font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.product-site-note {
  margin-top: 48px;
  color: var(--dim);
  font-size: 13px;
}
.product-site-note a {
  color: var(--dim);
  text-decoration: none;
}
.product-site-note a:hover { color: var(--muted); }

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 36px;
  font-size: 14px;
}
.related a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.updated-line {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 13px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 28px;
  font-size: 14px;
}
.toc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.fact-grid > div { padding: 24px; border-bottom: 1px solid var(--line); }
.fact-grid > div[hidden] { display: none !important; }
.fact-grid > div:not([hidden]):has(+ div[hidden]),
.fact-grid > div:not([hidden]):last-child { border-bottom: 0; }
.fact-grid dt {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.fact-grid dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0;
  color: var(--text);
}
.contact-followup { margin-top: 28px; color: var(--muted); }
.not-found-links { margin: 32px 0 0; }
.not-found-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.not-found-links li + li { margin-top: 8px; }
.not-found-links a,
.not-found-contact a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.not-found-contact { margin: 16px 0 0; }

.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--dim);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px 48px;
  align-items: start;
  margin-bottom: 36px;
}
.footer-brand .brand { color: var(--text); }
.footer-brand .brand img {
  width: 28px;
  height: 28px;
}
.footer-brand p {
  margin: 12px 0 0;
  max-width: 32em;
  line-height: 1.6;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  margin-bottom: 36px;
}
.footer-grid .footer-cols { margin-bottom: 0; }
.footer-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.footer-cols nav {
  display: grid;
  gap: 8px;
}
.footer-cols a,
.footer-copy,
.footer-copy a { color: var(--muted); }
.footer-cols a:hover,
.footer-top:hover,
.footer-copy a:hover { color: var(--text); }
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.footer-copy { margin: 0; }
.footer-top { color: inherit; }

@media (max-width: 880px) {
  html { scroll-padding-top: calc(56px + env(safe-area-inset-top, 0px)); }
  .shell {
    width: min(100%, var(--shell));
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  }
  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
    min-height: calc(48px + env(safe-area-inset-top, 0px));
  }
  .header-inner {
    min-height: 48px;
  }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: clamp(28px, 7vw, 32px); }
  .page-title,
  .prose h1 { font-size: clamp(28px, 6vw, 32px); }
  .footer-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .fact-grid > div { padding: 16px; }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .product-card,
  a.product-card {
    display: grid;
    gap: 6px;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  a.product-card:last-child { border-bottom: 0; }
  a.product-card:active { background: var(--bg-alt); }
  .product-card .text-link { display: none; }
  .crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  [data-copy-email] { min-height: 44px; }
  .not-found-links a,
  .not-found-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-cols a,
  .footer-copy a,
  .footer-top {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  }
  .nav-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    transform: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  .has-menu:not(.is-open) .nav-menu,
  .has-menu:hover:not(.is-open) .nav-menu,
  .has-menu:focus-within:not(.is-open) .nav-menu {
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-width: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  .nav-menu-item { min-height: 44px; align-content: center; }
  .site-nav {
    position: absolute;
    top: calc(48px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 95;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open {
    display: flex;
    max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }
  .site-nav a, .site-nav .button, .nav-trigger { min-height: 44px; text-align: left; }
  .site-nav > a {
    display: flex;
    align-items: center;
  }
  .nav-toggle {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }
  .nav-toggle span:nth-of-type(2) { top: 16px; }
  .nav-toggle span:nth-of-type(3) { top: 21px; }
  .nav-toggle span:nth-of-type(4) { top: 26px; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(2),
  .nav-toggle[aria-expanded="true"] span:nth-of-type(4) { top: 21px; }
  .nav-overlay {
    position: fixed;
    top: calc(48px + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: block;
    background: rgba(28, 25, 20, 0.28);
  }
}

@media (max-width: 390px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
