@font-face {
  font-family:KHHome;
  src:url('./assets/kh-home-regular.woff') format('woff');
  font-weight:400 500;
  font-display:swap;
}

@font-face {
  font-family:KHHome;
  src:url('./assets/kh-home-bold.woff') format('woff');
  font-weight:600 900;
  font-display:swap;
}

.kh-home {
  --kh-ink:#0b101a;
  --kh-muted:#435168;
  --kh-orange:#ff641e;
  --kh-purple:#7851ff;
  --kh-line:#ece8e5;
  --kh-width:1440px;
  font-family:KHHome,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--kh-ink);
  font-size:16px;
  line-height:1.6;
  background:#fffefc;
  color-scheme:light;
  isolation:isolate;
  width:100%;
  max-width:var(--kh-width);
  margin:0 auto;
  overflow:clip;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.kh-home *,.kh-home *::before,.kh-home *::after {
  box-sizing:border-box;
}

.kh-home :where(h1,h2,h3,p,figure) {
  margin:0;
}

.kh-home :where(a,button) {
  -webkit-tap-highlight-color:transparent;
}

.kh-home a {
  color:inherit;
  text-decoration:none;
}

.kh-home button {
  font:inherit;
  cursor:pointer;
}

.kh-home img {
  max-width:100%;
  display:block;
}

.kh-home [hidden] {
  display:none!important;
}

.kh-home a:focus-visible,.kh-home button:focus-visible {
  outline:3px solid #6c3ef0;
  outline-offset:5px;
}

.kh-home section[id] {
  scroll-margin-top:100px;
}

.kh-skip {
  position:absolute;
  top:-100px;
  left:20px;
  padding:12px 20px;
  background:#fff;
  color:#111;
  z-index:100;
}

.kh-skip:focus {
  top:12px;
}

.kh-header {
  position:relative;
  z-index:10;
  background:rgba(255,255,255,.94);
}

.kh-header-inner {
  height:clamp(68px,6.65vw,94px);
  padding:0 5.45%;
  display:flex;
  align-items:center;
  gap:32px;
}

.kh-wordmark {
  display:block;
  flex:none;
  width:54px;
  height:54px;
  background:transparent url('./assets/kuaihuo-logo-cutout.png') center / contain no-repeat;
}

.kh-nav {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(22px,2.9vw,42px);
  margin-left:auto;
  flex:1;
  padding-left:5.2%;
}

.kh-nav a {
  font-size:clamp(13px,1.36vw,17px);
  font-weight:600;
  white-space:nowrap;
  transition:color .18s ease;
}

.kh-nav a:hover {
  color:#cf420a;
}

.kh-button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:46px;
  min-width:144px;
  border-radius:8px;
  padding:11px 26px;
  font-weight:700!important;
  font-size:16px!important;
  line-height:1.4;
  transition:transform .18s ease,box-shadow .18s ease;
  white-space:nowrap;
  border:1px solid transparent;
}

.kh-button:hover {
  transform:translateY(-2px);
  box-shadow:0 8px 18px #fb7d2022;
}

.kh-button-solid {
  background:#ff7725;
  color:#121722!important;
  border-color:#ff7725;
}

.kh-button-outline {
  background:#ffffffa8;
  border:1.2px solid #111827;
  color:#111827!important;
}

.kh-header-contact {
  min-width:112px;
  min-height:37px;
  font-size:13px!important;
  padding:8px 23px;
  border-radius:6px;
  margin-left:auto;
}

.kh-menu-button {
  display:none;
  background:transparent;
  border:0;
  width:44px;
  height:44px;
  padding:10px;
}

.kh-menu-button span {
  display:block;
  height:2px;
  background:#131925;
  margin:6px 0;
  transition:transform .2s;
}

.kh-home {
  position:relative;
  min-height:100svh;
  max-width:none;
  overflow:visible;
  display:flex;
  flex-direction:column;
  background:#070f1a;
  color:#fff5e7;
  --kh-line:#f6d29d38;
}

.kh-home main {
  flex:1;
  display:grid;
}

.kh-header {
  background:#0e182254;
  border-bottom:1px solid var(--kh-line);
}

.kh-header-inner {
  gap:clamp(12px,2.2vw,32px);
}

.kh-nav {
  gap:clamp(13px,2.2vw,32px);
  padding-left:0;
}

.kh-header-contact {
  min-width:0;
  padding-inline:16px;
  border-color:#fff5e75c;
  background:#0e182254;
  color:#fff5e7!important;
}

.kh-home .kh-nav a:hover {
  color:#ffd6a9;
}

.kh-menu-button span {
  background:#fff5e7;
}

.kh-home :is(.kh-header,.kh-footer) :focus-visible {
  outline-color:#ffd6a9;
}

.kh-hero {
  min-height:clamp(420px,42vw,600px);
  display:grid;
  grid-template-rows:auto 1fr;
  padding:clamp(32px,4.5vw,67px) clamp(20px,6.2vw,90px) 16px;
}

.kh-hero-content {
  grid-row:1;
  text-align:center;
}

.kh-footer {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:4px 24px;
  padding:12px 5.45%;
  border-top:1px solid var(--kh-line);
  background:#09121b55;
  color:#f1e3d3;
  font-size:13px;
}

.kh-footer nav {
  display:flex;
  gap:20px;
}

.kh-footer a {
  display:inline-block;
  padding-block:7px;
}

.kh-footer a:hover {
  text-decoration:underline;
  text-underline-offset:4px;
}

.kh-hero .kh-company-name {
  color:#e3d1bd;
  font-size:clamp(12px,1.2vw,16px);
  letter-spacing:.1em;
}

.kh-hero h1 {
  margin-top:13px;
  font-family:KHHome,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:clamp(31px,4.1vw,63px);
  line-height:1.24;
  font-weight:600;
  letter-spacing:.055em;
}

.kh-hero h1 span {
  color:#ffe2be;
}

.kh-hero-description {
  margin:12px auto 0;
  max-width:34em;
  font-size:clamp(14px,1.6vw,20px);
  color:#eddfcf;
}

.kh-hero-purpose {
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-top:7px;
  padding-block:5px;
  color:#ffdbb2;
  font-size:clamp(13px,1.2vw,17px);
  letter-spacing:.08em;
}

.kh-hero-scene {
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse at 50% 22%,#070f1a52,transparent 57%),
    linear-gradient(180deg,#070f1a72,transparent 54%,transparent 77%,#070f1af0 100%),
    url('./assets/kuaihuo-liquid-metal.webp') center 60% / cover no-repeat;
}

@media(max-width:800px) {
  .kh-header-inner {
    height:68px;
    padding-inline:20px;
    gap:8px;
  }

  .kh-menu-button {
    display:block;
  }

  .kh-nav {
    display:none;
    position:absolute;
    inset:100% 0 auto;
    padding:8px 20px 14px;
    background:#14212d;
    border-bottom:1px solid var(--kh-line);
  }

  .kh-nav[data-open] {
    display:grid;
    gap:0;
  }

  .kh-nav a {
    padding:12px 4px;
    font-size:15px;
  }

  .kh-nav a + a {
    border-top:1px solid var(--kh-line);
  }

  .kh-hero {
    min-height:460px;
    padding:38px 17px 14px;
  }

  .kh-hero h1 {
    margin-top:12px;
    font-size:clamp(27px,7.6vw,40px);
  }

  .kh-hero-description {
    margin-top:12px;
  }

  .kh-hero-purpose {
    margin-top:8px;
    padding-block:3px;
  }

  .kh-hero-scene {
    background:
      linear-gradient(180deg,#070f1a85,transparent 53%,transparent 76%,#070f1af0),
      url('./assets/kuaihuo-liquid-metal.webp') center / cover no-repeat;
  }

  .kh-footer {
    padding-inline:20px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .kh-home :where(a,button) {
    transition:none;
  }
}

.kh-dialog {
  position:fixed;
  inset:0;
  width:min(520px,calc(100% - 40px));
  max-height:calc(100svh - 48px);
  overflow:auto;
  margin:auto;
  padding:38px;
  border:1px solid #eee4dd;
  border-radius:20px;
  background:#fffdf9;
  color:#12141b;
  box-shadow:0 20px 90px #29193333;
  font-family:KHHome,"Microsoft YaHei",sans-serif;
}

.kh-dialog::backdrop {
  background:#16122266;
  backdrop-filter:blur(5px);
}

.kh-dialog-close {
  position:absolute;
  right:14px;
  top:12px;
  border:0;
  background:transparent;
  width:44px;
  height:44px;
  border-radius:50%;
  font-size:30px!important;
  color:#4a4856;
}

.kh-dialog-close:hover {
  background:#f6ece3;
}

.kh-dialog-eyebrow {
  color:#aa4319;
  font-size:12px;
  font-weight:600;
  letter-spacing:1.5px;
}

.kh-dialog h2 {
  font-size:28px;
  line-height:1.5;
  margin-top:12px!important;
  font-weight:800;
  padding-right:15px;
}

.kh-dialog-description {
  font-size:16px;
  line-height:1.8;
  color:#526078;
  margin-top:13px!important;
}

.kh-dialog-status {
  font-size:13px;
  line-height:1.8;
  color:#687287;
  margin-top:18px!important;
}

.kh-dialog-done {
  margin-top:22px;
}

.kh-contact-details {
  margin-top:23px;
}

.kh-contact-line {
  display:flex;
  align-items:center;
  gap:18px;
  border-top:1px solid #ece7e3;
  padding:16px 0;
  font-size:14px;
}

.kh-contact-line strong {
  flex:1;
  overflow-wrap:anywhere;
}

.kh-contact-line button {
  font-size:13px;
  border:1px solid #f7c2a1;
  border-radius:6px;
  background:#fff3e8;
  padding:7px 12px;
  color:#8d3817;
}

.kh-contact-address {
  font-size:14px;
  color:#526078;
  line-height:1.7;
}

.kh-contact-qr {
  width:180px;
  height:180px;
  object-fit:contain;
  margin:20px auto 0;
}

.kh-home .kh-skip { color:var(--kh-ink); background:#fff; }

/* Outline-aware light and shadow around the transparent brand artwork. */
.kh-wordmark { background-color:transparent; background-blend-mode:normal; filter:drop-shadow(0 0 .6px rgba(255,255,255,.9)) drop-shadow(0 0 3px rgba(255,255,255,.45)) drop-shadow(0 4px 5px rgba(0,0,0,.65)); }

/* Clear next steps within the existing single-screen hero. */
@media(max-width:480px) { .kh-hero-description { max-width:25em;font-size:14px;line-height:1.7; } }
@media(max-height:680px) { .kh-hero { min-height:0;padding-top:24px;padding-bottom:20px; } }

/* Keep all seven primary destinations readable before the desktop row gets tight. */
@media(min-width:801px) and (max-width:1100px){
 .kh-header-inner{gap:12px}
 .kh-menu-button{display:block}
 .kh-nav{display:none;position:absolute;inset:100% 0 auto;padding:8px 20px 14px;background:#14212d;border-bottom:1px solid var(--kh-line)}
 .kh-nav[data-open]{display:grid;gap:0}
 .kh-nav a{padding:12px 4px;font-size:15px}
 .kh-nav a+a{border-top:1px solid var(--kh-line)}
}
