:root {
  --brand: #ff6b35;
  --brand-2: #ff9a5c;
  --brand-3: #ffd166;
  --accent: #6c5ce7;
  --accent-2: #00c2ff;
  --bg: #f7f8fc;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #1f2430;
  --text-2: #4a5262;
  --text-3: #7c8494;
  --border: rgba(31, 36, 48, 0.09);
  --shadow-sm: 0 2px 8px rgba(31, 36, 48, 0.06);
  --shadow-md: 0 10px 30px rgba(31, 36, 48, 0.1);
  --shadow-lg: 0 24px 60px rgba(31, 36, 48, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #ff6b35 0%, #ff9a5c 42%, #ffd166 100%);
  --grad-accent: linear-gradient(135deg, #6c5ce7 0%, #00c2ff 100%);
  --grad-card: linear-gradient(160deg, rgba(255, 107, 53, 0.08), rgba(108, 92, 231, 0.08));
}

[data-theme="dark"] {
  --bg: #0e1016;
  --bg-2: #151922;
  --surface: rgba(26, 31, 42, 0.72);
  --surface-solid: #1a1f2a;
  --text: #eef1f7;
  --text-2: #b9c0cf;
  --text-3: #8b93a5;
  --border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --grad-card: linear-gradient(160deg, rgba(255, 107, 53, 0.14), rgba(108, 92, 231, 0.16));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1016;
    --bg-2: #151922;
    --surface: rgba(26, 31, 42, 0.72);
    --surface-solid: #1a1f2a;
    --text: #eef1f7;
    --text-2: #b9c0cf;
    --text-3: #8b93a5;
    --border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    --grad-card: linear-gradient(160deg, rgba(255, 107, 53, 0.14), rgba(108, 92, 231, 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%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
      circle at 8% 0%,
      rgba(255, 107, 53, 0.1),
      transparent 42%
    ),
    radial-gradient(circle at 92% 12%, rgba(108, 92, 231, 0.1), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(0, 194, 255, 0.08), transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

a:hover {
  color: var(--brand-2);
}

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

h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

h3 {
  font-size: clamp(1.12rem, 1.9vw, 1.4rem);
}

h4 {
  font-size: 1.05rem;
  color: var(--text-2);
}

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

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

li {
  margin-bottom: 0.45em;
}

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

blockquote {
  margin: 0 0 1.2em;
  padding: 1.2em 1.4em;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

blockquote p {
  margin: 0 0 0.6em;
  color: var(--text);
  font-size: 1.02rem;
}

blockquote footer {
  color: var(--text-3);
  font-size: 0.9rem;
  font-style: normal;
}

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

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

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

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

.brand svg {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.brand:hover svg {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 10px 26px rgba(255, 107, 53, 0.5);
}

.brand-name {
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#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 li {
  margin: 0;
}

#main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--brand);
  background: rgba(255, 107, 53, 0.12);
  transform: translateY(-2px);
}

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

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

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

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

#site-search button {
  border: 0;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--grad-hero);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

#site-search button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.45);
}

#menu-toggle,
#theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

#menu-toggle:hover,
#theme-toggle:hover {
  transform: translateY(-2px) rotate(6deg);
  background: var(--grad-card);
  box-shadow: var(--shadow-sm);
}

#menu-toggle {
  display: none;
}

/* ============ Main layout ============ */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

main > section {
  margin: 0 0 28px;
  padding: clamp(20px, 3.2vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 53, 0.22);
}

main > section > h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 1em;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 999px;
  background: var(--grad-hero);
  box-shadow: 0 0 14px rgba(255, 107, 53, 0.5);
}

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

/* ============ Breadcrumb ============ */
.breadcrumb {
  margin: 20px 0 22px;
  font-size: 0.88rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--text-3);
}

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

.breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--text-3);
  opacity: 0.7;
}

.breadcrumb a {
  color: var(--text-2);
  font-weight: 600;
}

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

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

/* ============ Hero ============ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(26px, 4vw, 56px) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--grad-hero) !important;
  border: none !important;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-lg) !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42), transparent 62%);
  border-radius: 50%;
  animation: floatBlob 14s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -12%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.4), transparent 65%);
  border-radius: 50%;
  animation: floatBlob 18s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 26px) scale(1.08);
  }
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  color: #fff;
  text-shadow: 0 4px 24px rgba(120, 40, 0, 0.28);
  margin-bottom: 0.5em;
}

.hero-text p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  max-width: 56ch;
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--brand);
  background: #fff;
  box-shadow: 0 12px 30px rgba(120, 40, 0, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.hero .cta::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.hero .cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 44px rgba(120, 40, 0, 0.4);
  background: #fff8f4;
}

.hero .cta:hover::after {
  transform: translateX(5px);
}

.hero-slider {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
}

.hero-slider .slide {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 8px 26px rgba(90, 30, 0, 0.16);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
  animation: slideIn 0.8s var(--ease) both;
}

.hero-slider .slide:nth-child(2) {
  animation-delay: 0.12s;
}

.hero-slider .slide:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-slider .slide:hover {
  transform: translateX(-6px) scale(1.015);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 36px rgba(90, 30, 0, 0.24);
}

.hero-slider .slide h2 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.35em;
}

.hero-slider .slide p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============ Anchor nav ============ */
.anchor-nav {
  margin: 0 0 28px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: thin;
}

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

.anchor-nav li {
  margin: 0;
  flex-shrink: 0;
}

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

.anchor-nav a:hover {
  color: #fff;
  background: var(--grad-hero);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.32);
}

/* ============ Cards inside sections ============ */
#products h3,
#solutions h3,
#applications h3,
#cases h3,
#knowledge h3,
#howto h3,
#contact h3,
#legal h3,
#about h3,
#history h3,
#culture h3,
#advantages h3 {
  margin-top: 1.4em;
}

#products h4 {
  margin-top: 1em;
  padding-left: 12px;
  border-left: 3px solid var(--brand-2);
}

#products ul,
#advantages ul,
#solutions ul,
#applications ul,
#culture ul,
#about ul,
#howto ul,
#contact ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

#products ul li,
#advantages ul li,
#solutions ul li,
#applications ul li,
#culture ul li,
#about ul li,
#howto ul li {
  position: relative;
  padding: 12px 16px 12px 40px;
  border-radius: var(--radius-sm);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#products ul li::before,
#advantages ul li::before,
#solutions ul li::before,
#applications ul li::before,
#culture ul li::before,
#about ul li::before,
#howto ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--grad-hero);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.16);
}

#products ul li:hover,
#advantages ul li:hover,
#solutions ul li:hover,
#applications ul li:hover,
#culture ul li:hover,
#about ul li:hover,
#howto ul li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

#history ol,
#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

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

#history ol li::before,
#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-accent);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35);
}

#history ol li:hover,
#howto ol li:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: var(--shadow-md);
}

/* ============ Articles ============ */
#articles article,
#news article {
  padding: 20px 22px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  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:hover,
#news article:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: var(--shadow-md);
}

#articles article h3,
#news article h3 {
  margin-bottom: 0.35em;
  transition: color 0.3s var(--ease);
}

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

#articles article time,
#news article time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-3);
  background: var(--grad-card);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 0.6em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

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

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

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#faq details:hover {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: rgba(255, 107, 53, 0.4);
  background: var(--grad-card);
}

#faq summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  position: relative;
  transition: color 0.3s 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;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-hero);
  transition: transform 0.35s var(--ease);
}

#faq details[open] summary {
  color: var(--brand);
}

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

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  animation: fadeUp 0.4s var(--ease) both;
}

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

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

#contact address li {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  margin: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact address li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

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

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

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

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-accent);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.32);
}

/* ============ Editorial ============ */
#editorial p {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--grad-card);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

/* ============ Footer ============ */
footer[role="contentinfo"] {
  margin-top: 20px;
  padding: 36px 20px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

footer[role="contentinfo"] > p {
  margin: 0 0 14px;
  color: var(--text-3);
  font-size: 0.88rem;
}

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

footer nav li {
  margin: 0;
}

footer nav a {
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
}

footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-hero);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

footer nav a:hover {
  color: var(--brand);
}

footer nav a:hover::after {
  transform: scaleX(1);
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-hero);
  box-shadow: 0 10px 26px rgba(255, 107, 53, 0.45);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    opacity 0.35s var(--ease);
  animation: pulseRing 2.6s ease-in-out infinite;
}

#back-to-top:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 16px 36px rgba(255, 107, 53, 0.6);
}

@keyframes pulseRing {
  0%,
  100% {
    box-shadow: 0 10px 26px rgba(255, 107, 53, 0.45), 0 0 0 0 rgba(255, 107, 53, 0.4);
  }
  50% {
    box-shadow: 0 10px 26px rgba(255, 107, 53, 0.45), 0 0 0 12px rgba(255, 107, 53, 0);
  }
}

/* ============ Scroll reveal ============ */
@media (prefers-reduced-motion: no-preference) {
  main > section,
  #articles article,
  #news article,
  #faq details {
    animation: fadeUp 0.7s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

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

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  #search-input {
    width: 150px;
  }
}

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

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

  #menu-toggle {
    display: inline-flex;
    order: 3;
    margin-left: auto;
  }

  #theme-toggle {
    order: 4;
  }

  #site-search {
    order: 5;
    flex: 1 1 100%;
    margin-top: 4px;
  }

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

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

  #main-nav.is-open {
    max-height: 640px;
    opacity: 1;
  }

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

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

  main {
    padding: 0 16px 48px;
  }

  main > section {
    padding: 20px 18px;
    border-radius: var(--radius);
  }

  .hero {
    padding: 26px 20px !important;
  }

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

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

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

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

  .hero .cta {
    width: 100%;
    justify-content: center;
    padding: 13px 22px;
  }

  .anchor-nav {
    padding: 10px 12px;
  }

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

  #back-to-top {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  blockquote {
    padding: 14px 16px;
  }

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

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

  #menu-toggle,
  #theme-toggle {
    width: 38px;
    height: 38px;
  }
}
</style>