/* ==========================================================
   乐鱼安装 · /assets/site.css
   共享样式：Reset / 变量 / 排版 / 头部 / 页脚 / 通用组件
   ========================================================== */

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

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

body {
  min-height: 100vh;
  background-color: var(--deep-blue);
  background-image:
    linear-gradient(rgba(28, 78, 138, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 78, 138, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--bright-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
  overflow-wrap: break-word;
}

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

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

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- 2. CSS Variables ---------- */
:root {
  --deep-blue: #0B1D3A;
  --abyss-blue: #0F2B52;
  --sapphire-blue: #1C4E8A;
  --vibrant-orange: #FF6B35;
  --neon-green: #B8FF3B;
  --wine-red: #7A2E3D;
  --indigo-purple: #3D2C6E;
  --bright-white: #EAF4FF;
  --mist-blue: #8FB3D9;
  --line-blue: #3A5A7F;

  --font-heading: "Arial Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "DIN Alternate", "Roboto Mono", "SF Mono", Consolas, monospace;

  --container-w: 1280px;
  --header-h: 72px;
  --grid-gap: 24px;
  --radius: 8px;

  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 0.6s;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: var(--bright-white);
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }

p {
  color: var(--bright-white);
}

.section-heading {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
}

.section-heading__accent {
  color: var(--neon-green);
}

.data-num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  color: var(--neon-green);
}

/* ---------- 4. Container / Main ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

#main-content {
  min-height: 70vh;
  padding-top: var(--header-h);
}

.page-section {
  padding: 80px 0;
}

.content-body {
  max-width: 720px;
}

.content-body p {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--mist-blue);
}

.content-body strong {
  color: var(--bright-white);
  font-weight: 600;
}

/* ---------- 5. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -52px;
  left: 16px;
  z-index: 2000;
  background: var(--vibrant-orange);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.3s var(--ease-out);
}

.skip-link:focus-visible {
  top: 0;
  outline: none;
}

/* ---------- 6. Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--neon-green), var(--vibrant-orange));
  z-index: 2005;
  pointer-events: none;
}

/* ---------- 7. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  background: var(--deep-blue);
  box-shadow: 0 4px 28px rgba(2, 8, 20, 0.45);
  border-bottom: 1px solid rgba(58, 90, 127, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 14px rgba(184, 255, 59, 0.6);
}

.brand__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(184, 255, 59, 0.45);
  animation: brandPulse 3s var(--ease-out) infinite;
}

@keyframes brandPulse {
  0%, 100% {
    transform: scale(0.72);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.12;
  }
}

.brand__text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--bright-white);
}

/* Nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 4px;
  z-index: 1002;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--bright-white);
  transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease-out), background-color 0.3s;
}

.nav-toggle__bar + .nav-toggle__bar {
  margin-top: 6px;
}

.nav-toggle:hover .nav-toggle__bar {
  background: var(--vibrant-orange);
}

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

/* Nav */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav__item {
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: inline-block;
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--bright-white);
  border-radius: 4px;
  transition: color 0.3s var(--ease-out);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  background: var(--vibrant-orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.site-nav__link:hover {
  color: var(--vibrant-orange);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav__link[aria-current="page"] {
  color: var(--neon-green);
}

/* ---------- 8. Footer ---------- */
.site-footer {
  margin-top: 96px;
  background: linear-gradient(180deg, #071329 0%, #040A18 100%);
  border-top: 1px solid var(--line-blue);
  padding: 72px 0 32px;
  color: var(--bright-white);
}

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

.footer-col--brand {
  grid-column: 1 / 2;
}

.footer-col--links {
  grid-column: 2 / 3;
}

.footer-col--contact {
  grid-column: 3 / 4;
}

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

.footer-brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 14px rgba(184, 255, 59, 0.5);
}

.footer-brand__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--bright-white);
}

.footer-desc {
  max-width: 360px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist-blue);
}

.footer-icp {
  font-size: 13px;
  color: var(--mist-blue);
}

.footer-icp a {
  color: var(--mist-blue);
  border-bottom: 1px solid var(--line-blue);
  transition: color 0.3s, border-color 0.3s;
}

.footer-icp a:hover {
  color: var(--vibrant-orange);
  border-color: var(--vibrant-orange);
}

.footer-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bright-white);
  margin-bottom: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--mist-blue);
  transition: color 0.3s, padding-left 0.3s var(--ease-out);
}

.footer-links a:hover {
  color: var(--vibrant-orange);
  padding-left: 4px;
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--mist-blue);
}

.footer-contact li {
  position: relative;
  padding-left: 18px;
}

.footer-contact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 2px;
  background: var(--sapphire-blue);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.footer-legal a {
  color: var(--mist-blue);
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--neon-green);
}

.footer-legal__sep {
  color: var(--line-blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(58, 90, 127, 0.4);
  font-size: 13px;
  color: var(--mist-blue);
}

/* ---------- 9. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--bright-white);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.35s, border-color 0.35s, color 0.35s, box-shadow 0.35s;
}

.btn--primary {
  background: var(--vibrant-orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.25);
}

.btn--primary:hover {
  background: #f05a27;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.35);
}

.btn--secondary {
  background: transparent;
  border-color: var(--line-blue);
  color: var(--bright-white);
}

.btn--secondary:hover {
  border-color: var(--vibrant-orange);
  color: var(--vibrant-orange);
  transform: translateY(-2px);
}

/* ---------- 10. Breadcrumbs ---------- */
.breadcrumbs {
  padding: calc(var(--header-h) + 32px) 0 24px;
  font-size: 14px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.breadcrumbs__item {
  color: var(--mist-blue);
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-blue);
}

.breadcrumbs__link {
  color: var(--mist-blue);
  transition: color 0.3s;
}

.breadcrumbs__link:hover {
  color: var(--vibrant-orange);
}

.breadcrumbs__item--current {
  color: var(--bright-white);
  font-weight: 500;
}

/* ---------- 11. Bento Grid ---------- */
.grid-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

.bento-cell {
  position: relative;
  background: var(--abyss-blue);
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.bento-cell:hover {
  transform: translateY(-2px);
  border-color: var(--sapphire-blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ---------- 12. Section Utilities ---------- */
.section--wine {
  background: var(--wine-red);
}

.section--indigo {
  background: var(--indigo-purple);
}

.cut-edge {
  clip-path: polygon(0 2.5em, 100% 0, 100% calc(100% - 2.5em), 0 100%);
}

/* ---------- 13. Tables & Details ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

.data-table th {
  color: var(--mist-blue);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.data-table td {
  color: var(--bright-white);
  font-variant-numeric: tabular-nums;
}

.data-table tbody tr:hover {
  background: rgba(28, 78, 138, 0.12);
}

details {
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background: var(--abyss-blue);
  overflow: hidden;
}

details + details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--bright-white);
  list-style: none;
  transition: background-color 0.3s, color 0.3s;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "+";
  display: inline-block;
  margin-right: 12px;
  color: var(--vibrant-orange);
  font-weight: 700;
  transition: transform 0.3s var(--ease-out);
}

details[open] summary::before {
  transform: rotate(45deg);
}

summary:hover {
  background: rgba(28, 78, 138, 0.15);
}

details > *:not(summary) {
  padding: 4px 20px 16px;
  font-size: 15px;
  color: var(--mist-blue);
}

/* ---------- 14. Image Frame ---------- */
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-blue);
  background: var(--abyss-blue);
  aspect-ratio: 16 / 9;
}

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

/* ---------- 15. Scroll Reveal ---------- */
[data-reveal] {
  opacity: 1;
  transform: none;
}

.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.js-enabled [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 16. Focus ---------- */
:focus-visible {
  outline: 2px solid var(--vibrant-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-nav__link:focus-visible,
.btn:focus-visible,
.breadcrumbs__link:focus-visible {
  outline-color: var(--neon-green);
}

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

  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 0.3s ease;
  }

  .brand__pulse {
    animation: none;
  }
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
  }

  .site-nav__list {
    gap: 4px;
  }

  .site-nav__link {
    padding: 10px 10px;
    font-size: 14px;
  }

  .site-nav__link::after {
    left: 10px;
    right: 10px;
  }

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

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .footer-col--links {
    grid-column: 1 / 2;
  }

  .footer-col--contact {
    grid-column: 2 / 3;
  }
}

@media (max-width: 767px) {
  .container {
    padding-inline: 20px;
  }

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

  .skip-link {
    left: 8px;
    font-size: 13px;
  }

  .nav-toggle {
    display: flex;
  }

  .brand {
    position: relative;
    z-index: 1002;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--deep-blue);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0s 0.4s;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s var(--ease-out);
  }

  .site-nav__list {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .site-nav__link {
    font-size: 22px;
    font-weight: 600;
    padding: 14px 28px;
  }

  .site-nav__link::after {
    left: 28px;
    right: 28px;
  }

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

  .footer-col--brand,
  .footer-col--links,
  .footer-col--contact {
    grid-column: 1 / -1;
  }

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

  .grid-bento {
    gap: 16px;
  }

  .bento-cell {
    padding: 20px;
  }
}
