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

/* ===================================================
   MM视频导航 · Brutalism 霓光绿蓝黑 主题样式
   =================================================== */

/* ---- CSS 变量 ---- */
:root {
  --green: #00ff80;
  --blue: #0000ff;
  --black: #000000;
  --white: #ffffff;
  --gray-dark: #111111;
  --gray-mid: #1a1a1a;
  --gray-line: #2a2a2a;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-display: 'Syncopate', 'Space Mono', monospace;
  --nav-height: 110px;
  --border-width: 2px;
  --border-green: 2px solid var(--green);
  --border-blue: 2px solid var(--blue);
  --border-white: 2px solid var(--white);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  background: var(--black);
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body, .dark-body {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover, a:focus { color: var(--white); outline: 2px solid var(--green); outline-offset: 2px; }
ul, menu { list-style: none; }
button, input { font-family: var(--font-mono); font-size: 1rem; border-radius: 0; }

/* ===================================================
   PAGE WRAP
   =================================================== */
.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===================================================
   HEADER — 两行布局
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--black);
  border-bottom: 3px solid var(--green);
  width: 100%;
}

/* 品牌行 */
.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--gray-line);
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green);
}
.brand-link:hover, .brand-link:focus { outline: 2px solid var(--green); color: var(--white); }

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.35rem);
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
}

/* 搜索框 */
.header-search { flex-shrink: 0; }

.search-form {
  display: flex;
  border: var(--border-green);
  overflow: hidden;
}

.search-input {
  background: var(--gray-dark);
  color: var(--white);
  border: none;
  padding: 8px 12px;
  font-size: 0.875rem;
  min-width: 160px;
  outline: none;
}
.search-input::placeholder { color: #555; }
.search-input:focus { background: var(--gray-mid); }

.search-btn {
  background: var(--green);
  color: var(--black);
  border: none;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-mono);
  min-width: 44px;
  min-height: 40px;
  transition: none;
}
.search-btn:hover, .search-btn:focus {
  background: var(--white);
  color: var(--black);
  outline: 2px solid var(--green);
}

/* 菜单行 — details > summary + menu > li > a */
.header-nav-row {
  background: var(--gray-dark);
}

.nav-details {
  width: 100%;
}

.nav-summary {
  display: none;
  padding: 10px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--green);
  letter-spacing: 0.1em;
  list-style: none;
  border: none;
  user-select: none;
  min-height: 44px;
  align-items: center;
}
.nav-summary::-webkit-details-marker { display: none; }

.nav-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar { display: none; }

.nav-menu li { flex-shrink: 0; }

.nav-link {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
  border-right: 1px solid var(--gray-line);
  text-transform: uppercase;
  transition: none;
  white-space: nowrap;
}
.nav-link:hover, .nav-link:focus {
  background: var(--green);
  color: var(--black);
  outline: none;
}

/* ===================================================
   HERO — h1 在首屏内，position:relative 内容在前景
   =================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: var(--black);
  border-bottom: 3px solid var(--blue);
}

/* 双图错位拼贴 */
.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-img {
  position: absolute;
  object-fit: cover;
}

.hero-img-a {
  top: 0;
  left: 0;
  width: 62%;
  height: 78%;
  border-right: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
  filter: brightness(0.45) saturate(1.2);
}

.hero-img-b {
  bottom: 0;
  right: 0;
  width: 52%;
  height: 65%;
  border-left: 4px solid var(--blue);
  border-top: 4px solid var(--blue);
  filter: brightness(0.4) saturate(1.1) hue-rotate(10deg);
}

/* Hero 内容 左对齐，padding-top 确保 h1 在首屏顶部可见 */
.hero-content {
  position: relative;
  z-index: 1;
  padding: 56px 32px 48px;
  max-width: 720px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 4px 10px;
  margin-bottom: 16px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.7);
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  line-height: 1.15;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-transform: uppercase;
  word-break: break-all;
  text-shadow: 0 0 24px rgba(0,255,128,0.3), 2px 2px 0 var(--black);
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: #cccccc;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
  background: rgba(0,0,0,0.6);
  padding: 8px 12px;
}

.hero-cta {
  display: inline-block;
  background: var(--green);
  color: var(--black);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  padding: 14px 28px;
  border: 3px solid var(--green);
  text-transform: uppercase;
  cursor: pointer;
  transition: none;
}
.hero-cta:hover, .hero-cta:focus {
  background: var(--black);
  color: var(--green);
  outline: 3px solid var(--green);
}

/* Parallax effect for hero collage */
@media (prefers-reduced-motion: no-preference) {
  .hero-collage {
    will-change: transform;
  }
}

/* ===================================================
   MAIN — main > div > figure/aside 交错
   content-body 在左，aside 在右
   =================================================== */
.site-main {
  flex: 1;
  background: var(--black);
}

.content-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
  align-items: start;
}

/* content-body 在左 */
.content-body {
  border-right: 2px solid var(--gray-line);
  padding-right: 32px;
  padding-top: 48px;
}

/* figure 装饰块 */
.content-figure {
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.figure-block {
  width: 80px;
  height: 8px;
}
.figure-block-green { background: var(--green); }
.figure-block-blue { background: var(--blue); }

.figure-caption {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #555;
  text-transform: uppercase;
}

.content-figure-top { margin-bottom: 32px; }
.content-figure-bottom { margin-top: 48px; }

/* ===================================================
   PAGE CONTENT (正文 HTML)
   =================================================== */
.page-content-wrap {
  font-size: 1rem;
  line-height: 1.75;
  color: #e0e0e0;
}

.page-content-wrap h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
}

.page-content-wrap h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.04em;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--blue);
}

.page-content-wrap p {
  margin-bottom: 18px;
  color: #d0d0d0;
}

.page-content-wrap a {
  color: var(--green);
  font-weight: 700;
  border-bottom: 1px solid var(--green);
}
.page-content-wrap a:hover, .page-content-wrap a:focus {
  color: var(--white);
  border-bottom-color: var(--white);
}

.page-content-wrap ul, .page-content-wrap ol {
  margin: 0 0 18px 0;
  padding-left: 0;
}

.page-content-wrap ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  color: #d0d0d0;
}
.page-content-wrap ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.65rem;
  top: 6px;
}

.page-content-wrap ol { counter-reset: ol-counter; }
.page-content-wrap ol li {
  counter-increment: ol-counter;
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
  color: #d0d0d0;
}
.page-content-wrap ol li::before {
  content: counter(ol-counter, decimal-leading-zero) '.';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
}

.page-content-wrap strong, .page-content-wrap b {
  color: var(--green);
  font-weight: 700;
}

.page-content-wrap em { color: #aaffcc; font-style: normal; font-weight: 700; }

.page-content-wrap blockquote {
  border-left: 4px solid var(--green);
  padding: 12px 20px;
  background: var(--gray-dark);
  margin: 24px 0;
  color: #cccccc;
  font-style: normal;
}

.page-content-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.9rem;
}
.page-content-wrap th {
  background: var(--green);
  color: var(--black);
  padding: 10px 12px;
  font-weight: 700;
  text-align: left;
}
.page-content-wrap td {
  border: 1px solid var(--gray-line);
  padding: 10px 12px;
  color: #d0d0d0;
}
.page-content-wrap tr:nth-child(even) td { background: var(--gray-dark); }

/* div id 内内容区 */
.page-content-wrap div {
  margin-bottom: 56px;
  padding-top: 8px;
  scroll-margin-top: var(--nav-height);
}

/* ===================================================
   ASIDE — 右侧固定
   =================================================== */
.content-aside {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  padding: 48px 0 32px 28px;
  align-self: start;
}

.aside-inner {
  border: var(--border-green);
  padding: 20px;
  background: var(--gray-dark);
}

.aside-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--green);
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.aside-link {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #aaaaaa;
  padding: 8px 10px;
  border-left: 3px solid transparent;
  transition: none;
  letter-spacing: 0.04em;
}
.aside-link:hover, .aside-link:focus {
  color: var(--green);
  border-left-color: var(--green);
  background: rgba(0, 255, 128, 0.06);
  outline: none;
}

.aside-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--blue);
  padding: 10px 14px;
}

.badge-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--blue);
  line-height: 1;
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--gray-dark);
  border-top: 3px solid var(--green);
}

/* 联系/订阅块 */
.footer-contact-block {
  border-bottom: 2px solid var(--gray-line);
  padding: 48px 24px;
}

.footer-contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.footer-contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-contact-desc {
  color: #aaaaaa;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.footer-form { width: 100%; }

.footer-form-row {
  display: flex;
  border: var(--border-green);
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}

.footer-input {
  flex: 1;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 12px 16px;
  font-size: 0.9rem;
  outline: none;
  min-height: 48px;
}
.footer-input::placeholder { color: #444; }
.footer-input:focus { background: var(--gray-mid); }

.footer-form-btn {
  background: var(--green);
  color: var(--black);
  border: none;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
  min-height: 48px;
  transition: none;
}
.footer-form-btn:hover, .footer-form-btn:focus {
  background: var(--white);
  outline: 2px solid var(--green);
}

.footer-email {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #777;
}
.footer-email-link { color: var(--green); }

/* 主栏 footer — 品牌 + 导航 横排 */
.footer-main-row {
  display: flex;
  flex-direction: row;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  border-bottom: 2px solid var(--gray-line);
}

.footer-brand-col {
  flex: 1;
  padding-right: 32px;
  border-right: 1px solid var(--gray-line);
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--green);
}
.footer-brand-link:hover { color: var(--white); outline: none; }

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  max-width: 340px;
}

.footer-nav-col {
  flex: 1;
  padding-left: 32px;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer-nav-link {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #888;
  padding: 8px 4px;
  letter-spacing: 0.04em;
  min-height: 40px;
  transition: none;
}
.footer-nav-link:hover, .footer-nav-link:focus {
  color: var(--green);
  outline: none;
}

/* 版权栏 */
.footer-copyright-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.78rem;
  color: #555;
  font-family: var(--font-mono);
}

.footer-copy-right {
  font-size: 0.75rem;
  color: #3a3a3a;
}

/* ===================================================
   HOVER MICRO-INTERACTIONS (Brutalist style)
   =================================================== */
@media (prefers-reduced-motion: no-preference) {
  .nav-link {
    position: relative;
    overflow: hidden;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--green);
    transition: left 0.15s linear;
  }
  .nav-link:hover::after, .nav-link:focus::after {
    left: 0;
  }

  .hero-img-a, .hero-img-b {
    transition: transform 0.1s linear, filter 0.1s linear;
  }
  .hero-section:hover .hero-img-a {
    transform: scale(1.01) translate(2px, -2px);
  }
  .hero-section:hover .hero-img-b {
    transform: scale(1.01) translate(-2px, 2px);
  }
}

/* ===================================================
   SCROLL MARGIN for sections
   =================================================== */
div[id] {
  scroll-margin-top: var(--nav-height);
}

/* ===================================================
   RESPONSIVE — 900px
   =================================================== */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
    padding: 0 16px 48px;
  }

  .content-aside {
    position: static;
    padding: 32px 0 0 0;
    order: 2;
  }

  .aside-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
  }

  .aside-title { width: 100%; }

  .aside-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0;
    flex: 1;
  }

  .content-body {
    border-right: none;
    padding-right: 0;
    border-top: 2px solid var(--gray-line);
    padding-top: 32px;
    order: 1;
  }

  .footer-main-row {
    flex-direction: column;
    gap: 32px;
  }

  .footer-brand-col {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--gray-line);
    padding-bottom: 24px;
  }

  .footer-nav-col { padding-left: 0; }

  .footer-copyright-bar {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* ===================================================
   RESPONSIVE — 600px mobile
   =================================================== */
@media (max-width: 600px) {
  :root { --nav-height: 130px; }

  .header-brand-row {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-name { font-size: 0.95rem; }

  .header-search { width: 100%; }
  .search-form { width: 100%; }
  .search-input { min-width: 0; flex: 1; }

  .nav-summary {
    display: flex;
  }

  .nav-details:not([open]) .nav-menu {
    display: none;
  }

  .nav-menu {
    flex-direction: column;
    padding: 8px 0;
    border-top: 1px solid var(--gray-line);
  }

  .nav-link {
    border-right: none;
    border-bottom: 1px solid var(--gray-line);
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .hero-section {
    align-items: flex-start;
  }

  .hero-content {
    padding: 40px 16px 32px;
  }

  .hero-h1 {
    font-size: clamp(1.4rem, 7vw, 1.9rem);
  }

  .hero-img-a { width: 80%; height: 55%; }
  .hero-img-b { width: 65%; height: 45%; }

  .content-section { padding: 0 12px 40px; }

  .footer-contact-block { padding: 32px 16px; }
  .footer-main-row { padding: 28px 16px; }

  .footer-form-row { flex-direction: column; }
  .footer-input { width: 100%; }
  .footer-form-btn { width: 100%; }

  .footer-copyright-bar { padding: 16px; }

  .page-content-wrap h2 { font-size: 1.05rem; }
}

/* ===================================================
   UTILITY
   =================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.page-content-wrap .card {
  border-bottom: 4px solid var(--green);
  border-radius: 0;
  background: var(--gray-dark);
  padding: 20px;
  margin-bottom: 24px;
}
