:root {
  --brand: #1a1a2e;
  --brand-2: #16213e;
  --accent: #e94560;
  --accent-2: #0f3460;
  --accent-soft: rgba(233, 69, 96, 0.1);
  --accent-glow: rgba(233, 69, 96, 0.4);
  --bg: #ffffff;
  --bg-2: #f5f6fa;
  --bg-3: #eceff7;
  --text: #1f2430;
  --text-2: #5a6172;
  --text-3: #8a91a3;
  --border: #e3e6ee;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 2px 10px rgba(20, 25, 45, 0.06);
  --shadow: 0 4px 20px rgba(20, 25, 45, 0.08);
  --shadow-lg: 0 14px 40px rgba(20, 25, 45, 0.14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-brand: linear-gradient(135deg, #1a1a2e 0%, #0f3460 55%, #e94560 140%);
  --grad-accent: linear-gradient(135deg, #e94560 0%, #b8324a 100%);
  --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.14), rgba(15, 52, 96, 0.14));
}

html[data-theme="dark"] {
  --brand: #0d0d1a;
  --brand-2: #0a0f1c;
  --accent: #ff5c7a;
  --accent-2: #1f4a7a;
  --accent-soft: rgba(255, 92, 122, 0.12);
  --accent-glow: rgba(255, 92, 122, 0.45);
  --bg: #0f1117;
  --bg-2: #161a24;
  --bg-3: #1b202c;
  --text: #e8eaf0;
  --text-2: #9aa2b5;
  --text-3: #6d7488;
  --border: #262b38;
  --card: #161a24;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.6);
  --grad-brand: linear-gradient(135deg, #0d0d1a 0%, #14213a 55%, #ff5c7a 150%);
  --grad-accent: linear-gradient(135deg, #ff5c7a 0%, #c23a56 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 92, 122, 0.16), rgba(31, 74, 122, 0.16));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
      800px 400px at 100% -5%,
      var(--accent-soft),
      transparent 70%
    ),
    radial-gradient(600px 400px at -10% 30%, var(--grad-soft), transparent 70%);
  opacity: 0.7;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

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

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

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

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--brand) 88%, transparent);
  color: #fff;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  padding: 0;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.28);
  background: color-mix(in srgb, var(--brand) 96%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  color: #fff;
  transform: translateY(-1px);
}

.logo svg {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.logo span small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #b8c0d4;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  color: #d7dce8;
  font-size: 15px;
  padding: 4px 0;
  position: relative;
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right 0.3s var(--ease);
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a:hover::after {
  right: 0;
}

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.search-box:focus-within {
  background: var(--glass-strong);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: 130px;
  font-size: 14px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: #aab2c5;
}

.search-box button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.search-box button:hover {
  transform: scale(1.18);
}

.icon-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.icon-btn:hover {
  background: var(--accent);
  transform: translateY(-2px) rotate(8deg);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.icon-btn:active {
  transform: scale(0.94);
}

.menu-toggle {
  display: none;
}

.hero {
  background: var(--grad-brand);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(
    circle at 50% 40%,
    #000 20%,
    transparent 78%
  );
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(6px);
  animation: floatGlow 9s ease-in-out infinite;
  z-index: -1;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-24px, 22px) scale(1.08);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.3;
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, #fff 30%, #ffd7de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
  -webkit-text-fill-color: var(--accent);
  text-shadow: 0 0 26px var(--accent-glow);
}

.hero p {
  color: #d3d9e6;
  font-size: 17px;
  margin-bottom: 26px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease);
}

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

.btn:hover::after {
  left: 140%;
}

.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 6px 18px var(--accent-glow);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--accent-glow);
}

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  transform: translateY(-2px);
}

.hero-visual {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.hero-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

.hero-visual .slide {
  display: none;
  text-align: center;
}

.hero-visual .slide.active {
  display: block;
  animation: fadeIn 0.6s var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-visual .slide svg {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-visual .slide p {
  margin-top: 12px;
  color: #d3d9e6;
  font-size: 14px;
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.slide-dots button {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}

.slide-dots button:hover {
  background: rgba(255, 255, 255, 0.65);
}

.slide-dots button.active {
  background: var(--accent);
  width: 22px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.stats {
  background: var(--bg-2);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

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

.stat-item:hover {
  transform: translateY(-4px);
  background: var(--card);
  box-shadow: var(--shadow);
}

.stat-item .num {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.stat-item .label {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 4px;
}

.section {
  padding: 64px 0;
  position: relative;
}

.section.alt {
  background: var(--bg-2);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: clamp(23px, 2.6vw, 29px);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.3px;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--grad-accent);
  border-radius: 2px;
  margin: 12px auto 0;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.section-head p {
  color: var(--text-2);
  font-size: 16px;
}

.breadcrumb {
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.breadcrumb::-webkit-scrollbar {
  display: none;
}

.breadcrumb a {
  color: var(--text-2);
  transition: color 0.25s var(--ease);
}

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

.breadcrumb span {
  margin: 0 6px;
  color: var(--text-3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

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

.card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}

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

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

.card:hover::after {
  opacity: 1;
  transform: scale(1.2);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--accent-soft);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.card:hover .icon {
  transform: rotate(-8deg) scale(1.08);
  background: var(--grad-accent);
}

.card:hover .icon svg path,
.card:hover .icon svg rect,
.card:hover .icon svg circle {
  stroke: #fff;
  fill: #fff;
}

.card:hover .icon svg [fill="none"] {
  fill: none;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.card p {
  color: var(--text-2);
  font-size: 15px;
}

.prose {
  max-width: 900px;
  margin: 0 auto;
}

.prose h2 {
  font-size: clamp(21px, 2.4vw, 26px);
  margin: 44px 0 16px;
  padding-left: 14px;
  border-left: 5px solid var(--accent);
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 20px;
  margin: 30px 0 12px;
  color: var(--accent-2);
  letter-spacing: -0.1px;
}

html[data-theme="dark"] .prose h3 {
  color: var(--accent);
}

.prose h4 {
  font-size: 17px;
  margin: 22px 0 8px;
}

.prose p {
  margin-bottom: 16px;
  color: var(--text);
  text-align: justify;
  word-break: break-word;
}

.prose ul,
.prose ol {
  margin: 0 0 18px 22px;
  color: var(--text);
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--accent);
}

.prose blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-2);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  margin: 20px 0;
  position: relative;
}

.prose a {
  font-weight: 600;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.prose a:hover {
  border-bottom-color: var(--accent);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

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

.article-card .thumb {
  height: 150px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

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

.article-card:hover .thumb::before {
  transform: translateX(100%);
}

.article-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 120%,
    var(--accent-glow),
    transparent 60%
  );
  opacity: 0.8;
}

.article-card .body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card .meta {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.article-card .meta time {
  color: var(--accent);
  font-weight: 600;
}

.article-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.45;
  transition: color 0.25s var(--ease);
}

.article-card:hover h3 {
  color: var(--accent);
}

.article-card p {
  color: var(--text-2);
  font-size: 14.5px;
  flex: 1;
  margin-bottom: 16px;
}

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

.article-card:hover .read-more {
  gap: 9px;
  color: var(--accent);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

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

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  line-height: 1.5;
  transition: color 0.25s var(--ease);
}

.faq-q:hover {
  color: var(--accent);
}

.faq-q .arrow {
  transition: transform 0.35s var(--ease);
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 900px;
  padding-bottom: 20px;
}

.faq-a p {
  color: var(--text-2);
  font-size: 15px;
}

.howto {
  max-width: 900px;
  margin: 0 auto;
}

.howto-step {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.howto-step:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px var(--accent-glow);
  transition: transform 0.3s var(--ease);
}

.howto-step:hover .step-num {
  transform: scale(1.1) rotate(-8deg);
}

.howto-step h3 {
  font-size: 17px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.howto-step p {
  color: var(--text-2);
  font-size: 15px;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.testi:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testi .quote {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 18px;
  position: relative;
  padding-left: 18px;
  line-height: 1.7;
}

.testi .quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -6px;
  font-size: 32px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.testi .who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.testi .who .name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.testi .who .role {
  font-size: 12.5px;
  color: var(--text-2);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.info-table th,
.info-table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
}

.info-table th {
  background: var(--bg-2);
  font-weight: 600;
}

.info-table tr:hover td {
  background: var(--bg-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-info h3 {
  margin-bottom: 16px;
  font-size: 19px;
  color: var(--accent);
}

.contact-info p {
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: 15px;
}

.contact-info strong {
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--card);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-3);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  align-self: flex-start;
}

.site-footer {
  background: var(--brand);
  color: #c3c9d8;
  padding: 56px 0 24px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.footer-grid p,
.footer-grid li {
  color: #a6adc0;
  margin-bottom: 8px;
  list-style: none;
  line-height: 1.7;
}

.footer-grid a {
  color: #a6adc0;
  position: relative;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-grid a::before {
  content: "›";
  position: absolute;
  left: -10px;
  opacity: 0;
  transition: opacity 0.25s var(--ease), left 0.25s var(--ease);
  color: var(--accent);
}

.footer-grid a:hover {
  color: #fff;
  padding-left: 8px;
}

.footer-grid a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #8c93a8;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.footer-bottom a {
  color: #8c93a8;
}

.footer-bottom a:hover {
  color: #fff;
}

#backTop {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 8px 22px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease),
    transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  transform: translateY(14px) scale(0.9);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backTop.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

#backTop:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 30px var(--accent-glow);
}

#backTop:active {
  transform: scale(0.94);
}

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

.reveal.in {
  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;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    gap: 32px;
  }
  .main-nav {
    gap: 16px;
  }
  .main-nav a {
    font-size: 14px;
  }
  .card-grid {
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .hero {
    padding: 48px 0 44px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .card-grid,
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: color-mix(in srgb, var(--brand) 97%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 18px 20px;
    gap: 4px;
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    animation: navDrop 0.3s var(--ease);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    font-size: 15px;
  }
  .main-nav a::after {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .search-box input {
    width: 90px;
  }
  .section {
    padding: 52px 0;
  }
  .howto-step:hover {
    transform: none;
  }
}

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

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 38px 0 36px;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero p {
    font-size: 15.5px;
  }
  .hero-cta {
    gap: 10px;
  }
  .btn {
    padding: 11px 22px;
    font-size: 14px;
  }
  .card-grid,
  .testi-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-item .num {
    font-size: 26px;
  }
  .section {
    padding: 42px 0;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .prose h2 {
    margin: 34px 0 14px;
    padding-left: 12px;
    border-left-width: 4px;
  }
  .prose p {
    text-align: left;
  }
  .article-card .thumb {
    height: 120px;
  }
  .howto-step {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }
  .howto-step:hover {
    transform: none;
  }
  .contact-info,
  .contact-form {
    padding: 22px;
  }
  .faq-q {
    padding: 16px 18px;
    font-size: 15px;
  }
  .faq-a {
    padding: 0 18px;
  }
  .faq-item.open .faq-a {
    padding-bottom: 18px;
  }
  .search-box {
    display: none;
  }
  #backTop {
    right: 16px;
    bottom: 20px;
    width: 42px;
    height: 42px;
  }
  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 380px) {
  .logo {
    font-size: 17px;
  }
  .logo svg {
    width: 30px;
    height: 30px;
  }
  .hero h1 {
    font-size: 23px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .hero-visual,
  #backTop,
  .site-footer,
  .slide-dots,
  .contact-form {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .card,
  .article-card,
  .faq-item,
  .howto-step,
  .testi {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .faq-a {
    max-height: none !important;
    padding-bottom: 16px !important;
  }
  a {
    color: #000;
  }
}