:root {
  --brand: #c62828;
  --brand-2: #8e0000;
  --brand-soft: #fdecea;
  --accent: #ffb300;
  --accent-soft: #fff8e1;
  --bg: #ffffff;
  --bg-alt: #faf7f4;
  --fg: #1f1f1f;
  --fg-soft: #444;
  --muted: #6b6560;
  --card: #ffffff;
  --card-soft: #faf7f4;
  --border: #e6e0da;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 8px rgba(60, 20, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(60, 20, 20, 0.09);
  --shadow-lg: 0 18px 44px rgba(60, 20, 20, 0.14);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 64px;
}

body.dark {
  --bg: #131313;
  --bg-alt: #1a1a1a;
  --fg: #ececec;
  --fg-soft: #d4d4d4;
  --muted: #a3a3a3;
  --card: #1d1d1d;
  --card-soft: #222222;
  --border: #2f2f2f;
  --brand-soft: #3a1a1a;
  --accent-soft: #2a2410;
  --glass: rgba(24, 24, 24, 0.68);
  --glass-border: rgba(255, 255, 255, 0.08);
  --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 18px 44px rgba(0, 0, 0, 0.6);
}

* {
  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%;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg);
  background: var(--bg);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

p {
  color: var(--fg-soft);
}

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

/* ============ Header ============ */
header.site {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow 0.3s var(--ease), background-color 0.35s var(--ease);
}

header.site.scrolled {
  box-shadow: var(--shadow-md);
}

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

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

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

.logo svg {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.32);
  transition: transform 0.45s var(--ease);
}

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

.nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
}

.nav ul a {
  position: relative;
  color: var(--fg);
  font-size: 15px;
  padding: 6px 0;
  display: inline-block;
}

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

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

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

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

.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.4;
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.btn:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(198, 40, 40, 0.38);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--card-soft);
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: none;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.search-box input {
  border: none;
  outline: none;
  padding: 8px 4px 8px 14px;
  font-size: 14px;
  font-family: inherit;
  width: 150px;
  background: transparent;
  color: var(--fg);
}

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

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

.search-box button:hover {
  filter: brightness(1.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 18px;
  line-height: 1;
  padding: 6px 10px;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.menu-toggle:hover {
  background: var(--card-soft);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 42%, #8e0000 100%);
  color: #fff;
  padding: 72px 0 84px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 179, 0, 0.28) 0%, transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(255, 255, 255, 0.14) 0%, transparent 45%);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 70px;
  background: var(--bg);
  clip-path: polygon(0 100%, 0 62%, 50% 100%, 100% 62%, 100% 100%);
  transition: background-color 0.35s var(--ease);
  z-index: -1;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 38px;
  line-height: 1.32;
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.hero h1 .kw {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero h1 .kw::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: rgba(255, 179, 0, 0.28);
  border-radius: 4px;
  z-index: -1;
}

.hero p.lead {
  font-size: 17px;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 26px;
}

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

.hero-actions .btn {
  background: linear-gradient(135deg, #ffc94d 0%, var(--accent) 100%);
  color: #3a2a00;
  box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4);
}

.hero-actions .btn:hover {
  color: #3a2a00;
  box-shadow: 0 10px 28px rgba(255, 179, 0, 0.55);
}

.hero-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-color: #fff;
}

.hero-deco {
  position: absolute;
  right: -60px;
  top: -50px;
  width: 440px;
  height: 440px;
  opacity: 0.16;
  z-index: 0;
  animation: spinSlow 60s linear infinite;
  pointer-events: none;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.stat {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
}

.stat .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat .lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
}

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

section.alt {
  background: var(--bg-alt);
  transition: background-color 0.35s var(--ease);
}

h2.sec-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  padding-left: 16px;
  letter-spacing: 0.4px;
  line-height: 1.4;
}

h2.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.sec-desc {
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 840px;
  font-size: 15.5px;
}

h3 {
  font-size: 20px;
  margin: 24px 0 10px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--fg);
}

h3:first-child {
  margin-top: 0;
}

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

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

.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

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

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.06), rgba(255, 179, 0, 0.06));
  opacity: 0;
  transition: opacity 0.32s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(198, 40, 40, 0.28);
}

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

.card > * {
  position: relative;
  z-index: 1;
}

.card h3,
.card h4 {
  margin-top: 0;
}

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

.icon-svg {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  transition: transform 0.4s var(--ease);
}

.card:hover .icon-svg {
  transform: scale(1.1) rotate(-5deg);
}

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

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

.grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.grid .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ============ Carousel ============ */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.slides {
  display: flex;
  transition: transform 0.6s var(--ease);
}

.slide {
  min-width: 100%;
  padding: 44px;
  display: flex;
  gap: 32px;
  align-items: center;
}

.slide .txt {
  flex: 1;
  min-width: 0;
}

.slide .txt h3 {
  font-size: 22px;
  margin-top: 0;
  color: var(--brand);
}

.slide .txt p {
  color: var(--muted);
  font-size: 15.5px;
}

.slide .art {
  flex: 0 0 220px;
}

.slide .art svg {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease);
}

.slide:hover .art svg {
  transform: scale(1.04);
}

.carousel-nav {
  position: absolute;
  bottom: 16px;
  right: 22px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.carousel-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--fg);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.carousel-nav button:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: scale(1.08);
}

.dots {
  position: absolute;
  bottom: 26px;
  left: 44px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

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

.dots span.active {
  width: 26px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* ============ Articles ============ */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.article-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

.article-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(198, 40, 40, 0.25);
}

.article-item:hover::after {
  transform: scaleY(1);
}

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

.article-item h3 {
  font-size: 18px;
  margin: 0 0 10px;
  line-height: 1.55;
  transition: color 0.25s var(--ease);
}

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

.article-item p {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.article-item .read {
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.article-item:hover .read {
  transform: translateX(4px);
}

/* ============ Tags ============ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tags a {
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.25s var(--ease);
}

.tags a:hover {
  color: #fff;
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

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

.faq-item:hover {
  border-color: rgba(198, 40, 40, 0.3);
}

.faq-item.open {
  border-color: rgba(198, 40, 40, 0.4);
  box-shadow: var(--shadow-sm);
}

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

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

.faq-q .arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.faq-item.open .faq-q .arrow {
  transform: rotate(45deg);
  background: var(--brand);
  color: #fff;
}

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

.faq-item.open .faq-a {
  max-height: 500px;
  padding-bottom: 18px;
}

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

.steps li {
  position: relative;
  padding: 18px 18px 18px 66px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--card);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.steps li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(198, 40, 40, 0.28);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.steps li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fg);
  font-size: 16px;
}

.steps li span {
  color: var(--muted);
  font-size: 15px;
}

/* ============ Info table ============ */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 0;
}

.info-table th,
.info-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table th {
  background: var(--card-soft);
  width: 180px;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
}

.info-table td {
  color: var(--muted);
}

.info-table tr {
  transition: background 0.25s var(--ease);
}

.info-table tbody tr:hover,
.info-table tr:hover {
  background: rgba(198, 40, 40, 0.03);
}

/* ============ Notice ============ */
.notice {
  position: relative;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: #5c4a00;
  margin: 18px 0;
  line-height: 1.8;
}

body.dark .notice {
  color: #e8d9a0;
}

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

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

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

.breadcrumb span {
  color: var(--brand);
  font-weight: 600;
}

/* ============ Author box ============ */
.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.author-box .av {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.25);
}

.author-box .info {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.author-box .info strong {
  color: var(--fg);
  font-size: 15px;
}

/* ============ TOC ============ */
.toc {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.toc h4 {
  margin-top: 0;
}

.toc ol {
  padding-left: 22px;
  color: var(--muted);
}

.toc ol li {
  margin: 6px 0;
}

.toc ol a {
  color: var(--fg);
}

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

/* ============ Footer ============ */
footer.site {
  position: relative;
  background: linear-gradient(180deg, #1c1c1c 0%, #141414 100%);
  color: #cfcfcf;
  padding: 56px 0 28px;
  font-size: 14px;
  line-height: 1.85;
}

footer.site::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
}

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

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

footer.site p {
  color: #b5b5b5;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.foot-grid h4 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 10px;
}

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

.foot-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.foot-grid ul a:hover {
  padding-left: 4px;
}

.foot-bottom {
  border-top: 1px solid #333;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #999;
  font-size: 13px;
}

/* ============ To top ============ */
#toTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: none;
  z-index: 150;
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#toTop.show {
  display: block;
  animation: fadeUp 0.35s var(--ease);
}

#toTop:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 28px rgba(198, 40, 40, 0.55);
}

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

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav ul { gap: 16px; }
  .nav ul a { font-size: 14px; }
  .search-box input { width: 120px; }
  .hero h1 { font-size: 32px; }
  .slide { padding: 34px; gap: 24px; }
  .slide .art { flex: 0 0 180px; }
}

@media (max-width: 960px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .slide { flex-direction: column; padding: 30px; text-align: left; }
  .slide .art { flex: 0 0 auto; width: 170px; }
  .dots { left: 30px; bottom: 22px; }
  .carousel-nav { right: 20px; bottom: 14px; }
  section { padding: 52px 0; }
}

@media (max-width: 860px) {
  .nav ul {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    gap: 6px;
    box-shadow: var(--shadow-md);
    animation: fadeUp 0.3s var(--ease);
  }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 10px 4px; font-size: 15px; border-bottom: 1px solid var(--border); }
  .nav ul li:last-child a { border-bottom: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .search-box { display: none; }
  .hero { padding: 52px 0 66px; }
  .hero h1 { font-size: 26px; line-height: 1.36; }
  .hero p.lead { font-size: 15.5px; }
  .hero-deco { width: 300px; height: 300px; right: -100px; top: -80px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
  .stat { padding: 16px 10px; }
  .stat .num { font-size: 24px; }
  .stat .lbl { font-size: 12px; }
  .g2, .g3, .g4, .article-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  h2.sec-title { font-size: 23px; padding-left: 14px; }
  section { padding: 44px 0; }
  .card { padding: 20px; }
  .article-item { padding: 18px; }
  .slide { padding: 24px 20px 70px; }
  .slide .txt h3 { font-size: 19px; }
  .dots { left: 20px; bottom: 24px; }
  .carousel-nav { right: 16px; bottom: 18px; }
  .info-table th { width: 110px; font-size: 14px; padding: 10px 12px; white-space: normal; }
  .info-table td { font-size: 14px; padding: 10px 12px; }
  .steps li { padding: 16px 14px 16px 58px; }
  .steps li::before { left: 14px; top: 16px; width: 30px; height: 30px; font-size: 14px; }
  .faq-q { padding: 16px; font-size: 15px; }
  .faq-a { padding: 0 16px; font-size: 14.5px; }
  #toTop { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .foot-bottom { flex-direction: column; }
}

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

@media print {
  header.site, #toTop, .carousel-nav, .dots, .hero-deco, footer.site { display: none !important; }
  body { color: #000; background: #fff; }
  .card, .article-item, .faq-item { break-inside: avoid; }
}