:root {
  --brand: #FF8FAB;
  --brand-2: #FFB6C1;
  --brand-3: #FFD1DC;
  --accent: #7EC8E3;
  --accent-2: #B5EAD7;
  --text: #3A2E39;
  --text-soft: #6B5B6B;
  --text-mute: #9B8B9B;
  --bg: #FFF7FA;
  --bg-alt: #FFEFF5;
  --card: #FFFFFF;
  --card-glass: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 143, 171, 0.22);
  --shadow-sm: 0 2px 10px rgba(255, 143, 171, 0.10);
  --shadow-md: 0 8px 28px rgba(255, 143, 171, 0.16);
  --shadow-lg: 0 18px 48px rgba(255, 143, 171, 0.22);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --header-h: 68px;
  --grad-hero: linear-gradient(135deg, #FFD1DC 0%, #FFB6C1 35%, #C7E9F1 100%);
  --grad-btn: linear-gradient(135deg, #FF8FAB 0%, #FFA5C0 100%);
  --grad-soft: linear-gradient(135deg, #FFF0F5 0%, #F0F8FF 100%);
  --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", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #F3E8EE;
    --text-soft: #C9B8C4;
    --text-mute: #9A8896;
    --bg: #1A141C;
    --bg-alt: #221A26;
    --card: #261E2B;
    --card-glass: rgba(38, 30, 43, 0.72);
    --border: rgba(255, 143, 171, 0.24);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
    --grad-hero: linear-gradient(135deg, #3A2A38 0%, #4A3350 45%, #2C3A44 100%);
    --grad-soft: linear-gradient(135deg, #2A2130 0%, #232C36 100%);
  }
}

[data-theme="dark"] {
  --text: #F3E8EE;
  --text-soft: #C9B8C4;
  --text-mute: #9A8896;
  --bg: #1A141C;
  --bg-alt: #221A26;
  --card: #261E2B;
  --card-glass: rgba(38, 30, 43, 0.72);
  --border: rgba(255, 143, 171, 0.24);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
  --grad-hero: linear-gradient(135deg, #3A2A38 0%, #4A3350 45%, #2C3A44 100%);
  --grad-soft: linear-gradient(135deg, #2A2130 0%, #232C36 100%);
}

*,
*::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.8;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 143, 171, 0.14), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(126, 200, 227, 0.14), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(181, 234, 215, 0.12), transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 143, 171, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.6;
}

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

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

a:hover,
a:focus-visible {
  color: #E86A8E;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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.4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); }
h4 { font-size: 1.05rem; }

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

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

code, pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

::selection {
  background: rgba(255, 143, 171, 0.35);
  color: var(--text);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-alt);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

#siteHeader {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--card-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: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

#siteHeader.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1200px;
  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;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

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

.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 10px 24px rgba(255, 143, 171, 0.5);
}

.brand-text {
  font-size: 1.18rem;
  font-weight: 800;
  background: linear-gradient(120deg, #FF8FAB, #E86A8E 50%, #7EC8E3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

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

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

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  position: relative;
  text-decoration: none;
  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-btn);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand);
  background: rgba(255, 143, 171, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 60%;
}

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

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 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(--brand);
  box-shadow: 0 0 0 4px rgba(255, 143, 171, 0.18), var(--shadow-md);
  transform: translateY(-1px);
}

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

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

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

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

.site-search button:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 18px rgba(255, 143, 171, 0.4);
  filter: brightness(1.05);
}

.site-search button:active { transform: translateY(0) scale(0.98); }

.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text);
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-2px) rotate(12deg);
  box-shadow: var(--shadow-md);
  background: rgba(255, 143, 171, 0.16);
}

.theme-toggle:active,
.menu-toggle:active { transform: scale(0.94); }

.menu-toggle { display: none; }

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px 0;
}

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

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--brand-2);
  font-weight: 700;
}

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

#mainContent {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

section {
  margin: 0 0 34px;
  padding: 30px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #FF8FAB, #FFD1DC, #7EC8E3, #B5EAD7, #FF8FAB);
  background-size: 300% 100%;
  opacity: 0.85;
  animation: gradSlide 9s linear infinite;
}

@keyframes gradSlide {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

section:hover {
  box-shadow: var(--shadow-md);
}

section > h2:first-of-type,
section > h2 {
  position: relative;
  padding-left: 18px;
  margin-top: 0;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--grad-btn);
  box-shadow: 0 0 12px rgba(255, 143, 171, 0.5);
}

section h3 {
  margin-top: 1.6em;
  color: var(--text);
}

section h3::before {
  content: "🐾 ";
  font-size: 0.9em;
  opacity: 0.75;
}

section h4 {
  margin: 1.2em 0 0.4em;
  color: var(--brand);
  display: inline-block;
  padding: 2px 12px;
  background: rgba(255, 143, 171, 0.12);
  border-radius: var(--radius-pill);
}

section ul,
section ol {
  padding-left: 1.4em;
  margin: 0.6em 0 1.2em;
}

section li {
  margin-bottom: 0.5em;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

section li::marker {
  color: var(--brand);
  font-weight: 700;
}

section li:hover {
  transform: translateX(4px);
  color: var(--text);
}

#hero {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  margin-bottom: 34px;
}

#hero::before { display: none; }

.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 46px 40px 78px;
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: heroFlow 14s ease-in-out infinite;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

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

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.55), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(126, 200, 227, 0.35), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.hero-carousel::after {
  content: "🐱";
  position: absolute;
  right: 24px;
  top: 18px;
  font-size: 3.4rem;
  opacity: 0.28;
  transform: rotate(8deg);
  pointer-events: none;
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-12px); }
}

.slide {
  position: relative;
  animation: slideFade 0.6s var(--ease) both;
  max-width: 780px;
}

.slide[hidden] { display: none; }

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

.slide h1,
.slide h2 {
  color: #4A3350;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.5);
  margin-top: 0;
}

[data-theme="dark"] .slide h1,
[data-theme="dark"] .slide h2,
[data-theme="dark"] .slide p {
  color: #FBEAF1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.slide p {
  color: #5A4458;
  font-size: 1.02rem;
  max-width: 68ch;
}

[data-theme="dark"] .slide p { color: #E4D2DE; }

.hero-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #B84A6E;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  margin: 6px 0 18px;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .hero-tags {
  color: #FFC4D6;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta {
  display: inline-block;
  padding: 12px 28px;
  margin: 6px 10px 6px 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff !important;
  background: var(--grad-btn);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px rgba(255, 143, 171, 0.45);
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

.cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 34px rgba(255, 143, 171, 0.55);
  filter: brightness(1.04);
}

.cta:hover::after { left: 130%; }

.cta.ghost {
  color: #B84A6E !important;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .cta.ghost {
  color: #FFC4D6 !important;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.cta.ghost:hover {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .cta.ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.carousel-controls {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.carousel-prev,
.carousel-next {
  padding: 9px 20px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #B84A6E;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

[data-theme="dark"] .carousel-prev,
[data-theme="dark"] .carousel-next {
  color: #FFC4D6;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.carousel-prev:hover,
.carousel-next:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .carousel-prev:hover,
[data-theme="dark"] .carousel-next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-dots .dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), width 0.3s var(--ease);
}

.carousel-dots .dot:hover { transform: scale(1.25); background: rgba(255, 255, 255, 0.85); }

.carousel-dots .dot.is-active {
  width: 30px;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: -46px 26px 0;
  padding: 0;
}

.hero-stats > div {
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.hero-stats > div:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.hero-stats dt {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.hero-stats dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand);
}

.hero-stats .num {
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #FF8FAB, #E86A8E 60%, #7EC8E3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

blockquote {
  margin: 0 0 16px;
  padding: 20px 24px 20px 56px;
  position: relative;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand);
  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);
}

blockquote::before {
  content: "❝";
  position: absolute;
  left: 18px;
  top: 10px;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--brand-2);
  opacity: 0.7;
  font-family: Georgia, serif;
}

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

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

#news ul {
  list-style: none;
  padding-left: 0;
}

#news li {
  position: relative;
  padding: 12px 16px 12px 44px;
  margin-bottom: 10px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#news li::before {
  content: "📢";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.05rem;
}

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

#news time {
  font-weight: 800;
  color: var(--brand);
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}

#articles article {
  position: relative;
  padding: 24px 24px 20px;
  margin-bottom: 18px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--grad-btn);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

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

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

#articles article h3 {
  margin-top: 0;
  margin-bottom: 6px;
  transition: color 0.3s var(--ease);
}

#articles article:hover h3 { color: var(--brand); }

#articles article h3::before { content: "📖 "; }

#articles .meta {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

#articles .meta time {
  color: var(--brand);
  font-weight: 700;
}

#articles article > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 143, 171, 0.14);
  color: var(--brand);
  text-decoration: none !important;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

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

#articles article > p:last-child a:hover {
  background: var(--grad-btn);
  color: #fff;
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(255, 143, 171, 0.4);
}

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

#faq details {
  margin-bottom: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  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);
}

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

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

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

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

#faq summary::before {
  content: "❓";
  margin-right: 10px;
  font-size: 0.95rem;
}

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-btn);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

#faq summary:hover { color: var(--brand); background: rgba(255, 143, 171, 0.08); }

#faq details[open] summary {
  color: var(--brand);
  background: rgba(255, 143, 171, 0.1);
}

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

#faq details p {
  margin: 0;
  padding: 4px 24px 20px 20px;
  color: var(--text-soft);
  animation: slideFade 0.4s var(--ease) both;
}

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 58px;
  margin-bottom: 10px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-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: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-btn);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255, 143, 171, 0.4);
  transition: transform 0.35s var(--ease);
}

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

#howto ol li:hover::before { transform: translateY(-50%) scale(1.12) rotate(-8deg); }

#testimonials blockquote:nth-of-type(odd) {
  border-left-color: var(--accent);
}

#testimonials blockquote:nth-of-type(odd)::before { color: var(--accent); }

#sitemap nav ul,
#links ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

#sitemap nav a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

#sitemap nav a:hover,
#links a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: var(--grad-btn);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(255, 143, 171, 0.4);
  text-decoration: none;
}

#contact ul {
  list-style: none;
  padding-left: 0;
}

#contact li {
  position: relative;
  padding: 10px 16px 10px 40px;
  margin-bottom: 8px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#contact li::before {
  content: "💌";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
}

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

#siteFooter {
  position: relative;
  margin-top: 20px;
  padding: 48px 20px 24px;
  background: linear-gradient(180deg, rgba(255, 143, 171, 0.10), rgba(126, 200, 227, 0.08));
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}

#siteFooter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF8FAB, #FFD1DC, #7EC8E3, #B5EAD7, #FF8FAB);
  background-size: 300% 100%;
  animation: gradSlide 9s linear infinite;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-inner section {
  margin: 0;
  padding: 24px;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: visible;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.footer-inner section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.footer-inner h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
  padding-left: 14px;
  position: relative;
}

.footer-inner h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  border-radius: var(--radius-pill);
  background: var(--grad-btn);
}

.footer-inner p {
  font-size: 0.88rem;
  margin: 0 0 8px;
}

.footer-inner address {
  font-style: normal;
}

.footer-inner ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-inner ul li { margin-bottom: 8px; }

.footer-inner ul a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  position: relative;
  padding-left: 16px;
  text-decoration: none;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.footer-inner ul a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
  transition: transform 0.3s var(--ease);
}

.footer-inner ul a:hover {
  color: var(--brand);
  padding-left: 22px;
  text-decoration: none;
}

#siteFooter > section {
  max-width: 1200px;
  margin: 22px auto 0;
  padding: 22px 24px;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

#siteFooter > section::before { display: none; }

#siteFooter > section h2 {
  font-size: 0.98rem;
  margin: 0 0 8px;
  color: var(--brand);
  padding-left: 0;
}

#siteFooter > section h2::before { display: none; }

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

.footer-meta {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  text-align: center;
}

.footer-meta small {
  font-size: 0.78rem;
  color: var(--text-mute);
}

.footer-meta time { color: var(--brand); font-weight: 700; }

#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 52px;
  height: 52px;
  padding: 0;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  text-align: center;
  background: var(--grad-btn);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 143, 171, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

#backToTop:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 34px rgba(255, 143, 171, 0.6);
}

#backToTop:active { transform: translateY(0) scale(0.95); }

noscript p {
  margin: 0;
  padding: 14px 20px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #8A4A62;
  background: linear-gradient(135deg, #FFE3EC, #FFF0F5);
  border-bottom: 1px solid var(--border);
}

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

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

section,
#articles article,
#faq details,
blockquote,
.hero-stats > div {
  animation: riseIn 0.7s var(--ease) both;
}

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

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

@media (max-width: 1080px) {
  .site-search input[type="search"] { width: 120px; }
  .site-search input[type="search"]:focus { width: 150px; }
  .main-nav a { padding: 8px 9px; font-size: 0.86rem; }
}

@media (max-width: 920px) {
  .header-inner { flex-wrap: wrap; padding: 10px 16px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    order: 10;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), margin 0.35s var(--ease);
  }
  .main-nav.is-open {
    max-height: 520px;
    opacity: 1;
    margin-top: 10px;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: var(--card-glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }
  .main-nav a {
    display: block;
    padding: 11px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }
  .main-nav a::after { display: none; }
  .header-tools { margin-left: auto; }
  .site-search input[type="search"] { width: 110px; }
  .site-search input[type="search"]:focus { width: 140px; }
  .hero-carousel { padding: 34px 24px 76px; }
  .carousel-controls { left: 24px; right: 24px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin: -40px 16px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .header-inner { gap: 10px; }
  .brand-text { font-size: 1.05rem; }
  .brand-logo { width: 34px; height: 34px; }
  .site-search { padding-left: 10px; }
  .site-search input[type="search"] { width: 88px; font-size: 0.82rem; }
  .site-search input[type="search"]:focus { width: 110px; }
  .site-search button { padding: 7px 12px; font-size: 0.8rem; }
  .theme-toggle, .menu-toggle { width: 38px; height: 38px; font-size: 1rem; }
  .breadcrumb { padding: 12px 16px 0; }
  #mainContent { padding: 0 14px 44px; }
  section { padding: 22px 18px; border-radius: var(--radius); margin-bottom: 22px; }
  .hero-carousel { padding: 28px 18px 84px; border-radius: var(--radius); }
  .hero-carousel::after { font-size: 2.4rem; right: 14px; top: 12px; }
  .slide h1 { font-size: 1.4rem; }
  .slide p { font-size: 0.94rem; }
  .hero-tags { font-size: 0.78rem; padding: 7px 14px; }
  .cta { padding: 11px 20px; font-size: 0.88rem; margin-right: 8px; }
  .carousel-controls { left: 18px; right: 18px; bottom: 16px; gap: 8px; }
  .carousel-prev, .carousel-next { padding: 8px 14px; font-size: 0.78rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: -34px 8px 0; }
  .hero-stats > div { padding: 14px 10px; border-radius: var(--radius-sm); }
  .hero-stats .num { font-size: 1.3rem; }
  .hero-stats dt { font-size: 0.74rem; }
  .hero-stats dd { font-size: 0.95rem; }
  blockquote { padding: 16px 16px 16px 46px; }
  blockquote::before { left: 12px; font-size: 1.9rem; }
  #articles article { padding: 18px 16px 16px; }
  #faq summary { padding: 14px 46px 14px 16px; font-size: 0.92rem; }
  #faq summary::after { right: 14px; width: 22px; height: 22px; font-size: 1rem; }
  #faq details p { padding: 0 16px 16px; font-size: 0.9rem; }
  #howto ol li { padding: 11px 14px 11px 50px; }
  #howto ol li::before { left: 12px; width: 26px; height: 26px; font-size: 0.78rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner section { padding: 18px; }
  #siteFooter { padding: 34px 14px 20px; }
  #siteFooter > section { padding: 18px; }
  #backToTop { right: 16px; bottom: 16px; width: 46px; height: 46px; font-size: 0.66rem; }
}

@media (max-width: 380px) {
  .brand-text { display: none; }
  .site-search input[type="search"] { width: 70px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .carousel-prev, .carousel-next { padding: 7px 10px; font-size: 0.72rem; }
}

@media (hover: none) {
  .cta:hover,
  .main-nav a:hover,
  #sitemap nav a:hover,
  #links a:hover,
  #backToTop:hover {
    transform: none;
  }
}

@media print {
  #siteHeader,
  #backToTop,
  .carousel-controls,
  .header-tools,
  .site-search {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  a { color: #000; text-decoration: underline; }
}