:root {
  --hd-primary: #d4a017;
  --hd-primary-dark: #b8860b;
  --hd-primary-deep: #8b6914;
  --hd-accent: #ff6b35;
  --hd-accent-2: #7c4dff;
  --hd-bg: #fdfaf3;
  --hd-bg-soft: #fff8e1;
  --hd-surface: rgba(255, 255, 255, 0.72);
  --hd-surface-solid: #ffffff;
  --hd-text: #2b2308;
  --hd-text-soft: #6b5d3a;
  --hd-border: rgba(212, 160, 23, 0.22);
  --hd-shadow: 0 10px 30px rgba(139, 105, 20, 0.12);
  --hd-shadow-hover: 0 18px 44px rgba(139, 105, 20, 0.22);
  --hd-radius: 18px;
  --hd-radius-sm: 12px;
  --hd-radius-lg: 26px;
  --hd-grad-hero: linear-gradient(135deg, #fff3c4 0%, #ffe08a 35%, #d4a017 100%);
  --hd-grad-accent: linear-gradient(120deg, #d4a017 0%, #ff6b35 100%);
  --hd-grad-soft: linear-gradient(135deg, rgba(255, 248, 225, 0.9), rgba(255, 224, 138, 0.55));
  --hd-blur: saturate(180%) blur(16px);
  --hd-header-h: 72px;
  --hd-max: 1200px;
  --hd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hd-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="dark"] {
  --hd-bg: #14100a;
  --hd-bg-soft: #1d1710;
  --hd-surface: rgba(38, 30, 18, 0.66);
  --hd-surface-solid: #221b11;
  --hd-text: #f6edd8;
  --hd-text-soft: #c4b48e;
  --hd-border: rgba(212, 160, 23, 0.28);
  --hd-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --hd-shadow-hover: 0 18px 44px rgba(0, 0, 0, 0.6);
  --hd-grad-hero: linear-gradient(135deg, #2a1f0c 0%, #4a3510 45%, #8b6914 100%);
  --hd-grad-soft: linear-gradient(135deg, rgba(42, 31, 12, 0.9), rgba(139, 105, 20, 0.35));
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --hd-bg: #14100a;
    --hd-bg-soft: #1d1710;
    --hd-surface: rgba(38, 30, 18, 0.66);
    --hd-surface-solid: #221b11;
    --hd-text: #f6edd8;
    --hd-text-soft: #c4b48e;
    --hd-border: rgba(212, 160, 23, 0.28);
    --hd-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --hd-shadow-hover: 0 18px 44px rgba(0, 0, 0, 0.6);
    --hd-grad-hero: linear-gradient(135deg, #2a1f0c 0%, #4a3510 45%, #8b6914 100%);
    --hd-grad-soft: linear-gradient(135deg, rgba(42, 31, 12, 0.9), rgba(139, 105, 20, 0.35));
  }
}

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

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

body {
  margin: 0;
  font-family: var(--hd-font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--hd-text);
  background-color: var(--hd-bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(212, 160, 23, 0.14), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 107, 53, 0.1), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(124, 77, 255, 0.06), transparent 46%);
  background-attachment: fixed;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

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

a {
  color: var(--hd-primary-dark);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover,
a:focus-visible {
  color: var(--hd-accent);
}

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

h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.35rem); }

p { margin: 0 0 1em; }

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

strong { color: var(--hd-primary-dark); font-weight: 700; }

html[data-theme="dark"] strong { color: var(--hd-primary); }

.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(--hd-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(212, 160, 23, 0.35);
  color: var(--hd-text);
}

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--hd-surface);
  -webkit-backdrop-filter: var(--hd-blur);
  backdrop-filter: var(--hd-blur);
  border-bottom: 1px solid var(--hd-border);
  box-shadow: 0 4px 24px rgba(139, 105, 20, 0.08);
  transition: background 0.4s ease, box-shadow 0.3s ease;
}

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

.brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hd-text);
  font-weight: 800;
}

.brand svg {
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(212, 160, 23, 0.45));
  transition: transform 0.5s var(--hd-ease);
}

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

.brand-name {
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  background: var(--hd-grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

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

#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  justify-content: center;
}

#main-nav a {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--hd-text-soft);
  font-weight: 600;
  position: relative;
  transition: color 0.25s ease, background 0.3s ease, transform 0.25s var(--hd-ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--hd-text);
  background: var(--hd-grad-soft);
  transform: translateY(-2px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

#site-search {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 999px;
  border: 1px solid var(--hd-border);
  background: var(--hd-surface-solid);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#site-search:focus-within {
  border-color: var(--hd-primary);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.18);
}

#site-search input {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-family: inherit;
  color: var(--hd-text);
  width: 150px;
  outline: none;
}

#site-search input::placeholder {
  color: var(--hd-text-soft);
  opacity: 0.75;
}

#site-search button {
  border: 0;
  cursor: pointer;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-family: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--hd-grad-accent);
  transition: filter 0.25s ease;
}

#site-search button:hover {
  filter: brightness(1.08);
}

#darkmode-toggle,
#mobile-menu-toggle {
  border: 1px solid var(--hd-border);
  background: var(--hd-surface-solid);
  color: var(--hd-text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--hd-ease), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

#darkmode-toggle:hover,
#mobile-menu-toggle:hover {
  background: var(--hd-grad-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(212, 160, 23, 0.35);
}

#mobile-menu-toggle {
  display: none;
}

/* ============ Breadcrumb ============ */
#breadcrumb {
  max-width: var(--hd-max);
  margin: 18px auto 0;
  padding: 0 24px;
  font-size: 0.86rem;
  color: var(--hd-text-soft);
}

#breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

#breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--hd-primary);
  font-weight: 700;
}

#breadcrumb a {
  color: var(--hd-text-soft);
  padding: 2px 6px;
  border-radius: 6px;
}

#breadcrumb a:hover {
  color: var(--hd-accent);
  background: var(--hd-grad-soft);
}

/* ============ Main layout ============ */
main {
  max-width: var(--hd-max);
  margin: 0 auto;
  padding: 0 24px 60px;
}

main > section {
  position: relative;
  margin-top: 34px;
  padding: 30px clamp(18px, 3.2vw, 40px);
  background: var(--hd-surface);
  -webkit-backdrop-filter: var(--hd-blur);
  backdrop-filter: var(--hd-blur);
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow);
  transition: box-shadow 0.4s var(--hd-ease), transform 0.4s var(--hd-ease), border-color 0.4s ease;
}

main > section:hover {
  box-shadow: var(--hd-shadow-hover);
  border-color: rgba(212, 160, 23, 0.4);
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--hd-radius-lg) var(--hd-radius-lg) 0 0;
  background: var(--hd-grad-accent);
  opacity: 0.85;
}

main > section > h2 {
  position: relative;
  padding-left: 16px;
  margin-top: 0;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--hd-grad-accent);
  box-shadow: 0 0 14px rgba(212, 160, 23, 0.6);
}

/* ============ Hero ============ */
#hero {
  margin-top: 26px;
  background: var(--hd-grad-hero);
  border: 0;
  overflow: hidden;
  isolation: isolate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.5), transparent 46%),
    radial-gradient(circle at 8% 88%, rgba(255, 107, 53, 0.22), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

#hero::before {
  display: none;
}

#hero > * {
  position: relative;
  z-index: 1;
}

#hero-title {
  margin-top: 0;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.35);
}

html[data-theme="dark"] #hero-title {
  color: var(--hd-text);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.hero-lead {
  font-size: clamp(0.95rem, 1.5vw, 1.06rem);
  color: var(--hd-text);
  max-width: 900px;
  line-height: 1.9;
}

html[data-theme="dark"] .hero-lead {
  color: var(--hd-text);
}

.hero-slider {
  position: relative;
  margin: 26px 0 22px;
  border-radius: var(--hd-radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(139, 105, 20, 0.32);
  aspect-ratio: 800 / 320;
  background: var(--hd-primary-deep);
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s var(--hd-ease), transform 0.9s var(--hd-ease);
  pointer-events: none;
}

.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slider .slide svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-controls {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slider-controls button {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #3d2b00;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s var(--hd-ease), color 0.3s ease;
}

.slider-controls button:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  color: #2b2308;
}

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

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  border-radius: var(--hd-radius);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 22px rgba(139, 105, 20, 0.16);
  transition: transform 0.35s var(--hd-ease), box-shadow 0.35s ease, background 0.35s ease;
}

.hero-stats .stat:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 34px rgba(139, 105, 20, 0.26);
}

html[data-theme="dark"] .hero-stats .stat {
  background: rgba(34, 27, 17, 0.6);
  border-color: rgba(212, 160, 23, 0.35);
}

.stat-num {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
  background: var(--hd-grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--hd-text-soft);
  text-align: center;
  font-weight: 600;
}

html[data-theme="dark"] .stat-label {
  color: var(--hd-text-soft);
}

/* ============ Content typography ============ */
main section h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  position: relative;
  padding-left: 14px;
}

main section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hd-grad-accent);
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.55);
}

main section ul,
main section ol {
  margin: 0 0 1.2em;
}

main section li {
  margin-bottom: 0.5em;
}

main section li::marker {
  color: var(--hd-primary);
  font-weight: 700;
}

/* ============ Products / Solutions / Scenarios cards ============ */
#products h3,
#solutions h3,
#scenarios h3 {
  background: var(--hd-grad-soft);
  padding: 12px 16px 12px 30px;
  border-radius: var(--hd-radius-sm);
  border: 1px solid var(--hd-border);
  transition: transform 0.3s var(--hd-ease), box-shadow 0.3s ease;
}

#products h3::before,
#solutions h3::before,
#scenarios h3::before {
  left: 14px;
}

#products h3:hover,
#solutions h3:hover,
#scenarios h3:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 20px rgba(212, 160, 23, 0.2);
}

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

#products > ul li {
  padding: 16px 18px;
  border-radius: var(--hd-radius);
  background: var(--hd-surface-solid);
  border: 1px solid var(--hd-border);
  box-shadow: 0 6px 18px rgba(139, 105, 20, 0.08);
  transition: transform 0.35s var(--hd-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

#products > ul li:hover {
  transform: translateY(-6px);
  box-shadow: var(--hd-shadow-hover);
  border-color: rgba(212, 160, 23, 0.5);
}

/* ============ Cases ============ */
#cases blockquote {
  margin: 16px 0;
  padding: 18px 22px;
  border-left: 5px solid var(--hd-primary);
  border-radius: 0 var(--hd-radius) var(--hd-radius) 0;
  background: var(--hd-grad-soft);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(139, 105, 20, 0.1);
  transition: transform 0.35s var(--hd-ease), box-shadow 0.35s ease;
}

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

#cases blockquote p {
  margin: 0;
  color: var(--hd-text-soft);
  font-style: italic;
  line-height: 1.85;
}

/* ============ News ============ */
#news ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#news li {
  position: relative;
  padding: 14px 18px 14px 44px;
  margin-bottom: 10px;
  border-radius: var(--hd-radius-sm);
  background: var(--hd-surface-solid);
  border: 1px solid var(--hd-border);
  transition: transform 0.3s var(--hd-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

#news li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--hd-grad-accent);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.16);
}

#news li:hover {
  transform: translateX(6px);
  box-shadow: 0 10px 26px rgba(139, 105, 20, 0.16);
  border-color: rgba(212, 160, 23, 0.5);
}

/* ============ Articles ============ */
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

#articles > h2 {
  grid-column: 1 / -1;
}

#articles article {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  border-radius: var(--hd-radius);
  background: var(--hd-surface-solid);
  border: 1px solid var(--hd-border);
  box-shadow: 0 8px 22px rgba(139, 105, 20, 0.09);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--hd-ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

#articles article::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--hd-grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--hd-ease);
}

#articles article:hover {
  transform: translateY(-8px);
  box-shadow: var(--hd-shadow-hover);
  border-color: rgba(212, 160, 23, 0.5);
}

#articles article:hover::after {
  transform: scaleX(1);
}

#articles article h3 {
  margin-top: 0;
  padding-left: 0;
  font-size: 1.08rem;
}

#articles article h3::before {
  display: none;
}

#articles .meta {
  font-size: 0.78rem;
  color: var(--hd-text-soft);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--hd-border);
}

#articles article p:not(.meta) {
  flex: 1 1 auto;
  font-size: 0.92rem;
  color: var(--hd-text-soft);
}

#articles article a {
  align-self: flex-start;
  margin-top: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  background: var(--hd-grad-accent);
  box-shadow: 0 6px 16px rgba(212, 160, 23, 0.3);
  transition: transform 0.3s var(--hd-ease), box-shadow 0.3s ease, filter 0.3s ease;
}

#articles article a:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 24px rgba(212, 160, 23, 0.45);
  color: #fff;
}

/* ============ HowTo ============ */
#howto ol {
  counter-reset: howto;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

#howto ol > li {
  counter-increment: howto;
  position: relative;
  padding: 14px 18px 14px 58px;
  border-radius: var(--hd-radius-sm);
  background: var(--hd-surface-solid);
  border: 1px solid var(--hd-border);
  transition: transform 0.3s var(--hd-ease), box-shadow 0.3s ease;
}

#howto ol > li::before {
  content: counter(howto);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.9rem;
  color: #fff;
  background: var(--hd-grad-accent);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.4);
}

#howto ol > li:hover {
  transform: translateX(6px);
  box-shadow: 0 10px 24px rgba(139, 105, 20, 0.16);
}

#howto ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
}

#howto ul > li {
  padding: 12px 16px;
  border-radius: var(--hd-radius-sm);
  background: var(--hd-grad-soft);
  border: 1px solid var(--hd-border);
  font-size: 0.92rem;
  transition: transform 0.3s var(--hd-ease);
}

#howto ul > li:hover {
  transform: translateY(-4px);
}

/* ============ FAQ ============ */
#faq dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

#faq dt {
  padding: 16px 20px;
  border-radius: var(--hd-radius) var(--hd-radius) 0 0;
  background: var(--hd-grad-soft);
  border: 1px solid var(--hd-border);
  border-bottom: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s var(--hd-ease);
}

#faq dt:hover {
  transform: translateX(4px);
}

#faq dt h3 {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#faq dt h3::before {
  content: "Q";
  position: static;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
  color: #fff;
  background: var(--hd-grad-accent);
  box-shadow: 0 3px 10px rgba(212, 160, 23, 0.4);
}

#faq dd {
  margin: 0 0 6px;
  padding: 16px 20px 18px 54px;
  border-radius: 0 0 var(--hd-radius) var(--hd-radius);
  background: var(--hd-surface-solid);
  border: 1px solid var(--hd-border);
  border-top: 1px dashed var(--hd-border);
  color: var(--hd-text-soft);
  font-size: 0.94rem;
  position: relative;
  transition: box-shadow 0.3s ease;
}

#faq dd::before {
  content: "A";
  position: absolute;
  left: 20px;
  top: 16px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--hd-primary-dark);
  background: rgba(212, 160, 23, 0.18);
}

#faq dd:hover {
  box-shadow: 0 8px 22px rgba(139, 105, 20, 0.12);
}

/* ============ Contact ============ */
#contact address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

#contact address p {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--hd-radius-sm);
  background: var(--hd-surface-solid);
  border: 1px solid var(--hd-border);
  font-size: 0.93rem;
  transition: transform 0.3s var(--hd-ease), box-shadow 0.3s ease;
}

#contact address p:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(139, 105, 20, 0.16);
}

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hd-text-soft);
  background: var(--hd-surface-solid);
  border: 1px solid var(--hd-border);
  transition: transform 0.3s var(--hd-ease), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

#sitemap a:hover,
#links a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: var(--hd-grad-accent);
  box-shadow: 0 10px 22px rgba(212, 160, 23, 0.35);
}

/* ============ Footer ============ */
#site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.08), rgba(139, 105, 20, 0.14));
  border-top: 1px solid var(--hd-border);
  color: var(--hd-text);
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 160, 23, 0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(124, 77, 255, 0.1), transparent 45%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: var(--hd-max);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.footer-inner section {
  padding: 20px 22px;
  border-radius: var(--hd-radius);
  background: var(--hd-surface);
  -webkit-backdrop-filter: var(--hd-blur);
  backdrop-filter: var(--hd-blur);
  border: 1px solid var(--hd-border);
  box-shadow: 0 8px 22px rgba(139, 105, 20, 0.08);
  transition: transform 0.35s var(--hd-ease), box-shadow 0.35s ease;
}

.footer-inner section:hover {
  transform: translateY(-4px);
  box-shadow: var(--hd-shadow-hover);
}

.footer-inner h2,
.footer-inner h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.02rem;
  padding-left: 0;
}

.footer-inner h2::before,
.footer-inner h3::before {
  display: none;
}

.footer-inner p {
  font-size: 0.88rem;
  color: var(--hd-text-soft);
  line-height: 1.8;
  margin: 0 0 0.8em;
}

.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-inner ul li {
  margin-bottom: 8px;
}

.footer-inner ul a {
  font-size: 0.88rem;
  color: var(--hd-text-soft);
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-block;
  transition: color 0.25s ease, background 0.3s ease, transform 0.25s var(--hd-ease);
}

.footer-inner ul a:hover {
  color: var(--hd-accent);
  background: var(--hd-grad-soft);
  transform: translateX(4px);
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding-top: 20px;
  border-top: 1px dashed var(--hd-border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--hd-text-soft);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 1200;
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--hd-grad-accent);
  box-shadow: 0 12px 30px rgba(212, 160, 23, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.94);
  transition: opacity 0.35s ease, transform 0.35s var(--hd-ease), visibility 0.35s ease, filter 0.3s ease;
}

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

#back-to-top:hover {
  filter: brightness(1.1);
  transform: translateY(-4px) scale(1.04);
}

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

.reveal.is-visible {
  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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 10px 18px;
  }
  #main-nav {
    order: 3;
    flex-basis: 100%;
  }
  #main-nav ul {
    justify-content: flex-start;
  }
  #site-search input { width: 120px; }
}

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

  .header-inner {
    align-items: center;
    gap: 10px;
  }

  #mobile-menu-toggle {
    display: inline-block;
  }

  #main-nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    padding-top: 6px;
    border-top: 1px dashed var(--hd-border);
  }

  #main-nav.is-open {
    display: block;
    animation: navSlide 0.35s var(--hd-ease);
  }

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

  #main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  #main-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--hd-radius-sm);
  }

  .header-tools {
    margin-left: auto;
  }

  #site-search input { width: 110px; }

  #hero-title { font-size: 1.5rem; }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-slider {
    aspect-ratio: 16 / 9;
  }

  main {
    padding: 0 16px 48px;
  }

  main > section {
    padding: 24px 18px;
    border-radius: var(--hd-radius);
    margin-top: 24px;
  }

  #breadcrumb {
    padding: 0 16px;
  }

  #articles {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 34px 16px 26px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #back-to-top {
    right: 14px;
    bottom: 16px;
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

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

  .brand-name { font-size: 1rem; }

  #site-search {
    display: none;
  }

  .header-tools {
    gap: 6px;
  }

  #darkmode-toggle,
  #mobile-menu-toggle {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero-stats .stat { padding: 14px 8px; }

  .slider-controls {
    right: 10px;
    bottom: 10px;
    gap: 6px;
  }

  .slider-controls button {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  main > section > h2 { padding-left: 14px; }

  #faq dd { padding-left: 46px; }

  #faq dd::before { left: 14px; }

  #howto ol > li { padding-left: 52px; }

  #contact address { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  #darkmode-toggle,
  #mobile-menu-toggle {
    padding: 6px 10px;
    font-size: 0.74rem;
  }
  .brand-name { font-size: 0.92rem; }
  .brand svg { width: 32px; height: 32px; }
}