@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Orbitron:wght@700;900&display=swap');

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #3bb1ff;
  --red: #ff5252;
  --black: #000000;
  --white: #ffffff;
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --text: #f0f0f0;
  --text-muted: #999999;
  --border: 3px solid #000000;
  --shadow: 5px 5px 0 #000000;
  --shadow-primary: 5px 5px 0 #3bb1ff;
  --shadow-red: 5px 5px 0 #ff5252;
  --font-head: 'Orbitron', 'Arial Black', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: var(--font-mono);
  --nav-height: 100px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
}

body.nb-body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ===== SCROLL MARGIN FOR SECTIONS ===== */
article[id] {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

/* ===== OVERLAY MENU ===== */
.overlay-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.77, 0, 0.18, 1);
  border-right: 3px solid var(--primary);
}

.overlay-menu.is-open {
  transform: translateX(0);
}

.overlay-menu[aria-hidden="true"] {
  pointer-events: none;
}

.overlay-menu[aria-hidden="false"] {
  pointer-events: auto;
}

.overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--red);
  border: var(--border);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.overlay-close:hover {
  box-shadow: none;
  transform: translate(5px, 5px);
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.overlay-link {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.5rem;
  border: 3px solid transparent;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
  position: relative;
}

.overlay-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 4px 4px 0 var(--primary);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  border-bottom: 3px solid var(--primary);
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 2px solid var(--bg3);
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-link {
  display: flex;
  align-items: center;
}

.brand-logo,
.brand-mark {
  height: 36px;
  width: auto;
}

.brand-name {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  /* 确保品牌名 tap 区域足够 */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
}

.brand-name:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ===== CTA BUTTON ===== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
  min-height: 44px;
}

.cta-btn:hover {
  color: var(--white);
  box-shadow: none;
  transform: translate(5px, 5px);
}

.cta-hero {
  background: var(--primary);
  color: var(--black);
  font-size: 0.9rem;
  padding: 0.75rem 2rem;
  margin-top: 1.5rem;
}

.cta-hero:hover {
  color: var(--black);
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: var(--bg3);
  border: var(--border);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.hamburger:hover {
  box-shadow: none;
  transform: translate(5px, 5px);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--primary);
  transition: background var(--transition);
}

.hamburger:hover span {
  background: var(--red);
}

/* ===== HEADER NAV ROW ===== */
.header-nav-row {
  padding: 0 1.5rem;
  background: var(--bg2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.header-nav-row::-webkit-scrollbar {
  display: none;
}

.main-nav {
  display: flex;
}

.main-nav p {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-right: 1px solid var(--bg3);
  transition: background var(--transition), color var(--transition);
  min-height: 44px;
}

.nav-link:first-child {
  border-left: 1px solid var(--bg3);
}

.nav-link:hover {
  background: var(--primary);
  color: var(--black);
}

/* ===== HERO ===== */
.hero-section {
  background: var(--bg2);
  border-bottom: 3px solid var(--primary);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 45vh;
  align-items: stretch;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border-right: 3px solid var(--black);
  background: var(--bg3);
}

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

.hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
}

.hero-placeholder span {
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary);
  border: 3px solid var(--primary);
  padding: 1rem 2rem;
  box-shadow: 8px 8px 0 var(--red);
  opacity: 0.7;
}

.hero-copy {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  justify-content: center;
  background: var(--black);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 2px solid var(--red);
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
  box-shadow: 3px 3px 0 var(--red);
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.7;
}

/* ===== MAIN CONTENT LAYOUT ===== */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-article {
  width: 100%;
}

.content-layout-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border: 3px solid var(--black);
  margin: 2rem 0;
  box-shadow: var(--shadow-primary);
}

/* ===== ASIDE ===== */
.site-aside {
  background: var(--bg2);
  border-right: 3px solid var(--black);
  padding: 1.5rem 1rem;
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  align-self: start;
}

.aside-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.aside-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.aside-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  border: 2px solid transparent;
  transition: all var(--transition);
  line-height: 1.3;
  min-height: 40px;
}

.aside-link:hover {
  color: var(--black);
  background: var(--primary);
  border-color: var(--black);
  box-shadow: 3px 3px 0 var(--black);
}

.aside-badge {
  margin-top: 1.5rem;
  background: var(--black);
  border: 2px solid var(--primary);
  padding: 0.5rem;
  text-align: center;
  box-shadow: 3px 3px 0 var(--primary);
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== CONTENT MAIN ===== */
.content-main {
  padding: 2rem;
  min-width: 0;
}

/* ===== CONTENT SECTIONS (page.content 内部) ===== */
.content-main article {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--bg3);
}

.content-main article:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.content-main h2 {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--red);
}

.content-main h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 1.25rem 0 0.5rem;
  letter-spacing: 0.04em;
}

.content-main p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.content-main ul, .content-main ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.content-main li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.4rem;
  list-style: disc;
}

.content-main a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-main a:hover {
  color: var(--red);
}

.content-main strong {
  color: var(--white);
  font-weight: 700;
}

.content-main blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1.25rem;
  background: var(--bg2);
  margin: 1rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.content-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.content-main th {
  background: var(--primary);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 0.6rem 0.75rem;
  text-align: left;
  border: 2px solid var(--black);
}

.content-main td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--bg3);
  color: var(--text);
}

.content-main tr:nth-child(even) td {
  background: var(--bg2);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  border-top: 3px solid var(--primary);
  margin-top: 2rem;
}

.site-footer > article {
  border-bottom: 2px solid var(--bg3);
}

.footer-contact {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-links,
.footer-info {
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-section-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-item a {
  color: var(--primary);
}

.contact-item a:hover {
  color: var(--red);
}

.no-contact {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Subscribe Form */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.sub-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sub-row {
  display: flex;
  gap: 0;
}

.sub-input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  background: var(--bg2);
  border: 3px solid var(--black);
  border-right: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}

.sub-input:focus {
  border-color: var(--primary);
}

.sub-btn {
  padding: 0.6rem 1.25rem;
  background: var(--primary);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 3px solid var(--black);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 44px;
}

.sub-btn:hover {
  box-shadow: none;
  transform: translate(5px, 5px);
}

/* Footer nav list */
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--bg3);
  display: block;
  transition: color var(--transition), padding-left var(--transition);
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

/* Footer info */
.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-warn {
  font-size: 0.78rem;
  color: var(--red);
  line-height: 1.6;
  border: 2px solid var(--red);
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

/* Footer Bottom */
.footer-bottom {
  background: var(--bg2);
  border-top: 2px solid var(--bg3);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .stagger-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .stagger-item.visible {
    opacity: 1;
    transform: translateX(0);
  }

  .content-main article {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .content-main article.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-item, .content-main article {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  :root {
    --nav-height: 110px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    border-right: none;
    border-bottom: 3px solid var(--black);
    min-height: 200px;
  }

  .hero-placeholder {
    min-height: 200px;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
    padding: 2rem 1.5rem;
  }

  .content-layout-section {
    grid-template-columns: 1fr;
  }

  .site-aside {
    position: static;
    border-right: none;
    border-bottom: 3px solid var(--black);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
  }

  .aside-nav-list {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .aside-link {
    min-height: 40px;
  }

  .footer-contact,
  .footer-links,
  .footer-info {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-height: 90px;
  }

  .header-brand-row {
    padding: 0.6rem 1rem;
  }

  .brand-name {
    font-size: 0.9rem;
    min-height: 44px;
  }

  .header-nav-row {
    padding: 0 0.5rem;
  }

  .nav-link {
    padding: 0.6rem 0.6rem;
    font-size: 0.72rem;
    min-height: 44px;
  }

  .cta-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.72rem;
    min-height: 44px;
  }

  .hero-copy {
    padding: 1.5rem 1rem;
  }

  .hero-h1 {
    font-size: 1.4rem;
  }

  .content-main {
    padding: 1.25rem 1rem;
  }

  .site-aside {
    padding: 1rem;
    grid-template-columns: 1fr;
  }

  .aside-nav-list {
    flex-direction: column;
  }

  .footer-contact,
  .footer-links,
  .footer-info {
    padding: 1.25rem 1rem;
  }

  .footer-bottom {
    padding: 1rem;
  }

  .sub-row {
    flex-direction: column;
  }

  .sub-input {
    border-right: 3px solid var(--black);
    border-bottom: none;
  }

  .sub-btn {
    width: 100%;
  }
}

/* ===== UTILITY ===== */
.nb-body ::selection {
  background: var(--primary);
  color: var(--black);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border: 1px solid var(--black);
}

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

button[aria-expanded]{min-width:44px;min-height:44px}
