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

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

body {
  margin: 0;
  background: #0A0A0A;
  color: #D3FFCE;
  font-family: "Roboto Mono", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", monospace;
  line-height: 1.75;
  font-size: 16px;
}

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

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

h1,
h2,
h3 {
  font-family: Impact, "Arial Black", "Helvetica Neue", sans-serif;
  line-height: 1.1;
  letter-spacing: 0.03em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
}

h2 {
  font-size: clamp(28px, 4.5vw, 48px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 1rem;
}

a {
  color: #39FF14;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: #FF6B00;
}

:root {
  --deep-green: #0B3D2E;
  --neon-green: #39FF14;
  --warn-orange: #FF6B00;
  --bg-black: #0A0A0A;
  --secondary-green: #1A5C47;
  --light-green-text: #D3FFCE;
  --neutral-gray: #8A8F8D;
  --border-green: #2E6B5E;
  --font-display: Impact, "Arial Black", "Helvetica Neue", sans-serif;
  --font-mono: "Roboto Mono", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", monospace;
  --container-max: 1440px;
  --header-h: 76px;
}

::selection {
  background: #39FF14;
  color: #0A0A0A;
}

:focus-visible {
  outline: 3px solid #FF6B00;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: #FF6B00;
  color: #0A0A0A;
  font-weight: bold;
  padding: 10px 18px;
  text-decoration: none;
  border: 2px solid #0A0A0A;
}

.skip-link:focus {
  left: 0;
}

.main-content {
  min-height: 60vh;
  background: #0A0A0A;
}

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

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #39FF14, #FF6B00);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  z-index: 20;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.94);
  border-bottom: 2px solid #2E6B5E;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 76px;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #D3FFCE;
  margin-right: auto;
  flex-shrink: 0;
}

.header-brand:hover {
  color: #39FF14;
}

.header-logo {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 6px rgba(57, 255, 20, 0.35));
}

.header-brand-text {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 24px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

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

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

.search-label {
  font-size: 12px;
  color: #8A8F8D;
  letter-spacing: 0.1em;
}

.header-search {
  width: 180px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #2E6B5E;
  color: #D3FFCE;
  font-size: 14px;
  font-family: "Roboto Mono", "PingFang SC", monospace;
}

.header-search::placeholder {
  color: #8A8F8D;
}

.header-search:focus {
  border-color: #39FF14;
  outline: none;
  box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.15);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #0B3D2E;
  border: 1px solid #2E6B5E;
  color: #D3FFCE;
  cursor: pointer;
  font-family: "Roboto Mono", "PingFang SC", monospace;
}

.nav-toggle:hover {
  border-color: #39FF14;
}

.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
  flex-shrink: 0;
}

.nav-toggle-bar {
  height: 2px;
  background: #39FF14;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 20;
}

.nav-link {
  padding: 10px 10px;
  color: #D3FFCE;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: #39FF14;
  border-bottom-color: #39FF14;
}

.nav-link[aria-current="page"] {
  color: #39FF14;
  border-bottom-color: #FF6B00;
  font-weight: bold;
}

.site-footer {
  position: relative;
  background: #0B3D2E;
  border-top: 4px solid #39FF14;
  color: #D3FFCE;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  width: 240px;
  height: 4px;
  background: #FF6B00;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 24px 36px;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(0, 2.8fr);
  gap: 48px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.4));
}

.footer-brand-text {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 28px;
  letter-spacing: 0.05em;
  color: #D3FFCE;
}

.footer-trust {
  font-size: 14px;
  line-height: 1.8;
  color: #D3FFCE;
  max-width: 340px;
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid #39FF14;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-family: "Roboto Mono", "PingFang SC", monospace;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #39FF14;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-link {
  color: #D3FFCE;
  text-decoration: none;
  width: fit-content;
  font-size: 14px;
}

.footer-link:hover {
  color: #39FF14;
}

.contact-item {
  color: #D3FFCE;
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 2px solid #2E6B5E;
  background: #0A0A0A;
}

.footer-bottom-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #8A8F8D;
}

.footer-copy,
.footer-icp {
  color: #8A8F8D;
}

.section {
  position: relative;
  padding: 72px 24px;
  border-top: 2px solid #2E6B5E;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-number {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 56px;
  line-height: 1;
  color: #0A0A0A;
  background: #39FF14;
  padding: 4px 14px 4px 10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  margin: 0;
}

.section-lead {
  max-width: 720px;
  color: #8A8F8D;
  font-size: 17px;
  line-height: 2;
  margin: 0;
}

.breadcrumb {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #8A8F8D;
}

.breadcrumb-item a {
  color: #D3FFCE;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #39FF14;
}

.breadcrumb-current {
  color: #39FF14;
  font-weight: bold;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid #39FF14;
  background: transparent;
  color: #39FF14;
  font-family: "Roboto Mono", "PingFang SC", monospace;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: #39FF14;
  color: #0A0A0A;
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.35);
}

.btn-solid {
  background: #39FF14;
  color: #0A0A0A;
}

.btn-solid:hover {
  background: transparent;
  color: #39FF14;
}

.btn-warn {
  border-color: #FF6B00;
  color: #FF6B00;
}

.btn-warn:hover {
  background: #FF6B00;
  color: #0A0A0A;
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.35);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: #1A5C47;
  color: #D3FFCE;
  border: 1px solid #2E6B5E;
  font-family: "Roboto Mono", "PingFang SC", monospace;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.4;
}

.tag-highlight {
  background: #39FF14;
  color: #0A0A0A;
  border-color: #39FF14;
  font-weight: bold;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #0B3D2E;
  border: 2px solid #2E6B5E;
  color: #39FF14;
  font-family: "Roboto Mono", monospace;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}

.grid-card {
  background: #0B3D2E;
  border: 2px solid #2E6B5E;
  padding: 20px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
}

.grid-card-media {
  position: relative;
  overflow: hidden;
  background: #0B3D2E;
  border: 2px solid #2E6B5E;
  margin-bottom: 16px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: #0B3D2E;
  border: 2px solid #2E6B5E;
}

.media-frame::before,
.grid-card-media::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.media-frame-wide::before {
  padding-top: 42.86%;
}

.media-frame-tall::before {
  padding-top: 75%;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-item {
  border-left: 4px solid #39FF14;
  background: rgba(11, 61, 46, 0.72);
  padding: 24px 20px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.step-index {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 48px;
  line-height: 1;
  color: #FF6B00;
  display: block;
  margin-bottom: 8px;
}

.panel {
  border-bottom: 1px solid #2E6B5E;
}

.panel-item {
  border-top: 1px solid #2E6B5E;
}

.panel-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  color: #D3FFCE;
  cursor: pointer;
  text-align: left;
  font-family: "Roboto Mono", "PingFang SC", monospace;
  font-weight: bold;
  font-size: 16px;
}

.panel-trigger::after {
  content: "+";
  color: #39FF14;
  font-size: 24px;
  line-height: 1;
}

.panel-item[data-open] .panel-trigger::after {
  content: "−";
}

.panel-content {
  display: none;
  padding: 0 20px 20px;
  color: #8A8F8D;
}

.panel-item[data-open] .panel-content {
  display: block;
}

@media (max-width: 959px) {
  .header-inner {
    gap: 12px;
  }

  .header-search,
  .search-label {
    display: none;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0A0A0A;
    border-bottom: 2px solid #2E6B5E;
    padding: 12px 24px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid #2E6B5E;
    font-size: 16px;
  }

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

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

  .footer-trust {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .container,
  .header-inner,
  .footer-inner,
  .footer-bottom-inner,
  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 56px 16px;
  }

  .section-head {
    gap: 10px;
  }

  .section-number {
    font-size: 42px;
  }

  .header-brand-text {
    font-size: 20px;
  }

  .header-logo {
    width: 32px;
    height: 32px;
  }

  .nav-toggle-label {
    display: none;
  }

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

@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;
  }

  .scroll-progress {
    display: none;
  }
}
