:root {
  --brand: #c81e2c;
  --brand-2: #ff5a6e;
  --brand-dark: #7a1220;
  --accent: #ffd166;
  --accent-2: #ffe7a3;
  --bg: #fdf7f5;
  --bg-soft: #ffffff;
  --text: #241a1c;
  --muted: #6f6266;
  --border: rgba(200, 30, 44, 0.14);
  --card: rgba(255, 255, 255, 0.68);
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.75);
  --shadow-sm: 0 4px 14px rgba(122, 18, 32, 0.08);
  --shadow-md: 0 12px 34px rgba(122, 18, 32, 0.12);
  --shadow-lg: 0 22px 60px rgba(122, 18, 32, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --grad-brand: linear-gradient(135deg, #c81e2c 0%, #e8485a 45%, #ff7a6b 100%);
  --grad-warm: linear-gradient(135deg, #7a1220 0%, #c81e2c 55%, #ff9a5a 100%);
  --grad-accent: linear-gradient(135deg, #ffd166 0%, #ff9f43 100%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.dark {
  --brand: #ff5a6e;
  --brand-2: #ff8a98;
  --brand-dark: #c81e2c;
  --accent: #ffd166;
  --accent-2: #ffe7a3;
  --bg: #121014;
  --bg-soft: #1a161b;
  --text: #f3ecee;
  --muted: #b6a9ad;
  --border: rgba(255, 90, 110, 0.2);
  --card: rgba(34, 28, 34, 0.62);
  --card-solid: #221c22;
  --glass: rgba(34, 28, 34, 0.55);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);
  --grad-brand: linear-gradient(135deg, #7a1220 0%, #c81e2c 50%, #ff5a6e 100%);
  --grad-warm: linear-gradient(135deg, #2a1118 0%, #7a1220 55%, #c81e2c 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 90, 110, 0.14), transparent 60%),
    radial-gradient(1000px 520px at 100% 0%, rgba(255, 209, 102, 0.16), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

::selection {
  background: var(--brand);
  color: #fff;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

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

a:hover {
  color: var(--brand-dark);
  text-decoration: none;
}

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

h1 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.15rem);
  margin-top: 0.4em;
}

h2 {
  position: relative;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  padding-left: 16px;
  margin-bottom: 22px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--grad-brand);
  box-shadow: 0 0 16px rgba(200, 30, 44, 0.35);
}

h3 {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  margin-top: 1.4em;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0 0 1em;
}

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

li {
  margin-bottom: 0.35em;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

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

/* ========== Header ========== */
#site-header {
  position: relative;
  z-index: 200;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease), padding 0.35s var(--ease);
}

#site-header.sticky {
  position: sticky;
  top: 0;
  box-shadow: var(--shadow-md);
  background: var(--glass);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 22px;
  transition: padding 0.35s var(--ease);
}

#site-header.sticky .header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--brand);
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  transform: translateY(-1px);
  color: var(--brand);
}

.logo svg {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(200, 30, 44, 0.3);
  transition: transform 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.05);
}

.logo-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

#main-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

#main-nav a:hover {
  color: var(--brand);
  background: rgba(200, 30, 44, 0.07);
}

#main-nav a:hover::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-search {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card-solid);
  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 3px rgba(200, 30, 44, 0.14);
}

.site-search input {
  width: 170px;
  border: 0;
  padding: 8px 14px;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
}

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

.site-search button {
  border: 0;
  padding: 8px 16px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.88rem;
  cursor: pointer;
  transition: filter 0.25s var(--ease);
}

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

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border);
  background: var(--card-solid);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px);
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

#menu-toggle {
  display: none;
}

/* ========== Sections ========== */
main {
  display: block;
}

section {
  position: relative;
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

section.revealed {
  opacity: 1;
  transform: translateY(0);
}

section:last-of-type {
  border-bottom: 0;
}

section#hero {
  opacity: 1;
  transform: none;
  padding-top: 30px;
  padding-bottom: 56px;
  overflow: hidden;
}

section#hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 520px;
  background:
    radial-gradient(closest-side at 20% 30%, rgba(255, 90, 110, 0.28), transparent 70%),
    radial-gradient(closest-side at 80% 10%, rgba(255, 209, 102, 0.3), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

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

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

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

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

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

/* ========== Hero ========== */
.hero-lead {
  font-size: 1.02rem;
  color: var(--text);
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.hero-lead:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--brand-dark);
  isolation: isolate;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

.slide {
  display: none;
  animation: slideFade 0.7s var(--ease);
}

.slide.active {
  display: block;
}

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

@keyframes slideFade {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slider-dots button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.slider-dots button:hover {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.5);
}

.slider-dots button[aria-selected="true"] {
  background: var(--grad-accent);
  color: #4a2a00;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 159, 67, 0.5);
}

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

.stat {
  position: relative;
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.9;
}

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

.stat-num {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ========== Generic content cards ========== */
#about p,
#product p,
#solution p,
#cases p,
#howto p,
#knowledge p,
#contact p {
  color: var(--text);
}

#about h3,
#product h3,
#solution h3,
#cases h3,
#howto h3,
#knowledge h3,
#contact h3 {
  position: relative;
  padding-left: 14px;
}

#about h3::before,
#product h3::before,
#solution h3::before,
#cases h3::before,
#howto h3::before,
#knowledge h3::before,
#contact h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.25);
}

#product .container > p,
#solution .container > p,
#cases .container > h3 + p,
#knowledge .container > h3 + p {
  color: var(--muted);
}

/* ========== News ========== */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.news-list li {
  position: relative;
  margin: 0;
  padding: 16px 20px 16px 22px;
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.news-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.news-list li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.news-list li:hover::before {
  opacity: 1;
}

.news-list time {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--grad-accent);
  letter-spacing: 0.02em;
}

/* ========== Articles ========== */
#articles > .container > p {
  color: var(--muted);
  margin-bottom: 24px;
}

#articles article {
  position: relative;
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  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;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

#articles article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

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

#articles article h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

#articles article h3 a {
  color: var(--text);
  background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.3s var(--ease);
}

#articles article:hover h3 a {
  color: var(--brand);
  background-size: 100% 2px;
}

#articles article time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

#articles article p {
  margin-bottom: 10px;
  color: var(--text);
}

#articles article p:last-child {
  margin-bottom: 0;
}

#articles article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 6px 16px rgba(200, 30, 44, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

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

#articles article p:last-child a:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 22px rgba(200, 30, 44, 0.36);
}

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

/* ========== FAQ ========== */
.faq-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.faq-list dt {
  margin: 0;
}

.faq-list dt button {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 16px 52px 16px 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq-list dt button::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(200, 30, 44, 0.1);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.faq-list dt button:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  background: var(--card-solid);
}

.faq-list dt button[aria-expanded="true"] {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.faq-list dt button[aria-expanded="true"]::after {
  content: "−";
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%) rotate(180deg);
}

.faq-list dd {
  margin: 0;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--muted);
  border-left: 3px solid transparent;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease), opacity 0.35s var(--ease), border-color 0.35s var(--ease);
}

.faq-list dd.open {
  max-height: 700px;
  padding: 14px 20px 18px;
  opacity: 1;
  border-left-color: var(--accent);
}

.faq-list dd p {
  margin: 0;
  color: var(--text);
}

/* ========== Blockquote ========== */
blockquote {
  position: relative;
  margin: 18px 0;
  padding: 18px 22px 18px 54px;
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

blockquote::before {
  content: "“";
  position: absolute;
  left: 16px;
  top: 4px;
  font-size: 2.6rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--brand);
  opacity: 0.55;
}

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

blockquote p {
  margin: 0;
  color: var(--muted);
}

/* ========== HowTo list ========== */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  position: relative;
  counter-increment: step;
  margin: 0;
  padding: 16px 20px 16px 62px;
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 4px 12px rgba(200, 30, 44, 0.32);
}

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

/* ========== Contact ========== */
address {
  font-style: normal;
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

address p {
  margin: 0 0 8px;
  color: var(--text);
}

address p:last-child {
  margin-bottom: 0;
}

address a {
  font-weight: 600;
}

address a:hover {
  text-decoration: underline;
}

/* ========== Sitemap & Links ========== */
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-list li,
.friend-links li {
  margin: 0;
}

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

/* ========== Footer ========== */
#site-footer {
  position: relative;
  margin-top: 10px;
  padding: 48px 0 28px;
  background:
    radial-gradient(800px 300px at 0% 0%, rgba(200, 30, 44, 0.14), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

#site-footer h2 {
  font-size: 1.05rem;
  padding-left: 12px;
  margin: 22px 0 10px;
  color: var(--text);
}

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

#site-footer .footer-about h2:first-child {
  margin-top: 0;
}

#site-footer p {
  margin: 0 0 10px;
  color: var(--muted);
}

#site-footer a {
  color: var(--brand);
}

.footer-copy {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ========== Back to top ========== */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 10px 26px rgba(200, 30, 44, 0.38);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.94);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), transform 0.35s var(--ease), filter 0.25s var(--ease);
}

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

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

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

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  #menu-toggle {
    display: inline-block;
  }

  #main-nav {
    display: none;
    width: 100%;
    order: 4;
    padding-top: 8px;
  }

  #main-nav.open {
    display: block;
    animation: navDrop 0.35s var(--ease);
  }

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

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

  #main-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
  }

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

  .header-tools {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .site-search {
    flex: 1 1 auto;
  }

  .site-search input {
    width: 100%;
  }
}

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

  .container {
    padding: 0 16px;
  }

  section {
    padding: 38px 0;
  }

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

  .logo {
    font-size: 1rem;
  }

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

  .hero-lead {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

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

  .stat {
    padding: 16px 10px;
  }

  .slider-dots {
    bottom: 10px;
    right: 12px;
    gap: 6px;
  }

  .slider-dots button {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }

  .news-list li {
    padding: 14px 16px 14px 18px;
  }

  #articles article {
    padding: 18px 18px;
  }

  .faq-list dt button {
    padding: 14px 48px 14px 16px;
    font-size: 0.92rem;
  }

  #howto ol li {
    padding: 14px 16px 14px 54px;
  }

  address {
    padding: 18px 18px;
  }

  #back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
  }
}

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

  .header-tools {
    flex-wrap: wrap;
  }
}

/* ========== Reduced motion ========== */
@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;
  }

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

/* ========== Print ========== */
@media print {
  #site-header,
  #back-to-top,
  .slider-dots,
  .hero-slider {
    display: none !important;
  }

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

  section {
    opacity: 1;
    transform: none;
    border-bottom: 1px solid #ddd;
  }
}