:root {
  --brand-navy: #1a1a2e;
  --brand-deep: #16213e;
  --brand-blue: #0f3460;
  --brand-gold: #f5c518;
  --brand-gold-soft: #ffd94a;
  --brand-red: #e94560;
  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --bg-muted: #eef1f8;
  --text: #1c2130;
  --text-soft: #4a5164;
  --text-mute: #767e93;
  --border: rgba(26, 26, 46, 0.1);
  --border-strong: rgba(26, 26, 46, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 10px rgba(22, 33, 62, 0.06);
  --shadow-md: 0 10px 30px rgba(22, 33, 62, 0.1);
  --shadow-lg: 0 22px 60px rgba(22, 33, 62, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-banner: linear-gradient(125deg, #1a1a2e 0%, #16213e 42%, #0f3460 78%, #e94560 130%);
  --grad-gold: linear-gradient(120deg, #f5c518 0%, #ffd94a 55%, #e94560 140%);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(246, 247, 251, 0.7));
  --grad-line: linear-gradient(90deg, #f5c518, #e94560 60%, transparent);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html[data-theme="dark"],
html.dark,
body.dark,
body[data-theme="dark"] {
  --bg: #0e1120;
  --bg-elevated: #161b2e;
  --bg-muted: #1d2338;
  --text: #eef1f8;
  --text-soft: #c2c8da;
  --text-mute: #8b93ab;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --glass-bg: rgba(22, 27, 46, 0.62);
  --glass-border: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --grad-banner: linear-gradient(125deg, #0e1120 0%, #16213e 45%, #0f3460 80%, #e94560 140%);
  --grad-card: linear-gradient(160deg, rgba(30, 36, 58, 0.92), rgba(18, 22, 38, 0.78));
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not(.light) {
    --bg: #0e1120;
    --bg-elevated: #161b2e;
    --bg-muted: #1d2338;
    --text: #eef1f8;
    --text-soft: #c2c8da;
    --text-mute: #8b93ab;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(22, 27, 46, 0.62);
    --glass-border: rgba(255, 255, 255, 0.14);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
    --grad-banner: linear-gradient(125deg, #0e1120 0%, #16213e 45%, #0f3460 80%, #e94560 140%);
    --grad-card: linear-gradient(160deg, rgba(30, 36, 58, 0.92), rgba(18, 22, 38, 0.78));
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 480px at 8% -8%, rgba(245, 197, 24, 0.14), transparent 62%),
    radial-gradient(760px 420px at 96% 4%, rgba(233, 69, 96, 0.12), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(15, 52, 96, 0.1), transparent 65%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

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

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

a:hover,
a:focus-visible {
  color: var(--brand-red);
}

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

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

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

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 6px;
  border-radius: 999px;
  background: var(--grad-gold);
  box-shadow: 0 0 18px rgba(245, 197, 24, 0.55);
}

h3 {
  font-size: clamp(1.08rem, 2.4vw, 1.32rem);
  margin-top: 1.5em;
}

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

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.5em;
}

li::marker {
  color: var(--brand-gold);
  font-weight: 700;
}

strong {
  color: var(--text);
}

blockquote {
  margin: 1.2em 0;
  padding: 1.1em 1.3em 1.1em 1.5em;
  border-left: 4px solid var(--brand-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-top: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  position: relative;
}

blockquote p {
  margin: 0;
  font-style: italic;
}

blockquote p::before {
  content: "“";
  font-size: 2.4em;
  line-height: 0;
  color: var(--brand-gold);
  vertical-align: -0.35em;
  margin-right: 0.12em;
  font-style: normal;
  font-weight: 800;
}

address {
  font-style: normal;
}

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

::selection {
  background: var(--brand-gold);
  color: #1a1a2e;
}

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

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25), var(--shadow-sm);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--grad-line);
  opacity: 0.85;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.logo svg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.6s var(--ease), filter 0.35s var(--ease);
  filter: drop-shadow(0 4px 12px rgba(245, 197, 24, 0.45));
}

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

.logo-text {
  background: linear-gradient(100deg, var(--text) 20%, var(--brand-gold) 55%, var(--brand-red) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

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

#main-nav li {
  margin: 0;
}

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

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

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--text);
  background: rgba(245, 197, 24, 0.14);
  transform: translateY(-1px);
}

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

#site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

#site-search:focus-within {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.18);
  background: var(--bg-elevated);
}

#search-input {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 6px 0;
  width: 168px;
  min-width: 0;
  outline: none;
}

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

#search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

#site-search button[type="submit"] {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--grad-gold);
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#site-search button[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 20px rgba(245, 197, 24, 0.5);
}

#site-search button[type="submit"]:active {
  transform: translateY(0);
}

#dark-toggle,
#menu-toggle {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  flex-shrink: 0;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#dark-toggle:hover,
#menu-toggle:hover {
  color: var(--text);
  border-color: var(--brand-gold);
  background: rgba(245, 197, 24, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 197, 24, 0.22);
}

#menu-toggle {
  display: none;
}

main {
  display: block;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

main > section {
  margin: 34px 0;
  padding: 30px clamp(18px, 3vw, 38px);
  background: var(--grad-card);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  animation: riseIn 0.7s var(--ease) both;
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-line);
  opacity: 0.7;
}

main > section:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 197, 24, 0.4);
}

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

#hero {
  margin-top: 26px;
  padding: clamp(22px, 3.4vw, 44px);
  background: var(--grad-banner);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  color: #f4f6fb;
  overflow: hidden;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 320px at 12% 0%, rgba(245, 197, 24, 0.3), transparent 62%),
    radial-gradient(560px 300px at 92% 12%, rgba(233, 69, 96, 0.32), transparent 60%),
    radial-gradient(700px 360px at 50% 118%, rgba(15, 52, 96, 0.55), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(245, 197, 24, 0.35), rgba(233, 69, 96, 0.28), rgba(15, 52, 96, 0.3), rgba(245, 197, 24, 0.35));
  filter: blur(60px);
  opacity: 0.6;
  z-index: -1;
  animation: floaty 14s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-28px, 26px, 0) scale(1.08); }
}

#hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.5em;
}

#hero h1::before {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 999px;
  background: var(--grad-gold);
  margin-bottom: 18px;
  box-shadow: 0 0 22px rgba(245, 197, 24, 0.6);
}

#hero p {
  color: rgba(244, 246, 251, 0.88);
}

.hero-slider {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.hero-slider .slide {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.hero-slider .slide:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.hero-slider .slide svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-lead {
  font-size: clamp(0.96rem, 1.6vw, 1.06rem);
  line-height: 1.9;
  max-width: 92ch;
  margin-bottom: 1.4em;
}

#hero .cta,
#hero .cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}

#hero .cta {
  color: #1a1a2e;
  background: var(--grad-gold);
  box-shadow: 0 10px 28px rgba(245, 197, 24, 0.42);
  margin-right: 10px;
}

#hero .cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(245, 197, 24, 0.55);
  filter: brightness(1.06);
  color: #1a1a2e;
}

#hero .cta-secondary {
  color: #f4f6fb;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#hero .cta-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

#breadcrumb,
#anchor-nav {
  margin: 22px 0;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

#breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-mute);
}

#breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#breadcrumb li + li::before {
  content: "›";
  color: var(--brand-gold);
  font-weight: 800;
}

#breadcrumb a {
  color: var(--text-soft);
  font-weight: 600;
}

#breadcrumb a:hover {
  color: var(--brand-red);
}

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

#anchor-nav h2 {
  font-size: 1rem;
  margin: 0 0 12px;
  padding-left: 14px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#anchor-nav h2::before {
  width: 4px;
  background: var(--grad-gold);
}

#anchor-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#anchor-nav li {
  margin: 0;
}

#anchor-nav a {
  display: inline-block;
  padding: 7px 15px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.28s var(--ease);
}

#anchor-nav a:hover,
#anchor-nav a:focus-visible {
  color: #1a1a2e;
  background: var(--grad-gold);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 197, 24, 0.34);
}

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

#products ul li {
  margin: 0;
  padding: 16px 18px 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

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

#cases blockquote {
  margin: 14px 0;
}

#cases blockquote:hover {
  border-left-color: var(--brand-red);
  transform: translateX(4px);
}

#news article,
#articles article {
  margin: 0 0 20px;
  padding: 22px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-gold);
  opacity: 0.85;
  transition: width 0.3s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 197, 24, 0.45);
}

#news article:hover::before,
#articles article:hover::before {
  width: 7px;
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

#news article:hover h3,
#articles article:hover h3 {
  color: var(--brand-red);
}

#news article p:first-of-type,
#articles article p:first-of-type {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-blue);
  background: rgba(15, 52, 96, 0.08);
  border: 1px solid rgba(15, 52, 96, 0.16);
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

html[data-theme="dark"] #news article p:first-of-type,
html[data-theme="dark"] #articles article p:first-of-type,
body.dark #news article p:first-of-type,
body.dark #articles article p:first-of-type {
  color: var(--brand-gold-soft);
  background: rgba(245, 197, 24, 0.12);
  border-color: rgba(245, 197, 24, 0.3);
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-red);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease), color 0.25s var(--ease);
}

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

#news article a:hover,
#articles article a:hover {
  border-bottom-color: var(--brand-red);
  gap: 10px;
}

#news article a:hover::after,
#articles article a:hover::after {
  transform: translateX(3px);
}

#knowledge h3 {
  color: var(--brand-blue);
}

html[data-theme="dark"] #knowledge h3,
body.dark #knowledge h3 {
  color: var(--brand-gold-soft);
}

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

#faq details:hover {
  border-color: rgba(245, 197, 24, 0.5);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: rgba(245, 197, 24, 0.6);
  box-shadow: var(--shadow-md);
}

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #1a1a2e;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.35);
}

#faq summary:hover {
  background: rgba(245, 197, 24, 0.08);
}

#faq details[open] summary {
  background: rgba(245, 197, 24, 0.1);
  color: var(--brand-red);
}

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

#faq details p {
  margin: 0;
  padding: 0 22px 18px;
  font-size: 0.94rem;
  line-height: 1.85;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  animation: fadeSlide 0.35s var(--ease) both;
}

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

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

#howto ol li {
  counter-increment: step;
  margin: 0;
  padding: 16px 20px 16px 62px;
  position: relative;
  background: var(--bg-elevated);
  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 {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #1a1a2e;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 6px 16px rgba(245, 197, 24, 0.4);
}

#howto ol li:hover {
  transform: translateX(5px);
  border-color: rgba(245, 197, 24, 0.5);
  box-shadow: var(--shadow-md);
}

#contact address {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 1.4em 0;
  padding: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

#contact address p {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  font-size: 0.92rem;
  color: var(--text-soft);
  border-left: 3px solid var(--brand-gold);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

#contact address p:hover {
  background: rgba(245, 197, 24, 0.12);
  transform: translateY(-2px);
}

#contact address a {
  font-weight: 700;
  color: var(--brand-red);
  word-break: break-all;
}

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

#sitemap li {
  margin: 0;
}

#sitemap ul a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  transition: all 0.25s var(--ease);
}

#sitemap ul a:hover {
  color: #1a1a2e;
  background: var(--grad-gold);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(245, 197, 24, 0.3);
}

#site-footer {
  margin-top: 20px;
  padding: clamp(30px, 4vw, 54px) 24px 20px;
  background: var(--grad-banner);
  color: rgba(244, 246, 251, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

#site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(245, 197, 24, 0.18), transparent 60%),
    radial-gradient(520px 280px at 92% 10%, rgba(233, 69, 96, 0.2), transparent 62%);
  pointer-events: none;
}

#site-footer > * {
  position: relative;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

#site-footer section {
  margin-bottom: 26px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

#site-footer h2 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 12px;
  padding-left: 14px;
  letter-spacing: 0.04em;
}

#site-footer h2::before {
  width: 4px;
  background: var(--grad-gold);
  box-shadow: 0 0 14px rgba(245, 197, 24, 0.6);
}

#site-footer p {
  color: rgba(244, 246, 251, 0.82);
  font-size: 0.9rem;
  line-height: 1.85;
  margin-bottom: 0.7em;
}

#site-footer p:last-child {
  margin-bottom: 0;
}

#site-footer strong {
  color: var(--brand-gold-soft);
}

#site-footer > p {
  text-align: center;
  font-size: 0.84rem;
  color: rgba(244, 246, 251, 0.6);
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 900;
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1a1a2e;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-gold);
  box-shadow: 0 12px 30px rgba(245, 197, 24, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s var(--ease);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 40px rgba(245, 197, 24, 0.6);
}

#back-to-top:active {
  transform: translateY(-1px) scale(1);
}

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

@media (max-width: 1080px) {
  .header-inner {
    gap: 12px;
  }

  #search-input {
    width: 130px;
  }

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

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

  .header-inner {
    padding: 0 16px;
    gap: 10px;
  }

  #main-nav {
    order: 5;
    flex-basis: 100%;
    display: none;
    padding-bottom: 12px;
  }

  #main-nav.is-open,
  #site-header.nav-open #main-nav {
    display: block;
    animation: fadeSlide 0.3s var(--ease) both;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

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

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

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

  #site-search {
    order: 6;
    flex-basis: 100%;
    margin-bottom: 12px;
    display: none;
  }

  #site-header.nav-open #site-search,
  #site-search.is-open {
    display: flex;
  }

  #search-input {
    flex: 1;
    width: auto;
  }

  #dark-toggle {
    padding: 9px 13px;
    font-size: 0.8rem;
  }

  main {
    padding: 0 16px 30px;
  }

  main > section {
    margin: 22px 0;
    border-radius: var(--radius-md);
  }

  .hero-slider {
    grid-template-columns: 1fr;
  }

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

  #hero .cta,
  #hero .cta-secondary {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  #hero p:last-child {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

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

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

  .logo-text {
    font-size: 1rem;
  }

  .logo svg {
    width: 34px;
    height: 34px;
  }

  #dark-toggle,
  #menu-toggle {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

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

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  #hero {
    padding: 20px 16px;
  }

  .hero-slider {
    gap: 12px;
    margin-bottom: 18px;
  }

  #breadcrumb,
  #anchor-nav {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }

  #anchor-nav a {
    padding: 6px 11px;
    font-size: 0.8rem;
  }

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

  #faq summary {
    padding: 14px 48px 14px 16px;
    font-size: 0.92rem;
  }

  #faq details p {
    padding-left: 16px;
    padding-right: 16px;
  }

  #howto ol li {
    padding: 14px 14px 14px 56px;
  }

  #howto ol li::before {
    left: 14px;
    width: 28px;
    height: 28px;
    font-size: 0.84rem;
  }

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

  #site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  #site-footer section {
    padding: 16px;
  }
}

@media (hover: none) {
  #main-nav a:hover,
  .hero-slider .slide:hover,
  #products ul li:hover,
  #news article:hover,
  #articles article:hover,
  #howto ol li:hover,
  #sitemap ul a:hover,
  #anchor-nav a:hover {
    transform: none;
  }
}

@media print {
  #site-header,
  #anchor-nav,
  #back-to-top,
  #site-search,
  #dark-toggle,
  #menu-toggle,
  #hero .cta,
  #hero .cta-secondary {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  main > section,
  #site-footer {
    box-shadow: none;
    border: 1px solid #cccccc;
    background: #ffffff;
    color: #000000;
  }

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