:root {
  --peach-50: #fff5f8;
  --peach-100: #ffe3ec;
  --peach-200: #ffc9da;
  --peach-300: #ff9fbb;
  --peach-400: #f76d97;
  --peach-500: #e94e77;
  --peach-600: #d13a63;
  --peach-700: #a82b4d;
  --ink-900: #1c1420;
  --ink-800: #2a2030;
  --ink-700: #3a2d42;
  --ink-600: #55465e;
  --ink-500: #786a80;
  --ink-400: #9d92a4;
  --ink-300: #c4bcc9;
  --ink-200: #e2dde6;
  --ink-100: #f1eef3;
  --ink-50: #faf8fb;
  --accent: #7b3fa1;
  --accent-2: #2e9e8f;
  --white: #ffffff;
  --bg: #fdf8fa;
  --bg-elev: #ffffff;
  --text: #2a2030;
  --text-soft: #55465e;
  --text-mute: #786a80;
  --border: rgba(169, 138, 158, 0.22);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-brd: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 8px rgba(70, 30, 55, 0.06);
  --shadow-md: 0 8px 28px rgba(70, 30, 55, 0.09);
  --shadow-lg: 0 18px 54px rgba(70, 30, 55, 0.14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1180px;
  --header-h: 72px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-brand: linear-gradient(120deg, #ff8fb1 0%, #e94e77 42%, #b13a8a 100%);
  --grad-hero: linear-gradient(135deg, #ffe3ec 0%, #ffd0e0 30%, #f3d6ff 62%, #d9f2ee 100%);
  --grad-soft: linear-gradient(180deg, rgba(255, 227, 236, 0.55), rgba(255, 255, 255, 0));
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #14101a;
  --bg-elev: #1d1724;
  --text: #f3edf6;
  --text-soft: #cfc4d6;
  --text-mute: #a195ad;
  --border: rgba(255, 255, 255, 0.12);
  --glass: rgba(32, 25, 40, 0.62);
  --glass-brd: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 56px rgba(0, 0, 0, 0.55);
  --grad-hero: linear-gradient(135deg, #2a1b33 0%, #3a2140 32%, #2b2a4d 66%, #173a37 100%);
  --grad-soft: linear-gradient(180deg, rgba(233, 78, 119, 0.16), rgba(20, 16, 26, 0));
  color-scheme: dark;
}

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

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

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(1100px 520px at 8% -8%, rgba(233, 78, 119, 0.12), transparent 62%),
    radial-gradient(900px 480px at 96% 4%, rgba(123, 63, 161, 0.12), transparent 60%),
    radial-gradient(800px 520px at 50% 108%, rgba(46, 158, 143, 0.1), transparent 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

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

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

a:hover {
  color: var(--peach-500);
}

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

h1 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h3 { font-size: clamp(1.08rem, 1.7vw, 1.28rem); }

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

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

li {
  margin-bottom: 0.45em;
}

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

time {
  font-variant-numeric: tabular-nums;
  color: var(--text-mute);
  font-size: 0.88em;
}

blockquote {
  margin: 0 0 1em;
  padding: 1em 1.2em;
  border-left: 4px solid var(--peach-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-brd);
  border-right: 1px solid var(--glass-brd);
  border-bottom: 1px solid var(--glass-brd);
}

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

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);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--peach-400);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: var(--peach-300);
  color: var(--ink-900);
}

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

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

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand svg {
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(233, 78, 119, 0.35));
  transition: transform 0.5s var(--ease);
}

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

.brand-name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.brand-slogan {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.main-nav {
  flex: 1 1 auto;
  min-width: 0;
}

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

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  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: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover {
  color: var(--peach-600);
  background: rgba(233, 78, 119, 0.09);
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  width: 42%;
}

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

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 4px 3px 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.site-search:focus-within {
  border-color: var(--peach-400);
  box-shadow: 0 0 0 4px rgba(233, 78, 119, 0.16), var(--shadow-md);
  transform: translateY(-1px);
}

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

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

.site-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--grad-brand);
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button svg {
  width: 16px;
  height: 16px;
}

.site-search button svg circle,
.site-search button svg line {
  stroke: #fff;
}

.site-search button:hover {
  transform: scale(1.08) rotate(6deg);
  filter: brightness(1.06);
}

#theme-toggle,
#menu-toggle {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--peach-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#menu-toggle {
  display: none;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: 0.85rem;
}

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

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

.breadcrumb li + li::before {
  content: "›";
  color: var(--peach-400);
  font-size: 1.05em;
}

.breadcrumb a {
  color: var(--text-soft);
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.breadcrumb a:hover {
  background: rgba(233, 78, 119, 0.1);
  color: var(--peach-600);
}

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

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

main > section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 20px;
  position: relative;
}

main > section + section {
  border-top: 1px solid var(--border);
}

main > section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 62px;
  bottom: 1px;
  width: 120px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(233, 78, 119, 0.45), transparent);
}

main > section > h3 {
  margin-top: 1.5em;
  padding-left: 14px;
  border-left: 4px solid var(--peach-300);
  color: var(--text);
}

/* ============ Hero ============ */
#hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding-top: 34px;
  padding-bottom: 54px;
  border-top: 0 !important;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0 -20px auto -20px;
  height: 100%;
  z-index: -1;
  background: var(--grad-hero);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  opacity: 0.9;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-brd);
  min-height: 220px;
}

.hero-slider .slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s var(--ease), transform 1.2s var(--ease);
  pointer-events: none;
}

.hero-slider .slide:first-child {
  position: relative;
}

.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slider .slide svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.hero-slider .slide svg text {
  font-family: var(--font);
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.hero-text h1 {
  margin-bottom: 0.55em;
  background: linear-gradient(115deg, var(--ink-900), var(--peach-600) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html[data-theme="dark"] .hero-text h1 {
  background: linear-gradient(115deg, #ffffff, #ffb3c9 55%, #d3a8f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 30px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 10px 26px rgba(233, 78, 119, 0.38);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(233, 78, 119, 0.46);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-secondary {
  color: var(--peach-600);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--peach-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--bg-elev);
}

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

.hero-stats > div {
  padding: 16px 14px;
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hero-stats > div:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.hero-stats dt {
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.hero-stats dd {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-stats .num {
  display: inline;
}

/* ============ Cards / Lists ============ */
#products ul,
#solutions ul,
#howto ul,
#howto ol,
#knowledge ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  display: grid;
  gap: 12px;
}

#products ul li,
#howto ul li,
#knowledge ul li {
  position: relative;
  padding: 14px 18px 14px 44px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products ul li::before,
#howto ul li::before,
#knowledge ul li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(233, 78, 119, 0.14);
}

#products ul li:hover,
#howto ul li:hover,
#knowledge ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--peach-200);
}

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 62px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  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: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 6px 16px rgba(233, 78, 119, 0.32);
}

#howto ol li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--peach-200);
}

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

.news-list li {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  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);
}

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

.news-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--peach-200);
}

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

.news-list h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
  border: 0;
  padding: 0;
}

.news-list p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-soft);
}

.news-list time {
  display: inline-block;
  margin-right: 10px;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--peach-600);
  background: rgba(233, 78, 119, 0.1);
  font-weight: 600;
}

/* ============ Articles ============ */
#articles > article {
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles > article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--peach-200);
}

#articles > article h3 {
  margin: 0 0 6px;
  border: 0;
  padding: 0;
  font-size: 1.1rem;
  transition: color 0.25s var(--ease);
}

#articles > article:hover h3 {
  color: var(--peach-600);
}

#articles > article p {
  margin: 0 0 8px;
  font-size: 0.94rem;
}

#articles > article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--peach-600);
  padding: 4px 2px;
  position: relative;
}

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

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

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

#faq details:hover {
  border-color: var(--peach-200);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: var(--peach-300);
  box-shadow: var(--shadow-md);
}

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

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--peach-600);
  background: rgba(233, 78, 119, 0.1);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

#faq details[open] summary {
  color: var(--peach-600);
  background: rgba(233, 78, 119, 0.06);
}

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

#faq details p {
  margin: 0;
  padding: 4px 20px 20px;
  font-size: 0.94rem;
  color: var(--text-soft);
  animation: fadeSlide 0.4s var(--ease);
}

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

/* ============ Contact ============ */
#contact address ul {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 22px 24px;
  display: grid;
  gap: 10px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-md);
}

#contact address li {
  margin: 0;
  padding-left: 26px;
  position: relative;
  color: var(--text-soft);
  font-size: 0.95rem;
}

#contact address li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: rotate(45deg);
}

#contact address a {
  word-break: break-all;
  font-weight: 600;
}

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

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

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

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(233, 78, 119, 0.34);
}

/* ============ Footer ============ */
#site-footer {
  margin-top: 30px;
  background: linear-gradient(180deg, rgba(233, 78, 119, 0.06), transparent 40%), var(--bg-elev);
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 20px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
}

.footer-brand p,
.footer-meta p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.footer-brand strong {
  font-size: 1.05rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-meta a {
  color: var(--peach-600);
  font-weight: 600;
  padding: 0 2px;
}

.footer-meta a:hover {
  color: var(--peach-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

#site-footer > section h3 {
  font-size: 0.98rem;
  margin: 0 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--peach-400);
}

#site-footer > section p {
  font-size: 0.86rem;
  color: var(--text-mute);
  margin: 0;
  line-height: 1.75;
}

#privacy,
#disclaimer {
  padding-top: 6px;
}

#privacy {
  border-top: 1px dashed var(--border);
  padding-top: 22px;
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--peach-600);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  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), background 0.3s var(--ease), color 0.3s var(--ease);
}

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

#back-to-top:hover {
  background: var(--grad-brand);
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 30px rgba(233, 78, 119, 0.42);
}

/* ============ Scroll reveal ============ */
.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);
}

@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .header-inner {
    gap: 12px;
  }
  .main-nav a {
    padding: 6px 9px;
    font-size: 0.85rem;
  }
  .site-search input[type="search"] {
    width: 132px;
  }
  #hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-slider {
    min-height: 200px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }
  .header-inner {
    padding: 8px 16px;
  }
  .brand-slogan {
    display: none;
  }
  .main-nav {
    order: 3;
    flex-basis: 100%;
    display: none;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
    animation: fadeSlide 0.35s var(--ease);
  }
  .main-nav.is-open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }
  .main-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
  }
  .main-nav a::after {
    display: none;
  }
  #menu-toggle {
    display: inline-block;
  }
  .header-tools {
    gap: 8px;
  }
  .site-search {
    flex: 1 1 140px;
    min-width: 0;
  }
  .site-search input[type="search"] {
    width: 100%;
    min-width: 0;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  main > section {
    padding: 34px 16px;
  }
  .breadcrumb {
    padding: 12px 16px 0;
  }
  #hero {
    padding-top: 24px;
    padding-bottom: 40px;
  }
  #hero::before {
    inset: 0 -16px auto -16px;
  }
  .hero-slider {
    border-radius: var(--radius);
    min-height: 160px;
  }
  .hero-slider .slide svg {
    border-radius: var(--radius);
  }
  .hero-actions {
    gap: 10px;
  }
  .btn-primary,
  .btn-secondary {
    flex: 1 1 auto;
    padding: 11px 18px;
    font-size: 0.92rem;
  }
  .hero-stats {
    gap: 10px;
  }
  .hero-stats > div {
    padding: 12px 10px;
  }
  .hero-stats dd {
    font-size: 1.12rem;
  }
  .hero-stats dt {
    font-size: 0.72rem;
  }
  #products ul li,
  #howto ul li,
  #knowledge ul li {
    padding: 12px 14px 12px 38px;
  }
  #products ul li::before,
  #howto ul li::before,
  #knowledge ul li::before {
    left: 15px;
    top: 19px;
  }
  #howto ol li {
    padding: 14px 14px 14px 54px;
  }
  #howto ol li::before {
    left: 12px;
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }
  .news-list li,
  #articles > article,
  #contact address ul {
    padding: 16px 16px;
  }
  #articles > article {
    padding: 18px 18px;
  }
  #faq summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.94rem;
  }
  #faq details p {
    padding: 2px 16px 16px;
  }
  #contact address ul {
    padding: 18px 16px;
  }
  #sitemap a,
  #links a {
    padding: 7px 14px;
    font-size: 0.85rem;
  }
  .footer-inner {
    padding: 32px 16px 18px;
  }
  #site-footer > section {
    padding: 0 16px 22px;
  }
  #back-to-top {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    font-size: 0.66rem;
  }
}

@media (max-width: 400px) {
  .brand-name {
    font-size: 1.05rem;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .header-tools {
    flex-wrap: wrap;
  }
  #theme-toggle,
  #menu-toggle {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
}

@media (hover: none) {
  .news-list li:hover,
  #articles > article:hover,
  #products ul li:hover,
  #howto ul li:hover,
  #knowledge ul li:hover,
  #howto ol li:hover,
  .hero-stats > div:hover {
    transform: none;
  }
}