:root {
  --orange-50: #fff7f0;
  --orange-100: #ffe9d9;
  --orange-200: #ffd4b8;
  --orange-300: #ffb98a;
  --orange-400: #ff9f68;
  --orange-500: #ff7a45;
  --orange-600: #f25e26;
  --orange-700: #cc4513;
  --ink-900: #221812;
  --ink-800: #33251c;
  --ink-700: #4a382d;
  --ink-600: #6b5648;
  --ink-500: #8a7566;
  --ink-400: #b3a094;
  --ink-300: #d6c8bd;
  --ink-200: #ebe1d9;
  --ink-100: #f6f0ea;
  --surface: #ffffff;
  --surface-soft: #fffaf6;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 122, 69, 0.16);
  --border-strong: rgba(255, 122, 69, 0.32);
  --shadow-sm: 0 2px 8px rgba(80, 45, 20, 0.06);
  --shadow-md: 0 10px 30px rgba(80, 45, 20, 0.1);
  --shadow-lg: 0 20px 50px rgba(80, 45, 20, 0.14);
  --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;
  --max-width: 1180px;
  --header-height: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1b1512;
    --surface-soft: #221a16;
    --surface-glass: rgba(34, 26, 22, 0.72);
    --ink-900: #fdf6f1;
    --ink-800: #f6e9e0;
    --ink-700: #e8d6c9;
    --ink-600: #c9b3a4;
    --ink-500: #a8907f;
    --ink-400: #806a5b;
    --ink-300: #5a483c;
    --ink-200: #3c2f27;
    --ink-100: #2a211b;
    --border: rgba(255, 160, 110, 0.18);
    --border-strong: rgba(255, 160, 110, 0.36);
    --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 20px 50px rgba(0, 0, 0, 0.55);
  }
}

html[data-theme="dark"] {
  --surface: #1b1512;
  --surface-soft: #221a16;
  --surface-glass: rgba(34, 26, 22, 0.72);
  --ink-900: #fdf6f1;
  --ink-800: #f6e9e0;
  --ink-700: #e8d6c9;
  --ink-600: #c9b3a4;
  --ink-500: #a8907f;
  --ink-400: #806a5b;
  --ink-300: #5a483c;
  --ink-200: #3c2f27;
  --ink-100: #2a211b;
  --border: rgba(255, 160, 110, 0.18);
  --border-strong: rgba(255, 160, 110, 0.36);
  --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 20px 50px rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] {
  --surface: #ffffff;
  --surface-soft: #fffaf6;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --ink-900: #221812;
  --ink-800: #33251c;
  --ink-700: #4a382d;
  --ink-600: #6b5648;
  --ink-500: #8a7566;
  --ink-400: #b3a094;
  --ink-300: #d6c8bd;
  --ink-200: #ebe1d9;
  --ink-100: #f6f0ea;
  --border: rgba(255, 122, 69, 0.16);
  --border-strong: rgba(255, 122, 69, 0.32);
  --shadow-sm: 0 2px 8px rgba(80, 45, 20, 0.06);
  --shadow-md: 0 10px 30px rgba(80, 45, 20, 0.1);
  --shadow-lg: 0 20px 50px rgba(80, 45, 20, 0.14);
}

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

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

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-700);
  background-color: var(--surface-soft);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 159, 104, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 122, 69, 0.14), transparent 55%),
    radial-gradient(800px 800px at 50% 120%, rgba(255, 185, 138, 0.18), 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 {
  color: var(--orange-500);
}

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

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

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  position: relative;
  padding-left: 18px;
}

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

h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.45em;
}

strong {
  color: var(--ink-900);
  font-weight: 600;
}

blockquote {
  margin: 0;
}

main {
  display: block;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 60px;
}

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

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

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

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

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

section {
  position: relative;
  margin: 0 0 32px;
  padding: clamp(22px, 3vw, 40px);
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

section > h2:first-child {
  margin-top: 0;
}

section > h2 + p,
section > h1 + p {
  color: var(--ink-600);
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 122, 69, 0.06), var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  min-height: var(--header-height);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink-900);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.logo svg {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(255, 122, 69, 0.35));
  transition: transform 0.5s var(--ease);
}

.logo:hover {
  color: var(--orange-600);
  transform: translateY(-1px);
}

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

#site-header nav[aria-label="主导航"] {
  flex: 1 1 auto;
  min-width: 0;
}

#site-header nav[aria-label="主导航"] ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-header nav[aria-label="主导航"] li {
  margin: 0;
}

#site-header nav[aria-label="主导航"] a {
  display: inline-block;
  padding: 7px 11px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-600);
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

#site-header nav[aria-label="主导航"] a:hover {
  color: var(--orange-600);
  background: var(--orange-100);
  transform: translateY(-1px);
}

#site-header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#site-header form[role="search"]:focus-within {
  border-color: var(--orange-400);
  box-shadow: 0 0 0 4px rgba(255, 122, 69, 0.16);
}

#site-header form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#site-header input[type="search"] {
  width: 180px;
  max-width: 42vw;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink-800);
  background: transparent;
  border: 0;
  border-radius: 999px;
  outline: none;
}

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

#site-header form[role="search"] button {
  flex: 0 0 auto;
  padding: 7px 16px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#site-header form[role="search"] button:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 16px rgba(255, 122, 69, 0.4);
  transform: translateY(-1px);
}

#site-header form[role="search"] button:active {
  transform: translateY(0) scale(0.98);
}

#theme-toggle,
#menu-toggle {
  flex: 0 0 auto;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--orange-600);
  border-color: var(--border-strong);
  background: var(--orange-100);
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
}

#banner {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  margin-bottom: 36px;
}

#banner:hover {
  box-shadow: none;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-xl);
}

.carousel::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-400) 55%, var(--orange-300));
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.45s var(--ease);
}

.slide:nth-child(2) {
  background: linear-gradient(135deg, #ff8a5c, #ff9f68 50%, #ffc59a);
}

.slide:nth-child(3) {
  background: linear-gradient(135deg, #ffb98a, #ff9f68 45%, #ff7a45);
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(255, 243, 224, 0.28), transparent 65%);
  pointer-events: none;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(34, 24, 18, 0.02) 0%, rgba(34, 24, 18, 0.42) 100%);
  pointer-events: none;
}

.slide svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.85;
}

.slide h2 {
  color: #fff;
  padding-left: 0;
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2.1rem);
  text-shadow: 0 2px 18px rgba(80, 30, 0, 0.28);
  margin-bottom: 0.4em;
}

.slide h2::before {
  display: none;
}

.slide p {
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  text-shadow: 0 1px 10px rgba(80, 30, 0, 0.25);
  margin-bottom: 1.2em;
}

.slide a {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--orange-600);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(80, 30, 0, 0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.slide a::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.slide a:hover {
  color: var(--orange-700);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(80, 30, 0, 0.3);
}

.slide a:hover::after {
  transform: translateX(4px);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.carousel-controls button {
  padding: 9px 20px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.carousel-controls button:hover {
  color: var(--orange-600);
  background: var(--orange-100);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.carousel-controls button:active {
  transform: translateY(0) scale(0.98);
}

#brand h2,
#products h2,
#solutions h2,
#applications h2,
#cases h2,
#testimonials h2,
#news h2,
#articles h2,
#faq h2,
#howto h2,
#contact h2,
#sitemap h2,
#links h2,
#legal h2,
#meta-info h2 {
  margin-top: 1.6em;
}

#brand h2:first-of-type {
  margin-top: 1.2em;
}

#brand ul,
#solutions ul,
#howto ul {
  list-style: none;
  padding-left: 0;
}

#brand ul li,
#solutions ul li,
#howto ul li {
  position: relative;
  padding: 10px 14px 10px 40px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#brand ul li::before,
#solutions ul li::before,
#howto ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 0 0 4px rgba(255, 122, 69, 0.14);
}

#brand ul li:hover,
#solutions ul li:hover,
#howto ul li:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

#products h3,
#solutions h3,
#applications h3,
#cases h3,
#howto h3 {
  margin-top: 1.5em;
  padding-bottom: 0.35em;
  border-bottom: 2px dashed var(--border);
  display: inline-block;
}

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

#products ul li {
  position: relative;
  margin: 0;
  padding: 18px 18px 18px 54px;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#products ul li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 4px 12px rgba(255, 122, 69, 0.35);
}

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

#cases h3 {
  color: var(--orange-600);
}

#testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}

#testimonials h2 {
  grid-column: 1 / -1;
  margin-top: 0;
}

#testimonials blockquote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#testimonials blockquote::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: 16px;
  font-size: 3.4rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--orange-300);
  opacity: 0.7;
  pointer-events: none;
}

#testimonials blockquote p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-700);
}

#testimonials blockquote:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

#news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

#news h2 {
  grid-column: 1 / -1;
  margin-top: 0;
}

#news article {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  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 h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
  border: 0;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

#news article time {
  display: inline-block;
  margin-bottom: 0.7em;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange-600);
  background: var(--orange-100);
  border-radius: 999px;
}

#news article p:last-child {
  margin-bottom: 0;
  color: var(--ink-600);
  font-size: 0.92rem;
}

#news article:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

#articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

#articles h2 {
  grid-column: 1 / -1;
  margin-top: 0;
}

#articles article {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles article h3 {
  margin: 0 0 0.3em;
  border: 0;
  padding: 0;
  font-size: 1.08rem;
  line-height: 1.5;
}

#articles article time {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-bottom: 0.7em;
}

#articles article p {
  flex: 1 1 auto;
  font-size: 0.92rem;
  color: var(--ink-600);
  margin-bottom: 1.1em;
}

#articles article a {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-600);
  background: var(--orange-100);
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

#articles article a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 8px 20px rgba(255, 122, 69, 0.35);
  transform: translateY(-2px);
}

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

#articles article:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

#faq details {
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  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-strong);
  box-shadow: var(--shadow-md);
  background: linear-gradient(170deg, var(--surface) 0%, var(--surface-soft) 100%);
}

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange-600);
  background: var(--orange-100);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  transform: translateY(-50%) rotate(180deg);
}

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

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.93rem;
  color: var(--ink-600);
  animation: fadeSlideIn 0.35s var(--ease);
}

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

#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
  margin-top: 1.2em;
}

#howto ol li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 66px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 6px 16px rgba(255, 122, 69, 0.35);
}

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

#howto ul li::before {
  background: linear-gradient(135deg, var(--ink-400), var(--ink-600));
  box-shadow: 0 0 0 4px rgba(138, 117, 102, 0.14);
}

#contact address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 24px;
  margin-bottom: 28px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

#contact address p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-600);
  word-break: break-word;
}

#contact address strong {
  color: var(--ink-800);
}

#contact form {
  margin-top: 8px;
}

#contact fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 0;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

#contact legend {
  padding: 0 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-900);
}

#contact label {
  grid-column: span 1;
  align-self: end;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: -10px;
}

#contact input[type="text"],
#contact input[type="email"],
#contact select,
#contact textarea {
  grid-column: span 1;
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.93rem;
  color: var(--ink-800);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

#contact select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--orange-500) 50%),
    linear-gradient(135deg, var(--orange-500) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
  cursor: pointer;
}

#contact textarea {
  grid-column: 1 / -1;
  min-height: 130px;
  resize: vertical;
}

#contact input:hover,
#contact select:hover,
#contact textarea:hover {
  border-color: var(--border-strong);
}

#contact input:focus,
#contact select:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--orange-400);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(255, 122, 69, 0.16);
}

#contact button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 12px 34px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 122, 69, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#contact button[type="submit"]:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 122, 69, 0.45);
}

#contact button[type="submit"]:active {
  transform: translateY(0) scale(0.98);
}

#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 69, 0.35);
}

#legal h2 {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
}

#legal p {
  font-size: 0.92rem;
  color: var(--ink-600);
}

#meta-info {
  font-size: 0.9rem;
}

#meta-info p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 6px;
  color: var(--ink-600);
}

#meta-info strong {
  min-width: 5em;
}

footer {
  background: linear-gradient(160deg, var(--ink-900) 0%, #3d2418 100%);
  color: rgba(255, 245, 238, 0.78);
  padding: 44px 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 160, 110, 0.18);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.footer-inner > p:first-child {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-inner nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-inner nav li {
  margin: 0;
}

.footer-inner nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.875rem;
  color: rgba(255, 245, 238, 0.82);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.footer-inner nav a:hover {
  color: #fff;
  background: rgba(255, 160, 110, 0.18);
}

.footer-inner > p:last-child {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 245, 238, 0.6);
  line-height: 1.9;
}

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  padding: 11px 18px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(255, 122, 69, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

#back-to-top:hover {
  box-shadow: 0 18px 40px rgba(255, 122, 69, 0.55);
  transform: translateY(-3px);
}

#back-to-top:active {
  transform: translateY(0) scale(0.97);
}

body.scrolled #back-to-top {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

section {
  animation: sectionReveal 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 22%;
}

@supports not (animation-timeline: view()) {
  section {
    animation: none;
  }
  .reveal-js section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal-js section.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1024px) {
  .header-inner {
    gap: 10px 14px;
  }
  #site-header nav[aria-label="主导航"] a {
    padding: 6px 9px;
    font-size: 0.85rem;
  }
  #site-header input[type="search"] {
    width: 150px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 62px;
  }
  .header-inner {
    position: relative;
  }
  #menu-toggle {
    display: inline-block;
    margin-left: auto;
  }
  #site-header nav[aria-label="主导航"] {
    order: 10;
    flex-basis: 100%;
    display: none;
  }
  #site-header nav[aria-label="主导航"].is-open {
    display: block;
    animation: fadeSlideIn 0.3s var(--ease);
  }
  #site-header nav[aria-label="主导航"] ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0 6px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
  }
  #site-header nav[aria-label="主导航"] a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }
  #site-header form[role="search"] {
    order: 11;
    flex-basis: 100%;
    margin-top: 4px;
  }
  #site-header input[type="search"] {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
  }
  #site-header form[role="search"] button {
    padding: 7px 20px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
  main {
    padding: 0 14px 44px;
  }
  section {
    padding: 20px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 22px;
  }
  #banner {
    padding: 0;
  }
  .slide {
    min-height: 300px;
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }
  .slide a {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .carousel {
    gap: 14px;
    border-radius: var(--radius-lg);
  }
  #products ul {
    grid-template-columns: 1fr;
  }
  #contact fieldset {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }
  #contact label {
    margin-bottom: -8px;
  }
  #contact input[type="text"],
  #contact input[type="email"],
  #contact select,
  #contact textarea {
    grid-column: 1 / -1;
  }
  #contact address {
    padding: 16px;
  }
  #back-to-top {
    right: 14px;
    bottom: 16px;
    padding: 10px 15px;
    font-size: 0.78rem;
  }
  h2 {
    padding-left: 14px;
  }
  h2::before {
    width: 5px;
  }
}

@media (max-width: 420px) {
  .logo span {
    font-size: 1.05rem;
  }
  .logo svg {
    width: 34px;
    height: 34px;
  }
  #theme-toggle,
  #menu-toggle {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
  .carousel-controls button {
    flex: 1 1 auto;
    padding: 9px 12px;
  }
  #testimonials blockquote {
    padding: 22px 16px 18px;
  }
}

@media (hover: none) {
  section:hover,
  #news article:hover,
  #articles article:hover,
  #testimonials blockquote:hover,
  #products ul li:hover,
  #howto ol li:hover,
  #brand ul li:hover,
  #solutions ul li:hover,
  #howto ul li:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
}

@media print {
  #site-header,
  #back-to-top,
  .carousel-controls,
  #contact form,
  footer nav {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    animation: none;
    opacity: 1;
    transform: none;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}