:root {
  --brand: #e8456b;
  --brand-2: #ff7a9c;
  --brand-3: #ffb3c6;
  --accent: #3a86ff;
  --accent-2: #6aa8ff;
  --warm: #f4a261;
  --bg: #fdf7f9;
  --bg-2: #ffffff;
  --bg-soft: #fff0f4;
  --text: #241b1f;
  --text-2: #5c4a52;
  --text-3: #8a7780;
  --line: rgba(232, 69, 107, 0.14);
  --line-strong: rgba(232, 69, 107, 0.28);
  --shadow-sm: 0 2px 10px rgba(120, 40, 66, 0.06);
  --shadow: 0 10px 30px rgba(120, 40, 66, 0.1);
  --shadow-lg: 0 22px 60px rgba(120, 40, 66, 0.16);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.7);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --header-h: 72px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --brand: #ff6f92;
  --brand-2: #ff8fab;
  --brand-3: #ffc2d2;
  --accent: #6aa8ff;
  --accent-2: #8fc0ff;
  --warm: #ffb37a;
  --bg: #14101a;
  --bg-2: #1c1622;
  --bg-soft: #221a2a;
  --text: #f6eef2;
  --text-2: #cdbcc6;
  --text-3: #9c8a95;
  --line: rgba(255, 111, 146, 0.18);
  --line-strong: rgba(255, 111, 146, 0.36);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.6);
  --glass: rgba(28, 22, 34, 0.62);
  --glass-border: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --brand: #ff6f92;
    --brand-2: #ff8fab;
    --brand-3: #ffc2d2;
    --accent: #6aa8ff;
    --accent-2: #8fc0ff;
    --warm: #ffb37a;
    --bg: #14101a;
    --bg-2: #1c1622;
    --bg-soft: #221a2a;
    --text: #f6eef2;
    --text-2: #cdbcc6;
    --text-3: #9c8a95;
    --line: rgba(255, 111, 146, 0.18);
    --line-strong: rgba(255, 111, 146, 0.36);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.6);
    --glass: rgba(28, 22, 34, 0.62);
    --glass-border: rgba(255, 255, 255, 0.08);
  }
}

*,
*::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:
    radial-gradient(1200px 600px at 8% -10%, rgba(232, 69, 107, 0.14), transparent 60%),
    radial-gradient(1000px 520px at 100% 0%, rgba(58, 134, 255, 0.12), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(244, 162, 97, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  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);
}

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

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

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

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

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--brand), var(--brand-2), var(--accent));
  box-shadow: 0 0 14px rgba(232, 69, 107, 0.5);
}

h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  color: var(--text);
}

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

ul, ol {
  color: var(--text-2);
}

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

blockquote {
  margin: 0 0 1.2em;
  padding: 1.1em 1.3em 1.1em 1.5em;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

blockquote p {
  margin: 0;
  color: var(--text-2);
  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;
}

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

#site-header.is-scrolled {
  box-shadow: var(--shadow);
}

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

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

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

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

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

#main-nav {
  flex: 1 1 420px;
  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;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  color: var(--text-2);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a:hover {
  color: var(--brand);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

#mobile-menu-btn,
#theme-toggle {
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

#mobile-menu-btn:hover,
#theme-toggle:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 69, 107, 0.3);
}

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

#site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 3px 3px 3px 14px;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  flex: 0 1 260px;
}

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

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

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

#site-search button {
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}

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

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

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-3);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-3);
}

main > nav[aria-label="面包屑导航"] li[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}

main > section {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 44px);
  margin-bottom: 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.4s var(--ease);
}

main > section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), transparent 40%);
  opacity: 0.7;
}

html[data-theme="dark"] main > section::after,
html:not([data-theme="light"]) main > section::after {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 40%);
}

main > section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

main > section:hover {
  box-shadow: var(--shadow-lg);
}

#hero {
  background:
    linear-gradient(135deg, rgba(232, 69, 107, 0.92) 0%, rgba(255, 122, 156, 0.85) 40%, rgba(58, 134, 255, 0.82) 100%),
    var(--bg-2);
  color: #fff;
  border: none;
  padding: clamp(26px, 4.5vw, 52px);
}

#hero::after {
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.4), transparent 45%);
  opacity: 1;
}

#hero h1 {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  text-shadow: 0 2px 18px rgba(60, 10, 30, 0.25);
}

#hero > p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 78ch;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  text-shadow: 0 1px 8px rgba(60, 10, 30, 0.18);
}

#banner-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 16px;
  margin: 20px 0 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.6) transparent;
}

#banner-carousel::-webkit-scrollbar {
  height: 6px;
}

#banner-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
}

#banner-carousel .slide {
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(40, 8, 22, 0.28);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

#banner-carousel .slide:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 22px 50px rgba(40, 8, 22, 0.4);
}

#banner-carousel svg {
  width: 100%;
  height: auto;
  display: block;
}

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

#stats > div {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

#stats > div:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.26);
}

#stats strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

#stats span {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
}

#anchor-nav {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 50;
  margin-bottom: 26px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

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

#anchor-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  width: max-content;
}

#anchor-nav a {
  display: inline-block;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}

#anchor-nav a:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 69, 107, 0.3);
}

#products h3,
#solutions h3,
#brand h3,
#cases h3,
#howto h3,
#contact h3,
#site-footer h3 {
  margin-top: 1.6em;
  padding-bottom: 0.35em;
  border-bottom: 2px dashed var(--line);
}

#products h3:first-of-type,
#solutions h3:first-of-type,
#brand h3:first-of-type,
#cases h3:first-of-type,
#howto h3:first-of-type,
#contact h3:first-of-type {
  margin-top: 1.2em;
}

#cases blockquote {
  margin-top: 14px;
}

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

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

#news article:hover,
#articles article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

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

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
}

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

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

#news time,
#articles time {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--bg-soft);
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

#articles article > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 6px 16px rgba(232, 69, 107, 0.28);
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

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

#articles article > a:last-child:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.06);
}

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

#faq details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

#faq details[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-soft));
}

#faq details:hover {
  border-color: var(--line-strong);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 14px 34px 14px 0;
  font-weight: 700;
  color: var(--text);
  font-size: 0.98rem;
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

#faq summary:hover {
  color: var(--brand);
}

#faq details p {
  margin: 0 0 16px;
  padding-top: 2px;
  animation: faqIn 0.4s var(--ease);
}

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

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 60px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  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: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(232, 69, 107, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

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

#contact ul li {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.94rem;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  word-break: break-word;
}

#contact ul li:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(232, 69, 107, 0.3);
}

#site-footer {
  position: relative;
  margin-top: 20px;
  padding: clamp(28px, 5vw, 52px) 20px 30px;
  background:
    linear-gradient(160deg, rgba(232, 69, 107, 0.1), rgba(58, 134, 255, 0.08)),
    var(--bg-2);
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

#site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--warm), var(--accent));
}

#site-footer > section {
  max-width: var(--maxw);
  margin: 0 auto 26px;
}

#site-footer h2 {
  font-size: 1.15rem;
  padding-left: 16px;
  margin-bottom: 0.7em;
}

#site-footer h2::before {
  width: 5px;
}

#site-footer h3 {
  font-size: 1rem;
  margin-top: 1.2em;
  color: var(--text);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.3em;
}

#site-footer p {
  font-size: 0.92rem;
  max-width: 80ch;
}

#site-footer > p:last-child {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

#site-footer small {
  font-size: 0.82rem;
  color: var(--text-3);
}

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(232, 69, 107, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), filter 0.25s var(--ease);
}

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

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

#back-to-top:active {
  transform: translateY(0) scale(0.96);
}

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

  #main-nav {
    flex-basis: 100%;
    order: 5;
  }

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

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

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

  #main-nav {
    display: none;
    flex-basis: 100%;
    order: 6;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
    max-height: 60vh;
    overflow-y: auto;
  }

  #main-nav.is-open {
    display: block;
    animation: navIn 0.3s var(--ease);
  }

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

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

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

  #site-search {
    flex: 1 1 100%;
    order: 7;
  }

  #anchor-nav {
    top: calc(var(--header-h) + 4px);
  }

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

  #banner-carousel {
    grid-auto-columns: 85%;
  }
}

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

  .header-inner {
    padding: 8px 14px;
  }

  .brand {
    font-size: 1.05rem;
  }

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

  #theme-toggle,
  #mobile-menu-btn {
    padding: 7px 11px;
    font-size: 0.8rem;
  }

  main {
    padding: 16px 12px 30px;
  }

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

  #hero {
    padding: 22px 16px;
  }

  #banner-carousel {
    grid-auto-columns: 92%;
    gap: 12px;
  }

  #stats {
    gap: 10px;
  }

  #stats > div {
    padding: 12px 8px;
  }

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

  #howto ol li {
    padding: 12px 14px 12px 52px;
  }

  #howto ol li::before {
    left: 12px;
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
  }

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

  #back-to-top {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    font-size: 0.68rem;
  }

  #faq details {
    padding: 2px 16px;
  }

  #faq summary {
    font-size: 0.92rem;
    padding-right: 30px;
  }
}

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

  main > section {
    opacity: 1;
    transform: none;
  }
}

@media print {
  #site-header,
  #anchor-nav,
  #back-to-top,
  #site-search,
  #mobile-menu-btn,
  #theme-toggle {
    display: none !important;
  }

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

  main > section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    opacity: 1;
    transform: none;
  }
}
</final_file>