:root {
  --brand: #ff6b9d;
  --brand-deep: #e05a86;
  --brand-soft: #ffb3cd;
  --brand-tint: #ffe3ee;
  --accent: #7e57c2;
  --accent-soft: #ede3ff;
  --blue: #5a86e0;
  --blue-soft: #e3f0ff;
  --gold: #ffb74d;
  --gold-soft: #fff3e0;
  --text: #2a2230;
  --text-soft: #5c5266;
  --text-mute: #8a7f95;
  --bg: #fff7fa;
  --bg-alt: #ffffff;
  --bg-soft: #fdf0f5;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --border: rgba(255, 107, 157, 0.18);
  --border-soft: rgba(42, 34, 48, 0.08);
  --shadow-sm: 0 2px 10px rgba(224, 90, 134, 0.08);
  --shadow-md: 0 10px 30px rgba(224, 90, 134, 0.14);
  --shadow-lg: 0 24px 60px rgba(224, 90, 134, 0.2);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --header-h: 68px;
  --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;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #ff85b0;
    --brand-deep: #ff6b9d;
    --brand-soft: #ff5c93;
    --brand-tint: #3a1f2c;
    --accent: #b39ddb;
    --accent-soft: #2a2340;
    --blue: #8fb8ff;
    --blue-soft: #1f2a40;
    --gold: #ffca7a;
    --gold-soft: #3a2f1f;
    --text: #f5eef2;
    --text-soft: #cfc2cc;
    --text-mute: #9d8fa8;
    --bg: #17121c;
    --bg-alt: #1e1824;
    --bg-soft: #221a29;
    --card: rgba(40, 30, 48, 0.62);
    --card-solid: #251d2d;
    --border: rgba(255, 133, 176, 0.22);
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

[data-theme="dark"] {
  --brand: #ff85b0;
  --brand-deep: #ff6b9d;
  --brand-soft: #ff5c93;
  --brand-tint: #3a1f2c;
  --accent: #b39ddb;
  --accent-soft: #2a2340;
  --blue: #8fb8ff;
  --blue-soft: #1f2a40;
  --gold: #ffca7a;
  --gold-soft: #3a2f1f;
  --text: #f5eef2;
  --text-soft: #cfc2cc;
  --text-mute: #9d8fa8;
  --bg: #17121c;
  --bg-alt: #1e1824;
  --bg-soft: #221a29;
  --card: rgba(40, 30, 48, 0.62);
  --card-solid: #251d2d;
  --border: rgba(255, 133, 176, 0.22);
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

*,
*::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: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 107, 157, 0.14), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(126, 87, 194, 0.12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(90, 134, 224, 0.1), transparent 55%);
  background-attachment: fixed;
  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-deep);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.2px;
}

h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  margin: 0 0 0.9em;
  position: relative;
  padding-left: 16px;
}

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(--accent));
}

h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  margin: 1.6em 0 0.6em;
}

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

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

time {
  color: var(--text-mute);
  font-size: 0.86rem;
}

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

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

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 247, 250, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.3s var(--ease), background 0.4s var(--ease);
}

[data-theme="dark"] .site-header {
  background: rgba(23, 18, 28, 0.72);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header {
    background: rgba(23, 18, 28, 0.72);
  }
}

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

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

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
  transition: transform 0.4s var(--ease);
}

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

.brand-name {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  background: linear-gradient(120deg, var(--brand-deep), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

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

.main-nav a:hover {
  color: var(--brand-deep);
  background: var(--brand-tint);
  transform: translateY(-2px);
}

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

.site-search {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 3px 3px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  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 4px rgba(255, 107, 157, 0.16);
}

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

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

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

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

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: linear-gradient(120deg, var(--brand), var(--accent));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding: 0 20px;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(125deg, #ff6b9d 0%, #ff8fb3 30%, #b39ddb 68%, #7e57c2 100%);
  background-size: 220% 220%;
  animation: heroFlow 16s ease infinite;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

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

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.35), transparent 38%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.22), transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.hero-slider::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.slide {
  position: relative;
  z-index: 1;
  display: none;
  padding: clamp(28px, 5vw, 64px) clamp(22px, 5vw, 60px);
  color: #fff;
  animation: slideIn 0.7s var(--ease);
}

.slide.is-active {
  display: block;
}

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

.slide h1,
.slide h2 {
  color: #fff;
  padding-left: 0;
  text-shadow: 0 2px 18px rgba(120, 40, 80, 0.28);
}

.slide h2::before {
  display: none;
}

.slide p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 760px;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.85;
  margin-bottom: 1.4em;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  margin: 6px 10px 6px 0;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  color: var(--brand-deep);
  background: #fff;
  box-shadow: 0 10px 24px rgba(120, 40, 80, 0.22);
}

.btn-primary:hover {
  color: var(--brand-deep);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(120, 40, 80, 0.3);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  color: var(--brand-deep);
  background: #fff;
  transform: translateY(-3px) scale(1.02);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.dot {
  width: 34px;
  height: 8px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  background: var(--border);
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}

.dot.is-active {
  width: 52px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.dot:hover {
  background: var(--brand-soft);
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 22px auto 0;
  padding: 0 20px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 10px 16px;
  font-size: 0.85rem;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

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

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

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

/* ============ ANCHOR NAV ============ */
.anchor-nav {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.anchor-nav h2 {
  font-size: 0.95rem;
  padding-left: 0;
  margin: 0 0 12px;
  color: var(--text-mute);
  letter-spacing: 1px;
}

.anchor-nav h2::before {
  display: none;
}

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

.anchor-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

.anchor-nav a:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============ STATS ============ */
.stats {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding: 0 20px;
}

.stats h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.stats ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 14px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.stats li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.stats .num {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--brand-deep), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats .label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-mute);
  font-weight: 600;
}

/* ============ GENERIC SECTION ============ */
main > section:not(.hero):not(.stats):not(.breadcrumb):not(.anchor-nav) {
  max-width: var(--maxw);
  margin: 30px auto 0;
  padding: clamp(22px, 3.6vw, 42px);
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

main > section:not(.hero):not(.stats):not(.breadcrumb):not(.anchor-nav):hover {
  box-shadow: var(--shadow-md);
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ============ PRODUCTS ============ */
.products {
  display: block;
}

.product-card {
  margin: 0 0 22px;
  padding: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.product-card h3 {
  margin-top: 0;
  color: var(--brand-deep);
}

.product-card figure {
  margin: 0 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--border-soft);
}

.product-card figure svg {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}

.product-card:hover figure svg {
  transform: scale(1.04);
}

.product-card figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-mute);
  text-align: center;
  border-top: 1px solid var(--border-soft);
}

/* products grid on wide screens */
@media (min-width: 900px) {
  .products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .products > h2,
  .products > p {
    grid-column: 1 / -1;
  }
  .product-card {
    margin: 0;
    display: flex;
    flex-direction: column;
  }
}

/* ============ ADVANTAGES / SOLUTIONS / APPLICATIONS / KNOWLEDGE ============ */
.advantages h3,
.solutions h3,
.applications h3,
.knowledge h3 {
  position: relative;
  padding-left: 18px;
}

.advantages h3::before,
.solutions h3::before,
.applications h3::before,
.knowledge h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  transform: rotate(45deg);
}

/* ============ CASES / REVIEWS / NEWS ============ */
.case-card,
.news-item {
  padding: 18px 20px;
  margin: 0 0 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-left-color 0.3s var(--ease);
}

.case-card:hover,
.news-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-left-color: var(--accent);
}

.case-card h3,
.news-item h3 {
  margin-top: 0;
}

.news-item time {
  display: inline-block;
  padding: 2px 10px;
  background: var(--brand-tint);
  color: var(--brand-deep);
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.reviews blockquote {
  position: relative;
  margin: 0 0 16px;
  padding: 18px 22px 18px 54px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.reviews blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 4px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reviews blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

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

/* ============ ARTICLES ============ */
.article-card {
  padding: 20px;
  margin: 0 0 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.article-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.article-card:hover::after {
  transform: scaleX(1);
}

.article-card h3 {
  margin-top: 0;
}

.article-card a {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-deep);
  transition: all 0.25s var(--ease);
}

.article-card a:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  transform: translateX(4px);
}

@media (min-width: 820px) {
  .articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .articles > h2 {
    grid-column: 1 / -1;
  }
  .article-card {
    margin: 0;
  }
}

/* ============ FAQ ============ */
.faq details {
  margin: 0 0 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq details[open] {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brand-deep);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq summary:hover {
  color: var(--brand-deep);
  background: var(--brand-tint);
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  animation: fadeDown 0.35s var(--ease);
}

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

/* ============ HOWTO ============ */
.howto ol,
.howto ul {
  padding-left: 1.3em;
}

.howto ol li,
.howto ul li {
  margin-bottom: 0.5em;
}

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

.howto ol li {
  position: relative;
  padding: 10px 14px 10px 46px;
  margin-bottom: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  counter-increment: step;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.howto ol li:hover {
  transform: translateX(4px);
  border-color: var(--border);
}

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

/* ============ CONTACT ============ */
.contact address {
  font-style: normal;
  padding: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

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

.contact address li {
  padding-left: 20px;
  position: relative;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.contact address li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

/* ============ SITEMAP / FRIENDLY LINKS ============ */
.sitemap ul,
.friendly-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap a,
.friendly-links a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

.sitemap a:hover,
.friendly-links a:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  border-color: transparent;
  transform: translateY(-2px);
}

/* ============ TEAM ============ */
.team p:last-child {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.84rem;
  color: var(--text-mute);
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
}

/* ============ FOOTER ============ */
.site-footer {
  margin-top: 40px;
  padding: 40px 20px 28px;
  background:
    linear-gradient(180deg, rgba(255, 107, 157, 0.06), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.footer-inner section h2 {
  font-size: 0.95rem;
  padding-left: 0;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: 0.4px;
}

.footer-inner section h2::before {
  display: none;
}

.footer-inner section p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-mute);
  margin: 0;
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px dashed var(--border-soft);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-mute);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--brand), var(--accent));
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s var(--ease), filter 0.3s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .main-nav a {
    padding: 8px 8px;
    font-size: 0.85rem;
  }
  .site-search input {
    width: 110px;
  }
}

@media (max-width: 900px) {
  .stats ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

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

  .main-nav {
    order: 3;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }

  .main-nav.is-open {
    max-height: 520px;
    overflow-y: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 4px;
  }

  .main-nav a {
    display: block;
    padding: 10px 14px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
  }

  .site-search {
    flex: 1;
    min-width: 0;
  }

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

  .header-tools {
    flex: 1;
    justify-content: flex-end;
  }

  .hero {
    margin-top: 18px;
    padding: 0 16px;
  }

  .breadcrumb,
  .anchor-nav,
  .stats {
    padding-left: 16px;
    padding-right: 16px;
  }

  main > section:not(.hero):not(.stats):not(.breadcrumb):not(.anchor-nav) {
    margin-left: 16px;
    margin-right: 16px;
    padding: 22px 18px;
    border-radius: var(--radius);
  }

  .slide {
    padding: 26px 20px;
  }

  .btn-primary,
  .btn-secondary {
    display: block;
    text-align: center;
    margin: 8px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

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

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

  .stats ul {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stats li {
    padding: 18px 10px;
  }

  .theme-toggle,
  .menu-toggle {
    padding: 8px 11px;
    font-size: 0.78rem;
  }

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

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

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

  .breadcrumb ol {
    font-size: 0.78rem;
    padding: 8px 12px;
  }
}

@media (hover: none) {
  .product-card:hover,
  .article-card:hover,
  .case-card:hover,
  .news-item:hover,
  .stats li:hover {
    transform: none;
  }
}