/* ============================================================
   SITE KIT — /assets/site.css
   爱游戏登录 | 框架式入口 · 粗野主义 × 速度感
   ============================================================ */

/* ---------- 0. Reset & Design Tokens ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-primary: #0A1F44;
  --c-accent: #FF6B00;
  --c-cyan: #00E5FF;
  --c-light: #F5F7FA;
  --c-dark: #111827;
  --c-gray: #6B7280;
  --c-border: #2D3E5A;
  --c-cyan-deep: #00A3C4;
  --c-danger: #E11D48;
  --c-success: #10B981;

  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-hard: 8px 8px 0 var(--c-primary);

  --font-display: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

  --container: 1280px;
  --header-top-h: 68px;
}

/* ---------- 1. Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-dark);
  background-color: var(--c-light);
  background-image:
    linear-gradient(rgba(10, 31, 68, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 31, 68, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--c-primary);
}

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

a {
  color: var(--c-cyan-deep);
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}

a:hover {
  color: var(--c-cyan);
}

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

:focus-visible {
  outline: 3px solid var(--c-cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0, 229, 255, 0.2);
}

#main-content:focus-visible {
  outline: 2px dashed var(--c-accent);
  outline-offset: -2px;
  box-shadow: none;
}

/* ---------- 2. Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 500;
  background: var(--c-accent);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-240%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--c-primary);
  border-top: 4px solid var(--c-cyan);
  border-bottom: 4px solid var(--c-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-top-h);
  padding-top: 10px;
  padding-bottom: 10px;
}

a.brand,
a.brand:hover {
  color: inherit;
  text-decoration: none;
}

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

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 5px 10px;
  transform: skewX(-10deg);
  box-shadow: 3px 3px 0 var(--c-cyan);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: 2px;
  white-space: nowrap;
}

.header__slogan {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.header__slogan::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--c-cyan);
  display: inline-block;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- 4. Navigation ---------- */
.site-nav {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__list {
  display: flex;
  align-items: stretch;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__item + .nav__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.25);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 24px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 4px;
  height: 3px;
  background: var(--c-accent);
  transform: skewX(-20deg) scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: skewX(-20deg) scaleX(1);
}

.nav__link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 107, 0, 0.12);
}

.nav__link[aria-current="page"]::after {
  transform: skewX(-20deg) scaleX(1);
  background: var(--c-accent);
}

/* ---------- 5. Mobile Nav Drawer ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  z-index: 300;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-cyan);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--c-primary);
  border-color: var(--c-accent);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .header__slogan {
    display: none;
  }

  .header__top {
    min-height: 62px;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    background: var(--c-primary);
    border-left: 4px solid var(--c-accent);
    border-top: none;
    padding-top: 86px;
    z-index: 250;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav[data-open="true"] {
    transform: translateX(0);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.35);
  }

  .nav__list {
    flex-direction: column;
    padding: 0 16px;
  }

  .nav__item + .nav__item::before {
    display: none;
  }

  .nav__item {
    border-bottom: 1px solid var(--c-border);
  }

  .nav__link {
    display: flex;
    min-height: 52px;
    padding: 16px 12px;
    font-size: 17px;
  }

  .nav__link::after {
    left: 12px;
    right: auto;
    bottom: 6px;
    width: 34px;
    height: 3px;
  }
}

@media (max-width: 480px) {
  .brand__mark {
    font-size: 14px;
    padding: 4px 8px;
  }

  .brand__name {
    font-size: 17px;
    letter-spacing: 1px;
  }

  .container {
    padding-inline: 16px;
  }
}

/* ---------- 6. Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-cyan));
  z-index: 350;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  border: 3px solid transparent;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--c-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--c-primary);
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.btn--primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  box-shadow: 4px 4px 0 var(--c-border);
}

.btn--primary:hover {
  background: #e55f00;
  border-color: #e55f00;
  color: #fff;
  box-shadow: 6px 6px 0 var(--c-primary);
}

.btn--ghost {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.btn--ghost:hover {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 4px 4px 0 var(--c-accent);
}

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  font-size: 14px;
  list-style: none;
}

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--c-accent);
  font-weight: 800;
}

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

.breadcrumb a:hover {
  color: var(--c-cyan-deep);
}

.breadcrumb [aria-current="page"] {
  color: var(--c-primary);
  font-weight: 700;
}

/* ---------- 9. Page Head ---------- */
.page-head {
  padding: 48px 0 24px;
  border-bottom: 3px solid var(--c-primary);
  margin-bottom: 40px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 1px;
  color: var(--c-primary);
}

.page-subtitle {
  margin-top: 12px;
  font-size: 16px;
  color: var(--c-gray);
  max-width: 60ch;
  line-height: 1.8;
}

/* ---------- 10. Section Head ---------- */
.section-head {
  margin-bottom: 36px;
  max-width: 900px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background: rgba(0, 229, 255, 0.12);
  border-left: 5px solid var(--c-cyan);
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--c-primary);
  margin-top: 14px;
  letter-spacing: 1px;
}

.section-title--accent {
  color: var(--c-accent);
}

.section-subtitle {
  font-size: 16px;
  color: var(--c-gray);
  margin-top: 12px;
  max-width: 60ch;
  line-height: 1.8;
}

/* ---------- 11. Grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

/* ---------- 12. Entry Card ---------- */
.entry-card {
  position: relative;
  background: #fff;
  border: 3px solid var(--c-primary);
  padding: 28px 24px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-card::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: var(--c-accent);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.entry-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hard);
}

.entry-card:hover::after {
  background: var(--c-cyan);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.15);
}

.entry-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--c-primary);
  margin-bottom: 8px;
  padding-right: 28px;
}

.entry-card__text {
  font-size: 14px;
  color: var(--c-gray);
  line-height: 1.7;
}

/* ---------- 13. Entry Link ---------- */
.entry-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--c-primary);
  text-decoration: none;
  letter-spacing: 1px;
}

.entry-link::after {
  content: "→";
  color: var(--c-accent);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.entry-link:hover {
  color: var(--c-accent);
}

.entry-link:hover::after {
  transform: translateX(4px);
}

/* ---------- 14. Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 2px solid var(--c-border);
  color: var(--c-primary);
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.chip--accent {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

.chip--cyan {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--c-cyan);
  color: var(--c-primary);
}

/* ---------- 15. Image Frame ---------- */
.image-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--c-border);
  border: 3px solid var(--c-primary);
  overflow: hidden;
}

.image-frame--vertical {
  aspect-ratio: 3 / 4;
}

.image-frame--wide {
  aspect-ratio: 21 / 9;
}

.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 16. Content Typography ---------- */
.content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-dark);
  max-width: 72ch;
}

.content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--c-primary);
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 5px solid var(--c-accent);
}

.content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-primary);
  margin: 32px 0 12px;
}

.content p {
  margin-bottom: 18px;
}

.content a {
  color: var(--c-cyan-deep);
  font-weight: 600;
}

.content a:hover {
  color: var(--c-accent);
}

.content ul,
.content ol {
  margin: 0 0 20px 1.6em;
}

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

.content blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  background: rgba(10, 31, 68, 0.04);
  border-left: 6px solid var(--c-cyan);
  color: var(--c-gray);
  font-size: 15px;
}

.content strong {
  color: var(--c-primary);
}

/* ---------- 17. Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 24px 0;
}

.steps__item {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 60px;
  border-left: 3px solid var(--c-border);
  background: #fff;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.steps__item:hover {
  border-left-color: var(--c-accent);
  transform: translateX(4px);
}

.steps__item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  color: var(--c-accent);
}

.steps__title {
  font-weight: 800;
  font-size: 16px;
  color: var(--c-primary);
  margin-bottom: 4px;
}

.steps__text {
  font-size: 14px;
  color: var(--c-gray);
  line-height: 1.7;
}

/* ---------- 18. Notice ---------- */
.notice {
  border: 2px solid var(--c-border);
  border-left: 6px solid var(--c-cyan);
  background: #fff;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.7;
}

.notice--warning {
  border-left-color: var(--c-accent);
  background: rgba(255, 107, 0, 0.04);
}

.notice--danger {
  border-left-color: var(--c-danger);
  background: rgba(225, 29, 72, 0.04);
}

.notice__title {
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 4px;
}

/* ---------- 19. Table ---------- */
.table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 2px solid var(--c-primary);
  background: #fff;
}

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

.table th {
  background: var(--c-primary);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  white-space: nowrap;
}

.table td {
  padding: 12px 16px;
  border-top: 1px solid var(--c-border);
  color: var(--c-dark);
}

.table tbody tr:nth-child(even) {
  background: var(--c-light);
}

.table tbody tr:hover {
  background: rgba(0, 229, 255, 0.06);
}

/* ---------- 20. Footer ---------- */
.site-footer {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.85);
  border-top: 4px solid var(--c-cyan);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.footer__brand .brand {
  margin-bottom: 20px;
}

.brand--footer .brand__mark {
  font-size: 20px;
  box-shadow: 4px 4px 0 var(--c-cyan);
}

.brand--footer .brand__name {
  font-size: 24px;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  max-width: 38ch;
  border-left: 3px solid rgba(255, 255, 255, 0.15);
  padding-left: 16px;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid var(--c-accent);
}

.footer__links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__links a:hover {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
}

.footer__contact-list {
  list-style: none;
}

.footer__contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__contact-list li:first-child {
  padding-top: 0;
}

.footer__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.footer__contact-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
}

.footer__legal {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer__copyright {
  order: 1;
}

.footer__icp {
  order: 2;
  letter-spacing: 1px;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  order: 3;
}

.footer__legal-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer__legal-links a:hover {
  color: var(--c-cyan);
  text-decoration: underline;
}

@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__legal-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 21. Reduced Motion ---------- */
@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;
  }

  .scroll-progress {
    transition: none;
  }

  .entry-card:hover,
  .entry-link:hover::after,
  .steps__item:hover,
  .btn:hover {
    transform: none;
  }
}
