:root {
  --bg-deep: #0b0a0f;
  --bg-deeper: #060509;
  --bg-card: #1f1b24;
  --glass-bg: rgba(11,10,15,0.84);
  --line-faded: rgba(181,55,242,0.18);
  --line-strong: rgba(181,55,242,0.45);
  --neon-purple: #b537f2;
  --neon-purple-soft: rgba(181,55,242,0.35);
  --blood-red: #a11424;
  --blood-red-soft: rgba(161,20,36,0.4);
  --electric-blue: #00e5ff;
  --electric-blue-soft: rgba(0,229,255,0.35);
  --laser-green: #ccff00;
  --laser-green-soft: rgba(204,255,0,0.3);
  --text-main: #f0e6d2;
  --text-dim: #a6a6a6;
  --text-faint: #6b6472;
  --font-body: "Noto Sans SC","Source Han Sans SC","PingFang SC","Microsoft YaHei",Arial,sans-serif;
  --font-head: Impact,"Arial Black","PingFang SC","Microsoft YaHei",sans-serif;
  --font-mono: "Courier New",Courier,monospace;
  --container-width: 1240px;
  --container-narrow: 900px;
  --header-gap: 14px;
  --radius-pill: 999px;
  --radius-md: 14px;
  --glow-intensity: 1;
  --transition-base: 0.25s ease;
}

html[data-night="false"] {
  --glow-intensity: 0.35;
  --bg-deep: #14111c;
  --bg-deeper: #0b0911;
  --bg-card: #211c2b;
  --glass-bg: rgba(18,16,26,0.9);
  --text-faint: #777082;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg-deep);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

input,
button,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: var(--electric-blue);
  text-decoration: none;
  transition: color var(--transition-base), text-shadow var(--transition-base);
}

a:hover {
  color: var(--neon-purple);
}

ul[class],
ol[class] {
  list-style: none;
}

::selection {
  background: var(--neon-purple);
  color: #0b0a0f;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-purple), var(--blood-red));
  border-radius: 8px;
  border: 2px solid var(--bg-deeper);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.02em;
}

h1 { font-size: 42px; }
h2 { font-size: 34px; }
h3 { font-size: 26px; }
h4 { font-size: 20px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -400%);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--electric-blue);
  color: #061014;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
  transition: transform 0.25s ease;
  width: max-content;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 110;
  background: linear-gradient(90deg, var(--neon-purple), var(--electric-blue), var(--laser-green));
  box-shadow: 0 0 10px rgba(181, 55, 242, 0.6), 0 0 22px rgba(0, 229, 255, 0.3);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: var(--header-gap) 20px 0;
  background: transparent;
}

.header-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 6px 30px rgba(0, 0, 0, 0.55),
    0 0 calc(20px * var(--glow-intensity)) rgba(181, 55, 242, 0.28),
    inset 0 0 calc(28px * var(--glow-intensity)) rgba(181, 55, 242, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: repeating-radial-gradient(circle at 8px 12px, rgba(240, 230, 210, 0.025) 0, rgba(240, 230, 210, 0.025) 1px, transparent 1.5px, transparent 4px);
}

.site-header.header-scrolled .header-panel {
  border-color: rgba(181, 55, 242, 0.65);
  box-shadow:
    0 8px 36px rgba(0, 0, 0, 0.65),
    0 0 calc(30px * var(--glow-intensity)) rgba(181, 55, 242, 0.4),
    inset 0 0 calc(30px * var(--glow-intensity)) rgba(181, 55, 242, 0.08);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  color: inherit;
}

.brand-lockup:hover {
  color: inherit;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2a1450 0%, #0b0a0f 80%);
  border: 1px solid var(--line-strong);
  color: var(--neon-purple);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(181, 55, 242, 0.85), 0 0 36px rgba(181, 55, 242, 0.4);
  box-shadow: 0 0 16px rgba(181, 55, 242, 0.2);
  transform: rotate(-8deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-lockup:hover .brand-mark {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 0 24px rgba(181, 55, 242, 0.4);
}

.brand-block {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-main);
  white-space: nowrap;
  text-shadow: 0 0 16px rgba(181, 55, 242, 0.28), 0 0 40px rgba(181, 55, 242, 0.12);
}

.brand-slogan {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.site-nav {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-item {
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.nav-link:hover {
  background: var(--neon-purple-soft);
  color: #fff;
}

.nav-link[aria-current="page"] {
  background: var(--neon-purple);
  color: #0b0a0f;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(181, 55, 242, 0.5);
}

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

.search-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-dim);
  font-size: 13px;
  transition: border-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.search-link:hover {
  border-color: var(--electric-blue-soft);
  color: var(--electric-blue);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.14);
}

.search-ico {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}

.search-ico::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  right: -6px;
  bottom: -3px;
  transform: rotate(45deg);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--neon-purple);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition-base), box-shadow var(--transition-base), color var(--transition-base);
}

.theme-toggle:hover {
  background: var(--neon-purple-soft);
  color: #fff;
  box-shadow: 0 0 18px rgba(181, 55, 242, 0.25);
}

html[data-night="false"] .theme-toggle {
  color: var(--electric-blue);
  border-color: rgba(0, 229, 255, 0.4);
}

.theme-toggle-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.moon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: inset -4px 0 0 var(--bg-deep);
  transform: rotate(-22deg);
}

html[data-night="false"] .moon {
  background: var(--electric-blue);
  box-shadow: 0 0 12px var(--electric-blue-soft);
  transform: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--neon-purple);
  font-size: 13px;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav-toggle:hover {
  background: var(--neon-purple-soft);
  box-shadow: 0 0 16px rgba(181, 55, 242, 0.25);
}

.nav-toggle-ico {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 14px;
}

.nav-toggle-bar {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.search-txt,
.theme-toggle-txt,
.nav-toggle-txt {
  display: inline-block;
  line-height: 1;
}

.site-footer {
  position: relative;
  margin-top: 72px;
  padding: 56px 20px 22px;
  background: linear-gradient(180deg, rgba(20, 15, 28, 0.6) 0%, var(--bg-deeper) 26%, #050408 100%);
  border-top: 1px solid var(--line-strong);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 55%;
  height: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, transparent, var(--neon-purple), var(--blood-red), var(--electric-blue), transparent);
  box-shadow: 0 0 12px rgba(181, 55, 242, 0.7);
  animation: footer-scan 6s ease-in-out infinite alternate;
  z-index: 3;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-radial-gradient(circle at 12px 24px, rgba(240, 230, 210, 0.02) 0, rgba(240, 230, 210, 0.02) 1px, transparent 1.5px, transparent 4px);
  z-index: 1;
}

@keyframes footer-scan {
  0% { transform: translateX(-105%); }
  100% { transform: translateX(185%); }
}

.footer-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 90%);
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(181, 55, 242, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 44px;
  padding-bottom: 40px;
}

.footer-about-col,
.footer-col,
.footer-contact-col {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  color: inherit;
}

.footer-brand:hover {
  color: inherit;
}

.footer-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a1450, #0b0a0f);
  border: 1px solid var(--line-strong);
  color: var(--neon-purple);
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 900;
  transform: rotate(-8deg);
  box-shadow: 0 0 14px rgba(181, 55, 242, 0.22);
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.footer-about {
  max-width: 42ch;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.footer-trust {
  max-width: 42ch;
  padding: 10px 12px;
  border-left: 2px solid var(--neon-purple-soft);
  border-radius: 0 8px 8px 0;
  background: rgba(181, 55, 242, 0.04);
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.75;
}

h2.footer-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-main);
  margin-bottom: 18px;
}

.footer-heading::before {
  content: "";
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--neon-purple), transparent);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  color: var(--text-dim);
  font-size: 14px;
  transition: color var(--transition-base), text-shadow var(--transition-base), padding-left var(--transition-base);
}

.footer-link:hover {
  color: var(--electric-blue);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
  padding-left: 4px;
}

.footer-contact-list {
  gap: 12px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.footer-contact-label {
  color: var(--neon-purple);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-right: 4px;
}

.footer-support {
  margin-top: 20px;
  padding: 10px 12px;
  border: 1px dashed rgba(181, 55, 242, 0.35);
  border-radius: 10px;
  background: rgba(181, 55, 242, 0.03);
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.75;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(181, 55, 242, 0.14);
}

.footer-copyright,
.footer-icp {
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.back-top {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--line-strong);
  color: var(--neon-purple);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 14px rgba(181, 55, 242, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base), box-shadow var(--transition-base);
}

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

.back-top:hover {
  color: var(--electric-blue);
  border-color: var(--electric-blue-soft);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(0, 229, 255, 0.25);
}

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

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

.page-section {
  padding: 56px 24px;
}

.section-heading {
  font-family: var(--font-head);
  font-size: 38px;
  line-height: 1.12;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  transform: skew(-2deg);
}

.section-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--neon-purple);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.section-mark::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--neon-purple);
  box-shadow: 0 0 8px rgba(181, 55, 242, 0.6);
}

.section-intro {
  max-width: 65ch;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 36px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #b537f2 0%, #7d1aa8 100%);
  color: #0b0a0f;
  box-shadow: 0 6px 22px rgba(181, 55, 242, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(181, 55, 242, 0.5);
  color: #0b0a0f;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--electric-blue);
  color: var(--electric-blue);
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.2);
  color: var(--electric-blue);
  transform: translateY(-2px);
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--blood-red);
  color: #ff5a6b;
}

.btn-danger:hover {
  background: rgba(161, 20, 36, 0.16);
  box-shadow: 0 0 18px rgba(161, 20, 36, 0.3);
  color: #ff5a6b;
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color var(--transition-base), box-shadow var(--transition-base);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-purple), transparent);
  border-radius: 0 3px 3px 0;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(181, 55, 242, 0.5);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4), 0 0 20px rgba(181, 55, 242, 0.12);
}

.card-title {
  font-family: var(--font-head);
  font-size: 21px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.card-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.75;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tag-purple {
  color: var(--neon-purple);
  border-color: rgba(181, 55, 242, 0.38);
  background: rgba(181, 55, 242, 0.09);
}

.tag-hot {
  color: #ff5a6b;
  border-color: rgba(161, 20, 36, 0.5);
  background: rgba(161, 20, 36, 0.14);
}

.tag-new {
  color: var(--laser-green);
  border-color: rgba(204, 255, 0, 0.3);
  background: rgba(204, 255, 0, 0.08);
}

.tag-blue {
  color: var(--electric-blue);
  border-color: rgba(0, 229, 255, 0.32);
  background: rgba(0, 229, 255, 0.08);
}

.heat-index {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--laser-green);
}

.heat-index::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--laser-green);
  box-shadow: 0 0 10px var(--laser-green);
  animation: heat-pulse 1.8s ease-in-out infinite;
}

@keyframes heat-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--text-faint);
}

.breadcrumb a {
  color: var(--text-dim);
  transition: color var(--transition-base);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--neon-purple);
  font-weight: 600;
}

.breadcrumb-sep {
  color: var(--neon-purple-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

.divider {
  border: none;
  height: 1px;
  margin: 28px 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 3;
}

.image-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) saturate(0.9) contrast(1.1);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.image-frame:hover > img {
  transform: scale(1.035);
  filter: brightness(0.95) saturate(1.15) contrast(1.05);
}

.image-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 32px 14px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--text-main);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: rgba(181, 55, 242, 0.1);
  color: var(--neon-purple);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 13px;
}

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

.table-wrap tr:hover td {
  background: rgba(0, 229, 255, 0.03);
}

.panel {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
}

.tilt-block {
  transform: rotate(-1.4deg);
}

.tilt-block-reverse {
  transform: rotate(1.8deg);
}

.neon-border {
  border: 1px solid var(--neon-purple);
  box-shadow: 0 0 20px rgba(181, 55, 242, 0.24), inset 0 0 20px rgba(181, 55, 242, 0.06);
}

.glow-text {
  color: var(--neon-purple);
  text-shadow: 0 0 12px var(--neon-purple), 0 0 36px rgba(181, 55, 242, 0.5);
}

.data-text {
  font-family: var(--font-mono);
  color: var(--laser-green);
  letter-spacing: 0.06em;
}

#main-content,
[id] {
  scroll-margin-top: calc(var(--header-gap) + 80px);
}

@media (max-width: 1140px) {
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-panel {
    padding: 8px 12px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 120;
    padding: 12px;
    border-radius: 20px;
    background: rgba(9, 8, 13, 0.97);
    border: 1px solid var(--line-strong);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.65), 0 0 28px rgba(181, 55, 242, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    gap: 2px;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 16px;
  }

  .nav-link[aria-current="page"] {
    background: rgba(181, 55, 242, 0.14);
    color: var(--neon-purple);
    box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 14px rgba(181, 55, 242, 0.1);
  }

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

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

  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  .section-heading { font-size: 33px; }
}

@media (max-width: 700px) {
  .container,
  .container-narrow {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .search-txt,
  .theme-toggle-txt,
  .nav-toggle-txt {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .search-link,
  .theme-toggle,
  .nav-toggle {
    gap: 0;
    padding: 9px 11px;
  }

  .header-tools {
    gap: 6px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .brand-name {
    font-size: 20px;
  }

  .site-header {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header-panel {
    padding: 7px 9px;
  }
}

@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;
    transition-delay: 0ms !important;
  }
}
