:root {
  --orange: #ff7a3c;
  --orange-deep: #f2541b;
  --orange-soft: #ffb27a;
  --peach: #ffe6d6;
  --cream: #fff8f2;
  --ink: #2b1d16;
  --ink-soft: #6b574c;
  --ink-mute: #9a8578;
  --line: rgba(255, 122, 60, 0.16);
  --bg: #fffaf6;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.72);
  --shadow-sm: 0 4px 14px rgba(120, 60, 20, 0.07);
  --shadow-md: 0 12px 32px rgba(120, 60, 20, 0.12);
  --shadow-lg: 0 24px 60px rgba(120, 60, 20, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --grad-brand: linear-gradient(135deg, #ff9a5c 0%, #ff7a3c 45%, #f2541b 100%);
  --grad-hero: linear-gradient(140deg, #fff1e6 0%, #ffe0cc 40%, #ffd0b8 70%, #ffc4a6 100%);
  --grad-soft: linear-gradient(160deg, rgba(255, 154, 92, 0.14), rgba(242, 84, 27, 0.05));
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

html[data-theme="dark"],
body.dark-mode {
  --ink: #f4e9e2;
  --ink-soft: #c9b6ab;
  --ink-mute: #9a8578;
  --line: rgba(255, 138, 80, 0.22);
  --bg: #17100c;
  --bg-alt: #1f1611;
  --card: #241a14;
  --card-glass: rgba(36, 26, 20, 0.66);
  --cream: #241a14;
  --peach: #3a251a;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --grad-hero: linear-gradient(140deg, #2a1a12 0%, #33200f 45%, #3d2413 100%);
  --grad-soft: linear-gradient(160deg, rgba(255, 138, 80, 0.16), rgba(242, 84, 27, 0.06));
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 154, 92, 0.14), transparent 42%),
    radial-gradient(circle at 88% 24%, rgba(242, 84, 27, 0.1), transparent 46%),
    radial-gradient(circle at 50% 96%, rgba(255, 178, 122, 0.12), transparent 50%);
}

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

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

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

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

h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.05rem; color: var(--ink-soft); }

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

ul, ol {
  padding-left: 1.3em;
  color: var(--ink-soft);
}

li {
  margin-bottom: 0.4em;
}

time {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.4s var(--ease), box-shadow 0.3s var(--ease);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  flex-shrink: 0;
}

.logo svg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  transition: transform 0.5s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 6px 16px rgba(242, 84, 27, 0.35);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.logo-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.04em;
}

#main-nav {
  flex: 1 1 auto;
}

#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

#main-nav a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-radius: 999px;
  position: relative;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

#main-nav a:hover {
  color: var(--orange-deep);
  background: rgba(255, 122, 60, 0.08);
}

#main-nav a:hover::after {
  width: 60%;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#site-search {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.25rem 0.2rem 0.9rem;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#site-search:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 60, 0.15);
}

#search-input {
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  padding: 0.35rem 0.3rem;
  width: 150px;
  outline: none;
  font-family: inherit;
}

#search-input::placeholder {
  color: var(--ink-mute);
}

#site-search button,
#theme-toggle,
#menu-toggle {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  color: #fff;
  background: var(--grad-brand);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  box-shadow: 0 4px 12px rgba(242, 84, 27, 0.28);
}

#theme-toggle,
#menu-toggle {
  background: var(--bg-alt);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  box-shadow: none;
}

#site-search button:hover,
#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--orange-deep);
  border-color: var(--orange);
}

#menu-toggle {
  display: none;
}

/* ============ Main layout ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.2rem 3rem;
}

main > section {
  margin: 3rem 0;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-md);
}

/* ============ Hero ============ */
#hero {
  margin-top: 1.6rem;
  padding: clamp(1.4rem, 3vw, 2.8rem);
  background: var(--grad-hero);
  border: 1px solid rgba(255, 122, 60, 0.2);
  overflow: hidden;
}

#hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-slider {
  position: relative;
  min-height: 260px;
  padding-bottom: 3rem;
}

.slide {
  display: none;
  animation: fadeUp 0.6s var(--ease) both;
}

.slide.is-active {
  display: block;
}

.slide h1,
.slide h2 {
  max-width: 820px;
  background: linear-gradient(120deg, var(--ink) 30%, var(--orange-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide p {
  max-width: 820px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.btn-primary {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.75rem 1.7rem;
  font-weight: 700;
  color: #fff !important;
  background: var(--grad-brand);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(242, 84, 27, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(242, 84, 27, 0.45);
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.slider-controls {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  gap: 0.6rem;
}

.slider-controls button {
  border: 1px solid rgba(255, 122, 60, 0.35);
  background: var(--card-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.slider-controls button:hover {
  background: var(--grad-brand);
  color: #fff;
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats .stat {
  background: var(--card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 1rem 0.6rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hero-stats .stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--orange-deep);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ============ Breadcrumb ============ */
#breadcrumb {
  margin: 1.4rem 0 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

#breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-mute);
  background: var(--card-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
}

#breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--ink-mute);
}

#breadcrumb a {
  color: var(--ink-soft);
}

#breadcrumb a:hover {
  color: var(--orange-deep);
}

/* ============ Cards inside sections ============ */
#products h3,
#advantages h3,
#solutions h3,
#applications h3,
#brand h3 {
  padding-left: 0.85rem;
  position: relative;
  margin-top: 1.6rem;
}

#products h3::before,
#advantages h3::before,
#solutions h3::before,
#applications h3::before,
#brand h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
}

#products h4 {
  margin-top: 1rem;
}

#advantages {
  background: var(--grad-soft);
}

/* ============ Cases / testimonials ============ */
#cases h3,
#testimonials blockquote {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#cases h3 {
  margin: 1.2rem 0 0;
  font-size: 1.1rem;
}

#cases h3 + p {
  margin-top: 0.4rem;
}

#cases h3:hover,
#testimonials blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 122, 60, 0.4);
}

#testimonials blockquote {
  margin: 1rem 0 0;
  position: relative;
  border-left: 4px solid var(--orange);
}

#testimonials blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.2rem;
  left: 0.7rem;
  font-size: 2.6rem;
  color: rgba(255, 122, 60, 0.28);
  font-family: Georgia, serif;
  line-height: 1;
}

#testimonials blockquote p {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
  color: var(--ink);
  font-style: italic;
}

#testimonials blockquote footer {
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
}

/* ============ News & articles ============ */
#news article,
#articles article {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
  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,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 122, 60, 0.4);
}

#news h3,
#articles h3 {
  font-size: 1.08rem;
  margin: 0 0 0.35rem;
}

#news h3 a,
#articles h3 a {
  color: var(--ink);
}

#news h3 a:hover,
#articles h3 a:hover {
  color: var(--orange-deep);
}

#news article > a,
#articles article > a {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange-deep);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 122, 60, 0.1);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#news article > a:hover,
#articles article > a:hover {
  background: var(--grad-brand);
  color: #fff;
  transform: translateX(4px);
}

/* ============ FAQ ============ */
#faq details {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.2rem 1.2rem;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

#faq details[open] {
  border-color: rgba(255, 122, 60, 0.45);
  box-shadow: var(--shadow-md);
  background: var(--card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 0;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding-right: 2rem;
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--orange);
  transition: transform 0.3s var(--ease);
}

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

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

#faq details p {
  padding-bottom: 0.6rem;
  animation: fadeUp 0.4s var(--ease) both;
}

/* ============ HowTo ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 3rem;
  margin-bottom: 0.6rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  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: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(242, 84, 27, 0.3);
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: rgba(255, 122, 60, 0.45);
  box-shadow: var(--shadow-sm);
}

/* ============ Notice ============ */
#notice {
  background: var(--grad-soft);
}

#notice h3 {
  margin-top: 1.2rem;
}

/* ============ Contact ============ */
#contact address {
  font-style: normal;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}

#contact address p {
  margin: 0 0 0.5rem;
}

#contact address p:last-child {
  margin-bottom: 0;
}

#contact a {
  font-weight: 600;
}

/* ============ Sitemap & links ============ */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  background: var(--grad-brand);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(242, 84, 27, 0.3);
}

/* ============ Footer ============ */
#site-footer {
  background: linear-gradient(160deg, #2b1a12 0%, #3a2216 55%, #4a2a18 100%);
  color: #f4e9e2;
  margin-top: 2rem;
  padding: 3rem 1.2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  top: -260px;
  right: -160px;
  background: radial-gradient(circle, rgba(255, 122, 60, 0.28), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

#site-footer h2 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

#site-footer h3 {
  font-size: 0.95rem;
  color: var(--orange-soft);
  margin: 1rem 0 0.4rem;
}

#site-footer p {
  color: rgba(244, 233, 226, 0.72);
  font-size: 0.9rem;
}

#site-footer a {
  color: var(--orange-soft);
}

#site-footer a:hover {
  color: #fff;
}

.copyright {
  grid-column: 1 / -1;
  text-align: center;
  margin: 1.5rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(244, 233, 226, 0.55);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(242, 84, 27, 0.45);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

#back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(242, 84, 27, 0.6);
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .header-inner {
    gap: 0.8rem;
  }
  #main-nav a {
    padding: 0.35rem 0.55rem;
    font-size: 0.86rem;
  }
  #search-input {
    width: 120px;
  }
}

@media (max-width: 860px) {
  #menu-toggle {
    display: inline-block;
  }
  #main-nav {
    order: 10;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  #main-nav.is-open {
    max-height: 520px;
  }
  #main-nav ul {
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.4rem 0;
  }
  #main-nav a {
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
  }
  #main-nav a::after {
    display: none;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .header-inner {
    padding: 0.6rem 0.9rem;
  }
  .logo-text {
    font-size: 1.05rem;
  }
  .header-tools {
    width: 100%;
    justify-content: space-between;
  }
  #site-search {
    flex: 1 1 auto;
  }
  #search-input {
    width: 100%;
    min-width: 0;
  }
  #site-search button {
    padding: 0.45rem 0.8rem;
  }
  main {
    padding: 0 0.9rem 2rem;
  }
  main > section {
    margin: 2rem 0;
    padding: 1.2rem 1rem;
    border-radius: var(--radius);
  }
  #hero {
    margin-top: 1rem;
  }
  .hero-slider {
    padding-bottom: 3.4rem;
  }
  .slider-controls {
    left: 0;
    right: 0;
    justify-content: flex-start;
  }
  .hero-stats {
    gap: 0.6rem;
  }
  .stat-num {
    font-size: 1.4rem;
  }
  #cases h3,
  #testimonials blockquote,
  #news article,
  #articles article,
  #faq details,
  #contact address {
    padding: 0.9rem 1rem;
  }
  #howto ol li {
    padding: 0.7rem 0.8rem 0.7rem 2.8rem;
  }
  #back-to-top {
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 0.6rem 0.95rem;
  }
}

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .logo-text {
    display: none;
  }
}
</｜｜DSML｜｜ parameter>
</｜｜DSML｜｜ invoke>
</output>