:root {
  --brand: #c026d3;
  --brand-2: #7c3aed;
  --brand-3: #a855f7;
  --bg: #ffffff;
  --bg-soft: #faf5ff;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --text: #1f2937;
  --text-soft: #4b5563;
  --text-mute: #6b7280;
  --line: #e9d5ff;
  --line-soft: rgba(192, 38, 211, 0.14);
  --card: #ffffff;
  --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.06);
  --shadow: 0 6px 24px rgba(124, 58, 237, 0.10);
  --shadow-lg: 0 18px 48px rgba(124, 58, 237, 0.16);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --grad-brand: linear-gradient(120deg, #c026d3 0%, #7c3aed 100%);
  --grad-hero: linear-gradient(135deg, #faf5ff 0%, #f5e8ff 45%, #ede9fe 100%);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(250, 245, 255, 0.78));
  --glass-bg: rgba(255, 255, 255, 0.66);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-blur: 16px;
  --focus: 0 0 0 3px rgba(192, 38, 211, 0.32);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #0f0a17;
  --bg-soft: #171024;
  --bg-elevated: rgba(26, 17, 40, 0.72);
  --text: #f3e8ff;
  --text-soft: #c4b5d4;
  --text-mute: #a78bc0;
  --line: #3b2a52;
  --line-soft: rgba(192, 38, 211, 0.28);
  --card: #1a1128;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  --grad-hero: linear-gradient(135deg, #1a1128 0%, #221435 45%, #1c1230 100%);
  --grad-card: linear-gradient(160deg, rgba(26, 17, 40, 0.94), rgba(23, 16, 36, 0.82));
  --glass-bg: rgba(23, 16, 36, 0.62);
  --glass-border: rgba(124, 58, 237, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 8% -8%, rgba(192, 38, 211, 0.10), transparent 62%),
    radial-gradient(50vw 50vw at 100% 0%, rgba(124, 58, 237, 0.10), transparent 60%);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(60vw 60vw at 8% -8%, rgba(192, 38, 211, 0.16), transparent 62%),
    radial-gradient(50vw 50vw at 100% 0%, rgba(124, 58, 237, 0.18), transparent 60%);
}

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

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

::selection {
  background: rgba(192, 38, 211, 0.24);
  color: var(--text);
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 9999;
  text-decoration: none;
}

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

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

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

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

.brand .logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.brand:hover .logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 8px 20px rgba(192, 38, 211, 0.32);
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.5px;
  line-height: 1.4;
}

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

nav.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

nav.main-nav a:hover {
  background: var(--bg-soft);
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-1px);
}

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

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.icon-btn:active {
  transform: translateY(0) scale(0.96);
}

.menu-toggle {
  display: none;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 6px 4px 12px;
  background: var(--card);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(192, 38, 211, 0.14);
}

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

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

.search-box button {
  border: none;
  background: var(--grad-brand);
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}

.search-box button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.crumbs {
  font-size: 13px;
  color: var(--text-mute);
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.crumbs a {
  color: var(--text-mute);
}

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

.crumbs span {
  margin: 0 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  padding: 56px 0 64px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.6;
  animation: floatBlob 14s ease-in-out infinite alternate;
}

.hero::before {
  width: 380px;
  height: 380px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(192, 38, 211, 0.34), transparent 68%);
}

.hero::after {
  width: 420px;
  height: 420px;
  bottom: -160px;
  right: -100px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.32), transparent 68%);
  animation-delay: -7s;
}

@keyframes floatBlob {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, 18px, 0) scale(1.08); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 38px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero h1 .hl {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

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

.hero p.lead {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 22px;
  max-width: 640px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease), background 0.22s var(--ease);
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(192, 38, 211, 0.28);
  background-size: 160% 160%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 14px 30px rgba(192, 38, 211, 0.38);
  background-position: 100% 50%;
}

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

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.hero-stats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.stat b {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 13px;
  color: var(--text-mute);
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.badge {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(192, 38, 211, 0.1);
  color: var(--brand);
  font-weight: 700;
  border: 1px solid var(--line-soft);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.badge:hover {
  transform: translateY(-2px);
  background: rgba(192, 38, 211, 0.16);
}

.banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--grad-card);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}

.banner .slide {
  display: none;
  padding: 22px;
}

.banner .slide.active {
  display: block;
  animation: fade 0.5s var(--ease);
}

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

.banner .slide h3 {
  font-size: 18px;
  margin: 14px 0 8px;
}

.banner .slide p {
  font-size: 14px;
  color: var(--text-soft);
}

.banner-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0 0 16px;
}

.banner-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.banner-dots button.active {
  background: var(--brand);
  width: 22px;
  border-radius: 6px;
}

.section {
  padding: 64px 0;
  position: relative;
}

.section.soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

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

.section-head .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(192, 38, 211, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  border: 1px solid var(--line-soft);
}

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

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

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

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(192, 38, 211, 0.5), rgba(124, 58, 237, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  pointer-events: none;
}

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

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

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card h4 {
  font-size: 16px;
  margin: 14px 0 8px;
  color: var(--text);
}

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

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(192, 38, 211, 0.14), rgba(124, 58, 237, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease);
}

.card:hover .icon {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(120deg, rgba(192, 38, 211, 0.22), rgba(124, 58, 237, 0.22));
}

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

.prose h2 {
  font-size: 26px;
  margin: 34px 0 14px;
  font-weight: 900;
  scroll-margin-top: 88px;
}

.prose h3 {
  font-size: 20px;
  margin: 24px 0 10px;
  font-weight: 800;
  scroll-margin-top: 88px;
}

.prose h4 {
  font-size: 17px;
  margin: 18px 0 8px;
  font-weight: 700;
}

.prose p {
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 22px;
  color: var(--text-soft);
}

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

.prose blockquote {
  border-left: 4px solid var(--brand);
  background: var(--bg-soft);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
  color: var(--text-soft);
  font-style: italic;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
}

.anchor-nav a {
  font-size: 14px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-soft);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.anchor-nav a:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

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

.article-card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  overflow: hidden;
}

.article-card .thumb svg {
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--ease);
}

.article-card:hover .thumb svg {
  transform: scale(1.06);
}

.article-card .body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.article-card .meta {
  font-size: 12px;
  color: var(--text-mute);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.article-card h3 {
  font-size: 17px;
  line-height: 1.5;
  transition: color 0.2s var(--ease);
}

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

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

.article-card .more {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  transition: letter-spacing 0.2s var(--ease);
}

.article-card:hover .more {
  letter-spacing: 0.5px;
}

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

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

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

.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;
  font-family: inherit;
  line-height: 1.6;
  transition: color 0.2s var(--ease);
}

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

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

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

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  padding: 0 20px;
  color: var(--text-soft);
  font-size: 15px;
}

.faq-a p {
  font-size: 15px;
  margin-bottom: 0;
}

.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 20px 18px;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  display: grid;
  gap: 16px;
}

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

.steps li:hover {
  transform: translateX(4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(192, 38, 211, 0.28);
}

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

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

.testimonial {
  background: var(--grad-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

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

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

.testimonial .who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial .who .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(192, 38, 211, 0.22);
}

.testimonial .who b {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.testimonial .who span {
  font-size: 13px;
  color: var(--text-mute);
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.news-item:hover {
  border-color: var(--brand);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.news-item time {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--brand);
  font-weight: 700;
  background: var(--bg-soft);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}

.news-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
  transition: color 0.2s var(--ease);
}

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

.news-item p {
  font-size: 14px;
  color: var(--text-soft);
}

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

.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

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

.team-card .ava {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  box-shadow: 0 6px 18px rgba(192, 38, 211, 0.22);
  transition: transform 0.3s var(--ease);
}

.team-card:hover .ava {
  transform: scale(1.06) rotate(4deg);
}

.team-card b {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.team-card span {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
}

.team-card p {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 8px;
}

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

.contact-info {
  display: grid;
  gap: 14px;
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.contact-row:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-row .ci {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-soft);
}

.contact-row b {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
  color: var(--text);
}

.contact-row span {
  font-size: 14px;
  color: var(--text-soft);
  word-break: break-word;
}

.map-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  align-self: start;
}

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

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

.sitemap-grid ul {
  list-style: none;
  margin: 0;
}

.sitemap-grid li {
  margin-bottom: 6px;
}

.sitemap-grid a {
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
  display: inline-block;
}

.sitemap-grid a:hover {
  color: var(--brand);
  padding-left: 4px;
}

table.cmp {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

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

table.cmp th {
  background: var(--bg-soft);
  font-weight: 800;
  color: var(--text);
}

table.cmp tr:last-child td {
  border-bottom: none;
}

table.cmp tbody tr {
  transition: background 0.2s var(--ease);
}

table.cmp tbody tr:hover {
  background: var(--bg-soft);
}

.notice {
  background: rgba(192, 38, 211, 0.08);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-soft);
  margin: 16px 0;
  line-height: 1.8;
}

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

footer.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  margin-top: 20px;
}

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

.footer-brand p {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 10px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
  display: inline-block;
}

.footer-col a:hover {
  color: var(--brand);
  padding-left: 4px;
}

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

.footer-bottom a {
  color: var(--text-mute);
}

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

.socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.socials a:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(192, 38, 211, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  z-index: 1200;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(192, 38, 211, 0.45);
}

.to-top:active {
  transform: translateY(0) scale(0.94);
}

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

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

@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 (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }
  nav.main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px;
    display: none;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    animation: navDrop 0.25s var(--ease);
  }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }
  nav.main-nav.open {
    display: block;
  }
  nav.main-nav ul {
    flex-direction: column;
    gap: 2px;
  }
  nav.main-nav a {
    display: block;
    padding: 10px 12px;
  }
  nav.main-nav a::after {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .search-box {
    display: none;
  }
  .brand {
    font-size: 17px;
  }
  .brand .logo {
    width: 34px;
    height: 34px;
  }
  .brand small {
    font-size: 10px;
  }
  .hero {
    padding: 36px 0 44px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p.lead {
    font-size: 15px;
  }
  .hero-stats {
    gap: 18px;
  }
  .stat b {
    font-size: 22px;
  }
  .section {
    padding: 44px 0;
  }
  .section-head h2 {
    font-size: 24px;
  }
  .section-head p {
    font-size: 15px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .team-grid,
  .contact-grid,
  .sitemap-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .prose h2 {
    font-size: 22px;
  }
  .prose h3 {
    font-size: 18px;
  }
  .news-item {
    flex-direction: column;
    gap: 10px;
  }
  .btn {
    padding: 11px 18px;
    font-size: 14px;
  }
  .card {
    padding: 20px;
  }
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 14px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero-cta {
    gap: 10px;
  }
  .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .faq-q {
    padding: 16px;
    font-size: 15px;
  }
  .faq-a {
    padding: 0 16px;
  }
  .faq-item.open .faq-a {
    padding: 0 16px 16px;
  }
}

@media print {
  header.site-header,
  .to-top,
  .banner,
  .socials,
  .hero-cta {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .card,
  .article-card,
  .news-item,
  .testimonial {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}