:root {
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --brand-3: #06b6d4;
  --accent: #f59e0b;
  --accent-2: #ef4444;
  --success: #10b981;
  --bg: #f6f8fc;
  --bg-elevated: #ffffff;
  --bg-soft: #eef2fa;
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12), 0 6px 14px rgba(15, 23, 42, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #2563eb 0%, #7c3aed 45%, #06b6d4 100%);
  --grad-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --grad-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.1) 50%, rgba(6, 182, 212, 0.12));
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="dark"],
html.dark {
  --bg: #0b1020;
  --bg-elevated: #131a2e;
  --bg-soft: #1a2340;
  --text: #e8edf7;
  --text-soft: #b6c2d9;
  --text-muted: #8b9ab8;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 22px 48px rgba(0, 0, 0, 0.55), 0 8px 18px rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(19, 26, 46, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --grad-hero: linear-gradient(135deg, #1e3a8a 0%, #4c1d95 45%, #0e7490 100%);
  --grad-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(124, 58, 237, 0.18) 50%, rgba(6, 182, 212, 0.2));
}

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

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.1), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(124, 58, 237, 0.1), transparent 55%),
    radial-gradient(900px 500px at 50% 100%, rgba(6, 182, 212, 0.08), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

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

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

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

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

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

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

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

h3 {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
}

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

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

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

li {
  margin-bottom: 0.4em;
}

li::marker {
  color: var(--brand);
}

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

address {
  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;
}

body > a[href="#main-content"] {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: top 0.3s var(--ease);
}

body > a[href="#main-content"]:focus {
  top: 12px;
  color: #fff;
}

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

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

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

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.6s var(--ease), box-shadow 0.35s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(90deg) scale(1.06);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

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

.brand-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

#main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

#main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: block;
  padding: 7px 13px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: #fff;
  background: var(--brand);
  transform: translateY(-1px);
}

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

.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.site-search input[type="search"] {
  width: 150px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 0;
  outline: none;
}

.site-search input[type="search"]::placeholder {
  color: var(--text-muted);
}

.site-search input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

.site-search button {
  border: 0;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--grad-hero);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  filter: brightness(1.06);
}

#theme-toggle,
#menu-toggle {
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: #fff;
  background: var(--brand);
  border-color: transparent;
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
}

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

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
}

.breadcrumb li {
  margin: 0;
  color: var(--text-muted);
}

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

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

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

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

#main-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px 40px;
}

.section {
  position: relative;
  margin: 26px 0;
  padding: clamp(22px, 3vw, 40px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-hero);
  opacity: 0.85;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.section > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--border-strong);
}

.section > h2::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--grad-accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
  transform: rotate(45deg);
}

.section > h1 {
  margin-bottom: 16px;
}

.lead {
  font-size: 1.06rem;
  color: var(--text-soft);
  line-height: 1.85;
}

.hero {
  position: relative;
  margin: 26px 0;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: heroShift 16s ease infinite;
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

@keyframes heroShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -100px;
  background: rgba(255, 255, 255, 0.35);
  animation: floatBlob 12s ease-in-out infinite;
}

.hero::after {
  width: 340px;
  height: 340px;
  bottom: -140px;
  left: -80px;
  background: rgba(6, 182, 212, 0.5);
  animation: floatBlob 15s ease-in-out infinite reverse;
}

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

.hero-slider {
  position: relative;
  min-height: 168px;
  padding-bottom: 40px;
}

.hero .slide {
  display: none;
  animation: slideIn 0.6s var(--ease) both;
}

.hero .slide.active {
  display: block;
}

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

.hero .slide h2 {
  color: #fff;
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.3rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
  margin-bottom: 12px;
}

.hero .slide p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
  max-width: 640px;
}

.slider-dots {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
}

.slider-dots button {
  cursor: pointer;
  width: 30px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.4);
  font-size: 0;
  transition: width 0.35s var(--ease), background-color 0.35s var(--ease);
}

.slider-dots button[aria-selected="true"] {
  width: 46px;
  background: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.hero-stats .stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.22);
}

.stat-num {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.hero-stats .stat > span:last-child {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
}

#brand h3,
#product h3,
#solutions h3,
#scenarios h3,
#cases h3,
#howto h3,
#knowledge h3,
#legal h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  font-size: 1rem;
  margin: 26px 0 10px;
}

#brand h3::before,
#product h3::before,
#solutions h3::before,
#scenarios h3::before,
#cases h3::before,
#howto h3::before,
#knowledge h3::before,
#legal h3::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

#news article,
#articles article {
  position: relative;
  padding: 20px 22px;
  margin: 16px 0;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

#news article::after,
#articles article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: var(--radius-pill);
  background: var(--grad-hero);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

#news article:hover::after,
#articles article:hover::after {
  opacity: 1;
}

#news article h3,
#articles article h3 {
  font-size: 1.08rem;
  margin: 0 0 6px;
}

#news article p:first-of-type,
#articles article p:first-of-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  padding: 4px 0;
}

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

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

#cases ul,
#howto ul,
#notice ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

#cases ul li,
#howto ul li,
#notice ul li {
  position: relative;
  padding: 12px 18px 12px 44px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

#cases ul li::before,
#howto ul li::before,
#notice ul li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 3px;
  background: var(--grad-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

#cases ul li:hover,
#howto ul li:hover,
#notice ul li:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

#sitemap ul,
#links ul {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

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

#sitemap a,
#links a {
  display: block;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-hero);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.faq-list details[open] {
  background: var(--bg-elevated);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), var(--shadow-sm);
}

.faq-list details:hover {
  border-color: var(--border-strong);
}

.faq-list summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  color: var(--text);
  font-size: 0.98rem;
  transition: color 0.25s var(--ease);
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.faq-list details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

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

.faq-list details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-soft);
  animation: fadeSlide 0.4s var(--ease) both;
}

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

#contact address {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

#contact address p {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

#contact address p:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

#contact address a {
  font-weight: 700;
}

#author-info {
  background: var(--grad-soft);
  border-color: var(--border-strong);
}

#author-info p {
  margin-bottom: 0.6em;
  font-size: 0.92rem;
}

#site-footer {
  margin-top: 40px;
  padding: 44px 24px 28px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.04);
}

#site-footer > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  text-align: center;
  margin-bottom: 22px;
}

.footer-brand strong {
  display: inline-block;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

#site-footer nav li {
  margin: 0;
}

#site-footer nav a {
  display: block;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

#site-footer nav a:hover {
  color: #fff;
  background: var(--brand);
  border-color: transparent;
  transform: translateY(-2px);
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  cursor: pointer;
  padding: 12px 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
}

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

#back-to-top:hover {
  color: #fff;
  background: var(--brand);
  border-color: transparent;
  transform: translateY(-3px);
}

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

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

.hero.reveal {
  transform: translateY(18px);
}

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

@media (max-width: 1080px) {
  #main-nav {
    display: none;
  }

  #main-nav.is-open {
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    padding: 12px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: menuDrop 0.35s var(--ease) both;
    z-index: 120;
  }

  #main-nav.is-open ul {
    flex-direction: column;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 4px;
  }

  #main-nav.is-open a {
    padding: 11px 16px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
  }

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

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .site-search input[type="search"] {
    width: 110px;
  }
}

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

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

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

  .brand-text span {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

  .site-search {
    padding-left: 12px;
  }

  .site-search input[type="search"] {
    width: 96px;
  }

  .site-search button {
    padding: 7px 12px;
  }

  .breadcrumb {
    padding: 0 16px;
    margin-top: 14px;
  }

  #main-content {
    padding: 6px 16px 32px;
  }

  .hero {
    padding: 26px 20px;
  }

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

  .section {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }

  .section > h2 {
    font-size: 1.25rem;
  }

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

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

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

  .header-inner {
    gap: 8px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 1.02rem;
  }

  .site-search {
    order: 3;
    width: 100%;
    margin-top: 4px;
  }

  .site-search input[type="search"] {
    flex: 1 1 auto;
    width: auto;
  }

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

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

  .hero-stats {
    gap: 10px;
  }

  .hero-stats .stat {
    padding: 12px 14px;
  }

  .stat-num {
    font-size: 1.35rem;
  }

  .hero-stats .stat > span:last-child {
    font-size: 0.72rem;
  }

  .breadcrumb ol {
    font-size: 0.75rem;
    padding: 7px 12px;
  }

  .section {
    margin: 18px 0;
    padding: 20px 16px;
  }

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

  .faq-list summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.92rem;
  }

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

  #cases ul li,
  #howto ul li,
  #notice ul li {
    padding: 10px 14px 10px 38px;
    font-size: 0.9rem;
  }

  #cases ul li::before,
  #howto ul li::before,
  #notice ul li::before {
    left: 15px;
    width: 10px;
    height: 10px;
  }

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

  #site-footer {
    padding: 32px 16px 22px;
  }
}

@media (min-width: 1400px) {
  :root {
    --maxw: 1280px;
  }
}

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

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

  .section,
  .hero {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}