:root {
  --clay: #7A2E1F;
  --clay-deep: #5C1F14;
  --clay-light: #A8492F;
  --gold: #C9A24B;
  --gold-soft: #E3C77E;
  --ink: #2A211C;
  --ink-soft: #4A3B33;
  --paper: #F7F1E6;
  --paper-warm: #EFE4D2;
  --cream: #F2E3C6;
  --jade: #2E4A3B;
  --jade-light: #4C6E58;
  --bronze: #8A5A2B;
  --line: rgba(122, 46, 31, 0.14);
  --shadow-sm: 0 2px 8px rgba(42, 33, 28, 0.07);
  --shadow-md: 0 10px 28px rgba(42, 33, 28, 0.10);
  --shadow-lg: 0 20px 48px rgba(42, 33, 28, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --clay: #C25B3E;
    --clay-deep: #8E3A24;
    --clay-light: #E07A5A;
    --gold: #D9B45E;
    --gold-soft: #EBD49A;
    --ink: #F1E7DA;
    --ink-soft: #CBBBAA;
    --paper: #17120F;
    --paper-warm: #1F1815;
    --cream: #2A211B;
    --jade: #6FA98A;
    --jade-light: #8FC4A6;
    --bronze: #C08A4E;
    --line: rgba(230, 200, 160, 0.14);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
  }
}

html[data-theme="dark"] {
  --clay: #C25B3E;
  --clay-deep: #8E3A24;
  --clay-light: #E07A5A;
  --gold: #D9B45E;
  --gold-soft: #EBD49A;
  --ink: #F1E7DA;
  --ink-soft: #CBBBAA;
  --paper: #17120F;
  --paper-warm: #1F1815;
  --cream: #2A211B;
  --jade: #6FA98A;
  --jade-light: #8FC4A6;
  --bronze: #C08A4E;
  --line: rgba(230, 200, 160, 0.14);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] {
  --clay: #7A2E1F;
  --clay-deep: #5C1F14;
  --clay-light: #A8492F;
  --gold: #C9A24B;
  --gold-soft: #E3C77E;
  --ink: #2A211C;
  --ink-soft: #4A3B33;
  --paper: #F7F1E6;
  --paper-warm: #EFE4D2;
  --cream: #F2E3C6;
  --jade: #2E4A3B;
  --jade-light: #4C6E58;
  --bronze: #8A5A2B;
  --line: rgba(122, 46, 31, 0.14);
  --shadow-sm: 0 2px 8px rgba(42, 33, 28, 0.07);
  --shadow-md: 0 10px 28px rgba(42, 33, 28, 0.10);
  --shadow-lg: 0 20px 48px rgba(42, 33, 28, 0.16);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(201, 162, 75, 0.10), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(122, 46, 31, 0.10), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(46, 74, 59, 0.08), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(122, 46, 31, 0.025) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(122, 46, 31, 0.025) 31px 32px);
  opacity: 0.7;
}

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

a {
  color: var(--clay);
  text-decoration: none;
  transition: color 0.28s var(--ease), opacity 0.28s var(--ease);
}

a:hover {
  color: var(--clay-light);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin: 0 0 0.7em;
}

h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.12em;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--clay), var(--gold));
}

h3 {
  font-size: clamp(1.12rem, 2.2vw, 1.4rem);
  font-weight: 700;
  margin-top: 1.6em;
}

h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

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

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

li {
  margin-bottom: 0.5em;
  color: var(--ink-soft);
}

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

time {
  font-variant-numeric: tabular-nums;
}

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

/* ============ HEADER ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 230, 0.72);
  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 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

html[data-theme="dark"] #site-header {
  background: rgba(23, 18, 15, 0.72);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) #site-header {
    background: rgba(23, 18, 15, 0.72);
  }
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand svg {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: var(--shadow-md);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.08em;
}

.brand-slogan {
  font-size: 0.74rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
  line-height: 1;
  height: 44px;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--line);
  padding-left: 8px;
  margin-left: 2px;
}

#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: 4px;
}

#main-nav a {
  display: inline-block;
  padding: 7px 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-radius: 999px;
  position: relative;
  white-space: nowrap;
  transition: color 0.28s var(--ease), background 0.28s var(--ease), transform 0.28s var(--ease);
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--clay), var(--gold));
  transform: translateX(-50%);
  transition: width 0.32s var(--ease);
}

#main-nav a:hover {
  color: var(--clay);
  background: rgba(122, 46, 31, 0.07);
  transform: translateY(-2px);
}

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

#site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 260px;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

html[data-theme="dark"] #site-search {
  background: rgba(255, 255, 255, 0.06);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) #site-search {
    background: rgba(255, 255, 255, 0.06);
  }
}

#site-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.18);
}

#site-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  padding: 6px 0;
}

#site-search input::placeholder {
  color: var(--ink-soft);
  opacity: 0.65;
}

#site-search input:focus {
  outline: none;
}

#site-search button {
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream);
  background: linear-gradient(135deg, var(--clay), var(--clay-light));
  padding: 8px 18px;
  border-radius: 999px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), filter 0.28s var(--ease);
}

#site-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(122, 46, 31, 0.35);
  filter: brightness(1.08);
}

#theme-toggle,
#menu-toggle {
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clay);
  background: rgba(122, 46, 31, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  background: var(--clay);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#menu-toggle {
  display: none;
}

/* ============ BREADCRUMB ============ */
#breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 4px;
  position: relative;
  z-index: 1;
}

#breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

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

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

#breadcrumb a:hover {
  color: var(--clay);
  opacity: 1;
}

#breadcrumb [aria-current="page"] {
  color: var(--clay);
  font-weight: 600;
}

/* ============ MAIN LAYOUT ============ */
main {
  position: relative;
  z-index: 1;
  display: block;
}

main > section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

main > section + section {
  border-top: 1px dashed var(--line);
}

/* ============ HERO ============ */
#hero {
  position: relative;
  margin-top: 20px;
  padding: 64px 40px !important;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(135deg, rgba(122, 46, 31, 0.94) 0%, rgba(138, 90, 43, 0.9) 48%, rgba(46, 74, 59, 0.92) 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 18%, rgba(242, 227, 198, 0.28), transparent 46%),
    radial-gradient(circle at 8% 88%, rgba(201, 162, 75, 0.30), transparent 42%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border: 1px solid rgba(242, 227, 198, 0.28);
  border-radius: calc(var(--radius-xl) - 12px);
  pointer-events: none;
}

@keyframes heroGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.9; }
  100% { transform: scale(1.12) translate(-2%, 2%); opacity: 1; }
}

#hero h1 {
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  max-width: 20ch;
}

#hero h1::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  margin-top: 0.5em;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}

#hero p {
  color: rgba(242, 227, 198, 0.92);
  max-width: 62ch;
  font-size: 1.02rem;
}

#hero .hero-lead {
  font-size: 1.14rem;
  font-weight: 500;
  color: var(--cream);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 34px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), color 0.32s var(--ease), background 0.32s var(--ease);
}

.btn-primary {
  color: var(--clay-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 26px rgba(201, 162, 75, 0.4);
}

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

.btn-primary:hover {
  color: var(--clay-deep);
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(201, 162, 75, 0.55);
}

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

.btn-secondary {
  color: var(--cream);
  background: rgba(242, 227, 198, 0.10);
  border: 1.5px solid rgba(242, 227, 198, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  color: var(--clay-deep);
  background: var(--cream);
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

/* ============ BANNER ============ */
#banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding-top: 40px !important;
}

.banner-slide {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.banner-slide:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

.banner-slide svg {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}

.banner-slide:hover svg {
  transform: scale(1.06);
  filter: saturate(1.15);
}

.banner-caption {
  margin: 0;
  padding: 16px 20px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(247, 241, 230, 0.68);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-top: 1px solid var(--line);
  letter-spacing: 0.03em;
}

html[data-theme="dark"] .banner-caption {
  background: rgba(23, 18, 15, 0.68);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .banner-caption {
    background: rgba(23, 18, 15, 0.68);
  }
}

/* ============ STATS ============ */
#stats {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

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

#stats li {
  position: relative;
  margin: 0;
  padding: 28px 22px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

html[data-theme="dark"] #stats li {
  background: rgba(255, 255, 255, 0.05);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) #stats li {
    background: rgba(255, 255, 255, 0.05);
  }
}

#stats li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--clay), var(--gold), var(--jade));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

#stats li:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

#stats li:hover::before {
  transform: scaleX(1);
}

#stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--clay), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--clay);
}

/* ============ ABOUT / CONTENT SECTIONS ============ */
#about,
#products,
#solutions,
#cases,
#articles,
#faq,
#howto,
#news,
#contact,
#sitemap,
#links,
#legal,
#eeat {
  position: relative;
}

#about p,
#products p,
#solutions p,
#cases p {
  max-width: 76ch;
}

#cases blockquote {
  margin: 20px 0;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-left-color 0.4s var(--ease);
}

html[data-theme="dark"] #cases blockquote {
  background: rgba(255, 255, 255, 0.05);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) #cases blockquote {
    background: rgba(255, 255, 255, 0.05);
  }
}

#cases blockquote:hover {
  transform: translateX(8px);
  border-left-color: var(--clay);
  box-shadow: var(--shadow-md);
}

#cases blockquote p {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink);
}

#cases blockquote cite {
  display: block;
  font-size: 0.86rem;
  font-style: normal;
  color: var(--ink-soft);
  opacity: 0.85;
}

#cases blockquote cite::before {
  content: "—— ";
  color: var(--gold);
}

/* ============ ARTICLES ============ */
#articles article {
  position: relative;
  margin: 0 0 22px;
  padding: 26px 30px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.42s var(--ease), box-shadow 0.42s var(--ease), border-color 0.42s var(--ease);
}

html[data-theme="dark"] #articles article {
  background: rgba(255, 255, 255, 0.05);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) #articles article {
    background: rgba(255, 255, 255, 0.05);
  }
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--clay), var(--gold));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}

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

#articles article:hover::before {
  transform: scaleY(1);
}

#articles article h3 {
  margin-top: 0;
  font-size: 1.22rem;
}

#articles article h3 a {
  color: var(--ink);
  transition: color 0.3s var(--ease);
}

#articles article h3 a:hover {
  color: var(--clay);
}

#articles article .meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  opacity: 0.8;
  margin-bottom: 0.9em;
  letter-spacing: 0.02em;
}

#articles article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clay);
  padding: 6px 0;
  position: relative;
}

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

#articles article > a:last-child:hover::after {
  transform: translateX(6px);
}

/* ============ FAQ ============ */
#faq details {
  margin: 0 0 14px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

html[data-theme="dark"] #faq details {
  background: rgba(255, 255, 255, 0.05);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) #faq details {
    background: rgba(255, 255, 255, 0.05);
  }
}

#faq details:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

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

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--clay);
  line-height: 1;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

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

#faq summary:hover {
  color: var(--clay);
  background: rgba(122, 46, 31, 0.05);
}

#faq details p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--ink-soft);
  animation: faqFade 0.4s var(--ease);
}

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

/* ============ HOWTO ============ */
#howto {
  counter-reset: step;
}

#howto ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: howto;
}

#howto ol > li {
  counter-increment: howto;
  position: relative;
  margin: 0 0 18px;
  padding: 24px 26px 24px 78px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.42s var(--ease), box-shadow 0.42s var(--ease), border-color 0.42s var(--ease);
}

html[data-theme="dark"] #howto ol > li {
  background: rgba(255, 255, 255, 0.05);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) #howto ol > li {
    background: rgba(255, 255, 255, 0.05);
  }
}

#howto ol > li::before {
  content: counter(howto, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 24px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.85;
  line-height: 1;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}

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

#howto ol > li:hover::before {
  color: var(--clay);
  transform: scale(1.12);
}

#howto ol > li h4 {
  margin: 0 0 8px;
  color: var(--ink);
}

#howto ol > li p {
  margin: 0;
  font-size: 0.94rem;
}

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

#news li {
  position: relative;
  margin: 0 0 12px;
  padding: 16px 20px 16px 40px;
  font-size: 0.94rem;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.36s var(--ease), border-color 0.36s var(--ease), box-shadow 0.36s var(--ease);
}

html[data-theme="dark"] #news li {
  background: rgba(255, 255, 255, 0.05);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) #news li {
    background: rgba(255, 255, 255, 0.05);
  }
}

#news li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clay), var(--gold));
  transform: translateY(-50%);
  transition: transform 0.36s var(--ease);
}

#news li:hover {
  transform: translateX(6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

#news li:hover::before {
  transform: translateY(-50%) scale(1.5);
}

#news time {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clay);
  background: rgba(122, 46, 31, 0.10);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ============ CONTACT ============ */
#contact address {
  font-style: normal;
}

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

#contact address li {
  margin: 0;
  padding: 16px 20px;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

html[data-theme="dark"] #contact address li {
  background: rgba(255, 255, 255, 0.05);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) #contact address li {
    background: rgba(255, 255, 255, 0.05);
  }
}

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

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.32s var(--ease), color 0.32s var(--ease), background 0.32s var(--ease), border-color 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

html[data-theme="dark"] #sitemap a,
html[data-theme="dark"] #links a {
  background: rgba(255, 255, 255, 0.05);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) #sitemap a,
  html:not([data-theme="light"]) #links a {
    background: rgba(255, 255, 255, 0.05);
  }
}

#sitemap a:hover,
#links a:hover {
  color: var(--cream);
  background: linear-gradient(135deg, var(--clay), var(--clay-light));
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(122, 46, 31, 0.32);
}

/* ============ LEGAL & EEAT ============ */
#legal h3,
#eeat h3 {
  color: var(--clay);
  font-size: 1.08rem;
}

#legal p,
#eeat p {
  font-size: 0.92rem;
  max-width: 80ch;
}

/* ============ FOOTER ============ */
#site-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 48px 24px 32px;
  color: rgba(242, 227, 198, 0.85);
  background:
    linear-gradient(160deg, var(--clay-deep) 0%, #3A1710 55%, #24110C 100%);
  border-top: 3px solid var(--gold);
}

#site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(242, 227, 198, 0.03) 14px 15px);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

#site-footer p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: rgba(242, 227, 198, 0.8);
}

#site-footer p:last-of-type {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
}

#site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

#site-footer nav a {
  display: inline-block;
  padding: 7px 18px;
  font-size: 0.84rem;
  color: rgba(242, 227, 198, 0.85);
  border: 1px solid rgba(242, 227, 198, 0.25);
  border-radius: 999px;
  transition: color 0.32s var(--ease), background 0.32s var(--ease), border-color 0.32s var(--ease), transform 0.32s var(--ease);
}

#site-footer nav a:hover {
  color: var(--clay-deep);
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-3px);
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cream);
  background: linear-gradient(135deg, var(--clay), var(--clay-light));
  border: 1px solid rgba(242, 227, 198, 0.3);
  border-radius: 999px;
  padding: 13px 22px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

#back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(122, 46, 31, 0.45);
}

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

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

main > section.reveal:nth-of-type(2) { transition-delay: 0.05s; }
main > section.reveal:nth-of-type(3) { transition-delay: 0.10s; }
main > section.reveal:nth-of-type(4) { transition-delay: 0.15s; }
main > section.reveal:nth-of-type(5) { transition-delay: 0.20s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .header-inner {
    gap: 14px;
  }

  #main-nav a {
    padding: 7px 10px;
    font-size: 0.86rem;
  }

  #site-search {
    flex: 0 1 200px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    padding: 10px 18px;
  }

  #main-nav {
    order: 4;
    flex: 1 1 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), margin 0.35s var(--ease);
  }

  #main-nav.is-open {
    max-height: 620px;
    opacity: 1;
    margin-top: 8px;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
  }

  html[data-theme="dark"] #main-nav ul {
    background: rgba(255, 255, 255, 0.06);
  }

  @media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) #main-nav ul {
      background: rgba(255, 255, 255, 0.06);
    }
  }

  #main-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
  }

  #main-nav a::after {
    display: none;
  }

  #menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  #theme-toggle {
    order: 3;
  }

  #site-search {
    order: 5;
    flex: 1 1 100%;
    min-width: 0;
  }

  main > section {
    padding: 44px 18px;
  }

  #hero {
    padding: 44px 24px !important;
    border-radius: var(--radius-lg);
  }

  #hero h1 {
    max-width: none;
  }

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

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

  .brand-slogan {
    display: none;
  }

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

  #breadcrumb {
    padding: 14px 16px 0;
  }

  main > section {
    padding: 36px 16px;
  }

  #hero {
    margin-top: 12px;
    padding: 36px 20px !important;
  }

  #hero .hero-lead {
    font-size: 1.02rem;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 24px;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1 1 100%;
    padding: 13px 22px;
  }

  #stats ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  #stats li {
    padding: 22px 14px;
    font-size: 0.84rem;
  }

  #articles article {
    padding: 20px 18px;
  }

  #articles article h3 {
    font-size: 1.08rem;
  }

  #faq summary {
    padding: 15px 46px 15px 16px;
    font-size: 0.96rem;
  }

  #faq summary::after {
    right: 16px;
  }

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

  #howto ol > li {
    padding: 20px 18px 20px 62px;
  }

  #howto ol > li::before {
    left: 16px;
    font-size: 1.25rem;
  }

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

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

  #site-footer {
    padding: 36px 18px 26px;
  }
}

@media (max-width: 400px) {
  #stats ul {
    grid-template-columns: 1fr;
  }
}

/* ============ MOTION PREFERENCES ============ */
@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;
  }
}

/* ============ PRINT ============ */
@media print {
  #site-header,
  #back-to-top,
  #banner,
  #site-footer nav {
    display: none;
  }

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

  main > section {
    padding: 12px 0;
    border: 0;
  }

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