:root {
  --bg: #f8fafc;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.9);
  --text: #0f172a;
  --text-soft: #1e293b;
  --muted: #475569;
  --muted-soft: #64748b;
  --primary: #0f172a;
  --accent: #e11d48;
  --accent-2: #7c3aed;
  --accent-3: #0ea5e9;
  --accent-soft: rgba(225, 29, 72, 0.12);
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 0 0 1px rgba(225, 29, 72, 0.18), 0 12px 32px rgba(225, 29, 72, 0.18);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 42%, #4c1d95 72%, #be123c 100%);
  --gradient-accent: linear-gradient(135deg, #e11d48 0%, #7c3aed 100%);
  --gradient-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.7) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(225, 29, 72, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  --max-width: 1200px;
  --blur: saturate(180%) blur(18px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 68px;
}

[data-theme="dark"] {
  --bg: #070b16;
  --bg-alt: #0b1120;
  --surface: #111a2e;
  --surface-glass: rgba(17, 26, 46, 0.66);
  --surface-glass-strong: rgba(17, 26, 46, 0.88);
  --text: #f1f5f9;
  --text-soft: #e2e8f0;
  --muted: #94a3b8;
  --muted-soft: #7c8aa3;
  --primary: #f8fafc;
  --accent: #fb7185;
  --accent-2: #a78bfa;
  --accent-3: #38bdf8;
  --accent-soft: rgba(251, 113, 133, 0.16);
  --border: #26334d;
  --border-strong: #334155;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(251, 113, 133, 0.25), 0 12px 32px rgba(251, 113, 133, 0.22);
  --gradient-hero: linear-gradient(135deg, #05070f 0%, #170f38 45%, #3b0764 75%, #831843 100%);
  --gradient-accent: linear-gradient(135deg, #fb7185 0%, #a78bfa 100%);
  --gradient-card: linear-gradient(160deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.7) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(251, 113, 133, 0.12) 0%, rgba(167, 139, 250, 0.12) 100%);
}

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

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(225, 29, 72, 0.10), transparent 60%),
    radial-gradient(800px 460px at 92% 4%, rgba(124, 58, 237, 0.10), transparent 62%),
    var(--bg);
  color: var(--text);
  line-height: 1.72;
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-theme="dark"] body {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(251, 113, 133, 0.14), transparent 60%),
    radial-gradient(800px 460px at 92% 4%, rgba(167, 139, 250, 0.14), transparent 62%),
    var(--bg);
}

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

a {
  color: inherit;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

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

p {
  color: var(--muted);
}

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

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.sticky-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.5), rgba(124, 58, 237, 0.5), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 10px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-bounce), opacity 0.3s var(--ease);
}

.logo:hover {
  transform: translateY(-1px) scale(1.02);
}

.logo svg {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-bounce);
}

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

.logo span {
  background: linear-gradient(120deg, var(--text) 0%, var(--accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
  outline: none;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 46%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 14px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.search-box input {
  border: none;
  background: transparent;
  padding: 6px 4px;
  color: var(--text);
  outline: none;
  width: 150px;
  font-size: 0.9rem;
}

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

.search-box button {
  background: var(--gradient-accent);
  border: none;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.search-box button:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.36);
  filter: brightness(1.06);
}

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

.theme-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease-bounce), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

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

.menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--surface-glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease), padding 0.3s var(--ease);
}

.mobile-menu.open {
  display: flex;
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  padding-left: 20px;
}

main.container {
  padding-top: 4px;
}

nav[aria-label="面包屑"] {
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

nav[aria-label="面包屑"] span {
  transition: color 0.25s var(--ease);
}

nav[aria-label="面包屑"] span:last-child {
  color: var(--accent);
  font-weight: 600;
}

.hero {
  position: relative;
  background: var(--gradient-hero);
  color: #fff;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  overflow: hidden;
  min-height: 340px;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 82% 18%, rgba(255, 255, 255, 0.16), transparent 62%),
    radial-gradient(500px 280px at 8% 92%, rgba(225, 29, 72, 0.35), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

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

.hero-slides {
  display: flex;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  padding: 56px 48px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  animation: heroFade 0.9s var(--ease) both;
}

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

.hero-slide h1 {
  font-size: clamp(1.7rem, 4vw, 2.85rem);
  margin-bottom: 14px;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  max-width: 18ch;
}

.hero-slide p {
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
  line-height: 1.75;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-accent);
  color: #fff;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  width: fit-content;
  box-shadow: 0 10px 26px rgba(225, 29, 72, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

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

.hero-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.5);
  filter: brightness(1.06);
}

.hero-cta:hover::before {
  left: 130%;
}

.hero-cta:active {
  transform: translateY(-1px) scale(0.99);
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease-bounce);
}

.hero-dots span:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.hero-dots span.active {
  width: 28px;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 40px 0;
  text-align: center;
  padding: 26px 18px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.stat-item {
  padding: 10px 8px;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-bounce), background 0.35s var(--ease);
}

.stat-item:hover {
  transform: translateY(-4px);
  background: var(--surface-glass);
}

.stat-number {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  font-size: 1.16rem;
  margin-bottom: 10px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.6);
  flex-shrink: 0;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.78;
}

.card p + p {
  margin-top: 12px;
}

.card ul {
  list-style: none;
  color: var(--muted);
}

.card ul li {
  padding: 5px 0;
}

.card ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.card ul li a::before {
  content: "›";
  color: var(--accent);
  font-weight: 700;
  opacity: 0.6;
  transition: transform 0.25s var(--ease);
}

.card ul li a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.card ul li a:hover::before {
  transform: translateX(2px);
}

.card ol {
  list-style: decimal;
  padding-left: 22px;
  color: var(--muted);
}

.card ol li {
  padding: 6px 0;
  padding-left: 4px;
}

.card ol li::marker {
  color: var(--accent);
  font-weight: 700;
}

.section-title {
  position: relative;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 56px 0 26px;
  padding-left: 20px;
  letter-spacing: -0.02em;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.25em;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.5);
}

.section-title::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -10px;
  width: 56px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
  opacity: 0.35;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 26px;
  max-width: 760px;
  font-size: 0.98rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.faq-item {
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.faq-item.open {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  background: var(--surface);
}

.faq-question {
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

.faq-item:hover .faq-question,
.faq-item.open .faq-question {
  color: var(--accent);
}

.faq-question span {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.35s var(--ease-bounce), background 0.3s var(--ease), color 0.3s var(--ease);
}

.faq-item.open .faq-question span {
  transform: rotate(180deg);
  background: var(--gradient-accent);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), padding 0.35s var(--ease), opacity 0.35s var(--ease);
  color: var(--muted);
  padding-top: 0;
  opacity: 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 420px;
  padding-top: 0;
  padding-bottom: 20px;
  opacity: 1;
}

.article-item {
  display: flex;
  gap: 18px;
  padding: 18px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.article-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.article-thumb {
  width: 124px;
  height: 86px;
  flex-shrink: 0;
  background: var(--gradient-accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.24);
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.article-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.article-item:hover .article-thumb {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.36);
}

.article-item:hover .article-thumb::after {
  transform: translateX(100%);
}

.article-info {
  flex: 1;
  min-width: 0;
}

.article-info h4 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

.article-item:hover .article-info h4 {
  color: var(--accent);
}

.article-meta {
  font-size: 0.82rem;
  color: var(--muted-soft);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.article-summary {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: gap 0.3s var(--ease), color 0.25s var(--ease);
}

.read-more:hover {
  gap: 10px;
  color: var(--accent-2);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(225, 29, 72, 0.42);
  z-index: 999;
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
}

.back-to-top.show {
  display: flex;
  animation: popIn 0.4s var(--ease-bounce) both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.55);
  filter: brightness(1.08);
}

.back-to-top:active {
  transform: scale(0.95);
}

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

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  position: relative;
  background: var(--surface-glass-strong);
  border-top: 1px solid var(--border);
  margin-top: 72px;
  padding: 48px 0 26px;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), var(--accent-3), transparent);
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 32px;
}

.footer-col h4 {
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--text);
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.copyright {
  text-align: center;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-soft);
  font-size: 0.85rem;
  line-height: 1.8;
}

.lazy-img {
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  opacity: 0;
}

.lazy-img.loaded {
  opacity: 1;
}

#howto .card {
  padding: 32px;
}

#howto .card h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

#howto .card h3:first-child {
  margin-top: 0;
}

#howto .card ol {
  margin: 10px 0 4px;
}

#howto .card ol li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

#howto .card ol li:last-child {
  border-bottom: none;
}

#contact .card p {
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}

#contact .card p:last-child {
  border-bottom: none;
}

#contact .card p strong {
  display: inline-block;
  min-width: 92px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (max-width: 1024px) {
  :root {
    --max-width: 100%;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 8px 9px;
    font-size: 0.9rem;
  }

  .search-box input {
    width: 120px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

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

  .hero-slide {
    padding: 44px 32px 68px;
  }

  .hero-slide h1 {
    max-width: 100%;
  }
}

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

  .container {
    padding: 0 16px;
  }

  .nav-bar {
    gap: 10px;
  }

  .logo {
    font-size: 1.18rem;
  }

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

  .search-box {
    padding-left: 10px;
  }

  .search-box input {
    width: 96px;
    font-size: 0.85rem;
  }

  .search-box button {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .theme-toggle,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 300px;
    border-radius: var(--radius);
    margin: 18px 0;
  }

  .hero-slide {
    padding: 34px 22px 62px;
  }

  .hero-slide h1 {
    font-size: clamp(1.4rem, 6vw, 1.9rem);
  }

  .hero-slide p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .hero-cta {
    padding: 11px 24px;
    font-size: 0.92rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 18px 12px;
    margin: 28px 0;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.82rem;
  }

  .section-title {
    margin: 42px 0 22px;
    padding-left: 16px;
  }

  .grid-2,
  .grid-3 {
    gap: 16px;
  }

  .card {
    padding: 20px;
    border-radius: var(--radius);
  }

  .article-item {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .article-thumb {
    width: 100%;
    height: 128px;
    font-size: 0.85rem;
  }

  .article-summary {
    -webkit-line-clamp: 4;
  }

  .faq-item {
    padding: 0 16px;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 16px 0;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .site-footer {
    margin-top: 48px;
    padding: 36px 0 20px;
  }

  .footer-grid {
    gap: 22px;
  }

  #howto .card {
    padding: 22px;
  }

  #contact .card p strong {
    min-width: 78px;
  }
}

@media (max-width: 480px) {
  .logo span {
    display: none;
  }

  .search-box input {
    width: 76px;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-slide h1 {
    font-size: 1.35rem;
  }

  .hero-slide p {
    font-size: 0.9rem;
  }

  .hero-dots span {
    width: 8px;
    height: 8px;
  }

  .hero-dots span.active {
    width: 22px;
  }
}

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

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .lazy-img {
    opacity: 1;
  }
}

@media print {
  .sticky-header,
  .back-to-top,
  .hero-dots,
  .mobile-menu,
  .search-box,
  .theme-toggle,
  .menu-toggle {
    display: none !important;
  }

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

  .card,
  .article-item,
  .faq-item {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}