

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&family=Space+Grotesk:wght@400;500;600;700&display=swap");
:root {
  /* Quantum Forge accents; light-page surfaces kept for shop/contact/games cards */
  --navy-950: #050a12;
  --navy-900: #0a1628;
  --blue-800: #0d1b2e;
  --blue-600: #0878e6;
  --cyan-400: #00e5ff;
  --accent-2: #3d7eff;
  --green-400: #37e7a0;
  --amber-400: #f5b64b;
  --danger: #ff8a80;
  --ink: #142033;
  --muted: #627083;
  --line: #dbe6f1;
  --paper: #ffffff;
  --soft: #f3f7fb;
  --glass: rgba(8, 18, 32, 0.78);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --qf-grad-accent: linear-gradient(90deg, #00e5ff 0%, #3d7eff 100%);
  --qf-grad-text: linear-gradient(90deg, #ffffff 8%, #00e5ff 52%, #3d7eff 100%);
  --qf-font-display: "Space Grotesk", "Noto Sans TC", sans-serif;
  --qf-ink-on-accent: #041018;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  background: var(--paper);
  line-height: 1.65;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(7, 17, 31, 0.88);
  border-bottom: 1px solid rgba(32, 214, 255, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  width: 86px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(8, 120, 230, 0.22));
}

.brand-text {
  display: grid;
  gap: 1px;
  color: #fff;
  line-height: 1.18;
  white-space: nowrap;
}

.brand-text strong {
  font-size: 19px;
  font-weight: 900;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--qf-grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav .nav-cta {
  padding: 10px 16px;
  color: #07111f;
  border-radius: 8px;
  background: var(--qf-grad-accent);
  box-shadow: 0 12px 30px rgba(32, 214, 255, 0.2);
}

.site-nav .nav-cta::after {
  display: none;
}

.site-nav .member-menu-panel a,
.member-menu-panel button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.88);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.site-nav .member-menu-panel a:hover,
.member-menu-panel button:hover {
  color: #07111f;
  background: var(--qf-grad-accent);
}

.site-nav .member-menu-panel a::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.tech-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 28%, rgba(32, 214, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #0b2146 56%, #042e70 100%);
}

.scan-grid {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(32, 214, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 214, 255, 0.14) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), transparent 78%);
}

.tech-hero::after,
.page-hero::after {
  position: absolute;
  right: -8vw;
  bottom: -1px;
  left: -8vw;
  height: 140px;
  content: "";
  background: linear-gradient(90deg, rgba(32, 214, 255, 0.2), rgba(55, 231, 160, 0.14), rgba(245, 182, 75, 0.12));
  clip-path: polygon(0 46%, 30% 10%, 62% 52%, 100% 18%, 100% 100%, 0 100%);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan-400);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tech-hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy,
.page-hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: #07111f;
  background: var(--qf-grad-accent);
  box-shadow: 0 16px 34px rgba(32, 214, 255, 0.22);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.company-hero .scan-grid { opacity: .22; background-size: 64px 64px; mask-image: radial-gradient(circle at 72% 50%, #000, transparent 68%); }

.hero-actions .button { border-radius: 3px; min-height: 54px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }

.hero-actions .button:hover { transform: translateY(-2px); }

.hero-actions .primary { gap: 18px; box-shadow: 0 12px 34px rgba(32, 214, 255, .18); }

.hero-actions .secondary { border-color: rgba(150, 210, 240, .25); }

.company-intro .section-heading .eyebrow { grid-column: 1 / -1; }

.contact-strip p:not(.eyebrow) { margin: 12px 0 0; color: rgba(255, 255, 255, .65); }

@keyframes orbit-spin { to { transform: rotate(360deg); } }

@keyframes status-pulse { 50% { opacity: .45; box-shadow: 0 0 5px var(--green-400); } }

.test-center-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 30px;
}

.test-center-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(30px, 4vw, 46px);
}

.test-center-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.pro-chip.coin {
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16), 0 10px 20px rgba(0, 0, 0, 0.22);
}

.pro-chip.usdt { background: linear-gradient(145deg, #3ce0b6, #13a984); }

.pro-chip.blocker {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.24) 0 5px, transparent 5px 10px),
    linear-gradient(145deg, #9aa6bb, #56617a);
}

.pro-chip.blocker::before {
  width: 18px;
  height: 18px;
  content: "";
  border-radius: 5px;
  background: #202943;
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.18);
}

.rank-edit, .rank-delete { padding: 7px 9px; border: 0; border-radius: 6px; font-weight: 900; cursor: pointer; }

.rank-delete { margin-left: 5px; color: #fff; background: #b42318; }

.speed-history .test-center-heading button {
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.page-hero {
  min-height: 360px;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 74px);
}

.form-grid .full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid #cfdce9;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(8, 120, 230, 0.12);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.form-actions .secondary {
  color: var(--blue-800);
  border-color: rgba(8, 120, 230, 0.24);
  background: #fff;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 78px;
}

.footer-brand span {
  display: grid;
  line-height: 1.2;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.footer-brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1040px) {
  .tech-hero,
  .contact-page,
  .intro,
  .solution-layout,
  .testing-center-hero,
  .company-hero {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .testing-grid,
  .timeline,
  .test-option-grid,
  .company-capability-grid,
  .partner-logo-grid,
  .network-results,
  .network-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-orbit {
    justify-self: center;
  }

  .company-intro .section-heading {
    grid-template-columns: 1fr;
  }

  .company-intro .section-heading .eyebrow {
    grid-column: auto;
  }

  .section-lead {
    max-width: 680px;
    margin-top: 18px;
  }
}

@media (max-width: 960px) {
  body.menu-open {
    overflow: hidden;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(32, 214, 255, 0.18);
    border-radius: 8px;
    background: #07111f;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 92px);
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .nav-cta {
    padding: 13px 12px;
    color: #fff;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a::after {
    display: none;
  }

  .member-menu {
    display: grid;
  }

  .member-menu-trigger {
    width: 100%;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    text-align: left;
  }

  .member-menu-panel {
    position: static;
    min-width: 0;
    margin-top: 4px;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 84px;
    height: 52px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    font-size: 11px;
  }

  .tech-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .testing-center-hero {
    gap: 22px;
    padding: 24px 20px 34px;
  }

  .testing-center-hero .page-hero-content .eyebrow {
    margin-bottom: 5px;
  }

  .testing-center-hero .page-hero-content h1 {
    font-size: 42px;
  }

  .testing-center-hero .page-hero-content > p {
    margin-top: 12px;
    font-size: 16px;
  }

  .testing-center-hero .hero-top-three {
    padding: 14px;
  }

  .testing-center-hero .hero-top-three-head {
    margin-bottom: 9px;
  }

  .testing-center-hero .hero-top-three li {
    padding: 8px;
  }

  .testing-center-hero .hero-top-three li > b {
    width: 28px;
    height: 28px;
  }

  .test-center {
    padding: 34px 20px 54px;
  }

  .test-center-heading {
    gap: 10px;
    margin-bottom: 18px;
  }


  .service-grid,
  .testing-grid,
  .timeline,
  .form-grid,
  .test-option-grid,
  .company-capability-grid,
  .partner-logo-grid,
  .speed-summary,
  .network-results,
  .network-option-grid {
    grid-template-columns: 1fr;
  }

  .company-hero-content h1 {
    font-size: 42px;
  }

  .hero-status {
    margin-bottom: 18px !important;
    font-size: 10px !important;
  }

  .hero-metrics {
    gap: 18px;
    margin-top: 34px;
  }

  .hero-metrics strong {
    font-size: 13px;
  }

  .hero-metrics span {
    font-size: 10px;
  }

  .company-orbit {
    width: min(100%, 320px);
  }

  .system-label {
    display: none;
  }

  .orbit-core {
    width: 130px;
    height: 130px;
  }

  .orbit-core strong {
    font-size: 32px;
  }

  .orbit-node {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    font-size: 13px;
  }

  .orbit-node small {
    display: none;
  }

  .partner-head {
    display: grid;
  }

  .network-tool-head {
    align-items: stretch;
    flex-direction: column;
  }

  .network-tool-actions {
    flex-direction: column;
  }

  .network-run {
    width: 100%;
  }

  .bing-speed-link {
    width: 100%;
    text-align: center;
  }

  .test-center-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .leaderboard-filters {
    display: grid;
  }

  .leaderboard-filters select {
    width: 100%;
  }

  .leaderboard-admin-head { align-items: stretch; flex-direction: column; }
  .leaderboard-admin-fields { grid-template-columns: 1fr; }

  .test-option p {
    min-height: auto;
  }

  .service-card,
  .timeline div {
    min-height: auto;
  }

  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-info a,
  .contact-info p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .qr-panel {
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .button {
    width: 100%;
  }

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

@media (max-width: 430px) {
  .site-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 68px;
    height: 44px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text small {
    font-size: 9px;
  }
}

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

/* ===== HPC.TW Theme B「簡潔高端」 — appended override layer ===== */
:root{--b-bg:#050a12;--b-bg2:#0a1628;--b-card:#0d1b2e;--b-line:rgba(255,255,255,.08);--b-text:#e8eef7;--b-muted:#8ba0b8;--b-accent:#00e5ff;--b-accent2:#3d7eff;
 --navy-950:#050a12;--navy-900:#0a1628;--ink:#e8eef7;--muted:#8ba0b8;--line:rgba(255,255,255,.08);--paper:#050a12;--soft:#0a1628;--cyan-400:#00e5ff;--green-400:#37e7a0;--blue-600:#0878e6;--blue-800:#0d1b2e;--accent-2:#3d7eff;--qf-grad-accent:linear-gradient(90deg,#00e5ff 0%,#3d7eff 100%);--qf-grad-text:linear-gradient(90deg,#ffffff 8%,#00e5ff 52%,#3d7eff 100%);--qf-font-display:"Space Grotesk","Noto Sans TC",sans-serif;--qf-ink-on-accent:#041018}

html body{background:var(--b-bg);color:var(--b-text);font-family:"Inter","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;-webkit-font-smoothing:antialiased;letter-spacing:.01em}

body h1,body h2,body h3{letter-spacing:-.02em;font-weight:700}

body .site-header{background:rgba(5,10,18,.78)!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.08)!important;box-shadow:none!important}

body .site-nav a{color:#d2d2d7!important;font-weight:400;font-size:.92rem}

body .site-nav a:hover{color:#fff!important}

body .site-nav a::after{background:var(--b-accent)!important}

body .site-nav .nav-cta,body .button.primary,body .hero-actions .primary,body .product-buy button,body .cart-checkout{background:var(--qf-grad-accent)!important;color:var(--qf-ink-on-accent)!important;border:0!important;border-radius:12px!important;box-shadow:0 12px 32px rgba(0,229,255,.22)!important;font-weight:700}

body .site-nav .nav-cta:hover,body .button.primary:hover{background:var(--qf-grad-accent)!important;color:var(--qf-ink-on-accent)!important;filter:brightness(1.06);transform:translateY(-1px)}

body .button.secondary,body .hero-actions .secondary{background:transparent!important;color:var(--b-text)!important;border:1px solid rgba(255,255,255,.28)!important;border-radius:980px!important}

body .button.secondary:hover{border-color:#fff!important}

body .button{transition:transform .3s cubic-bezier(.2,.8,.2,1),background .3s,border-color .3s}

body .company-hero .scan-grid{opacity:.12}

@keyframes bShine{0%,100%{background-position:0 0}50%{background-position:100% 0}}

/* sections */
body .section,body .company-intro,body .partner-section{background:#000!important;padding-top:clamp(80px,12vw,160px)!important;padding-bottom:clamp(80px,12vw,160px)!important}

body .eyebrow,body .company-intro .section-heading .eyebrow{color:var(--b-accent)!important;letter-spacing:.28em;font-weight:600}

body .company-intro .section-heading h2,body .section h2,body .partner-section h2{color:#fff!important;font-size:clamp(2rem,4.4vw,3.6rem)!important;line-height:1.15}

body .site-footer{background:#000!important;border-top:1px solid var(--b-line)!important;color:var(--b-muted)!important}

body .footer-brand strong,body .brand-text strong{color:#fff!important}

body .shop-categories button.active{background:#fff!important;color:#000!important}

body .product-content p,body .product-content .product-delivery{color:var(--b-muted)!important}

body input,body select,body textarea{color-scheme:dark}

body .page-hero{background:radial-gradient(900px 400px at 80% 30%,rgba(8,120,230,.14),transparent 60%),#000!important}

@media (max-width:960px){body .site-nav{background:rgba(5,10,18,.96)!important}}

@media (max-width:760px){body .company-hero-content h1{font-size:2.6rem!important}body .company-capability-grid article,body .product-card{border-radius:18px!important}}

@media (prefers-reduced-motion:reduce){body .company-hero-content h1 span{animation:none}body *{transition:none!important}}

/* ===== B fix2: dark cards for contact / auth / reset / verify / product / checkout (2026-11-05) ===== */
html body .page-hero::after{display:none!important}

html body .contact-aside,html body .contact-form,html body .auth-card,html body .product-overview,html body .product-description,html body .checkout-form-card,html body .checkout-summary{background:linear-gradient(180deg,#141418,#0c0c0f)!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:24px!important;box-shadow:0 30px 80px rgba(0,0,0,.5)!important;color:#f5f5f7!important}

html body :is(.contact-aside,.contact-form,.auth-card,.product-overview,.product-description,.checkout-form-card,.checkout-summary,.qr-panel) :is(h1,h2,h3,h4,strong,legend){color:#fff!important}

html body :is(.contact-aside,.contact-form,.auth-card,.product-overview,.product-description,.checkout-form-card,.checkout-summary,.qr-panel) :is(p,li,span,small,label,dt,dd,div){color:#c7c7cc}

html body :is(.contact-form,.auth-card,.checkout-form-card,.product-overview) label{color:#e5e5ea!important;font-weight:600}

html body :is(.contact-form,.auth-card,.checkout-form-card,.product-overview) :is(input,select,textarea){background:#1c1c21!important;color:#f5f5f7!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:12px!important;color-scheme:dark}

html body :is(.contact-form,.auth-card,.checkout-form-card,.product-overview) :is(input,textarea)::placeholder{color:#9a9aa1!important;opacity:1}

html body :is(.contact-form,.auth-card,.checkout-form-card,.product-overview) :is(input,select,textarea):focus{outline:2px solid #0878e6!important;outline-offset:1px;border-color:#0878e6!important}

html body :is(.contact-form,.auth-card,.checkout-form-card) input[type=checkbox]{accent-color:#0878e6}

html body :is(.contact-form,.checkout-form-card) a,html body .auth-card .auth-link{color:#20d6ff!important;background:transparent!important;border-color:transparent!important}

html body .auth-tab.active{background:#0878e6!important;color:#fff!important}

html body .auth-card .google-button{background:#fff!important;color:#1f1f1f!important;border:1px solid #dadce0!important;border-radius:980px!important}

html body .auth-card .google-button *{color:#1f1f1f!important}

html body .auth-status,html body .form-status{color:#20d6ff!important}

html body .auth-status.error,html body .form-status.error{color:#ff8a80!important}

html body .product-delivery,html body .product-description pre{background:#1c1c21!important;color:#c7c7cc!important}

html body .product-overview :is(.button.primary,button.primary),html body .checkout-form-card button[type=submit]{color:#fff!important}

/* ===== B fix3: dark cards for game center / leaderboard / network (2026-11-05) ===== */
html body .test-option,html body .leaderboard-card,html body .network-tool,html body .network-option,html body .speed-history-table{background:linear-gradient(180deg,#141418,#0c0c0f)!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:22px!important;box-shadow:0 24px 60px rgba(0,0,0,.45)!important;color:#f5f5f7!important}

html body .test-option:hover,html body .network-option:hover{border-color:rgba(8,120,230,.5)!important}

html body :is(.test-option,.leaderboard-card,.network-tool,.network-option,.speed-history-table) :is(h2,h3,h4,strong,th){color:#fff!important}

html body :is(.test-option,.leaderboard-card,.network-tool,.network-option,.speed-history-table) :is(p,small,td,li,label){color:#c7c7cc!important}

html body .test-option strong,html body .network-option strong{color:#20d6ff!important}

html body :is(.leaderboard-card,.leaderboard-filters,.leaderboard-admin,.network-tool) :is(input,select,textarea){background:#1c1c21!important;color:#f5f5f7!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:12px!important;color-scheme:dark}

html body :is(.leaderboard-table,.speed-history-table table) :is(th,td){border-color:rgba(255,255,255,.08)!important;background:transparent!important}

html body .leaderboard-table thead th,html body .speed-history-table thead th{background:#1c1c21!important}

html body .network-tool .button.secondary,html body .network-option .button.secondary{color:#f5f5f7!important}

html body .network-tool>button:not(.button),html body .network-tool-actions button:not(.button){background:#1c1c21!important;color:#f5f5f7!important;border:1px solid rgba(255,255,255,.22)!important}

/* === Quantum Forge shared chrome === */
.site-header {
  background: rgba(5, 10, 18, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
}

.brand-text strong {
  font-family: var(--qf-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: #8ba0b8;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.site-nav {
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #8ba0b8;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-nav a::after { display: none !important; }

.site-nav a:hover {
  color: #e8eef7;
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: rgba(0, 229, 255, 0.16);
  background: rgba(13, 27, 46, 0.55);
  color: #8ba0b8;
}

.site-nav a.nav-chip:hover,
.site-nav a.nav-chip[aria-current="page"] {
  border-color: rgba(0, 229, 255, 0.32);
  color: var(--cyan-400);
  box-shadow: 0 0 40px rgba(61, 126, 255, 0.18);
}

.nav-chip-icon {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.site-nav .nav-cta {
  margin-left: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--qf-ink-on-accent);
  background: var(--qf-grad-accent);
  box-shadow: 0 12px 32px rgba(0, 229, 255, 0.22);
  font-weight: 700;
}

.site-nav .nav-cta:hover {
  color: var(--qf-ink-on-accent);
  background: var(--qf-grad-accent);
}

.button.primary,
.qf-btn-primary {
  color: var(--qf-ink-on-accent);
  background: var(--qf-grad-accent);
  box-shadow: 0 12px 32px rgba(0, 229, 255, 0.22);
  border-radius: 12px;
}

.button.secondary,
.qf-btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: #e8eef7;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 12px;
}

.button.secondary:hover,
.qf-btn-secondary:hover {
  border-color: rgba(0, 229, 255, 0.32);
  box-shadow: 0 0 40px rgba(61, 126, 255, 0.18);
}

@media (max-width: 640px) {
  .qf-ticker-skin .ticker-label { display: none; }
}

body.qf-home .site-footer.qf-footer-skin,
.qf-footer-skin {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050a12;
  color: #5f738c;
}

.qf-footer-skin .footer-brand strong {
  color: #e8eef7;
  font-family: var(--qf-font-display);
}

.qf-footer-skin .footer-brand small { color: #8ba0b8; }

@media (max-width: 960px) {
  .qf-hero-inner, .qf-grid-3, .qf-grid-2, .qf-partner-grid { grid-template-columns: 1fr; }
  .qf-hero-visual { min-height: 360px; }
  .qf-metrics { grid-template-columns: 1fr; }
  .qf-cta-strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .qf-h1 { font-size: 36px; }
  .qf-hero { padding: 32px 16px 48px; }
  .qf-section { padding: 56px 16px; }
  .qf-cta-strip { margin-inline: 16px; padding: 28px 22px; }
}

/* === Quantum Forge final override (beats Theme B !important where needed) === */
html body .site-nav a.nav-chip{
  display:inline-flex!important;align-items:center;gap:8px;
  border:1px solid rgba(0,229,255,.16)!important;
  background:rgba(13,27,46,.55)!important;
  color:#8ba0b8!important;border-radius:999px!important;
  padding:10px 14px!important;font-weight:500!important;
}

html body .site-nav a.nav-chip:hover,
html body .site-nav a.nav-chip[aria-current="page"]{
  border-color:rgba(0,229,255,.32)!important;color:#00e5ff!important;
  box-shadow:0 0 40px rgba(61,126,255,.18)!important;
}

html body .site-nav a.nav-chip::after{display:none!important}

html body .site-nav .nav-cta{
  background:var(--qf-grad-accent)!important;color:var(--qf-ink-on-accent)!important;
  border-radius:999px!important;box-shadow:0 12px 32px rgba(0,229,255,.22)!important;
}

html body.qf-home .qf-btn-primary,html body.qf-home .button.primary{
  background:var(--qf-grad-accent)!important;color:var(--qf-ink-on-accent)!important;border-radius:12px!important;
}

html body.qf-home .qf-btn-secondary,html body.qf-home .button.secondary{
  background:rgba(255,255,255,.03)!important;color:#e8eef7!important;
  border:1px solid rgba(0,229,255,.16)!important;border-radius:12px!important;
}

/* QF nav breakpoint ≤960px (design final) */
@media (max-width: 960px) {
  html body .nav-toggle { display: block !important; }
  html body .site-nav {
    position: absolute !important;
    top: 100% !important;
    right: 16px !important;
    left: 16px !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    z-index: 60;
  }
  html body .site-nav.is-open { display: flex !important; }
  html body .site-header { overflow: visible; }
}

@media (min-width: 961px) {
  html body .nav-toggle { display: none !important; }
  html body .site-nav {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* === 2026-11-28 HPC辦公室即時狀況：入口按鈕（設計特助定稿 office.css）=== */
/* =========================================================
   入口按鈕「HPC辦公室即時狀況」— 放在主導覽或首頁卡片
   <a class="qf-office-entry" href="/office/">
     <span class="qf-office-entry__dot"></span>HPC辦公室即時狀況
     <span class="qf-office-entry__count">3 位工作中</span>
   </a>
   ========================================================= */
.qf-office-entry {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
  font: 600 14px var(--qf-font-sans, sans-serif); letter-spacing: .02em; color: var(--qf-text, #e8eef7); text-decoration: none;
  background: linear-gradient(var(--qf-bg-elevated, #0a1628), var(--qf-bg-elevated, #0a1628)) padding-box,
              var(--qf-grad-accent, linear-gradient(90deg,#00e5ff,#3d7eff)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 0 0 rgba(0,229,255,0), var(--qf-glow-soft, 0 0 40px rgba(61,126,255,.18));
  transition: box-shadow var(--qf-dur, 220ms) var(--qf-ease, ease), transform var(--qf-dur, 220ms) var(--qf-ease, ease);
}

@keyframes qf-entry-ping { 0% { box-shadow: 0 0 0 0 rgba(0,229,255,.6); } 100% { box-shadow: 0 0 0 10px rgba(0,229,255,0); } }

@media (max-width: 599px) { .qf-office-entry { width: 100%; justify-content: center; } }

/* === 2026-11-28 導覽多了「HPC辦公室即時狀況」：961–1279px 收緊，避免選單折成兩行 === */
@media (min-width: 961px) and (max-width: 1279px) {
  html body .site-header { gap: 12px; }
  html body .site-nav { gap: 6px !important; flex-wrap: nowrap !important; }
  html body .site-nav a, html body .site-nav .member-menu-trigger { white-space: nowrap; }
  html body .site-nav a.nav-chip { padding: 8px 10px !important; font-size: 13px !important; gap: 6px; }
  html body .site-nav a.nav-plain, html body .site-nav .nav-cta { font-size: 13px !important; }
  html body .site-nav .nav-cta, html body .site-nav .member-menu-trigger { padding-inline: 12px !important; }
  html body .site-nav .member-menu-trigger { max-width: 168px; overflow: hidden; text-overflow: ellipsis; }
  html body .brand-text small { display: none; }
}

@media (min-width: 961px) and (max-width: 1099px) {
  html body .site-nav .nav-chip-icon { display: none; }
  html body .site-nav a.nav-plain { display: none !important; }
}
