:root {
  --ink: #101214;
  --ink-soft: #30363b;
  --muted: #697278;
  --paper: #ffffff;
  --canvas: #f5f6f2;
  --line: #dfe3e6;
  --line-dark: rgba(255, 255, 255, 0.14);
  --dark: #101214;
  --dark-soft: #191d20;
  --blue: #246bfe;
  --green: #16a66a;
  --orange: #ef8b27;
  --max: 1240px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow: 0 22px 60px rgba(16, 18, 20, 0.12);
  --shadow-hover: 0 30px 80px rgba(16, 18, 20, 0.18);
  --font-sans: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

button { font: inherit; }

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

.shell {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(16, 18, 20, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 186px; }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #246bfe, #36c7ca, #8ddf65, #ffca45, #ff5c89, #246bfe);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--dark);
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: block;
  object-fit: cover;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(91, 124, 255, .22);
  transition: transform 240ms cubic-bezier(.16, 1, .3, 1), box-shadow 240ms ease;
}

.brand:hover .brand-logo-img { transform: rotate(-6deg) scale(1.06); box-shadow: 0 12px 30px rgba(91, 124, 255, .34); }

.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { color: #fff; font-size: 16px; letter-spacing: 0.08em; }
.brand-copy span { color: #90999f; font: 10px/1.2 var(--font-mono); letter-spacing: 0.14em; margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 30px; color: #aab1b5; font-size: 14px; letter-spacing: .01em; }
.nav-links a { transition: color 180ms ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: #fff; }

.nav-item { position: relative; display: flex; align-items: center; height: 72px; cursor: default; }

.dropdown-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  width: 286px;
  padding: 8px;
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  background: #1a1f23;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: 180ms ease;
}

.nav-item:hover .dropdown-menu, .nav-item:focus-within .dropdown-menu {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.dropdown-link { display: block; padding: 12px 14px; border-radius: 10px; }
.dropdown-link:hover { background: rgba(255, 255, 255, 0.07); }
.dropdown-link strong { display: block; color: #fff; font-size: 13px; }
.dropdown-link span { display: block; margin-top: 3px; color: #899298; font-size: 12px; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(0, 0, 0, .18); }
.button:active { transform: translateY(0); box-shadow: 0 5px 12px rgba(0, 0, 0, .12); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid #8aaeff; outline-offset: 4px; }
.button-light { color: var(--ink); background: #fff; }
.button-light:hover { background: #e9edee; }
.button-outline { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: transparent; }
.button-outline:hover { border-color: rgba(255, 255, 255, 0.62); background: rgba(255, 255, 255, 0.08); }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: #2a3034; }
.button-blue { color: #fff; background: var(--blue); }
.button-blue:hover { background: #1459e4; }
.button-arrow::after { content: "↗"; font-size: 16px; }

.menu-button { display: none; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.22); cursor: pointer; }

.mobile-menu { display: none; }

main { overflow: hidden; }

.section { padding: 128px 0; }
.section-light { background: var(--paper); }
.section-dark { color: #fff; background: var(--dark); }

.eyebrow {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue);
  font: 700 11px/1.2 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section-dark .eyebrow { color: #84aaff; }

.section-heading { max-width: 760px; margin-bottom: 50px; }
.section-heading h2 { max-width: 680px; margin: 0; font-size: clamp(34px, 3.7vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading p { max-width: 580px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.section-dark .section-heading p { color: #aeb7bb; }

.hero {
  position: relative;
  min-height: clamp(700px, calc(100svh - 72px), 820px);
  display: flex;
  align-items: center;
  padding: 132px 0 76px;
  color: #fff;
  background-color: var(--dark);
  background-image: linear-gradient(90deg, rgba(16,18,20,.88) 0%, rgba(16,18,20,.72) 34%, rgba(16,18,20,.28) 58%, rgba(16,18,20,0) 78%), url('/media/qch_OS.png');
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: cover, cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,18,20,.12), transparent 30%, rgba(16,18,20,.18));
  pointer-events: none;
}

.hero-grid { position: relative; z-index: 1; }
.hero-copy { max-width: 760px; animation: rise-in 760ms cubic-bezier(.16, 1, .3, 1) both; }
.hero h1 { max-width: 780px; margin: 0; font-family: Arial, "Helvetica Neue", "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif; line-height: .97; letter-spacing: -.065em; }
.hero-title-top { display: block; white-space: nowrap; font-size: clamp(44px, 5.05vw, 74px); font-weight: 650; }
.hero-title-top b { margin-right: .08em; color: #d8e0df; font-size: .82em; font-weight: 650; letter-spacing: -.08em; }
.hero-title-top strong { font-weight: 700; letter-spacing: -.085em; }
.hero-title-bottom { display: block; margin-top: 12px; color: #a8e86c; font-size: clamp(58px, 6.55vw, 96px); font-weight: 750; letter-spacing: -.105em; white-space: nowrap; }
.hero-lead { max-width: 560px; margin: 28px 0 0; color: #c0c8cb; font-size: clamp(16px, 1.45vw, 18px); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { min-height: 390px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; position: relative; overflow: hidden; border: 1px solid rgba(16,18,20,.09); border-radius: var(--radius-md); background: linear-gradient(145deg, #fff 0%, #f9fbfa 68%, #eef4f0 100%); box-shadow: 0 12px 34px rgba(16,18,20,.08), inset 0 1px 0 rgba(255,255,255,.9); transition: transform 260ms cubic-bezier(.16, 1, .3, 1), border-color 260ms ease, box-shadow 260ms ease; animation: rise-in 720ms cubic-bezier(.16, 1, .3, 1) both; }
.product-card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -100px; top: -110px; border-radius: 50%; background: rgba(111, 193, 255, .14); filter: blur(8px); transition: transform 360ms ease, opacity 360ms ease; }
.product-card:nth-child(2) { animation-delay: 90ms; }
.product-card:nth-child(3) { animation-delay: 180ms; }
.product-card:hover { transform: translateY(-8px); border-color: rgba(36,107,254,.28); box-shadow: var(--shadow-hover), inset 0 1px 0 rgba(255,255,255,.95); }
.product-card:hover::before { transform: scale(1.35); opacity: .9; }
.product-number { display: none; align-items: center; gap: 8px; color: var(--muted); font: 11px var(--font-mono); letter-spacing: .04em; }
.product-number i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a8e86c; }
.product-card h3 { margin: 0 0 12px; font-size: 30px; letter-spacing: -.04em; }
.product-card p { margin: 0; color: var(--muted); font-size: 16px; }
.product-type { display: none; margin-top: 24px; color: var(--blue); font: 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 34px; color: var(--ink); font-weight: 700; }
.text-link::after { content: "↗"; transition: transform 180ms ease; }
.text-link:hover::after { transform: translate(3px, -3px); }

.capability-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.capability-copy h2 { margin: 0; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.03; letter-spacing: -.06em; }
.capability-copy p { max-width: 430px; margin: 24px 0 0; color: #abb4b8; font-size: 17px; }
.capability-flow { border-top: 1px solid var(--line-dark); }
.capability-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.capability-step span { color: #879398; font: 12px var(--font-mono); }
.capability-step strong { display: block; font-size: 20px; letter-spacing: -.02em; }
.capability-step p { margin: 6px 0 0; color: #9da8ad; font-size: 14px; }

.factory-note { display: inline-flex; margin-top: 36px; padding: 11px 14px; color: #c1c9cc; background: #1b2023; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; font-size: 13px; }

.showcase-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: stretch; }
.showcase-copy { padding: 38px; color: #fff; background: linear-gradient(145deg, #171c20, #0d1012); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); box-shadow: 0 22px 54px rgba(16,18,20,.16); }
.showcase-copy h3 { margin: 0; font-size: 38px; line-height: 1.06; letter-spacing: -.05em; }
.showcase-copy p { margin: 22px 0 0; color: #aeb7bb; }
.showcase-copy .button { margin-top: 34px; }
.showcase-image { display: flex; align-items: center; min-height: 420px; padding: 24px; overflow: hidden; background: linear-gradient(145deg, #f5fafb, #e2ebee); border: 1px solid rgba(16,18,20,.08); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.showcase-image img { width: 100%; border-radius: 9px; box-shadow: 0 22px 44px rgba(0,0,0,.16); }

.content-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 18px; }
.content-card { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; position: relative; overflow: hidden; background: linear-gradient(145deg, #fff, #f4f8f6); border: 1px solid rgba(16,18,20,.08); border-radius: var(--radius-md); box-shadow: 0 12px 34px rgba(16,18,20,.07); transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease; }
.content-card:hover { transform: translateY(-6px); border-color: rgba(36,107,254,.22); box-shadow: var(--shadow-hover); }
.content-card.featured { color: #fff; background: var(--dark); border-color: var(--dark); }
.content-card small { color: var(--blue); font: 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.content-card.featured small { color: #a8e86c; }
.content-card h3 { max-width: 440px; margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
.content-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.content-card.featured p { color: #aeb7bb; }
.content-meta { display: none; justify-content: space-between; gap: 12px; color: #899398; font: 11px var(--font-mono); }

.case-list { border-top: 1px solid var(--line); }
.case-row { display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.case-row strong { font-size: 20px; letter-spacing: -.02em; }
.case-row p { margin: 0; color: var(--muted); font-size: 14px; }
.case-row span { color: var(--blue); font: 11px var(--font-mono); letter-spacing: .08em; }

.route-section { background: #e9ece8; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.route-card { min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; background: linear-gradient(145deg, #fbfcfa, #eef2ef); transition: background 220ms ease, transform 220ms ease; }
.route-card:hover { background: #fff; transform: translateY(-3px); }
.route-card h3 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.route-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.route-card .text-link { margin-top: 26px; }

.footer { padding: 70px 0 28px; color: #9da8ad; background: var(--dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; padding-bottom: 60px; }
.footer-brand p { max-width: 250px; margin: 18px 0 0; color: #7f8b90; font-size: 13px; }
.footer-brand > p { display: none; }
.footer h4 { margin: 0 0 16px; color: #fff; font-size: 13px; }
.footer ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; font-size: 13px; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line-dark); color: #6f7a7f; font: 11px var(--font-mono); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions .button-outline { display: none; }
  .menu-button { display: inline-flex; }
  .hero-grid, .capability-grid, .showcase-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero { min-height: auto; }
  .hero { background-position: center, center; background-size: cover, cover; }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .content-card.featured { grid-column: span 2; min-height: 260px; }
  .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .shell { width: min(var(--max), calc(100% - 40px)); }
  .nav { min-height: 64px; }
  .brand { min-width: 0; }
  .nav-actions .button-light { display: none; }
  .mobile-menu { position: fixed; inset: 64px 0 0; z-index: 19; display: none; padding: 24px 20px; background: var(--dark); overflow-y: auto; }
  .mobile-menu.is-open { display: block; }
  .mobile-menu nav { display: grid; gap: 4px; }
  .mobile-menu a { display: block; padding: 14px 0; color: #d5dcde; border-bottom: 1px solid var(--line-dark); }
  .mobile-menu .button { margin-top: 18px; width: 100%; }
  .section { padding: 84px 0; }
  .hero { padding: 124px 0 72px; }
  .hero h1 { font-size: clamp(50px, 15vw, 74px); }
  .hero { background-position: center, center; background-size: cover, cover; }
  .products-grid, .content-grid, .route-grid { grid-template-columns: 1fr; }
  .content-card.featured { grid-column: auto; }
  .product-card { min-height: 340px; }
  .showcase-copy { padding: 28px; }
  .showcase-copy h3 { font-size: 32px; }
  .showcase-image { min-height: 240px; padding: 12px; }
  .case-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { display: grid; }
}
