:root {
  --bg: #ffffff;
  --bg2: #f5f7fa;
  --bg3: #eef2f7;
  --fg: #1b2430;
  --fg2: #4a5568;
  --fg3: #718096;
  --brand: #0b6bcb;
  --brand2: #13a4a4;
  --brand3: #6d5bd0;
  --line: #e2e8f0;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow: 0 4px 18px rgba(15, 35, 60, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 35, 60, 0.14);
  --shadow-glow: 0 0 0 1px rgba(11, 107, 203, 0.08), 0 12px 32px rgba(11, 107, 203, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --grad-brand: linear-gradient(120deg, #0b1a2b 0%, #0b6bcb 55%, #13a4a4 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(11, 107, 203, 0.10), rgba(19, 164, 164, 0.10));
  --grad-accent: linear-gradient(135deg, #0b6bcb, #6d5bd0 55%, #13a4a4);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 68px;
}

html[data-theme="dark"] {
  --bg: #0b1a2b;
  --bg2: #122539;
  --bg3: #0f2033;
  --fg: #e8eef6;
  --fg2: #a9b7c8;
  --fg3: #7f92a8;
  --brand: #4aa8ff;
  --brand2: #3fd6c8;
  --brand3: #9d8bff;
  --line: #1e3a53;
  --card: #122539;
  --card-glass: rgba(18, 37, 57, 0.66);
  --glass-border: rgba(74, 168, 255, 0.18);
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(74, 168, 255, 0.12), 0 12px 32px rgba(0, 0, 0, 0.45);
  --grad-brand: linear-gradient(120deg, #071322 0%, #0d3f74 55%, #0e5f5c 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(74, 168, 255, 0.14), rgba(63, 214, 200, 0.14));
}

* {
  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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(680px circle at 8% -6%, rgba(11, 107, 203, 0.10), transparent 60%),
    radial-gradient(620px circle at 96% 4%, rgba(19, 164, 164, 0.10), transparent 62%),
    radial-gradient(720px circle at 50% 108%, rgba(109, 91, 208, 0.08), transparent 60%);
}

html[data-theme="dark"] body::before {
  background:
    radial-gradient(680px circle at 8% -6%, rgba(74, 168, 255, 0.12), transparent 60%),
    radial-gradient(620px circle at 96% 4%, rgba(63, 214, 200, 0.10), transparent 62%),
    radial-gradient(720px circle at 50% 108%, rgba(157, 139, 255, 0.10), transparent 60%);
}

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

a:hover {
  text-decoration: underline;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip:focus {
  left: 10px;
  top: 10px;
}

::selection {
  background: rgba(11, 107, 203, 0.22);
  color: var(--fg);
}

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

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

header.site-header:hover {
  box-shadow: 0 6px 26px rgba(15, 35, 60, 0.08);
}

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

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

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

.logo .mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(11, 107, 203, 0.28);
  transition: transform 0.5s var(--ease), box-shadow 0.35s var(--ease);
}

.logo:hover .mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 10px 24px rgba(19, 164, 164, 0.36);
}

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

nav.main-nav a {
  position: relative;
  color: var(--fg2);
  font-size: 15px;
  font-weight: 600;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}

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

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

nav.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

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

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 4px 6px 4px 14px;
  background: var(--bg2);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(11, 107, 203, 0.12);
  background: var(--card);
}

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

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

.search-box button {
  border: 0;
  background: var(--grad-accent);
  color: #fff;
  border-radius: 18px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  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 16px rgba(11, 107, 203, 0.32);
  filter: brightness(1.06);
}

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

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

.icon-btn:hover {
  transform: translateY(-2px) rotate(12deg);
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(11, 107, 203, 0.18);
}

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

.menu-btn {
  display: none;
}

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

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

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

/* ============ Banner ============ */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 26px 0;
  background: var(--grad-brand);
  color: #fff;
  min-height: 340px;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.banner::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.20), transparent 70%) 12% 18% / 46% 60% no-repeat,
    radial-gradient(closest-side, rgba(255, 255, 255, 0.12), transparent 70%) 82% 76% / 52% 66% no-repeat;
  animation: bannerFloat 16s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1.4px),
    radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1.4px);
  background-size: 90px 90px, 140px 140px;
  background-position: 0 0, 40px 60px;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
  animation: starDrift 60s linear infinite;
}

@keyframes bannerFloat {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.06); }
}

@keyframes starDrift {
  0% { background-position: 0 0, 40px 60px; }
  100% { background-position: 90px 90px, 130px 150px; }
}

.slide {
  display: none;
  padding: 44px 40px;
  min-height: 340px;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.slide.active {
  display: flex;
  animation: slideIn 0.6s var(--ease);
}

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

.slide h2 {
  font-size: 30px;
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.slide p {
  color: #dbe9f7;
  max-width: 560px;
  margin-bottom: 18px;
}

.slide .btn {
  display: inline-block;
  background: #fff;
  color: #0b1a2b;
  padding: 10px 22px;
  border-radius: 24px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.slide .btn:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  background: #f2f8ff;
}

.slide .btn:active {
  transform: translateY(-1px) scale(0.98);
}

.slide .art {
  flex: 0 0 260px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.22));
  animation: artFloat 7s ease-in-out infinite;
}

@keyframes artFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.dots button:hover {
  background: rgba(255, 255, 255, 0.75);
}

.dots button.active {
  width: 26px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* ============ Sections ============ */
section {
  padding: 44px 0;
}

section.alt {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 0.4px;
}

h2 {
  font-size: 26px;
  line-height: 1.4;
  margin-bottom: 14px;
  position: relative;
  padding-left: 16px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 5px;
  border-radius: 4px;
  background: var(--grad-accent);
}

h3 {
  font-size: 20px;
  line-height: 1.5;
  margin: 22px 0 10px;
}

h4 {
  font-size: 17px;
  margin: 16px 0 8px;
}

p {
  margin-bottom: 14px;
  color: var(--fg2);
}

.lead {
  font-size: 18px;
  color: var(--fg);
}

/* ============ Hero Intro ============ */
.hero-intro {
  position: relative;
  background: var(--card-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-top: 22px;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.35s var(--ease);
}

.hero-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-brand-soft);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

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

.hero-intro:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ============ Grid ============ */
.grid {
  display: grid;
  gap: 20px;
}

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

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

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

/* ============ Card ============ */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(11, 107, 203, 0.08), rgba(19, 164, 164, 0.06));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 107, 203, 0.28);
}

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

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

.card h3 {
  margin-top: 0;
}

.card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  transition: transform 0.45s var(--ease);
}

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

/* ============ Stat ============ */
.stat {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.stat > div {
  flex: 1 1 150px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg2);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.stat > div:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(11, 107, 203, 0.3);
}

.stat .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ============ Anchor Nav ============ */
.anchor-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.anchor-nav a {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--fg2);
  transition: transform 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease), background-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.anchor-nav a:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--card);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 107, 203, 0.16);
}

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

.article-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.35s var(--ease);
}

.article-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(19, 164, 164, 0.32);
}

.article-card:hover::before {
  transform: scaleY(1);
}

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

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

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

.article-card p {
  flex: 1;
}

.article-card .read {
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.28s var(--ease), color 0.28s var(--ease);
}

.article-card:hover .read {
  gap: 10px;
}

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

.faq-item:hover {
  border-color: rgba(11, 107, 203, 0.32);
  box-shadow: 0 6px 20px rgba(11, 107, 203, 0.08);
}

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

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

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

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

.faq-a p {
  padding-bottom: 18px;
  margin: 0;
}

.faq-item.open .faq-a {
  max-height: 600px;
}

.faq-item.open .faq-q span {
  transform: rotate(45deg);
}

.faq-q span {
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
  font-size: 20px;
  color: var(--brand);
  flex: 0 0 auto;
  line-height: 1.4;
}

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

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

.steps li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: rgba(11, 107, 203, 0.28);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(11, 107, 203, 0.28);
  transition: transform 0.32s var(--ease);
}

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

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

/* ============ Table ============ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

th,
td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  transition: background-color 0.28s var(--ease);
}

th {
  background: var(--bg2);
  color: var(--fg);
  font-weight: 700;
}

td {
  color: var(--fg2);
}

tbody tr {
  transition: background-color 0.28s var(--ease);
}

tbody tr:hover {
  background: var(--bg2);
}

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

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-item .ci-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  transition: transform 0.35s var(--ease);
}

.contact-item:hover .ci-icon {
  transform: scale(1.12) rotate(-4deg);
}

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

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

/* ============ Tag ============ */
.tag {
  display: inline-block;
  background: rgba(11, 107, 203, 0.1);
  color: var(--brand);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 13px;
  margin-right: 6px;
  margin-bottom: 6px;
  transition: background-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.tag:hover {
  background: rgba(11, 107, 203, 0.18);
  transform: translateY(-1px);
}

/* ============ Footer ============ */
footer.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  padding: 44px 0 24px;
  margin-top: 20px;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

footer h4 {
  color: var(--fg);
  font-size: 16px;
  margin-bottom: 12px;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 8px;
}

footer a {
  color: var(--fg2);
  font-size: 14px;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
  font-size: 13px;
  color: var(--fg2);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============ Back Top ============ */
#backTop {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--grad-accent);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s var(--ease);
}

#backTop.show {
  display: flex;
  animation: popIn 0.35s var(--ease);
}

#backTop:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 36px rgba(11, 107, 203, 0.4);
}

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

@keyframes popIn {
  from { opacity: 0; transform: scale(0.7) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article-list {
    grid-template-columns: 1fr;
  }
  .slide .art {
    display: none;
  }
  .slide h2 {
    font-size: 26px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }
  nav.main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--card-glass);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    animation: navDrop 0.3s var(--ease);
  }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  nav.main-nav.open {
    display: block;
  }
  nav.main-nav ul {
    flex-direction: column;
    gap: 14px;
  }
  nav.main-nav a {
    display: inline-block;
    font-size: 16px;
  }
  .menu-btn {
    display: flex;
  }
  .search-box {
    display: none;
  }
  .grid-3,
  .grid-4,
  .grid-2,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 22px;
  }
  .slide {
    padding: 30px 22px;
    min-height: 300px;
  }
  .slide h2 {
    font-size: 22px;
  }
  .banner {
    min-height: 300px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    gap: 14px;
  }
  .stat > div {
    flex: 1 1 100%;
  }
  .hero-intro {
    padding: 20px;
  }
  section {
    padding: 34px 0;
  }
  .card,
  .article-card {
    padding: 18px;
  }
  #backTop {
    right: 14px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding: 0 14px;
  }
  h1 {
    font-size: 23px;
  }
  .slide h2 {
    font-size: 20px;
  }
}

/* ============ Reduced Motion ============ */
@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;
  }
}

/* ============ Print ============ */
@media print {
  header.site-header,
  footer.site-footer,
  #backTop,
  .banner,
  .anchor-nav,
  .dots {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}