:root {
  --brand: #1a5f7a;
  --brand-2: #c0392b;
  --brand-3: #f2b632;
  --brand-4: #2c8aa8;
  --bg: #f7f9fa;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.72);
  --text: #22303c;
  --muted: #5c6b78;
  --line: #e2e8ec;
  --line-glass: rgba(226, 232, 236, 0.7);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow: 0 6px 24px rgba(26, 95, 122, 0.08);
  --shadow-hover: 0 16px 40px rgba(26, 95, 122, 0.18);
  --shadow-glass: 0 8px 32px rgba(26, 95, 122, 0.12);
  --grad-brand: linear-gradient(135deg, #1a5f7a 0%, #2c8aa8 55%, #3fa7c4 100%);
  --grad-warm: linear-gradient(135deg, #f2b632 0%, #e88b2f 100%);
  --grad-hero: linear-gradient(135deg, #e8f1f5 0%, #f9f4ec 55%, #f3e7d3 100%);
  --grad-accent: linear-gradient(120deg, #1a5f7a 0%, #c0392b 120%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: 0.32s var(--ease);
  --header-h: 64px;
}

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

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", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

a:hover {
  text-decoration: underline;
  opacity: 0.92;
}

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

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

button {
  font-family: inherit;
}

::selection {
  background: rgba(26, 95, 122, 0.18);
  color: var(--text);
}

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

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card-glass);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-glass);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

header.site::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 95, 122, 0.35), transparent);
  opacity: 0.6;
  pointer-events: none;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--brand);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform var(--transition), opacity var(--transition);
}

.logo:hover {
  text-decoration: none;
  opacity: 1;
  transform: translateY(-1px);
}

.logo svg {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(26, 95, 122, 0.28);
  transition: transform 0.6s var(--ease), box-shadow var(--transition);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.05);
  box-shadow: 0 6px 20px rgba(26, 95, 122, 0.4);
}

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

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

nav.main a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-warm);
  transform: translateX(-50%);
  transition: width var(--transition);
}

nav.main a:hover {
  color: var(--brand);
  text-decoration: none;
  background: rgba(26, 95, 122, 0.08);
}

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

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

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

.search-box:focus-within {
  border-color: var(--brand-4);
  box-shadow: 0 0 0 4px rgba(44, 138, 168, 0.16);
}

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

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

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

.search-box button {
  border: 0;
  background: var(--grad-brand);
  color: #fff;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: filter var(--transition), transform var(--transition);
}

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

.search-box button:active {
  transform: scale(0.97);
}

.btn-theme {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition), color var(--transition);
}

.btn-theme:hover {
  border-color: var(--brand-4);
  color: var(--brand);
  transform: translateY(-1px);
}

.btn-theme:active {
  transform: translateY(0) scale(0.97);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.menu-toggle:hover {
  border-color: var(--brand-4);
  color: var(--brand);
}

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

.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

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

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

.breadcrumb span {
  color: var(--text);
  font-weight: 500;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 182, 50, 0.32), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  animation: floatBlob 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 138, 168, 0.26), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
  animation: floatBlob 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatBlob {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-40px, 36px, 0) scale(1.12);
  }
}

.slides {
  position: relative;
  min-height: 340px;
  z-index: 1;
}

.slide {
  display: none;
  padding: 48px 0;
  align-items: center;
  gap: 36px;
}

.slide.active {
  display: flex;
  flex-wrap: wrap;
  animation: slideFade 0.7s var(--ease) both;
}

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

.slide-text {
  flex: 1 1 380px;
  min-width: 0;
}

.slide-text h1 {
  font-size: 34px;
  line-height: 1.35;
  color: var(--brand);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #1a5f7a 0%, #2c8aa8 60%, #c0392b 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-text p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 20px;
}

.slide-art {
  flex: 0 1 380px;
  min-width: 0;
  filter: drop-shadow(0 18px 40px rgba(26, 95, 122, 0.22));
  transition: transform 0.6s var(--ease);
}

.slide-art:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.slide-art svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.cta {
  display: inline-block;
  background: var(--grad-brand);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(26, 95, 122, 0.28);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.cta:hover {
  background: var(--grad-brand);
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 95, 122, 0.38);
  filter: brightness(1.05);
}

.cta:active {
  transform: translateY(0) scale(0.98);
}

.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-bottom: 18px;
  position: relative;
  z-index: 1;
}

.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #b9c9d1;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition), width var(--transition), transform var(--transition);
}

.dots button:hover {
  background: var(--brand-4);
  transform: scale(1.2);
}

.dots button.active {
  background: var(--brand);
  width: 26px;
  border-radius: var(--radius-pill);
}

section {
  padding: 56px 0;
  transition: background-color 0.4s var(--ease);
}

section:nth-child(even) {
  background: var(--bg-alt);
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.sec-head {
  text-align: center;
  margin-bottom: 36px;
}

.sec-head h2 {
  font-size: 28px;
  color: var(--brand);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.4;
  position: relative;
  display: inline-block;
}

.sec-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: var(--radius-pill);
  background: var(--grad-warm);
}

.sec-head p {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(44, 138, 168, 0.4);
}

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

.card h3 {
  color: var(--brand);
  font-size: 19px;
  margin-bottom: 10px;
  line-height: 1.5;
  transition: color var(--transition);
}

.card:hover h3 {
  color: var(--brand-2);
}

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

.card time {
  display: inline-block;
  font-size: 13px;
  color: var(--brand-2);
  background: rgba(192, 57, 43, 0.08);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  margin-bottom: 10px;
  font-weight: 500;
}

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

.stat {
  padding: 22px 12px;
  border-radius: var(--radius);
  background: var(--card-glass);
  border: 1px solid var(--line-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.stat b {
  display: block;
  font-size: 34px;
  line-height: 1.2;
  color: var(--brand-2);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.prose p {
  margin-bottom: 16px;
  color: #33414d;
  transition: color 0.4s var(--ease);
}

.prose h3 {
  margin: 26px 0 12px;
  color: var(--brand);
  font-size: 21px;
  line-height: 1.5;
  position: relative;
  padding-left: 16px;
}

.prose h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 4px;
  border-radius: var(--radius-pill);
  background: var(--grad-warm);
}

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

.prose ul {
  margin: 0 0 16px 22px;
  color: #33414d;
  transition: color 0.4s var(--ease);
}

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

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

.banner-art {
  position: relative;
  background: var(--grad-brand);
  border-radius: var(--radius);
  padding: 30px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.banner-art::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.banner-art h3 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.5;
}

.banner-art p {
  color: #dcecf2;
}

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

.article-item {
  position: relative;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background-color 0.4s var(--ease);
}

.article-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-warm);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}

.article-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(242, 182, 50, 0.5);
}

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

.article-item h3 {
  font-size: 18px;
  color: var(--brand);
  margin-bottom: 8px;
  line-height: 1.5;
  transition: color var(--transition);
}

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

.article-item time {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-item p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.8;
}

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

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

.article-item a.more:hover {
  text-decoration: none;
  color: var(--brand-2);
}

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

details.faq {
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  padding: 0 18px;
  transition: box-shadow var(--transition), border-color var(--transition), background-color 0.4s var(--ease);
}

details.faq:hover {
  border-color: rgba(44, 138, 168, 0.4);
  box-shadow: var(--shadow);
}

details.faq[open] {
  box-shadow: var(--shadow);
  border-color: rgba(44, 138, 168, 0.5);
}

details.faq summary {
  cursor: pointer;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  transition: color var(--transition);
  line-height: 1.6;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 20px;
  line-height: 1;
  transition: transform var(--transition), color var(--transition);
}

details.faq[open] summary::after {
  content: "−";
  color: var(--brand-2);
}

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

details.faq p {
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  animation: faqOpen 0.35s var(--ease) both;
}

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

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

.step {
  position: relative;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-glass);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  transition: transform var(--transition), box-shadow var(--transition), border-left-color var(--transition), background-color 0.4s var(--ease);
}

.step:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--brand-2);
}

.step h4 {
  color: var(--brand);
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.step h4::before {
  counter-increment: step;
  content: "步骤 " counter(step) "：";
  color: var(--brand-2);
  font-weight: 700;
}

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

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

.contact-grid .card {
  text-align: center;
}

.contact-grid .card b {
  display: block;
  color: var(--brand);
  margin-bottom: 6px;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.contact-grid .card p {
  word-break: break-word;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  padding: 6px 0 2px;
}

.anchor-nav a {
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 14px;
  color: var(--brand);
  transition: background-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.anchor-nav a:hover {
  background: var(--grad-brand);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 95, 122, 0.28);
  border-color: transparent;
}

footer.site {
  background: linear-gradient(160deg, #0f3543 0%, #0b2a36 55%, #123d4c 100%);
  color: #c9dbe3;
  padding: 48px 0 24px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

footer.site::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 182, 50, 0.14), transparent 70%);
  pointer-events: none;
}

footer.site a {
  color: #c9dbe3;
  transition: color var(--transition), padding-left var(--transition);
}

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

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 28px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

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

.foot-grid h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--grad-warm);
}

.foot-grid ul {
  list-style: none;
}

.foot-grid li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.foot-grid p {
  line-height: 1.8;
  color: #a9c4cf;
}

.foot-bottom {
  border-top: 1px solid #1f4a5b;
  padding-top: 20px;
  text-align: center;
  color: #8fb0bd;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  box-shadow: var(--shadow-hover);
  display: none;
  z-index: 60;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.back-top:hover {
  transform: translateY(-4px) scale(1.06);
  filter: brightness(1.1);
}

.back-top:active {
  transform: translateY(-2px) scale(0.98);
}

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

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

.reveal.visible .card,
.reveal.visible .article-item {
  animation: riseIn 0.6s var(--ease) both;
}

.reveal.visible .card:nth-child(2),
.reveal.visible .article-item:nth-child(2) {
  animation-delay: 0.06s;
}

.reveal.visible .card:nth-child(3),
.reveal.visible .article-item:nth-child(3) {
  animation-delay: 0.12s;
}

.reveal.visible .card:nth-child(4),
.reveal.visible .article-item:nth-child(4) {
  animation-delay: 0.18s;
}

.reveal.visible .card:nth-child(5),
.reveal.visible .article-item:nth-child(5) {
  animation-delay: 0.24s;
}

.reveal.visible .card:nth-child(6),
.reveal.visible .article-item:nth-child(6) {
  animation-delay: 0.3s;
}

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

body.dark {
  --bg: #0e1a20;
  --bg-alt: #0b151a;
  --card: #152730;
  --card-glass: rgba(21, 39, 48, 0.72);
  --text: #dbe7ec;
  --muted: #9db4bf;
  --line: #23414e;
  --line-glass: rgba(35, 65, 78, 0.7);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
  --grad-hero: linear-gradient(135deg, #122a34 0%, #1a2f26 55%, #23301f 100%);
}

body.dark header.site {
  background: rgba(14, 26, 32, 0.82);
  border-bottom-color: rgba(35, 65, 78, 0.8);
}

body.dark .search-box,
body.dark .btn-theme,
body.dark .menu-toggle,
body.dark .anchor-nav a {
  background: #152730;
  color: var(--text);
  border-color: var(--line);
}

body.dark .search-box input {
  color: var(--text);
}

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

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

body.dark nav.main a:hover {
  color: #7fd0e8;
  background: rgba(127, 208, 232, 0.1);
}

body.dark .hero {
  background: var(--grad-hero);
}

body.dark .slide-text h1 {
  background: linear-gradient(120deg, #7fd0e8 0%, #a7e3f2 60%, #f2b632 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark .card,
body.dark .article-item,
body.dark details.faq,
body.dark .step,
body.dark .stat {
  background: var(--card-glass);
  border-color: var(--line-glass);
}

body.dark .card h3,
body.dark .article-item h3,
body.dark .prose h3,
body.dark .step h4,
body.dark .contact-grid .card b {
  color: #7fd0e8;
}

body.dark .card:hover h3,
body.dark .article-item:hover h3 {
  color: #f2b632;
}

body.dark .prose p,
body.dark .prose ul,
body.dark .prose li {
  color: #b9cdd6;
}

body.dark details.faq summary {
  color: #dbe7ec;
}

body.dark details.faq summary:hover {
  color: #7fd0e8;
}

body.dark .dots button {
  background: #3a5a68;
}

body.dark .dots button.active {
  background: #7fd0e8;
}

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

body.dark .breadcrumb span {
  color: var(--text);
}

body.dark .article-item time {
  color: var(--muted);
}

body.dark .stat b {
  background: linear-gradient(120deg, #f2b632 0%, #e88b2f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark ::selection {
  background: rgba(127, 208, 232, 0.25);
  color: #fff;
}

body.dark a:focus-visible,
body.dark button:focus-visible,
body.dark input:focus-visible,
body.dark summary:focus-visible {
  outline-color: #7fd0e8;
}

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

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

  .slide-text h1 {
    font-size: 30px;
  }
}

@media (max-width: 900px) {
  .g3,
  .g4,
  .g2,
  .article-list,
  .contact-grid,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .slide {
    padding: 36px 0;
    gap: 24px;
  }

  .slide-text h1 {
    font-size: 27px;
  }

  .slide-text p {
    font-size: 16px;
  }

  .slide-art {
    flex: 0 1 300px;
  }

  nav.main ul {
    gap: 2px;
  }

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

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

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

@media (max-width: 640px) {
  :root {
    --header-h: 58px;
  }

  body {
    font-size: 15px;
    line-height: 1.8;
  }

  .wrap {
    padding: 0 16px;
  }

  nav.main {
    display: none;
  }

  nav.main.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    animation: menuDrop 0.28s var(--ease) both;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .tools {
    gap: 8px;
  }

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

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

  .search-box button {
    padding: 8px 12px;
    font-size: 13px;
  }

  .btn-theme {
    padding: 7px 10px;
    font-size: 13px;
  }

  .logo {
    font-size: 17px;
    gap: 8px;
  }

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

  .g3,
  .g4,
  .g2,
  .article-list,
  .contact-grid,
  .stats,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .slide {
    padding: 30px 0;
    gap: 20px;
  }

  .slide-text {
    flex: 1 1 100%;
  }

  .slide-text h1 {
    font-size: 23px;
    line-height: 1.45;
  }

  .slide-text p {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .slide-art {
    flex: 1 1 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .slides {
    min-height: 300px;
  }

  .cta {
    padding: 11px 22px;
    font-size: 15px;
  }

  section {
    padding: 40px 0;
  }

  .sec-head {
    margin-bottom: 26px;
  }

  .sec-head h2 {
    font-size: 22px;
  }

  .sec-head p {
    font-size: 15px;
  }

  .card {
    padding: 20px;
  }

  .card h3 {
    font-size: 17px;
  }

  .article-item {
    padding: 18px;
  }

  .article-item h3 {
    font-size: 16px;
  }

  .prose h3 {
    font-size: 18px;
  }

  .prose h4 {
    font-size: 16px;
  }

  .anchor-nav {
    gap: 8px;
  }

  .anchor-nav a {
    padding: 5px 12px;
    font-size: 13px;
  }

  .step {
    padding: 16px 18px;
  }

  .step:hover {
    transform: none;
  }

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

  footer.site {
    padding: 36px 0 20px;
  }

  .foot-grid {
    gap: 22px;
  }
}

@media (max-width: 380px) {
  .search-box {
    display: none;
  }

  .slide-text h1 {
    font-size: 21px;
  }
}

@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 print {
  header.site,
  footer.site,
  .back-top,
  .dots,
  .tools,
  .anchor-nav {
    display: none !important;
  }

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

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

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