:root {
  --orange-50: #fff6ef;
  --orange-100: #ffe9d8;
  --orange-200: #ffd2b0;
  --orange-300: #ffb37a;
  --orange-400: #ff9447;
  --orange-500: #f26b21;
  --orange-600: #d9550f;
  --orange-700: #b0430a;
  --ink-900: #1c1410;
  --ink-800: #2b2019;
  --ink-700: #3d2e24;
  --ink-600: #5a4638;
  --ink-500: #7a6555;
  --ink-400: #9c8878;
  --ink-300: #c4b3a4;
  --ink-200: #e3d8cd;
  --ink-100: #f3ece5;
  --bg: #fdfaf7;
  --bg-soft: #f8f1ea;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.72);
  --border: rgba(242, 107, 33, 0.14);
  --border-soft: rgba(28, 20, 16, 0.08);
  --shadow-sm: 0 2px 8px rgba(28, 20, 16, 0.05);
  --shadow-md: 0 10px 30px rgba(28, 20, 16, 0.08);
  --shadow-lg: 0 24px 60px rgba(242, 107, 33, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --orange-50: #2a1a10;
    --orange-100: #3a2213;
    --orange-200: #4d2c17;
    --orange-300: #7a4320;
    --orange-400: #b8622a;
    --orange-500: #ff8a3d;
    --orange-600: #ffa05e;
    --orange-700: #ffb884;
    --ink-900: #f7f1ec;
    --ink-800: #ece2da;
    --ink-700: #d9ccc1;
    --ink-600: #bfb0a3;
    --ink-500: #a08f81;
    --ink-400: #827165;
    --ink-300: #5f5147;
    --ink-200: #3e342d;
    --ink-100: #2a231e;
    --bg: #14100d;
    --bg-soft: #1b1613;
    --card: #1f1915;
    --card-glass: rgba(31, 25, 21, 0.66);
    --border: rgba(255, 138, 61, 0.22);
    --border-soft: rgba(247, 241, 236, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(255, 138, 61, 0.16);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-700);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgba(242, 107, 33, 0.14), transparent 62%),
    radial-gradient(900px 460px at -6% 8%, rgba(255, 179, 122, 0.16), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange-600);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--orange-500);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.32;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  font-weight: 800;
}

h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--orange-400), var(--orange-600));
}

h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  margin-top: 1.6em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-600);
}

ul, ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
  color: var(--ink-600);
}

li {
  margin-bottom: 0.45em;
}

li::marker {
  color: var(--orange-500);
}

strong {
  color: var(--ink-800);
  font-weight: 700;
}

time {
  font-size: 0.85rem;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}

blockquote {
  margin: 1.2em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--orange-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0;
  color: var(--ink-700);
  font-style: italic;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

header > div {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

header > div > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink-900);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease);
}

header > div > a:hover {
  transform: translateY(-1px);
  color: var(--orange-600);
}

header > div > a svg {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(242, 107, 33, 0.35));
  transition: transform 0.5s var(--ease);
}

header > div > a:hover svg {
  transform: rotate(-8deg) scale(1.05);
}

header nav {
  flex: 1 1 auto;
  min-width: 0;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-600);
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav a:hover {
  background: var(--orange-100);
  color: var(--orange-700);
  transform: translateY(-1px);
}

header form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

header form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header form input[type="search"] {
  width: 190px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ink-800);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), width 0.3s var(--ease);
}

header form input[type="search"]::placeholder {
  color: var(--ink-400);
}

header form input[type="search"]:focus {
  outline: none;
  border-color: var(--orange-400);
  box-shadow: 0 0 0 3px rgba(242, 107, 33, 0.16);
  width: 220px;
}

header form button {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(242, 107, 33, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

header form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 22px rgba(242, 107, 33, 0.38);
}

header form button:active {
  transform: translateY(0);
}

/* ---------- Layout ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 60px;
}

main > nav[aria-label="面包屑导航"] {
  padding: 18px 0 4px;
}

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--ink-400);
}

main > nav[aria-label="面包屑导航"] li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--ink-300);
}

main > nav[aria-label="面包屑导航"] a {
  color: var(--ink-500);
}

main > nav[aria-label="面包屑导航"] a:hover {
  color: var(--orange-600);
}

main > nav[aria-label="面包屑导航"] [aria-current="page"] {
  color: var(--orange-600);
  font-weight: 600;
}

section {
  margin-top: 40px;
  animation: riseIn 0.7s var(--ease) both;
}

section > * {
  animation: riseIn 0.7s var(--ease) both;
}

section > *:nth-child(2) { animation-delay: 0.05s; }
section > *:nth-child(3) { animation-delay: 0.1s; }
section > *:nth-child(4) { animation-delay: 0.14s; }
section > *:nth-child(5) { animation-delay: 0.18s; }

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

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

/* ---------- Hero ---------- */

#hero {
  position: relative;
  margin-top: 24px;
  padding: clamp(26px, 4.6vw, 52px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: var(--ink-700);
  background:
    linear-gradient(125deg, #ffb37a 0%, #f26b21 42%, #d9550f 100%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 300px at 82% 12%, rgba(255, 255, 255, 0.42), transparent 64%),
    radial-gradient(420px 260px at 8% 92%, rgba(255, 246, 239, 0.3), transparent 66%);
  z-index: -1;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 72% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 72% 30%, #000 0%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(120, 45, 0, 0.35);
  max-width: 22ch;
}

#hero > p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 68ch;
  font-size: clamp(0.94rem, 1.4vw, 1.02rem);
  text-shadow: 0 1px 10px rgba(120, 45, 0, 0.25);
}

#hero > div {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

#hero figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 44px rgba(90, 35, 0, 0.28);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 26px 60px rgba(90, 35, 0, 0.34);
}

#hero figure svg {
  width: 100%;
  height: auto;
  display: block;
}

#hero figcaption {
  padding: 10px 16px 12px;
  font-size: 0.82rem;
  color: var(--ink-600);
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

#hero ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#hero ul li {
  margin: 0;
  padding: 16px 16px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 22px rgba(90, 35, 0, 0.16);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orange-700);
  line-height: 1.45;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

#hero ul li:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 14px 30px rgba(90, 35, 0, 0.24);
}

/* ---------- Generic section cards ---------- */

#intro,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap {
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}

#intro {
  background:
    linear-gradient(180deg, var(--orange-50), var(--card) 34%);
}

#products {
  background:
    linear-gradient(180deg, var(--card), var(--bg-soft));
}

#solutions {
  background:
    linear-gradient(160deg, var(--orange-50), var(--card) 48%);
}

#cases {
  background:
    linear-gradient(180deg, var(--bg-soft), var(--card) 40%);
}

#news {
  background:
    linear-gradient(180deg, var(--card), var(--orange-50));
}

#articles {
  background:
    linear-gradient(180deg, var(--orange-50), var(--card) 26%);
}

#faq {
  background:
    linear-gradient(180deg, var(--card), var(--bg-soft));
}

#howto {
  background:
    linear-gradient(160deg, var(--orange-50), var(--card) 50%);
}

#contact {
  background:
    linear-gradient(180deg, var(--card), var(--orange-50));
}

#sitemap {
  background:
    linear-gradient(180deg, var(--bg-soft), var(--card) 30%);
}

/* ---------- Intro ---------- */

#intro p {
  max-width: 78ch;
}

#intro ul {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
  counter-reset: timeline;
}

#intro ul li {
  position: relative;
  margin: 0;
  padding: 12px 16px 12px 46px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

#intro ul li::before {
  counter-increment: timeline;
  content: counter(timeline);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(242, 107, 33, 0.32);
}

#intro ul li:hover {
  transform: translateX(4px);
  background: var(--orange-50);
  border-color: var(--border);
}

/* ---------- Products ---------- */

#products ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

#products ul li {
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  color: var(--ink-600);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#products ul li::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-400), var(--orange-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

#products ul li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

#products ul li:hover::after {
  transform: scaleX(1);
}

#products ul li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-900);
  font-size: 0.98rem;
}

/* ---------- Solutions ---------- */

#solutions ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

#solutions ul li {
  margin: 0;
  padding: 14px 16px 14px 42px;
  position: relative;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px dashed var(--border);
  font-size: 0.92rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

#solutions ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--orange-300), var(--orange-500));
  box-shadow: 0 0 0 4px rgba(242, 107, 33, 0.12);
}

#solutions ul li:hover {
  background: var(--orange-50);
  transform: translateY(-2px);
}

/* ---------- Cases ---------- */

#cases blockquote {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#cases blockquote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  right: 14px;
  top: -18px;
  font-size: 5rem;
  line-height: 1;
  color: var(--orange-200);
  font-family: Georgia, serif;
  pointer-events: none;
}

/* ---------- News ---------- */

#news article {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#news article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

#news article h3 {
  margin-top: 0;
  margin-bottom: 4px;
  transition: color 0.25s var(--ease);
}

#news article:hover h3 {
  color: var(--orange-600);
}

#news article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

#news article a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

#news article a:hover::after {
  transform: translateX(4px);
}

/* ---------- Articles ---------- */

#articles > p {
  max-width: 80ch;
}

#articles article {
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

#articles article h3 {
  margin-top: 0;
  margin-bottom: 4px;
  transition: color 0.25s var(--ease);
}

#articles article:hover h3 {
  color: var(--orange-600);
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

#articles article a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

#articles article a:hover::after {
  transform: translateX(4px);
}

/* ---------- FAQ ---------- */

#faq details {
  margin-top: 12px;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#faq details[open] {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  background: var(--orange-50);
}

#faq details:hover {
  border-color: var(--border);
}

#faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink-800);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  user-select: none;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--orange-500);
  border-bottom: 2px solid var(--orange-500);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s var(--ease);
}

#faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

#faq summary:hover {
  color: var(--orange-600);
}

#faq details > p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  animation: faqIn 0.4s var(--ease) both;
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- HowTo ---------- */

#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 52px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(242, 107, 33, 0.32);
}

#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

#howto ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

#howto ul li {
  margin: 0;
  padding: 10px 14px 10px 34px;
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 0.92rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

#howto ul li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange-500);
  font-weight: 800;
  font-size: 0.85rem;
}

#howto ul li:hover {
  background: var(--orange-50);
  transform: translateX(3px);
}

/* ---------- Contact ---------- */

#contact address {
  font-style: normal;
}

#contact address ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin: 16px 0 8px;
}

#contact address li {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border-soft);
  font-size: 0.92rem;
  color: var(--ink-600);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact address li:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#contact h3 {
  margin-top: 1.4em;
}

/* ---------- Sitemap ---------- */

#sitemap > ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

#sitemap > ul li {
  margin: 0;
}

#sitemap > ul a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border-soft);
  font-size: 0.9rem;
  color: var(--ink-600);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

#sitemap > ul a:hover {
  background: var(--orange-50);
  color: var(--orange-700);
  border-color: var(--border);
  transform: translateY(-2px);
}

#sitemap h3 + ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#sitemap h3 + ul li {
  margin: 0;
}

#sitemap h3 + ul a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--ink-500);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

#sitemap h3 + ul a:hover {
  background: var(--orange-100);
  color: var(--orange-700);
  border-color: var(--border);
}

/* ---------- Footer ---------- */

footer {
  margin-top: 50px;
  padding: 36px 20px 42px;
  text-align: center;
  background:
    linear-gradient(180deg, transparent, var(--bg-soft) 30%);
  border-top: 1px solid var(--border-soft);
  color: var(--ink-500);
  font-size: 0.86rem;
}

footer p {
  margin: 0 auto 8px;
  max-width: var(--maxw);
  color: var(--ink-500);
  line-height: 1.7;
}

footer p:first-child {
  font-weight: 600;
  color: var(--ink-700);
}

footer a {
  color: var(--ink-500);
  padding: 0 2px;
}

footer a:hover {
  color: var(--orange-600);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  #hero > div {
    grid-template-columns: 1fr;
  }

  #hero ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  header > div {
    padding: 10px 16px;
    gap: 12px;
  }

  header nav {
    order: 3;
    flex: 1 1 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  header nav::-webkit-scrollbar {
    display: none;
  }

  header nav ul {
    flex-wrap: nowrap;
    gap: 2px;
  }

  header nav a {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  header form {
    margin-left: auto;
  }

  header form input[type="search"] {
    width: 150px;
  }

  header form input[type="search"]:focus {
    width: 170px;
  }

  main {
    padding: 0 16px 48px;
  }

  section {
    margin-top: 30px;
  }

  #hero {
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  header > div > a span {
    font-size: 0.95rem;
  }

  header form input[type="search"] {
    width: 118px;
    padding: 7px 12px;
    font-size: 0.84rem;
  }

  header form input[type="search"]:focus {
    width: 132px;
  }

  header form button {
    padding: 7px 13px;
    font-size: 0.84rem;
  }

  #hero {
    padding: 24px 18px 26px;
  }

  #hero h1 {
    max-width: none;
  }

  #hero ul {
    grid-template-columns: 1fr;
  }

  #hero ul li {
    padding: 13px 14px 12px;
    font-size: 0.86rem;
  }

  #hero figure {
    border-radius: var(--radius-md);
  }

  #hero figcaption {
    font-size: 0.76rem;
    padding: 8px 12px 10px;
  }

  #intro,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap {
    padding: 20px 16px 24px;
    border-radius: var(--radius-md);
  }

  #products ul,
  #solutions ul,
  #contact address ul {
    grid-template-columns: 1fr;
  }

  #news article,
  #articles article {
    padding: 16px;
  }

  #faq summary {
    padding: 14px 44px 14px 16px;
    font-size: 0.94rem;
  }

  #faq details > p {
    padding: 0 16px 16px;
    font-size: 0.9rem;
  }

  #howto ol li {
    padding: 12px 14px 12px 46px;
  }

  #howto ol li::before {
    left: 12px;
    width: 24px;
    height: 24px;
  }

  #sitemap > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer {
    padding: 28px 16px 34px;
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  header form input[type="search"] {
    width: 96px;
  }

  header form input[type="search"]:focus {
    width: 110px;
  }

  #sitemap > ul {
    grid-template-columns: 1fr;
  }
}

/* ---------- Dark mode fine-tuning ---------- */

@media (prefers-color-scheme: dark) {
  #hero {
    background: linear-gradient(125deg, #7a4320 0%, #b8622a 40%, #d9550f 100%);
  }

  #hero ul li {
    background: rgba(31, 25, 21, 0.82);
    color: var(--orange-300);
    border-color: rgba(255, 255, 255, 0.12);
  }

  #hero ul li:hover {
    background: rgba(31, 25, 21, 0.96);
  }

  #hero figcaption {
    background: rgba(20, 16, 13, 0.7);
    color: var(--ink-500);
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  #hero figure {
    border-color: rgba(255, 255, 255, 0.14);
  }

  header form button {
    color: #1c1410;
  }

  #products ul li,
  #news article,
  #articles article,
  #faq details,
  #howto ol li,
  #contact address li,
  #sitemap > ul a {
    background: var(--card);
  }

  #faq details[open] {
    background: var(--orange-50);
  }

  #solutions ul li:hover,
  #howto ul li:hover,
  #sitemap > ul a:hover {
    background: var(--orange-100);
  }

  #intro ul li:hover {
    background: var(--orange-100);
  }

  #intro ul li::before,
  #howto ol li::before {
    color: #1c1410;
  }

  #hero h1,
  #hero > p {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  }
}

/* ---------- Print ---------- */

@media print {
  header,
  footer,
  #hero::after,
  #hero::before {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}