:root {
  --bg: #f7f7fb;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #1a1a2e;
  --text-soft: #4a4a63;
  --text-muted: #71718a;
  --border: rgba(26, 26, 46, 0.1);
  --primary: #e94560;
  --primary-soft: rgba(233, 69, 96, 0.12);
  --accent: #f2b705;
  --accent-soft: rgba(242, 183, 5, 0.16);
  --navy: #1a1a2e;
  --navy-2: #16213e;
  --navy-3: #0f3460;
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 20px 50px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --glass-blur: blur(16px);
  --header-h: 68px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"],
html.dark {
  --bg: #0d0d17;
  --bg-alt: #12121f;
  --surface: rgba(26, 26, 46, 0.6);
  --surface-solid: #16162a;
  --text: #f2f2fa;
  --text-soft: #c3c3d6;
  --text-muted: #8f8fa8;
  --border: rgba(255, 255, 255, 0.1);
  --primary: #ff5c75;
  --primary-soft: rgba(255, 92, 117, 0.16);
  --accent: #f7c948;
  --accent-soft: rgba(247, 201, 72, 0.16);
  --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 20px 50px rgba(0, 0, 0, 0.6);
}

*,
*::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: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, var(--accent-soft), transparent 42%),
    radial-gradient(circle at 88% 8%, var(--primary-soft), transparent 40%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

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

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

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

h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.12rem, 2.2vw, 1.35rem); }

p { margin: 0 0 1em; }

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

li { margin-bottom: 0.4em; }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

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

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

.brand svg {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(242, 183, 5, 0.28);
  transition: transform 0.4s var(--ease);
}

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

.brand-name {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  flex: 1 1 auto;
}

.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: 7px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  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: 2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 60%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  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(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

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

.site-search input::placeholder {
  color: var(--text-muted);
}

.site-search button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #ff7a5c);
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: scale(1.04);
  filter: brightness(1.08);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
  box-shadow: var(--shadow-md);
}

#menu-toggle { display: none; }

.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb li { margin: 0; }

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-soft); }

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.hero {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: stretch;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  box-shadow: var(--shadow-lg);
  min-height: 300px;
  isolation: isolate;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(242, 183, 5, 0.16), transparent 55%, rgba(233, 69, 96, 0.22));
  pointer-events: none;
  z-index: 2;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), visibility 0.8s;
  z-index: 1;
}

.hero-slider .slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

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

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(26, 26, 46, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.slider-prev { left: 14px; }
.slider-next { right: 14px; }

.slider-prev:hover,
.slider-next:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.hero-text {
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur) saturate(150%);
  backdrop-filter: var(--glass-blur) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text h1 {
  background: linear-gradient(115deg, var(--text) 30%, var(--primary) 70%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

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

.hero-stats .stat {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hero-stats .stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hero-stats .num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats .label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.anchor-nav {
  position: sticky;
  top: calc(var(--header-h) + 4px);
  z-index: 50;
  margin: 26px 0 8px;
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur) saturate(160%);
  backdrop-filter: var(--glass-blur) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 6px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-nav::-webkit-scrollbar { display: none; }

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

.anchor-nav li { margin: 0; }

.anchor-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.anchor-nav a:hover,
.anchor-nav a:focus-visible {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: translateY(-1px);
}

main > section {
  margin-top: 34px;
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur) saturate(140%);
  backdrop-filter: var(--glass-blur) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.24);
}

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

main > section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

main > section h3 {
  margin-top: 1.4em;
  color: var(--text);
}

main > section h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

#about ul,
#products ul,
#applications ul,
#news ul,
#sitemap ul,
#links ul,
#knowledge ul {
  list-style: none;
  padding-left: 0;
}

#about ul li,
#products ul li,
#applications ul li,
#news ul li {
  position: relative;
  padding: 10px 14px 10px 34px;
  margin-bottom: 8px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#about ul li::before,
#products ul li::before,
#applications ul li::before,
#news ul li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

#about ul li:hover,
#products ul li:hover,
#applications ul li:hover,
#news ul li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

#cases blockquote {
  margin: 0 0 14px;
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  right: 16px;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.18;
  font-family: Georgia, serif;
}

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

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

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

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

#articles article {
  display: flex;
  flex-direction: column;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  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);
}

#articles article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(233, 69, 96, 0.3);
}

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

#articles article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

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

#articles article time {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

#articles article p {
  color: var(--text-soft);
  font-size: 0.9rem;
  flex: 1;
}

#articles article a {
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

#articles article a:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: translateX(3px);
}

#faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  margin-bottom: 10px;
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.35);
  box-shadow: var(--shadow-md);
}

#faq summary {
  cursor: pointer;
  padding: 15px 46px 15px 18px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  list-style: none;
  transition: background 0.3s var(--ease), 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%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.35s var(--ease);
}

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

#faq summary:hover {
  background: var(--primary-soft);
}

#faq details p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text-soft);
  font-size: 0.94rem;
  animation: fadeUp 0.4s var(--ease) both;
}

#howto ol,
#howto ul {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#howto ol li {
  position: relative;
  padding: 12px 14px 12px 52px;
  margin-bottom: 10px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  counter-increment: step;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

#howto ul li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
}

#howto ul li::before {
  content: "▹";
  position: absolute;
  left: 4px;
  color: var(--primary);
}

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

#contact address {
  font-style: normal;
}

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

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

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

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

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

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

#sitemap a:hover,
#links a:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-md);
}

footer {
  margin-top: 50px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: #d8d8ea;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 183, 5, 0.22), transparent 70%);
  pointer-events: none;
}

footer::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.2), transparent 70%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 20px 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.footer-inner section {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.footer-inner section:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(242, 183, 5, 0.4);
}

.footer-inner h2 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #fff;
  position: relative;
  padding-bottom: 8px;
}

.footer-inner h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.footer-inner p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: #b9b9cf;
  margin: 0;
}

.footer-inner a {
  color: var(--accent);
}

.footer-inner a:hover {
  color: #fff;
}

.footer-bottom {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.82rem !important;
  color: #9c9cb8 !important;
  padding-top: 18px;
  margin-top: 6px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 120;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 26px rgba(233, 69, 96, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}

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

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

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

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 260px;
  }

  .hero-slider .slide svg {
    min-height: 260px;
  }

  .site-search input {
    width: 150px;
  }
}

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

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

  #menu-toggle {
    display: inline-flex;
  }

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

  .main-nav.open,
  .main-nav.active {
    max-height: 520px;
    opacity: 1;
    padding: 8px 0 4px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .main-nav a {
    border-radius: var(--radius-sm);
    padding: 10px 14px;
  }

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

  .site-search {
    display: none;
  }

  .hero-text {
    padding: 22px 18px;
  }

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

  main {
    padding: 0 16px 30px;
  }

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

  .anchor-nav {
    border-radius: var(--radius-md);
  }

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

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

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

  .hero-slider,
  .hero-slider .slide svg {
    min-height: 200px;
  }

  .slider-prev,
  .slider-next {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
  }

  .hero-stats .num {
    font-size: 1.15rem;
  }

  .hero-stats .label {
    font-size: 0.68rem;
  }

  main > section h2::after {
    width: 48px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 32px 16px 20px;
  }

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  #site-header,
  .anchor-nav,
  #back-to-top,
  .hero-slider,
  footer {
    display: none !important;
  }

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

  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}