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

:root{
  --bow-bg:#0B1B3A;
  --bow-bg-deep:#071026;
  --bow-accent:#1F5EFF;
  --bow-neon:#39FF14;
  --bow-orange:#FF7A00;
  --bow-mist:#3A4A6A;
  --bow-text:#F0F4F8;
  --bow-text-dim:#B8C4D4;
  --bow-purple:#7A00FF;
  --bow-black:#1A1A1A;
  --bow-font-heading:"PingFang SC","Microsoft YaHei",sans-serif;
  --bow-font-body:"PingFang SC","Microsoft YaHei",sans-serif;
  --bow-font-mono:"JetBrains Mono","Roboto Mono",monospace;
  --bow-container:1200px;
  --bow-gutter:24px;
  --bow-header-h:72px;
  --bow-shadow:0 8px 32px rgba(0,0,0,.28);
  --bow-ease:cubic-bezier(.2,.8,.2,1);
}

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

body{
  min-height:100vh;
  background:var(--bow-bg);
  color:var(--bow-text);
  font-family:var(--bow-font-body);
  font-size:14px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

body.nav-open{
  overflow:hidden;
}

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

input,button,select,textarea{
  font:inherit;
  color:inherit;
  background:inherit;
  border:inherit;
}

button{
  cursor:pointer;
}

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

ul,ol{
  list-style:none;
}

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

::selection{
  background:var(--bow-neon);
  color:var(--bow-bg-deep);
}

/* ===== ACCESSIBILITY ===== */
.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

.skip-link{
  position:fixed;
  top:0;
  left:24px;
  z-index:200;
  display:inline-flex;
  align-items:center;
  padding:10px 18px;
  background:var(--bow-neon);
  color:var(--bow-bg-deep);
  font-family:var(--bow-font-mono);
  font-size:12px;
  font-weight:600;
  letter-spacing:.5px;
  transform:translateY(-130%);
  transition:transform 180ms var(--bow-ease);
}

.skip-link:focus{
  transform:translateY(0);
}

/* ===== CONTAINER & GRID ===== */
.bow-container{
  width:100%;
  max-width:var(--bow-container);
  margin-inline:auto;
  padding-inline:var(--bow-gutter);
}

.bow-container--narrow{
  max-width:760px;
}

.bow-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:var(--bow-gutter);
}

.bow-grid--gap-sm{
  gap:12px;
}

.bow-grid--gap-lg{
  gap:40px;
}

.bow-grid__span-2{grid-column:span 2;}
.bow-grid__span-3{grid-column:span 3;}
.bow-grid__span-4{grid-column:span 4;}
.bow-grid__span-5{grid-column:span 5;}
.bow-grid__span-6{grid-column:span 6;}
.bow-grid__span-7{grid-column:span 7;}
.bow-grid__span-8{grid-column:span 8;}
.bow-grid__span-10{grid-column:span 10;}
.bow-grid__span-12{grid-column:span 12;}

/* ===== PAGE HEAD ===== */
.bow-page-head{
  padding-top:calc(var(--bow-header-h) + 56px);
  padding-bottom:24px;
}

#main-content{
  display:block;
  min-height:60vh;
}

/* ===== HEADER ===== */
.bow-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  height:var(--bow-header-h);
  background:transparent;
  border-bottom:1px solid rgba(58,74,106,0);
  transition:background 220ms var(--bow-ease),border-color 220ms var(--bow-ease),box-shadow 220ms var(--bow-ease);
}

.bow-header::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:72px;
  height:72px;
  border-top:3px solid var(--bow-orange);
  border-right:3px solid var(--bow-orange);
  opacity:.3;
  pointer-events:none;
  transition:opacity 220ms var(--bow-ease);
}

.bow-header.is-scrolled{
  background:rgba(7,16,38,.92);
  border-bottom-color:rgba(57,255,20,.25);
  box-shadow:0 4px 24px rgba(0,0,0,.4);
}

.bow-header.is-scrolled::before{
  opacity:.85;
}

.bow-header__inner{
  max-width:var(--bow-container);
  height:100%;
  margin-inline:auto;
  padding-inline:var(--bow-gutter);
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
}

/* ===== LOGO ===== */
.bow-logo{
  display:inline-flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}

.bow-logo__mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  background:var(--bow-neon);
  color:var(--bow-bg-deep);
  font-family:var(--bow-font-mono);
  font-weight:700;
  font-size:16px;
  letter-spacing:-1px;
  box-shadow:0 0 16px rgba(57,255,20,.25);
  transition:box-shadow 200ms var(--bow-ease);
}

.bow-logo:hover .bow-logo__mark{
  box-shadow:0 0 24px rgba(57,255,20,.5);
}

.bow-logo__title{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.bow-logo__text{
  font-size:18px;
  font-weight:800;
  letter-spacing:.6px;
  color:var(--bow-text);
}

.bow-logo__sub{
  margin-top:4px;
  font-family:var(--bow-font-mono);
  font-size:9px;
  letter-spacing:.35em;
  color:var(--bow-text-dim);
  text-transform:uppercase;
}

/* ===== NAV ===== */
.bow-nav__list{
  display:flex;
  align-items:center;
  gap:2px;
}

.bow-nav__link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 12px;
  font-size:14px;
  font-weight:500;
  line-height:1;
  color:rgba(240,244,248,.9);
  border-bottom:2px solid transparent;
  transition:color 160ms var(--bow-ease),border-color 160ms var(--bow-ease),background 160ms var(--bow-ease);
}

.bow-nav__num{
  font-family:var(--bow-font-mono);
  font-size:10px;
  font-weight:400;
  letter-spacing:.5px;
  color:var(--bow-neon);
  line-height:1;
}

.bow-nav__link:hover{
  color:var(--bow-neon);
}

.bow-nav__link:hover .bow-nav__num{
  color:var(--bow-neon);
}

.bow-nav__link[aria-current="page"]{
  color:var(--bow-neon);
  border-bottom-color:var(--bow-neon);
}

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

/* ===== NAV TOGGLE ===== */
.bow-nav-toggle{
  display:none;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:8px 6px;
}

.bow-nav-toggle__box{
  display:flex;
  flex-direction:column;
  gap:4px;
  width:24px;
}

.bow-nav-toggle__bar{
  display:block;
  width:100%;
  height:2px;
  background:var(--bow-text);
  transition:transform 180ms var(--bow-ease),background 180ms var(--bow-ease),opacity 180ms var(--bow-ease);
}

.bow-nav-toggle:hover .bow-nav-toggle__bar{
  background:var(--bow-neon);
}

.bow-nav-toggle.is-active .bow-nav-toggle__bar:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}

.bow-nav-toggle.is-active .bow-nav-toggle__bar:nth-child(2){
  opacity:0;
}

.bow-nav-toggle.is-active .bow-nav-toggle__bar:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

/* ===== HEADER PROGRESS ===== */
.bow-header__progress{
  position:absolute;
  left:0;
  bottom:-1px;
  width:0%;
  height:3px;
  background:var(--bow-neon);
  box-shadow:0 0 12px rgba(57,255,20,.6);
  pointer-events:none;
  z-index:2;
}

/* ===== FOOTER ===== */
.bow-footer{
  position:relative;
  background:var(--bow-bg-deep);
  border-top:4px solid var(--bow-neon);
  overflow:hidden;
}

.bow-footer::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(58,74,106,.18) 1px,transparent 1px),
    linear-gradient(90deg,rgba(58,74,106,.18) 1px,transparent 1px);
  background-size:44px 44px;
  pointer-events:none;
}

.bow-footer__grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1.2fr;
  gap:32px;
  padding-block:56px 40px;
}

.bow-footer__brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
}

.bow-footer__tagline{
  font-family:var(--bow-font-mono);
  font-size:12px;
  letter-spacing:.2em;
  color:var(--bow-neon);
}

.bow-footer__trust{
  font-size:13px;
  line-height:1.8;
  color:var(--bow-text-dim);
  max-width:320px;
  border-left:2px solid var(--bow-mist);
  padding-left:16px;
}

.bow-footer__col{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.bow-footer__heading{
  font-size:13px;
  font-weight:700;
  letter-spacing:.18em;
  color:var(--bow-neon);
  padding-bottom:10px;
  border-bottom:1px solid rgba(57,255,20,.25);
}

.bow-footer__list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.bow-footer__list a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  color:var(--bow-text);
  transition:color 160ms var(--bow-ease),transform 160ms var(--bow-ease);
}

.bow-footer__list a::before{
  content:"▹";
  font-family:var(--bow-font-mono);
  font-size:10px;
  color:var(--bow-neon);
}

.bow-footer__list a:hover{
  color:var(--bow-neon);
  transform:translateX(4px);
}

.bow-footer__contact-item{
  font-size:14px;
  color:var(--bow-text-dim);
  line-height:1.8;
}

.bow-footer__contact-note{
  font-size:12px;
  line-height:1.7;
  color:var(--bow-text-dim);
  border-left:2px solid var(--bow-orange);
  padding-left:12px;
  margin-top:6px;
}

.bow-footer__bottom{
  position:relative;
  z-index:1;
  border-top:1px solid rgba(57,255,20,.18);
  background:rgba(7,16,38,.9);
}

.bow-footer__bottom-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  padding-block:16px;
  font-family:var(--bow-font-mono);
  font-size:12px;
  letter-spacing:.4px;
  color:var(--bow-text-dim);
}

.bow-footer__copyright{
  color:var(--bow-text-dim);
}

.bow-footer__icp{
  color:var(--bow-text-dim);
}

/* ===== BACK TOP ===== */
.bow-back-top{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:90;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 16px;
  background:var(--bow-bg-deep);
  border:1px solid var(--bow-neon);
  color:var(--bow-neon);
  font-family:var(--bow-font-mono);
  font-size:12px;
  letter-spacing:.3px;
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  pointer-events:none;
  transition:opacity 200ms var(--bow-ease),transform 200ms var(--bow-ease),visibility 200ms var(--bow-ease);
}

.bow-back-top.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto;
}

.bow-back-top:hover{
  background:var(--bow-neon);
  color:var(--bow-bg-deep);
  box-shadow:0 0 20px rgba(57,255,20,.4);
}

.bow-back-top__icon{
  flex-shrink:0;
}

/* ===== BUTTONS ===== */
.bow-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 24px;
  font-size:14px;
  font-weight:600;
  line-height:1;
  border:2px solid transparent;
  background:var(--bow-neon);
  color:var(--bow-bg-deep);
  box-shadow:0 0 0 rgba(57,255,20,0);
  transition:transform 160ms var(--bow-ease),box-shadow 160ms var(--bow-ease),background 160ms var(--bow-ease),color 160ms var(--bow-ease),border-color 160ms var(--bow-ease);
}

.bow-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 0 20px rgba(57,255,20,.3);
}

.bow-btn--primary{
  background:var(--bow-neon);
  color:var(--bow-bg-deep);
}

.bow-btn--ghost{
  background:transparent;
  border-color:rgba(240,244,248,.4);
  color:var(--bow-text);
}

.bow-btn--ghost:hover{
  border-color:var(--bow-neon);
  color:var(--bow-neon);
  box-shadow:none;
}

.bow-btn--orange{
  background:var(--bow-orange);
  color:var(--bow-bg-deep);
}

.bow-btn--orange:hover{
  box-shadow:0 0 20px rgba(255,122,0,.4);
}

.bow-btn--small{
  padding:8px 14px;
  font-size:12px;
}

/* ===== BREADCRUMB ===== */
.bow-breadcrumb{
  padding-block:12px 0;
  margin-bottom:20px;
  font-family:var(--bow-font-mono);
  font-size:12px;
  letter-spacing:.4px;
  color:var(--bow-text-dim);
}

.bow-breadcrumb ol{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  list-style:none;
}

.bow-breadcrumb li{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.bow-breadcrumb li+li::before{
  content:"/";
  color:var(--bow-mist);
}

.bow-breadcrumb a{
  color:var(--bow-accent);
}

.bow-breadcrumb a:hover{
  color:var(--bow-neon);
}

/* ===== SECTION ===== */
.bow-section{
  padding-block:48px;
}

.bow-section--tight{
  padding-block:24px;
}

.bow-section-head{
  display:flex;
  align-items:baseline;
  gap:14px;
  padding-bottom:12px;
  margin-bottom:24px;
  border-bottom:2px solid var(--bow-mist);
}

.bow-section-head__num{
  font-family:var(--bow-font-mono);
  font-size:12px;
  letter-spacing:.5px;
  color:var(--bow-neon);
}

.bow-section-head__title{
  font-size:28px;
  font-weight:700;
  letter-spacing:.2px;
  line-height:1.2;
  color:var(--bow-text);
}

.bow-section-head__aside{
  margin-left:auto;
  font-family:var(--bow-font-mono);
  font-size:12px;
  color:var(--bow-text-dim);
}

/* ===== CARD ===== */
.bow-card{
  background:rgba(11,27,58,.45);
  border:1px solid var(--bow-mist);
  border-left:3px solid var(--bow-accent);
  padding:24px;
  box-shadow:var(--bow-shadow);
}

.bow-card--neon{
  border-left-color:var(--bow-neon);
}

.bow-card--warn{
  border-left-color:var(--bow-orange);
}

.bow-card--purple{
  border-left-color:var(--bow-purple);
}

/* ===== METRIC ===== */
.bow-metric{
  font-family:var(--bow-font-mono);
  font-size:48px;
  font-weight:400;
  line-height:1;
  letter-spacing:-1.5px;
  color:var(--bow-text);
  font-variant-numeric:tabular-nums;
}

.bow-metric small{
  display:block;
  margin-top:8px;
  font-family:var(--bow-font-body);
  font-size:13px;
  letter-spacing:.2px;
  color:var(--bow-text-dim);
  font-weight:400;
}

/* ===== TAG ===== */
.bow-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  font-family:var(--bow-font-mono);
  font-size:11px;
  letter-spacing:.5px;
  background:var(--bow-mist);
  color:var(--bow-text);
  line-height:1.6;
}

.bow-tag--neon{
  background:var(--bow-neon);
  color:var(--bow-bg-deep);
  font-weight:600;
}

.bow-tag--orange{
  background:var(--bow-orange);
  color:var(--bow-bg-deep);
  font-weight:600;
}

/* ===== INDEX ===== */
.bow-index{
  font-family:var(--bow-font-mono);
  font-size:12px;
  letter-spacing:.5px;
  color:var(--bow-text-dim);
  line-height:1.6;
}

/* ===== IMAGE CONTAINER ===== */
.bow-media{
  position:relative;
  aspect-ratio:16/10;
  background:linear-gradient(135deg,rgba(7,16,38,.9),rgba(58,74,106,.4));
  border:1px solid var(--bow-mist);
  overflow:hidden;
}

.bow-media--wide{
  aspect-ratio:21/9;
}

.bow-media--square{
  aspect-ratio:1/1;
}

.bow-media--portrait{
  aspect-ratio:3/4;
}

.bow-media::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:32px;
  background:linear-gradient(to top,rgba(11,27,58,.85),transparent);
}

/* ===== RESPONSIVE ===== */
@media (max-width:1023px){
  .bow-nav-toggle{
    display:inline-flex;
  }

  .bow-nav{
    position:fixed;
    top:var(--bow-header-h);
    left:0;
    right:0;
    z-index:99;
    max-height:calc(100vh - var(--bow-header-h));
    overflow-y:auto;
    background:rgba(7,16,38,.98);
    border-bottom:1px solid rgba(57,255,20,.3);
    padding:16px 24px 28px;
    opacity:0;
    visibility:hidden;
    transform:translateY(-12px);
    pointer-events:none;
    transition:opacity 180ms var(--bow-ease),transform 180ms var(--bow-ease),visibility 180ms var(--bow-ease);
  }

  .bow-nav[data-open]{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    pointer-events:auto;
  }

  .bow-nav__list{
    flex-direction:column;
    gap:0;
  }

  .bow-nav__item{
    width:100%;
  }

  .bow-nav__link{
    width:100%;
    padding:14px 0;
    font-size:16px;
    border-bottom:1px solid rgba(58,74,106,.6);
    border-radius:0;
    justify-content:flex-start;
  }

  .bow-nav__link[aria-current="page"]{
    background:linear-gradient(90deg,rgba(57,255,20,.12),transparent);
    border-left:3px solid var(--bow-neon);
    padding-left:12px;
  }

  .bow-footer__grid{
    grid-template-columns:1fr 1fr;
    gap:32px 24px;
    padding-block:40px 32px;
  }
}

@media (max-width:639px){
  :root{
    --bow-gutter:18px;
  }

  .bow-logo__sub{
    font-size:8px;
    letter-spacing:.2em;
  }

  .bow-logo__mark{
    width:38px;
    height:38px;
    font-size:14px;
  }

  .bow-logo__text{
    font-size:16px;
  }

  .bow-footer__grid{
    grid-template-columns:1fr;
  }

  .bow-footer__bottom-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .bow-back-top{
    right:14px;
    bottom:14px;
    padding:10px 12px;
  }

  .bow-section-head__title{
    font-size:22px;
  }

  .bow-grid{
    gap:16px;
  }

  .bow-grid__span-2,.bow-grid__span-3,.bow-grid__span-4,.bow-grid__span-5,.bow-grid__span-6,.bow-grid__span-7,.bow-grid__span-8,.bow-grid__span-10{
    grid-column:span 12;
  }
}

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

  .bow-back-top,
  .bow-nav{
    transition:none;
  }
}
