/* ========== Reset & Design Tokens ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
main { display: block; }
h1, h2, h3, h4, h5, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; }
[hidden] { display: none !important; }

:root {
  --c-bg: #0B1B2B;
  --c-bg-deep: #081321;
  --c-card: #1A2C3E;
  --c-surface: #E8ECEF;
  --c-silver: #C0C6CC;
  --c-acc: #FF5C00;
  --c-acc-dark: #CC4A00;
  --c-text: #FFFFFF;
  --c-text-2: #A0AAB5;
  --c-border: #2A3B4C;
  --c-cyan: #00E5FF;

  --f-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-mono: "Roboto Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;

  --w-container: 1280px;
  --h-header: 68px;
  --b-w: 3px;
  --shadow-1: 6px 6px 0 rgba(0, 0, 0, 0.22);
  --radius: 2px;
}

/* ========== Base Typography ========== */
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    linear-gradient(90deg, rgba(192, 198, 204, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(192, 198, 204, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--f-head);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: 20px; }
p { color: var(--c-text-2); }

:focus-visible {
  outline: 3px solid var(--c-cyan);
  outline-offset: 2px;
}

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

.text-accent { color: var(--c-acc); }
.text-mono { font-family: var(--f-mono); }

.page-main { min-height: 62vh; }
.page-main a { color: var(--c-cyan); }
.page-main a:hover { color: var(--c-acc); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: var(--b-w) solid var(--c-border);
  background: transparent;
  color: var(--c-text);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { border-color: var(--c-acc); color: var(--c-acc); }
.btn-primary { background: var(--c-acc); border-color: var(--c-acc); color: var(--c-bg); }
.btn-primary:hover { background: var(--c-acc-dark); border-color: var(--c-acc-dark); color: var(--c-text); }
.btn-outline { border-color: var(--c-acc); color: var(--c-acc); }
.btn-outline:hover { background: var(--c-acc); color: var(--c-bg); }

/* ========== Skip Link ========== */
.skip-link {
  position: fixed;
  top: -120%;
  left: 16px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--c-acc);
  color: var(--c-bg);
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 14px;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 12px; }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 27, 43, 0.97);
  border-bottom: var(--b-w) solid var(--c-border);
}

.top-strip {
  background: var(--c-bg-deep);
  border-bottom: 1px solid var(--c-border);
}
.top-strip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
}
.top-strip-code,
.top-strip-domain {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--c-text-2);
  text-transform: uppercase;
}
.top-strip-code::before {
  content: "◆ ";
  color: var(--c-acc);
}
.top-strip-domain { color: var(--c-silver); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--h-header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: var(--b-w) solid var(--c-acc);
  background: linear-gradient(135deg, var(--c-acc) 0%, var(--c-acc) 38%, transparent 38%);
}
.brand-mark i {
  position: absolute;
  inset: 7px;
  display: block;
  border: 1px solid rgba(11, 27, 43, 0.55);
}
.brand-copy { display: block; }
.brand-name {
  display: block;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-text);
  white-space: nowrap;
}
.brand-name-accent { color: var(--c-acc); }
.brand-tag {
  display: block;
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--c-text-2);
  white-space: nowrap;
}

.nav-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.drawer-head { display: none; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 7px 10px;
  border: 2px solid var(--c-border);
  background: var(--c-bg-deep);
  flex-shrink: 0;
  transition: border-color .2s ease;
}
.search-box:focus-within { border-color: var(--c-cyan); }
.search-glyph {
  position: relative;
  display: block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border: 2px solid var(--c-silver);
  border-radius: 50%;
}
.search-glyph::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 2px;
  height: 7px;
  background: var(--c-silver);
  transform: rotate(45deg);
}
.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 13px;
}
.search-input::placeholder { color: var(--c-text-2); opacity: 1; }
.search-status {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-acc);
  white-space: nowrap;
}
.search-status:empty { display: none; }

.nav-list {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 12px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--c-text);
  white-space: nowrap;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  background: var(--c-acc);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}
.nav-link:hover { color: var(--c-cyan); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--c-acc); }
.nav-index {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--c-acc);
}
.nav-label { font-weight: 700; }

.drawer-note {
  flex-shrink: 0;
  margin: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .16em;
  color: var(--c-text-2);
  text-transform: uppercase;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-entrance { padding: 9px 16px; font-size: 13px; }
.header-ver {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--c-text-2);
}
.nav-toggle { display: none; }

.progress-track {
  display: block;
  height: 3px;
  background: var(--c-border);
  overflow: hidden;
}
.progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--c-acc);
  transition: width .1s linear;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 119;
  background: rgba(8, 19, 33, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.nav-backdrop[data-open] { opacity: 1; pointer-events: auto; }

/* ========== Header Mobile Drawer ========== */
@media (max-width: 1023.98px) {
  .header-entrance,
  .header-ver { display: none; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    background: transparent;
    border: 2px solid var(--c-border);
    cursor: pointer;
  }
  .toggle-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--c-text);
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-toggle:hover { border-color: var(--c-acc); }
  .nav-toggle[aria-expanded="true"] .toggle-line:first-child { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .toggle-line:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .toggle-line:last-child { transform: translateY(-7px) rotate(-45deg); }

  .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: min(340px, 88vw);
    height: 100vh;
    height: 100dvh;
    padding: 24px;
    overflow-y: auto;
    background: var(--c-card);
    border-left: var(--b-w) solid var(--c-acc);
    box-shadow: -12px 0 24px rgba(0, 0, 0, 0.35);
    transform: translateX(105%);
    transition: transform .3s ease;
  }
  .nav-panel[data-open] { transform: translateX(0); }

  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .drawer-title {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .22em;
    color: var(--c-silver);
    text-transform: uppercase;
  }
  .drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 2px solid var(--c-border);
    color: var(--c-text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }
  .drawer-close:hover { border-color: var(--c-acc); color: var(--c-acc); }

  .search-box { max-width: none; width: 100%; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item { border-bottom: 1px solid var(--c-border); }
  .nav-item:first-child { border-top: 1px solid var(--c-border); }
  .nav-link {
    display: flex;
    align-items: center;
    padding: 14px 8px;
    font-size: 17px;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { background: rgba(255, 92, 0, 0.1); }
  .nav-index { font-size: 12px; }

  .drawer-note {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--c-border);
    white-space: normal;
  }
}

@media (max-width: 639.98px) {
  .top-strip { display: none; }
  .container { padding-inline: 16px; }
  .brand-tag { display: none; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 32px; height: 32px; }
}

@media (min-width: 1024px) {
  .nav-backdrop { display: none; }
}

/* ========== Footer ========== */
.site-footer {
  margin-top: clamp(48px, 8vw, 88px);
  background: var(--c-bg-deep);
  border-top: var(--b-w) solid var(--c-acc);
}
.footer-grid {
  display: grid;
  grid-template-columns: 3fr 1.4fr 1.2fr 2fr;
  gap: 40px;
  padding-block: 52px 36px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-brand-mark {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: var(--b-w) solid var(--c-acc);
  background: linear-gradient(135deg, var(--c-acc) 0%, var(--c-acc) 38%, transparent 38%);
}
.footer-brand-mark i {
  position: absolute;
  inset: 5px;
  display: block;
  border: 1px solid rgba(11, 27, 43, 0.55);
}
.footer-brand-name {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--c-text);
  white-space: nowrap;
}
.footer-trust {
  max-width: 340px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--c-text-2);
}
.footer-service {
  font-size: 12px;
  line-height: 1.8;
  color: var(--c-text-2);
}

.footer-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-border);
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 16px;
  color: var(--c-text);
}
.footer-heading span {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--c-acc);
  text-transform: uppercase;
}

.footer-links li + li { border-top: 1px solid rgba(42, 59, 76, 0.6); }
.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--c-text-2);
  transition: color .15s ease, padding-left .15s ease;
}
.footer-links a::before {
  content: "↳";
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-acc);
}
.footer-links a:hover { color: var(--c-cyan); padding-left: 6px; }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-2);
}
.contact-label {
  display: block;
  margin-bottom: 3px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--c-silver);
}

.footer-bottom {
  border-top: 1px solid var(--c-border);
  background: rgba(11, 27, 43, 0.6);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding-block: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--c-text-2);
}
.footer-icp { color: var(--c-silver); }

@media (max-width: 1023.98px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 639.98px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col-brand { grid-column: auto; }
}

/* ========== Page Shared Modules ========== */
.page-hero {
  padding-block: clamp(56px, 9vw, 104px) clamp(40px, 6vw, 72px);
}
.page-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--c-acc);
  text-transform: uppercase;
}
.page-kicker::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--c-acc);
}
.page-title { max-width: 18em; margin-bottom: 16px; }
.page-lead { max-width: 640px; font-size: 16px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 40px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--c-text-2);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb li + li::before {
  content: "/";
  margin-inline: 4px;
  color: var(--c-acc);
}
.breadcrumb a { color: var(--c-silver); transition: color .15s ease; }
.breadcrumb a:hover { color: var(--c-cyan); }

.section { padding-block: clamp(48px, 7vw, 88px); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--c-acc);
  text-transform: uppercase;
}
.section-label::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--c-acc);
}
.section-title { margin-bottom: 14px; }
.section-lead { font-size: 15px; }

.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

@media (max-width: 1023.98px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
  .grid-2,
  .grid-3,
  .grid-12 { grid-template-columns: minmax(0, 1fr); }
}

.content-card {
  position: relative;
  padding: 28px;
  background: var(--c-card);
  border: var(--b-w) solid var(--c-border);
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.content-card::before,
.content-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.content-card::before {
  top: -3px;
  left: -3px;
  border-top: 3px solid var(--c-acc);
  border-left: 3px solid var(--c-acc);
}
.content-card::after {
  bottom: -3px;
  right: -3px;
  border-bottom: 3px solid var(--c-acc);
  border-right: 3px solid var(--c-acc);
}
.content-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.28);
  border-color: var(--c-acc);
}

.corner-frame {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  background: var(--c-card);
  border: var(--b-w) solid var(--c-border);
}
.corner-frame::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 28px;
  height: 3px;
  background: var(--c-acc);
}
.corner-frame::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 3px;
  height: 28px;
  background: var(--c-acc);
}

.figure-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: var(--b-w) solid var(--c-border);
  background:
    linear-gradient(135deg, rgba(255, 92, 0, 0.14) 25%, transparent 25%) 0 0 / 18px 18px,
    var(--c-card);
}
.figure-frame::after {
  content: "FIGURE // 媒体位";
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 4px 8px;
  background: rgba(11, 27, 43, 0.72);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--c-text-2);
  text-transform: uppercase;
}

.v-note {
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--c-text-2);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
