:root {
  --brand: #8b3a3a;
  --brand-dark: #5e2626;
  --brand-light: #c96a6a;
  --brand-soft: #f7e9e4;
  --accent: #d4a24c;
  --accent-soft: #f6ecd8;
  --ink: #2b2b2b;
  --ink-soft: #4a3b3b;
  --muted: #6b6b6b;
  --bg: #fdfaf7;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --line: #eadfd7;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --shadow-sm: 0 2px 8px rgba(139, 58, 58, 0.06);
  --shadow-md: 0 10px 26px rgba(139, 58, 58, 0.12);
  --shadow-lg: 0 18px 44px rgba(94, 38, 38, 0.18);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 8% -6%, rgba(201, 106, 106, 0.14), transparent 60%),
    radial-gradient(50vw 50vw at 96% 4%, rgba(212, 162, 76, 0.12), transparent 62%),
    radial-gradient(70vw 70vw at 50% 108%, rgba(139, 58, 58, 0.08), transparent 60%);
}

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

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

::selection {
  background: rgba(201, 106, 106, 0.28);
  color: var(--brand-dark);
}

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

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

/* ============ Header ============ */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--brand-dark);
  text-decoration: none;
  flex-shrink: 0;
}

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

.logo svg {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(139, 58, 58, 0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 22px rgba(139, 58, 58, 0.36);
}

.nav nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav ul a {
  display: inline-block;
  color: var(--ink);
  font-size: 15px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav ul a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav ul a:hover {
  color: var(--brand);
  background: rgba(201, 106, 106, 0.1);
  text-decoration: none;
}

.nav ul a:hover::after {
  transform: scaleX(1);
}

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

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--glass-strong);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(201, 106, 106, 0.14);
}

.search-box input {
  border: 0;
  outline: 0;
  padding: 7px 14px;
  width: 138px;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
}

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

.search-box button {
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 7px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}

.search-box button:hover {
  filter: brightness(1.1);
  transform: translateX(1px);
}

.btn-ghost {
  border: 1px solid var(--brand);
  color: var(--brand);
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-ghost:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(139, 58, 58, 0.28);
}

.menu-toggle {
  display: none;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: filter 0.25s var(--ease);
}

.menu-toggle:hover {
  filter: brightness(1.1);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

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

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #fdf3ef 0%, #f7e9e4 42%, #f3dfd6 100%);
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: -1;
  animation: floatBlob 14s ease-in-out infinite;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, rgba(201, 106, 106, 0.55), transparent 68%);
}

.hero::after {
  width: 360px;
  height: 360px;
  bottom: -160px;
  left: -100px;
  background: radial-gradient(circle, rgba(212, 162, 76, 0.45), transparent 68%);
  animation-delay: -7s;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -22px, 0) scale(1.08);
  }
}

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

.hero h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.32;
  color: var(--brand-dark);
  margin-bottom: 18px;
  letter-spacing: 0.2px;
  background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 58%, var(--accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 62ch;
}

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

.btn-primary {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(139, 58, 58, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-primary::after {
  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(-18deg);
  transition: left 0.6s var(--ease);
}

.btn-primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(139, 58, 58, 0.38);
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  padding: 11px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-outline:hover {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
}

.stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.stat {
  flex: 1 1 120px;
  min-width: 110px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.stat b {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

.hero-art {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-art svg {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(-1.2deg);
  }
}

/* ============ Sections ============ */
section {
  padding: 60px 0;
  position: relative;
}

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

section.alt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50vw 40vw at 100% 0%, rgba(212, 162, 76, 0.06), transparent 60%),
    radial-gradient(40vw 40vw at 0% 100%, rgba(201, 106, 106, 0.06), transparent 60%);
}

section > .wrap {
  position: relative;
}

h2 {
  font-size: clamp(22px, 2.4vw, 27px);
  color: var(--brand-dark);
  margin-bottom: 10px;
  position: relative;
  padding-left: 16px;
  letter-spacing: 0.2px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  box-shadow: 0 0 12px rgba(139, 58, 58, 0.35);
}

h3 {
  font-size: 20px;
  color: var(--brand-dark);
  margin: 28px 0 10px;
  line-height: 1.5;
}

h4 {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 18px 0 8px;
  line-height: 1.5;
}

p {
  margin-bottom: 14px;
  color: #3d3d3d;
}

.sub {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 15px;
  max-width: 78ch;
}

/* ============ Grids & Cards ============ */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

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

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

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 106, 106, 0.4);
}

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

.card h3 {
  margin-top: 0;
}

.card p {
  font-size: 15px;
  color: #555;
  margin-bottom: 0;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  margin-bottom: 12px;
}

/* ============ Article List ============ */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.article-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.article-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 106, 106, 0.4);
}

.article-item h3 {
  font-size: 17px;
  margin: 6px 0 8px;
  line-height: 1.55;
  transition: color 0.3s var(--ease);
}

.article-item:hover h3 {
  color: var(--brand);
}

.article-item .meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.article-item p {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.article-item a.more {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s var(--ease);
}

.article-item a.more::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.article-item a.more:hover {
  text-decoration: none;
  gap: 8px;
}

.article-item a.more:hover::after {
  transform: translateX(3px);
}

/* ============ FAQ ============ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
  margin: 0;
}

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

.faq-q:hover {
  color: var(--brand);
  padding-left: 10px;
}

.faq-q .arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
  color: var(--brand);
  font-size: 12px;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
  color: #555;
  font-size: 15px;
}

.faq-item.open .faq-a {
  max-height: 720px;
  padding: 0 4px 18px;
}

.faq-a p {
  margin-bottom: 0;
  font-size: 15px;
  color: #555;
}

/* ============ Steps / HowTo ============ */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin-bottom: 8px;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 20px 20px 68px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.step:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 106, 106, 0.4);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 14px rgba(139, 58, 58, 0.3);
  transition: transform 0.35s var(--ease);
}

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

.step h4 {
  margin: 0 0 6px;
  color: var(--brand-dark);
}

.step p {
  font-size: 14px;
  margin: 0;
  color: #555;
}

/* ============ Reviews ============ */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.review::after {
  content: "”";
  position: absolute;
  top: 6px;
  right: 18px;
  font-size: 52px;
  line-height: 1;
  color: rgba(201, 106, 106, 0.16);
  font-family: Georgia, serif;
  pointer-events: none;
}

.review .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 6px 14px rgba(139, 58, 58, 0.24);
}

.review p {
  font-size: 14px;
  color: #555;
  margin-bottom: 0;
}

.review .name {
  font-weight: 600;
  color: var(--brand-dark);
  font-size: 14px;
  line-height: 1.4;
}

.review .role {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ============ Footer ============ */
footer.site {
  position: relative;
  background:
    linear-gradient(135deg, #2b1f1f 0%, #241a1a 60%, #1f1616 100%);
  color: #d9c9c9;
  padding: 52px 0 22px;
  margin-top: 24px;
  overflow: hidden;
}

footer.site::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40vw 30vw at 10% 0%, rgba(201, 106, 106, 0.18), transparent 60%),
    radial-gradient(40vw 30vw at 92% 100%, rgba(212, 162, 76, 0.12), transparent 60%);
}

footer.site .wrap {
  position: relative;
}

footer.site a {
  color: #e8d4d4;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

footer.site a:hover {
  color: #fff;
  text-decoration: none;
  padding-left: 4px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

footer h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 8px;
}

footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-light), var(--accent));
}

footer li {
  font-size: 13px;
  margin-bottom: 9px;
  color: #b9a5a5;
}

footer p {
  color: #b9a5a5;
}

.footer-bottom {
  border-top: 1px solid #463535;
  margin-top: 34px;
  padding-top: 18px;
  font-size: 13px;
  color: #a08d8d;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ Back to top ============ */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border: 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 200;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.back-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 32px rgba(139, 58, 58, 0.4);
  filter: brightness(1.08);
}

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

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

/* ============ Dark mode ============ */
body.dark {
  --ink: #ece2e2;
  --ink-soft: #d4c4c4;
  --muted: #a89a9a;
  --bg: #1c1717;
  --bg-alt: #211a1a;
  --card: #262020;
  --line: #3a2e2e;
  --glass: rgba(28, 23, 23, 0.78);
  --glass-strong: rgba(38, 32, 32, 0.9);
  --brand-soft: #3a2a2a;
  --accent-soft: #3a3222;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.55);
}

body.dark::before {
  background:
    radial-gradient(60vw 60vw at 8% -6%, rgba(201, 106, 106, 0.16), transparent 60%),
    radial-gradient(50vw 50vw at 96% 4%, rgba(212, 162, 76, 0.1), transparent 62%),
    radial-gradient(70vw 70vw at 50% 108%, rgba(139, 58, 58, 0.14), transparent 60%);
}

body.dark header.site {
  background: rgba(28, 23, 23, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

body.dark .nav ul a {
  color: var(--ink);
}

body.dark .nav ul a:hover {
  color: var(--brand-light);
  background: rgba(201, 106, 106, 0.14);
}

body.dark p {
  color: #cdbfbf;
}

body.dark .card p,
body.dark .article-item p,
body.dark .step p,
body.dark .review p,
body.dark .faq-a,
body.dark .faq-a p {
  color: #c2b2b2;
}

body.dark .hero {
  background: linear-gradient(135deg, #241c1c 0%, #2e2222 55%, #332626 100%);
}

body.dark .hero p.lead {
  color: #d4c4c4;
}

body.dark .hero h1 {
  background: linear-gradient(120deg, #f0d8d8 0%, #e0a8a8 58%, var(--accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

body.dark section.alt::before {
  background:
    radial-gradient(50vw 40vw at 100% 0%, rgba(212, 162, 76, 0.08), transparent 60%),
    radial-gradient(40vw 40vw at 0% 100%, rgba(201, 106, 106, 0.08), transparent 60%);
}

body.dark .card,
body.dark .article-item,
body.dark .step,
body.dark .review {
  background: var(--card);
}

body.dark .card:hover,
body.dark .article-item:hover,
body.dark .step:hover,
body.dark .review:hover {
  border-color: rgba(201, 106, 106, 0.5);
}

body.dark .search-box {
  background: var(--glass-strong);
}

body.dark .search-box input {
  color: #eee;
}

body.dark .btn-outline {
  background: rgba(255, 255, 255, 0.04);
}

body.dark .btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

body.dark .stat {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .faq-q {
  color: #e8d4d4;
}

body.dark .faq-q:hover {
  color: var(--brand-light);
}

body.dark .faq-q .arrow {
  background: rgba(201, 106, 106, 0.18);
  color: #e0b8b8;
}

body.dark .faq-item.open .faq-q .arrow {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}

body.dark .breadcrumb {
  background: rgba(28, 23, 23, 0.7);
}

body.dark .review::after {
  color: rgba(201, 106, 106, 0.22);
}

body.dark footer.site {
  background: linear-gradient(135deg, #171111 0%, #120d0d 60%, #0e0a0a 100%);
}

body.dark .article-item:hover h3 {
  color: var(--brand-light);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav nav {
    position: static;
  }

  .nav ul {
    gap: 2px;
  }

  .nav ul a {
    padding: 6px 9px;
    font-size: 14px;
  }

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

  .hero-grid {
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 26px;
  }
}

@media (max-width: 900px) {
  section {
    padding: 46px 0;
  }

  .hero {
    padding: 48px 0 44px;
  }

  .hero-grid,
  .grid3,
  .grid2,
  .article-list,
  .reviews {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .hero-art svg {
    max-width: 260px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav nav {
    order: 3;
    flex-basis: 100%;
  }

  .nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    gap: 4px;
    box-shadow: var(--shadow-md);
    animation: menuIn 0.3s var(--ease);
    z-index: 120;
  }

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

  .nav ul.open {
    display: flex;
  }

  .nav ul a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

  .nav ul a::after {
    display: none;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .step {
    padding: 18px 18px 18px 62px;
  }

  .step:hover {
    transform: translateY(-3px);
  }
}

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

  .wrap {
    padding: 0 16px;
  }

  .logo {
    font-size: 18px;
  }

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

  .tools {
    gap: 8px;
  }

  .search-box {
    display: none;
  }

  .btn-ghost {
    padding: 7px 12px;
    font-size: 13px;
  }

  .menu-toggle {
    padding: 7px 12px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p.lead {
    font-size: 15px;
  }

  .hero .cta {
    gap: 10px;
  }

  .btn-primary,
  .btn-outline {
    padding: 10px 20px;
    font-size: 14px;
  }

  .stats {
    gap: 10px;
  }

  .stat {
    flex: 1 1 45%;
    min-width: 0;
    padding: 12px 14px;
  }

  .stat b {
    font-size: 22px;
  }

  h2 {
    font-size: 21px;
  }

  h3 {
    font-size: 18px;
  }

  .card,
  .article-item,
  .review {
    padding: 18px;
  }

  .faq-q {
    font-size: 15px;
    padding: 16px 2px;
  }

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

  .reviews {
    gap: 16px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .back-top {
    right: 16px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .stat {
    flex: 1 1 100%;
  }

  .hero h1 {
    font-size: 22px;
  }
}

@media print {
  header.site,
  .back-top,
  .tools,
  .hero::before,
  .hero::after,
  footer.site {
    display: none !important;
  }

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}