:root {
  --peach-50: #fff5f8;
  --peach-100: #ffe4ee;
  --peach-200: #ffd0e0;
  --peach-300: #ffb3cd;
  --peach-400: #ff8fb1;
  --peach-500: #ff6b97;
  --peach-600: #f24d80;
  --peach-700: #d63a6b;
  --ink-900: #2b1f26;
  --ink-800: #3a2a33;
  --ink-700: #4d3944;
  --ink-600: #6b525e;
  --ink-500: #8a6f7c;
  --ink-400: #a8929d;
  --ink-300: #c9b8c0;
  --ink-200: #e5dbe0;
  --ink-100: #f4eef1;
  --ink-50: #fbf7f9;
  --white: #ffffff;
  --bg: #fdf6f9;
  --bg-soft: #fff0f6;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --border: rgba(255, 143, 177, 0.22);
  --border-soft: rgba(43, 31, 38, 0.08);
  --text: #3a2a33;
  --text-soft: #6b525e;
  --text-mute: #8a6f7c;
  --shadow-sm: 0 2px 8px rgba(214, 58, 107, 0.06);
  --shadow-md: 0 8px 24px rgba(214, 58, 107, 0.10);
  --shadow-lg: 0 18px 48px rgba(214, 58, 107, 0.16);
  --shadow-glow: 0 0 0 4px rgba(255, 143, 177, 0.18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --grad-hero: linear-gradient(135deg, #ffd6e7 0%, #ffb3cd 35%, #ff8fb1 70%, #ff6b97 100%);
  --grad-soft: linear-gradient(135deg, #fff5f8 0%, #ffe4ee 100%);
  --grad-accent: linear-gradient(120deg, #ff8fb1 0%, #ff6b97 50%, #f24d80 100%);
  --grad-glass: linear-gradient(135deg, rgba(255,255,255,0.65), rgba(255,255,255,0.35));
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1218;
    --bg-soft: #221820;
    --card: rgba(46, 33, 42, 0.62);
    --card-solid: #2a1e26;
    --border: rgba(255, 143, 177, 0.20);
    --border-soft: rgba(255, 255, 255, 0.08);
    --text: #f4eaf0;
    --text-soft: #cbb6c2;
    --text-mute: #a2899a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.40);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 0 4px rgba(255, 143, 177, 0.22);
    --grad-hero: linear-gradient(135deg, #3a2430 0%, #4a2a3a 35%, #5c3044 70%, #6e3650 100%);
    --grad-soft: linear-gradient(135deg, #221820 0%, #2a1e26 100%);
    --grad-glass: linear-gradient(135deg, rgba(46,33,42,0.70), rgba(46,33,42,0.40));
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 143, 177, 0.16), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 208, 224, 0.20), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 179, 205, 0.12), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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-700);
}

@media (prefers-color-scheme: dark) {
  a { color: var(--peach-300); }
  a:hover { color: var(--peach-200); }
}

ul,
ol {
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.35em;
}

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

h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  margin: 0 0 0.7em;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(255, 107, 151, 0.45);
}

h3 {
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  margin: 1.6em 0 0.5em;
  color: var(--ink-700);
}

@media (prefers-color-scheme: dark) {
  h3 { color: var(--peach-200); }
}

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

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.3em;
  border-left: 4px solid var(--peach-400);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--grad-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

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

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: var(--header-h);
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(214, 58, 107, 0.06);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

@media (prefers-color-scheme: dark) {
  header {
    background: rgba(34, 24, 32, 0.68);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  }
}

header > a[aria-label] {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-bounce), filter 0.3s var(--ease);
}

header > a[aria-label]:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 6px 14px rgba(255, 107, 151, 0.35));
}

header > a[aria-label] svg {
  width: 120px;
  height: 40px;
}

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

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease-bounce);
}

header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

header nav a:hover {
  color: var(--peach-600);
  background: rgba(255, 143, 177, 0.12);
  transform: translateY(-2px);
}

header nav a:hover::after {
  width: 60%;
}

@media (prefers-color-scheme: dark) {
  header nav a:hover { color: var(--peach-200); background: rgba(255, 143, 177, 0.16); }
}

/* ============ MAIN ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px) 64px;
}

main > nav[aria-label="面包屑导航"] {
  margin-bottom: 24px;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 18px;
  list-style: none;
  font-size: 0.86rem;
  border-radius: var(--radius-pill);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

main > nav[aria-label="面包屑导航"] li {
  margin: 0;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
}

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

/* ============ SECTIONS ============ */
main > section {
  position: relative;
  margin-bottom: clamp(28px, 5vw, 56px);
  padding: clamp(22px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--card);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  animation: fadeUp 0.8s var(--ease) both;
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 143, 177, 0.45), transparent 40%, rgba(255, 107, 151, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

main > section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 143, 177, 0.4);
}

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

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 151, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(255, 107, 151, 0); }
}

/* ============ HERO ============ */
main > section[aria-labelledby="hero-title"] {
  background: var(--grad-hero);
  border: none;
  color: #fff;
  text-align: center;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 56px);
  box-shadow: 0 24px 60px rgba(255, 107, 151, 0.28);
}

main > section[aria-labelledby="hero-title"]::before {
  display: none;
}

main > section[aria-labelledby="hero-title"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.30), transparent 50%);
  pointer-events: none;
}

main > section[aria-labelledby="hero-title"] h1 {
  color: #fff;
  text-shadow: 0 4px 24px rgba(214, 58, 107, 0.35);
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s var(--ease) both;
}

main > section[aria-labelledby="hero-title"] p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(214, 58, 107, 0.25);
}

main > section[aria-labelledby="hero-title"] figure {
  margin: 32px auto 28px;
  max-width: 760px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(214, 58, 107, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

main > section[aria-labelledby="hero-title"] figure:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 56px rgba(214, 58, 107, 0.35);
}

main > section[aria-labelledby="hero-title"] figcaption {
  padding: 12px;
  font-size: 0.86rem;
  color: var(--peach-700);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

main > section[aria-labelledby="hero-title"] > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

main > section[aria-labelledby="hero-title"] > div p {
  margin: 0;
  padding: 16px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--peach-700);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(214, 58, 107, 0.12);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

main > section[aria-labelledby="hero-title"] > div p:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 32px rgba(214, 58, 107, 0.22);
  background: rgba(255, 255, 255, 0.9);
}

main > section[aria-labelledby="hero-title"] > div span[data-count] {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--peach-600);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* ============ PRODUCTS / SOLUTIONS / CASES CARDS ============ */
main > section[aria-labelledby="products-title"] h3,
main > section[aria-labelledby="solutions-title"] h3,
main > section[aria-labelledby="cases-title"] h3 {
  padding: 14px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grad-soft);
  border-left: 4px solid var(--peach-400);
  margin-top: 1.4em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

main > section[aria-labelledby="products-title"] h3:hover,
main > section[aria-labelledby="solutions-title"] h3:hover,
main > section[aria-labelledby="cases-title"] h3:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

/* ============ NEWS ============ */
main > section[aria-labelledby="news-title"] h3 {
  margin-bottom: 0.2em;
}

main > section[aria-labelledby="news-title"] p {
  margin-bottom: 0.4em;
}

main > section[aria-labelledby="news-title"] p:first-of-type {
  display: inline-block;
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 143, 177, 0.16);
  color: var(--peach-600);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.6em;
}

/* ============ ARTICLES ============ */
main > section[aria-labelledby="articles-title"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}

main > section[aria-labelledby="articles-title"] h2 {
  grid-column: 1 / -1;
}

main > section[aria-labelledby="articles-title"] article {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--card-solid);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

main > section[aria-labelledby="articles-title"] article::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

main > section[aria-labelledby="articles-title"] article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 143, 177, 0.4);
}

main > section[aria-labelledby="articles-title"] article:hover::after {
  transform: scaleX(1);
}

main > section[aria-labelledby="articles-title"] article h3 {
  margin: 0 0 0.5em;
  font-size: 1.05rem;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

main > section[aria-labelledby="articles-title"] article:hover h3 {
  color: var(--peach-600);
}

main > section[aria-labelledby="articles-title"] article p:first-of-type {
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-bottom: 0.6em;
  font-weight: 600;
}

main > section[aria-labelledby="articles-title"] article p {
  flex: 1;
  font-size: 0.92rem;
}

main > section[aria-labelledby="articles-title"] article a {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(255, 107, 151, 0.28);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

main > section[aria-labelledby="articles-title"] article a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

main > section[aria-labelledby="articles-title"] article a:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(255, 107, 151, 0.42);
  filter: saturate(1.15);
}

main > section[aria-labelledby="articles-title"] article a:hover::after {
  transform: translateX(4px);
}

/* ============ FAQ ============ */
main > section[aria-labelledby="faq-title"] details {
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--card-solid);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

main > section[aria-labelledby="faq-title"] details:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 143, 177, 0.4);
  transform: translateY(-2px);
}

main > section[aria-labelledby="faq-title"] details[open] {
  border-color: rgba(255, 143, 177, 0.55);
  box-shadow: var(--shadow-md);
}

main > section[aria-labelledby="faq-title"] summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  user-select: none;
}

main > section[aria-labelledby="faq-title"] summary::-webkit-details-marker {
  display: none;
}

main > section[aria-labelledby="faq-title"] 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%;
  background: var(--grad-accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.35s var(--ease-bounce), background 0.3s var(--ease);
}

main > section[aria-labelledby="faq-title"] details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

main > section[aria-labelledby="faq-title"] summary:hover {
  background: rgba(255, 143, 177, 0.08);
  color: var(--peach-600);
}

main > section[aria-labelledby="faq-title"] details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--text-soft);
  animation: fadeUp 0.4s var(--ease) both;
}

/* ============ HOWTO ============ */
main > section[aria-labelledby="howto-title"] ol {
  counter-reset: howto;
  list-style: none;
  padding-left: 0;
}

main > section[aria-labelledby="howto-title"] ol li {
  counter-increment: howto;
  position: relative;
  padding: 16px 18px 16px 64px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--card-solid);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

main > section[aria-labelledby="howto-title"] ol li::before {
  content: counter(howto);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 6px 14px rgba(255, 107, 151, 0.32);
  transition: transform 0.35s var(--ease-bounce);
}

main > section[aria-labelledby="howto-title"] ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 143, 177, 0.4);
}

main > section[aria-labelledby="howto-title"] ol li:hover::before {
  transform: translateY(-50%) scale(1.12);
}

/* ============ CONTACT ============ */
main > section[aria-labelledby="contact-title"] address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

main > section[aria-labelledby="contact-title"] address p {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--card-solid);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

main > section[aria-labelledby="contact-title"] address p:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 143, 177, 0.4);
}

/* ============ SITEMAP / LINKS ============ */
main > section[aria-labelledby="sitemap-title"] ul,
main > section[aria-labelledby="links-title"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

main > section[aria-labelledby="sitemap-title"] li,
main > section[aria-labelledby="links-title"] li {
  margin: 0;
}

main > section[aria-labelledby="sitemap-title"] a,
main > section[aria-labelledby="links-title"] a {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

main > section[aria-labelledby="sitemap-title"] a:hover,
main > section[aria-labelledby="links-title"] a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: var(--grad-accent);
  box-shadow: 0 10px 22px rgba(255, 107, 151, 0.32);
}

/* ============ FOOTER ============ */
footer {
  position: relative;
  margin-top: 24px;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 40px) 40px;
  background: linear-gradient(180deg, rgba(255, 240, 246, 0.5), rgba(255, 214, 231, 0.35));
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (prefers-color-scheme: dark) {
  footer {
    background: linear-gradient(180deg, rgba(34, 24, 32, 0.6), rgba(26, 18, 24, 0.8));
  }
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 24px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

footer h2 {
  font-size: 1.08rem;
  margin-bottom: 0.6em;
  padding-left: 14px;
}

footer h2::before {
  width: 5px;
}

footer p {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 0.6em;
}

footer > p {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

footer > p a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 26px rgba(255, 107, 151, 0.32);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease), filter 0.3s var(--ease);
}

footer > p a::before {
  content: "↑";
  font-size: 1rem;
  transition: transform 0.35s var(--ease-bounce);
}

footer > p a:hover {
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(255, 107, 151, 0.45);
  filter: saturate(1.15);
}

footer > p a:hover::before {
  transform: translateY(-3px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  header {
    justify-content: center;
  }

  header nav ul {
    justify-content: center;
  }

  main > section[aria-labelledby="articles-title"] {
    grid-template-columns: 1fr;
  }
}

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

  body {
    font-size: 15px;
  }

  header {
    padding: 10px 14px;
    gap: 10px;
  }

  header nav ul {
    gap: 2px;
  }

  header nav a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

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

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

  main > section[aria-labelledby="hero-title"] {
    padding: 28px 18px;
  }

  main > section[aria-labelledby="hero-title"] > div {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  main > section[aria-labelledby="hero-title"] > div span[data-count] {
    font-size: 1.35rem;
  }

  main > section[aria-labelledby="contact-title"] address {
    grid-template-columns: 1fr;
  }

  footer > section {
    padding: 18px 16px;
  }
}

@media (max-width: 380px) {
  main > section[aria-labelledby="hero-title"] > div {
    grid-template-columns: 1fr;
  }

  header nav a {
    padding: 5px 8px;
    font-size: 0.78rem;
  }
}

/* ============ MOTION SAFETY ============ */
@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;
  }
}

/* ============ SELECTION & SCROLLBAR ============ */
::selection {
  background: rgba(255, 143, 177, 0.35);
  color: var(--ink-900);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--peach-300), var(--peach-500));
  border: 2px solid var(--bg-soft);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--peach-400), var(--peach-600));
}

/* ============ FOCUS VISIBLE ============ */
a:focus-visible,
summary:focus-visible,
details:focus-visible {
  outline: 3px solid var(--peach-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}