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

:root {
  --brand: #c0392b;
  --brand-light: #e74c3c;
  --brand-dark: #96281b;
  --brand-soft: #fdf6f5;
  --accent: #ffd24d;
  --ink: #222;
  --ink-soft: #444;
  --ink-mute: #666;
  --ink-faint: #999;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: #eee;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --blur: saturate(160%) blur(14px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

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

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

ul,
ol {
  list-style: none;
}

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

/* ===== Header ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), box-shadow 0.3s var(--ease);
}

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

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

.logo:hover {
  text-decoration: none;
  color: var(--brand-dark);
}

.logo svg {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  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 16px rgba(192, 57, 43, 0.35);
}

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

nav.main-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 15px;
  padding: 4px 0;
  white-space: nowrap;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

nav.main-nav a:hover {
  color: var(--brand);
  text-decoration: none;
}

nav.main-nav a:hover::after {
  width: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.search-box input {
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 14px;
  width: 150px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), width 0.3s var(--ease);
}

.search-box input:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
  outline: none;
  width: 180px;
}

.search-box button {
  padding: 7px 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(192, 57, 43, 0.3);
  filter: brightness(1.05);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--brand);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.25s var(--ease);
}

.mobile-toggle:hover {
  background: var(--brand-soft);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 14px;
  color: var(--ink-faint);
  padding: 16px 20px;
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 45%, #ff7a5c 100%);
  color: #fff;
  padding: 72px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 210, 77, 0.35), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatBlob 14s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -8%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatBlob 18s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 26px) scale(1.08); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
}

.hero p {
  font-size: 17px;
  max-width: 840px;
  opacity: 0.96;
  margin-bottom: 0;
}

.hero .cta {
  margin-top: 28px;
  display: inline-block;
  background: #fff;
  color: var(--brand);
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.hero .cta:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  background: #fffaf5;
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 34px 0;
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  padding: 46px 34px 60px;
  color: #fff;
  position: relative;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.22), transparent 55%);
  pointer-events: none;
}

.carousel-slide:nth-child(1) {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.carousel-slide:nth-child(2) {
  background: linear-gradient(135deg, #8e44ad, #b06ab3);
}

.carousel-slide:nth-child(3) {
  background: linear-gradient(135deg, #16a085, #1abc9c);
}

.carousel-slide h3 {
  font-size: 23px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.carousel-slide p {
  font-size: 15.5px;
  opacity: 0.95;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  max-width: 760px;
}

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

.carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), width 0.3s var(--ease);
}

.carousel-dots span:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.15);
}

.carousel-dots span.active {
  background: #fff;
  width: 26px;
  border-radius: 6px;
}

/* ===== TOC ===== */
.toc {
  background: var(--brand-soft);
  border: 1px solid rgba(192, 57, 43, 0.15);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.toc h3 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--brand);
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.toc a {
  font-size: 14px;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.toc a:hover {
  text-decoration: none;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ===== Sections ===== */
section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-strong);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

section h2 {
  position: relative;
  font-size: 27px;
  color: var(--brand);
  margin-bottom: 22px;
  padding-left: 16px;
  line-height: 1.4;
}

section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-light));
}

section h3 {
  font-size: 20px;
  margin: 28px 0 12px;
  color: var(--ink);
  line-height: 1.5;
}

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

section p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  text-align: justify;
  word-break: break-word;
}

section ul,
section ol {
  margin-bottom: 14px;
}

section ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

section ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-light);
  opacity: 0.7;
}

/* ===== Grid & Cards ===== */
.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

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

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(192, 57, 43, 0.22);
}

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

.card h3 {
  margin-top: 0;
  font-size: 18px;
  color: var(--brand);
}

.card p {
  font-size: 15px;
  color: var(--ink-mute);
  margin-bottom: 0;
}

/* ===== Stats ===== */
.stat-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 26px 0;
}

.stat {
  text-align: center;
  min-width: 120px;
}

.stat .num {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

.stat .label {
  font-size: 14px;
  color: var(--ink-mute);
}

/* ===== Articles ===== */
.article-item {
  position: relative;
  border-bottom: 1px dashed var(--border-strong);
  padding: 20px 0;
  transition: padding-left 0.35s var(--ease), background 0.35s var(--ease);
}

.article-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-light));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.article-item:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, rgba(192, 57, 43, 0.04), transparent 70%);
}

.article-item:hover::before {
  opacity: 1;
}

.article-item h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}

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

.article-item .meta {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.article-item p {
  font-size: 15px;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.article-item p a {
  display: inline-block;
  font-weight: 600;
  transition: transform 0.25s var(--ease);
}

.article-item p a:hover {
  text-decoration: none;
  transform: translateX(4px);
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(192, 57, 43, 0.2);
}

.faq-q {
  padding: 15px 18px;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  user-select: none;
}

.faq-q:hover {
  background: rgba(192, 57, 43, 0.05);
  color: var(--brand);
}

.faq-q::after {
  content: "\25BC";
  font-size: 11px;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

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

.faq-a {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.75;
}

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

/* ===== Steps ===== */
.steps {
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 48px;
  margin-bottom: 18px;
  min-height: 34px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(192, 57, 43, 0.28);
  transition: transform 0.3s var(--ease);
}

.steps li:hover::before {
  transform: scale(1.1) rotate(-6deg);
}

.steps li strong {
  color: var(--brand);
}

/* ===== Testimonials ===== */
.testimonial {
  position: relative;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.testimonial p {
  margin-bottom: 10px;
  font-style: italic;
  color: var(--ink-soft);
}

.testimonial .who {
  font-size: 13px;
  color: var(--ink-faint);
  font-style: normal;
  text-align: right;
}

/* ===== Contact ===== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.contact-info div {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-info div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(192, 57, 43, 0.25);
}

.contact-info strong {
  color: var(--brand);
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

/* ===== Footer ===== */
footer.site-footer {
  position: relative;
  background: linear-gradient(160deg, #2c2c2c, #1a1a1a);
  color: #bbb;
  padding: 48px 0 22px;
  font-size: 14px;
  margin-top: 0;
}

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

footer.site-footer a:hover {
  color: var(--accent);
  text-decoration: none;
  padding-left: 4px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

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

.footer-grid 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-grid ul li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #aaa;
}

.copyright {
  border-top: 1px solid #444;
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #888;
  line-height: 1.9;
}

.copyright p {
  margin-bottom: 4px;
}

/* ===== Back To Top ===== */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 200;
  box-shadow: 0 6px 18px rgba(192, 57, 43, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.back-top.show {
  display: block;
  animation: popIn 0.35s var(--ease);
}

.back-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 26px rgba(192, 57, 43, 0.55);
}

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

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

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

/* ===== Dark Mode ===== */
body.dark {
  --ink: #e6e6e6;
  --ink-soft: #c8c8c8;
  --ink-mute: #a8a8a8;
  --ink-faint: #888;
  --bg: #161616;
  --bg-soft: #1e1e1e;
  --bg-card: rgba(40, 40, 40, 0.72);
  --bg-glass: rgba(24, 24, 24, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: #333;
  --brand-soft: #2a1c1b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  background: var(--bg);
  color: var(--ink);
}

body.dark header.site-header {
  background: var(--bg-glass);
  border-bottom-color: var(--border);
}

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

body.dark nav.main-nav a:hover {
  color: var(--brand-light);
}

body.dark nav.main-nav.open {
  background: #222;
}

body.dark .search-box input {
  background: #2a2a2a;
  border-color: #444;
  color: var(--ink);
}

body.dark section {
  background: var(--bg);
  border-color: var(--border-strong);
}

body.dark section p,
body.dark section ul li,
body.dark .card p,
body.dark .article-item p,
body.dark .faq-a,
body.dark .steps li {
  color: var(--ink-mute);
}

body.dark .card,
body.dark .faq-q,
body.dark .contact-info div,
body.dark .testimonial {
  background: var(--bg-card);
  border-color: var(--border);
}

body.dark .toc {
  background: var(--brand-soft);
  border-color: rgba(231, 76, 60, 0.25);
}

body.dark .toc a {
  background: rgba(255, 255, 255, 0.06);
  color: var(--brand-light);
}

body.dark .toc a:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.dark .faq-q {
  color: var(--ink);
}

body.dark .faq-q:hover {
  background: rgba(231, 76, 60, 0.12);
}

body.dark .article-item:hover {
  background: linear-gradient(90deg, rgba(231, 76, 60, 0.08), transparent 70%);
}

body.dark .article-item h3 {
  color: var(--ink);
}

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

body.dark .hero {
  background: linear-gradient(135deg, #8e2a20 0%, #b03a2e 45%, #d35400 100%);
}

body.dark footer.site-footer {
  background: linear-gradient(160deg, #111, #0a0a0a);
}

body.dark .mobile-toggle:hover {
  background: rgba(231, 76, 60, 0.15);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  nav.main-nav ul {
    gap: 16px;
  }

  nav.main-nav a {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  nav.main-nav {
    display: none;
  }

  nav.main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    box-shadow: var(--shadow-md);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.3s var(--ease);
  }

  nav.main-nav.open ul {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  nav.main-nav.open a {
    display: block;
    padding: 6px 0;
    font-size: 15px;
  }

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

  .mobile-toggle {
    display: block;
  }

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

  .search-box input:focus {
    width: 140px;
  }

  .hero {
    padding: 52px 0 46px;
  }

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

  .hero p {
    font-size: 15.5px;
  }

  section {
    padding: 44px 0;
  }

  section h2 {
    font-size: 23px;
  }

  section h3 {
    font-size: 18px;
  }

  .carousel-slide {
    padding: 36px 24px 54px;
  }

  .carousel-slide h3 {
    font-size: 20px;
  }

  .carousel-slide p {
    font-size: 14.5px;
  }

  .toc {
    padding: 18px 20px;
  }

  .toc ul {
    gap: 8px 14px;
  }
}

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

  .container {
    padding: 0 16px;
  }

  .nav-bar {
    padding: 10px 0;
    gap: 10px;
  }

  .logo {
    font-size: 17px;
  }

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

  .search-box input {
    width: 84px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .search-box input:focus {
    width: 104px;
  }

  .search-box button {
    padding: 6px 10px;
    font-size: 13px;
  }

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

  .hero p {
    font-size: 14.5px;
  }

  .hero .cta {
    padding: 10px 22px;
    font-size: 14px;
  }

  section h2 {
    font-size: 20px;
    padding-left: 13px;
  }

  section h2::before {
    width: 4px;
  }

  .card {
    padding: 20px;
  }

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

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

  .steps li {
    padding-left: 42px;
  }

  .steps li::before {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .testimonial:hover {
    transform: none;
  }

  .article-item:hover {
    padding-left: 0;
  }

  .article-item::before {
    display: none;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

/* ===== Print ===== */
@media print {
  header.site-header,
  footer.site-footer,
  .back-top,
  .search-box,
  .mobile-toggle,
  .carousel-dots,
  .hero .cta {
    display: none !important;
  }

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

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

  section {
    page-break-inside: avoid;
  }
}