:root {
  --brand: #6c5ce7;
  --brand-2: #00b894;
  --brand-3: #e17055;
  --brand-glow: rgba(108, 92, 231, 0.35);
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.85);
  --text: #1d1d1f;
  --text-soft: #5a5a66;
  --line: #e6e6ee;
  --line-glass: rgba(255, 255, 255, 0.5);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow: 0 8px 30px rgba(20, 20, 50, 0.08);
  --shadow-hover: 0 18px 44px rgba(20, 20, 50, 0.16);
  --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.12);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 64px;
}

html[data-theme="dark"] {
  --brand: #8b7cff;
  --brand-2: #2ee6b8;
  --brand-3: #ff8a65;
  --brand-glow: rgba(139, 124, 255, 0.4);
  --bg: #12121a;
  --bg-soft: #1b1b26;
  --bg-glass: rgba(26, 26, 38, 0.62);
  --bg-glass-strong: rgba(26, 26, 38, 0.86);
  --text: #ececf2;
  --text-soft: #a8a8b8;
  --line: #2a2a38;
  --line-glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 18px 44px rgba(0, 0, 0, 0.62);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.45);
}

*,
*::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: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  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);
}

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

a:hover {
  text-decoration: underline;
}

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

button {
  font-family: inherit;
}

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

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

.skip-link:focus {
  left: 0;
}

.top-bar {
  background: linear-gradient(90deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
  background-size: 200% 100%;
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
  animation: topBarShift 12s ease infinite;
}

@keyframes topBarShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.top-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

header.site-header.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: transparent;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
  transition: transform 0.3s var(--ease);
}

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

.logo .mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 6px 16px var(--brand-glow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.logo:hover .mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 10px 24px var(--brand-glow);
}

.logo small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: 1px;
  line-height: 1.3;
}

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

nav.main-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

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

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 14px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

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

.search-box input::placeholder {
  color: var(--text-soft);
  opacity: 0.8;
}

.search-box button {
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.search-box button:hover {
  transform: scale(1.1);
  background: var(--brand-3);
}

.icon-btn {
  border: 1px solid var(--line);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  animation: menuDrop 0.3s var(--ease);
}

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

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu a {
  display: block;
  padding: 8px 4px;
  color: var(--text);
  font-weight: 500;
  border-radius: 8px;
  transition: background-color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.mobile-menu a:hover {
  background: var(--bg-soft);
  padding-left: 10px;
  text-decoration: none;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-soft);
  padding: 14px 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb li::after {
  content: "›";
  margin-left: 6px;
  color: var(--text-soft);
}

.breadcrumb li:last-child::after {
  content: "";
}

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

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

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 45%, #3d2d5c 75%, #4a2d5c 100%);
  color: #fff;
  padding: 60px 0 50px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 18% 22%, rgba(108, 92, 231, 0.5), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(0, 184, 148, 0.32), transparent 40%),
    radial-gradient(circle at 68% 88%, rgba(225, 112, 85, 0.35), transparent 45%);
  filter: blur(48px);
  z-index: -1;
  animation: heroAurora 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
  z-index: -1;
  pointer-events: none;
}

@keyframes heroAurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -3%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.04); }
}

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

.hero h1 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.3;
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 .hl {
  background: linear-gradient(90deg, #ffd166, #ff9f1c 60%, #ff6b6b);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hlShine 6s linear infinite;
}

@keyframes hlShine {
  to { background-position: 200% center; }
}

.hero p.lead {
  font-size: 16px;
  color: #d7d7e8;
  max-width: 760px;
  margin-bottom: 24px;
}

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

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
  border: none;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

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

.btn-primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-3));
  background-size: 160% auto;
  color: #fff;
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 12px 28px rgba(108, 92, 231, 0.55);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 22px;
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 16px 40px rgba(0, 0, 0, 0.28);
}

.slides {
  position: relative;
  min-height: 120px;
}

.slide {
  display: none;
  animation: fadeIn 0.55s var(--ease);
}

.slide.active {
  display: block;
}

.slide h3 {
  font-size: 19px;
  margin-bottom: 8px;
  color: #ffd166;
}

.slide p {
  color: #d7d7e8;
  font-size: 14.5px;
}

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

.slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}

.slider-dots button:hover {
  background: rgba(255, 255, 255, 0.6);
}

.slider-dots button.active {
  background: #ffd166;
  width: 26px;
}

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

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

.stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 209, 102, 0.5);
}

.stat .num {
  font-size: 28px;
  font-weight: 900;
  color: #ffd166;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat .lbl {
  font-size: 13px;
  color: #c9c9dd;
}

section {
  padding: 56px 0;
  position: relative;
}

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

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.35;
}

.section-head h2 span {
  color: var(--brand);
  position: relative;
}

.section-head h2 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-glow), transparent);
  border-radius: 4px;
  z-index: -1;
}

.section-head p {
  color: var(--text-soft);
  font-size: 15.5px;
}

.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 {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-glow), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand);
}

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

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.45;
}

.card h4 {
  font-size: 15.5px;
  margin: 14px 0 6px;
  color: var(--brand);
}

.card p {
  color: var(--text-soft);
  font-size: 14.5px;
}

.card ul {
  margin: 8px 0 0 18px;
  color: var(--text-soft);
  font-size: 14.5px;
}

.card ul li {
  margin-bottom: 4px;
}

.article-card {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.article-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand);
}

.article-card:hover::after {
  transform: scaleX(1);
}

.article-card .meta {
  font-size: 12.5px;
  color: var(--text-soft);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.article-card .meta span {
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  color: var(--brand);
  font-weight: 700;
}

.article-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.article-card p {
  color: var(--text-soft);
  font-size: 14px;
  flex: 1;
}

.article-card .more {
  margin-top: 12px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s var(--ease);
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

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

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

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

.faq-q .icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.faq-item.open .faq-q .icon {
  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;
}

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

.faq-a p {
  color: var(--text-soft);
  font-size: 14.5px;
}

.howto-steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.howto-step {
  position: relative;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 20px 20px 66px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.howto-step:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.howto-step::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: 900;
  box-shadow: 0 6px 16px var(--brand-glow);
}

.howto-step h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.howto-step p {
  color: var(--text-soft);
  font-size: 14.5px;
}

.testimonial {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 20px 22px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.testimonial p {
  font-size: 14.5px;
  color: var(--text-soft);
  font-style: italic;
}

.testimonial .who {
  margin-top: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.testimonial .who small {
  display: block;
  font-weight: 400;
  color: var(--text-soft);
  font-size: 12.5px;
}

table.info {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--bg-glass);
  border-radius: var(--radius);
  overflow: hidden;
}

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

table.info th {
  background: var(--bg-soft);
  font-weight: 700;
  width: 180px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-soft);
}

.contact-list .ic {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.contact-list li:hover .ic {
  transform: scale(1.1) rotate(-6deg);
  background: var(--brand-glow);
}

.contact-list strong {
  color: var(--text);
}

.sitemap-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sitemap-cols h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--brand);
}

.sitemap-cols ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.sitemap-cols a {
  color: var(--text-soft);
  font-size: 14px;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

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

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-top:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 28px rgba(108, 92, 231, 0.6);
}

footer.site-footer {
  background: linear-gradient(160deg, #101018, #16161f 60%, #1b1424);
  color: #b8b8c8;
  padding: 50px 0 24px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 120%;
  height: 200%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 0%, rgba(108, 92, 231, 0.18), transparent 55%);
  pointer-events: none;
}

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

footer.site-footer h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 14px;
}

footer.site-footer a {
  color: #c9c9dd;
  transition: color 0.25s var(--ease);
}

footer.site-footer a:hover {
  color: #ffd166;
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 34px;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid #26263a;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

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

.badge {
  display: inline-block;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--brand);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 10px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--brand-glow);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-list span {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 12.5px;
  color: var(--text-soft);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: default;
}

.tag-list span:hover {
  transform: translateY(-2px);
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.author-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-top: 20px;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.author-box:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.author-box .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  flex: 0 0 auto;
  box-shadow: 0 6px 16px var(--brand-glow);
}

.author-box .info {
  font-size: 13.5px;
  color: var(--text-soft);
}

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

@media (max-width: 960px) {
  nav.main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

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

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

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

  .contact-grid,
  .footer-grid,
  .sitemap-cols {
    grid-template-columns: 1fr 1fr;
  }

  section {
    padding: 44px 0;
  }

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

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

  .grid-2,
  .grid-3,
  .grid-4,
  .contact-grid,
  .footer-grid,
  .sitemap-cols {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat {
    padding: 12px;
  }

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

  .search-box {
    display: none;
  }

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

  .hero-cta {
    gap: 10px;
  }

  .btn {
    padding: 11px 20px;
    font-size: 14px;
    flex: 1 1 auto;
  }

  table.info th {
    width: 110px;
  }

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

  .howto-step {
    padding: 18px 16px 18px 60px;
  }

  .howto-step::before {
    left: 14px;
    top: 16px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

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

  .top-bar {
    font-size: 12px;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 17px;
  }

  .logo .mark {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

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

  .hero::before {
    animation: none;
  }
}

@media print {
  header.site-header,
  .top-bar,
  .back-top,
  .slider,
  .hero-cta,
  .mobile-menu {
    display: none !important;
  }

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

  .card,
  .article-card,
  .faq-item {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}