:root {
  --brand: #7b5cff;
  --brand-2: #ff5c9a;
  --brand-3: #22d3b8;
  --brand-4: #ffb347;
  --bg: #f4f1ff;
  --bg-2: #ece7ff;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --text: #1c1830;
  --muted: #5f5878;
  --border: #e4ddf7;
  --border-strong: #d3c8f2;
  --shadow: 0 12px 34px rgba(74, 48, 140, 0.12);
  --shadow-hover: 0 18px 46px rgba(74, 48, 140, 0.2);
  --radius: 18px;
  --radius-sm: 12px;
  --grad-hero: linear-gradient(135deg, #7b5cff 0%, #b06bff 45%, #ff5c9a 100%);
  --grad-btn: linear-gradient(135deg, #7b5cff, #ff5c9a);
  --grad-accent: linear-gradient(135deg, #22d3b8, #7b5cff);
}

html[data-theme="dark"] {
  --brand: #9d86ff;
  --brand-2: #ff7fb0;
  --brand-3: #3ee6cc;
  --brand-4: #ffc46b;
  --bg: #0f0c1b;
  --bg-2: #16122a;
  --surface: #1b1730;
  --surface-glass: rgba(27, 23, 48, 0.72);
  --text: #f0ecff;
  --muted: #a49dc2;
  --border: #2c2648;
  --border-strong: #3b3460;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 18px 46px rgba(0, 0, 0, 0.62);
  --grad-hero: linear-gradient(135deg, #2a1d5c 0%, #4a2a7a 45%, #6a2a5a 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(123, 92, 255, 0.14), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(255, 92, 154, 0.12), transparent 40%),
    radial-gradient(circle at 50% 92%, rgba(34, 211, 184, 0.1), transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

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

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

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  color: var(--text);
  margin: 1.2em 0 0.6em;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
}

h2 {
  font-size: 1.5rem;
  font-weight: 800;
  border-left: 5px solid transparent;
  border-image: linear-gradient(180deg, var(--brand), var(--brand-2)) 1;
  padding-left: 0.7rem;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--brand);
}

h4 {
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--muted);
}

p {
  margin: 0.6em 0;
}

ul,
ol {
  padding-left: 1.3em;
}

li {
  margin: 0.3em 0;
}

::selection {
  background: rgba(123, 92, 255, 0.28);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-2);
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

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

.skip:focus {
  left: 8px;
  top: 8px;
  background: var(--surface);
  color: var(--brand);
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  outline: 2px solid var(--brand);
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(80, 60, 160, 0.08);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

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

.brand svg {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(123, 92, 255, 0.35);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.brand:hover svg {
  transform: rotate(-12deg) scale(1.08);
  box-shadow: 0 10px 24px rgba(255, 92, 154, 0.45);
}

nav.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}

nav.main-nav a {
  position: relative;
  padding: 6px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

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

nav.main-nav a:hover {
  background: rgba(123, 92, 255, 0.1);
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-1px);
}

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

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

.tools button,
.tools input {
  font: inherit;
}

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

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.18);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  width: 132px;
  font-size: 0.88rem;
  padding: 5px 0;
}

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

.search-box button {
  border: none;
  background: var(--grad-btn);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: filter 0.25s ease, transform 0.25s ease;
}

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

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

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 11px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(123, 92, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(123, 92, 255, 0.18);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  padding: 46px 0 34px;
  border-bottom: 1px solid var(--border);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.22), transparent 38%),
    radial-gradient(circle at 82% 76%, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 60%);
  pointer-events: none;
}

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

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

.hero h1 {
  font-size: 2.15rem;
  margin-top: 0;
  color: #fff;
  text-shadow: 0 2px 18px rgba(40, 20, 90, 0.35);
  letter-spacing: 0.01em;
}

.hero .lead {
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 62ch;
}

.hero .keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.hero .keywords span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 0.82rem;
  color: #fff;
  font-weight: 500;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hero .keywords span:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

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

.btn-primary {
  background: #fff;
  color: #5a3bff;
  box-shadow: 0 10px 26px rgba(30, 10, 80, 0.28);
}

.btn-primary:hover {
  color: #3d22c9;
  box-shadow: 0 14px 34px rgba(30, 10, 80, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.hero-art {
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 18px 44px rgba(30, 10, 80, 0.32);
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.5s ease;
}

.hero-art:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 26px 60px rgba(30, 10, 80, 0.42);
}

.hero-art svg {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  margin: 24px 0;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(123, 92, 255, 0.1), rgba(255, 92, 154, 0.08), rgba(34, 211, 184, 0.1));
  pointer-events: none;
}

.slides {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
  min-width: 100%;
  padding: 28px 34px;
  position: relative;
  z-index: 1;
}

.slide h3 {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 1.28rem;
}

.slide p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.dots {
  position: absolute;
  bottom: 12px;
  right: 18px;
  display: flex;
  gap: 7px;
  z-index: 2;
}

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

.dots button:hover {
  transform: scale(1.25);
}

.dots button.active {
  background: var(--grad-btn);
  width: 24px;
  border-radius: 999px;
}

section.block {
  padding: 38px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.section-head .meta {
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 12px;
}

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

.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(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-btn);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

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

.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--muted);
  margin: 0.45em 0;
}

.card ul {
  margin: 0.4em 0;
}

.article-card {
  display: flex;
  flex-direction: column;
}

.article-card .thumb {
  height: 124px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--grad-accent);
  position: relative;
  transition: transform 0.4s ease;
}

.article-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.12));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.article-card:hover .thumb::after {
  opacity: 1;
}

.article-card .thumb svg {
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.34, 1.3, 0.64, 1);
}

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

.article-card .date {
  font-size: 0.8rem;
  color: var(--muted);
  display: inline-block;
  background: var(--bg-2);
  border-radius: 999px;
  padding: 1px 10px;
  margin: 0 0 4px;
}

.article-card .summary {
  font-size: 0.9rem;
  flex: 1;
}

.article-card a.readmore {
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  transition: gap 0.25s ease, color 0.25s ease;
}

.article-card a.readmore:hover {
  gap: 9px;
  text-decoration: none;
}

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

.stat {
  position: relative;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 120%;
  background: radial-gradient(circle at 50% 100%, rgba(123, 92, 255, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

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

.stat .num {
  position: relative;
  z-index: 1;
  font-size: 1.85rem;
  font-weight: 800;
  background: var(--grad-btn);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
  line-height: 1.2;
}

.stat .label {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: var(--muted);
}

.timeline {
  list-style: none;
  padding: 0 0 0 20px;
  margin: 0;
  border-left: 3px solid var(--border-strong);
}

.timeline li {
  position: relative;
  margin-bottom: 16px;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.timeline li:hover {
  transform: translateX(4px);
  color: var(--text);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-btn);
  box-shadow: 0 0 0 4px rgba(123, 92, 255, 0.16);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.timeline li:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(255, 92, 154, 0.22);
}

.timeline .year {
  font-weight: 800;
  color: var(--brand);
  margin-right: 4px;
}

.article-body {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.article-body:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.article-body h2 {
  margin-top: 0;
}

.article-body h3 {
  margin-top: 1.5em;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-body li {
  color: var(--muted);
}

.article-body p {
  color: var(--text);
}

.article-meta {
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

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

.faq-item:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 22px rgba(123, 92, 255, 0.14);
}

.faq-item.open {
  border-color: var(--brand);
  box-shadow: 0 10px 26px rgba(123, 92, 255, 0.18);
}

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

.faq-q:hover {
  color: var(--brand);
  background: rgba(123, 92, 255, 0.05);
}

.faq-q .plus {
  flex: none;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.35s ease;
}

.faq-item.open .faq-q .plus {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--muted);
  font-size: 0.94rem;
}

.faq-a p {
  margin: 0 0 14px;
}

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

.howto-step {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.howto-step:hover {
  transform: translateX(5px);
  border-color: var(--brand);
  box-shadow: 0 8px 22px rgba(123, 92, 255, 0.14);
}

.howto-step .idx {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(123, 92, 255, 0.32);
}

.howto-step h4 {
  margin: 0 0 2px;
  color: var(--text);
}

.howto-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-strong);
  color: var(--muted);
  transition: padding-left 0.3s ease, color 0.3s ease;
}

.contact-list li:hover {
  padding-left: 6px;
  color: var(--text);
}

.contact-list li:last-child {
  border-bottom: none;
}

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

.map-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

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

.map-box h3 {
  margin-top: 0;
}

.map-box svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0;
}

.tags a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tags a:hover {
  background: var(--grad-btn);
  border-color: transparent;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

footer.site-footer {
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 34px 0 22px;
  margin-top: 24px;
}

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

.footer-grid h4 {
  margin-top: 0;
  color: var(--text);
  font-size: 1rem;
}

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

.footer-grid li {
  margin: 0.35em 0;
}

.footer-grid a {
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

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

.copyright {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

#backToTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--grad-btn);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(123, 92, 255, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.3s ease;
  z-index: 900;
}

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

#backToTop:hover {
  box-shadow: 0 14px 34px rgba(255, 92, 154, 0.52);
  transform: translateY(-3px) scale(1.06);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

.notice {
  background: rgba(34, 211, 184, 0.1);
  border: 1px solid rgba(34, 211, 184, 0.35);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.92rem;
  margin: 14px 0;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 14px 0 4px;
}

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

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

.breadcrumb span {
  margin: 0 6px;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.anchor-nav a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 0.82rem;
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.anchor-nav a:hover {
  background: rgba(123, 92, 255, 0.1);
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.rating {
  color: #f5a623;
  font-weight: 700;
}

blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--brand-2), var(--brand)) 1;
  background: var(--bg-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-style: normal;
  transition: transform 0.3s ease, background 0.3s ease;
}

blockquote:hover {
  transform: translateX(4px);
  background: rgba(123, 92, 255, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(74, 48, 140, 0.08);
}

th,
td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
}

th {
  background: var(--bg-2);
  color: var(--text);
  font-weight: 700;
}

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

tbody tr {
  transition: background 0.25s ease;
}

tbody tr:hover {
  background: rgba(123, 92, 255, 0.06);
}

@media (max-width: 900px) {
  nav.main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    margin: 8px 0 0;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
  }

  nav.main-nav.open {
    display: flex;
    animation: navDrop 0.35s ease both;
  }

  nav.main-nav a {
    padding: 9px 12px;
  }

  nav.main-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

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

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

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

  .hero h1 {
    font-size: 1.8rem;
  }

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

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

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

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 34px 0 26px;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .hero .lead {
    font-size: 0.98rem;
  }

  .slide {
    padding: 22px 20px 34px;
  }

  .tools {
    width: 100%;
    justify-content: space-between;
  }

  .search-box {
    flex: 1;
  }

  .search-box input {
    width: 100%;
  }

  .card {
    padding: 17px;
  }

  .article-body {
    padding: 20px;
  }
}

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

  .copyright {
    flex-direction: column;
    gap: 6px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .section-head {
    flex-direction: column;
    gap: 6px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

@media print {
  header.site-header,
  footer.site-footer,
  #backToTop,
  .banner,
  .hero-art {
    display: none !important;
  }

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

  .card,
  .article-body {
    box-shadow: none;
    border-color: #ccc;
  }
}