/* 01 Reset & Tokens */
:root {
  --bg-deep: #0a0a12;
  --bg-panel: #12121e;
  --bg-soft: #161624;
  --neon-pink: #ff2d78;
  --electric-purple: #8b5cf6;
  --dark-gold: #c9a45c;
  --text-primary: #f5f5fa;
  --text-body: #b6b6cc;
  --text-muted: #7d7d96;
  --line-faint: rgba(255, 255, 255, 0.08);
  --line-pink: rgba(255, 45, 120, 0.28);
  --font-display: "Impact", "Arial Black", "PingFang SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-body: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --container-width: 1200px;
}

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

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

/* 页面左右框架线 */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 45, 120, 0.55), transparent);
  pointer-events: none;
  z-index: 999;
}

body::before {
  left: 0;
}

body::after {
  right: 0;
}

::selection {
  background: rgba(255, 45, 120, 0.35);
  color: #ffffff;
}

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

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

::-webkit-scrollbar-thumb {
  background: #26263a;
  border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-pink);
}

/* 02 基础排版与链接 */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-top: 0;
  line-height: 1.25;
}

h1 {
  font-size: clamp(36px, 6vw, 58px);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.04em;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 16px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--neon-pink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 45, 120, 0.4);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--neon-pink);
  text-decoration-color: var(--neon-pink);
}

main {
  flex: 1 0 auto;
}

#main-content {
  scroll-margin-top: 88px;
}

::placeholder {
  color: var(--text-muted);
}

/* 03 通用容器与栅格 */
.content-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-space {
  padding: clamp(48px, 8vw, 96px) 0;
}

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

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

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

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

@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* 04 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  filter: brightness(1.12);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-pink), var(--electric-purple));
  border-color: var(--neon-pink);
}

.btn-ghost {
  background: transparent;
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

.btn-ghost:hover {
  background: rgba(255, 45, 120, 0.08);
  filter: none;
}

/* 05 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--dark-gold);
  opacity: 0.6;
}

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

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

.breadcrumb li:last-child {
  color: var(--text-primary);
}

/* 06 页面标题与导语 */
.page-heading {
  padding: clamp(32px, 5vw, 56px) 0 24px;
  border-bottom: 1px solid var(--line-pink);
  margin-bottom: 32px;
}

.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dark-gold);
  margin-bottom: 8px;
}

.lede {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 60ch;
}

/* 07 头部 */
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 400;
  padding: 10px 20px;
  background: var(--neon-pink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(10, 10, 18, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-pink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--neon-pink), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.site-header::before {
  left: 0;
}

.site-header::after {
  right: 0;
}

.scroll-progress {
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 20;
  background: linear-gradient(90deg, var(--electric-purple), var(--neon-pink), var(--dark-gold));
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0.85;
  pointer-events: none;
}

.header-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo:hover {
  text-decoration: none;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--neon-pink), var(--electric-purple));
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.brand-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.main-nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  display: none;
  background: rgba(12, 12, 22, 0.97);
  border: 1px solid var(--line-pink);
  border-top: 2px solid var(--neon-pink);
  padding: 8px 16px 16px;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.45);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.main-nav[data-open] {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 2px;
}

.nav-link {
  display: block;
  padding: 24px 14px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-body);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--neon-pink);
  border-bottom-color: rgba(255, 45, 120, 0.4);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  color: var(--text-primary);
  border-bottom-color: var(--neon-pink);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-pink);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--neon-pink);
}

.toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  transition: background-color 0.2s ease;
}

.nav-toggle:hover .toggle-bar {
  background: var(--neon-pink);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line-faint);
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: var(--neon-pink);
  }
}

@media (min-width: 768px) {
  .main-nav {
    position: static;
    display: block;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    clip-path: none;
  }

  .nav-toggle {
    display: none;
  }
}

/* 08 页脚 */
.site-footer {
  position: relative;
  background: #08080e;
  border-top: 1px solid rgba(255, 45, 120, 0.28);
  padding: 56px 0 28px;
  margin-top: auto;
}

.footer-veil {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 160px;
  background: radial-gradient(closest-side, rgba(255, 45, 120, 0.1), transparent);
  pointer-events: none;
  z-index: 0;
}

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

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

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand-logo {
  margin-bottom: 4px;
}

.footer-tagline {
  margin: 16px 0 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dark-gold);
  margin: 0 0 16px;
}

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

.footer-nav-list li + li,
.footer-contact-list li + li {
  margin-top: 10px;
}

.footer-nav-list a,
.footer-contact-list a {
  color: var(--text-body);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-list a:hover,
.footer-contact-list a:hover {
  color: var(--neon-pink);
}

.footer-contact-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.32);
  border-left: 2px solid var(--dark-gold);
  padding-left: 10px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.copyright {
  letter-spacing: 0.06em;
}

.icp {
  letter-spacing: 0.12em;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
  }
}

/* 09 基础组件 */
.section-panel {
  position: relative;
  padding: 32px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(10, 10, 18, 0.4) 50%, rgba(255, 45, 120, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 45, 120, 0.18);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.divider-line {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 120, 0.7), transparent);
  margin: 48px 0;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line-faint);
  border-top: 2px solid var(--neon-pink);
  padding: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.card-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--neon-pink);
  border: 1px solid var(--line-pink);
  background: rgba(255, 45, 120, 0.06);
}

/* 图片占位容器 */
.img-slot {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--bg-soft);
  aspect-ratio: 4 / 3;
}

.img-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.18), transparent 40%),
    linear-gradient(315deg, rgba(255, 45, 120, 0.12), transparent 50%);
}

.img-slot::after {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-12deg);
}

.img-slot--wide {
  aspect-ratio: 21 / 9;
}

.img-slot--landscape {
  aspect-ratio: 4 / 3;
}

.img-slot--portrait {
  aspect-ratio: 3 / 4;
}

.img-slot--square {
  aspect-ratio: 1 / 1;
}

/* 10 可访问性与动效 */
:focus-visible {
  outline: 2px solid var(--dark-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
