/* ================================================================
   MkDocs readthedocs 主题整合：隐藏主题自带框架，让首页铺满全屏
   （主题 css 在 extra_css 之前加载，此处按需覆盖）
   ================================================================ */

html { scroll-padding-top: 80px; }

body.wy-body-for-nav {
  background: var(--bg);
}

.wy-nav-side,
.wy-nav-top,
.wy-breadcrumbs,
.rst-versions,
.rst-footer-buttons,
.rst-content > footer,
.rst-content .headerlink,
.rst-content hr {
  display: none !important;
}

.wy-nav-content-wrap {
  margin-left: 0 !important;
  background: var(--bg);
}

.wy-nav-content {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0 !important;
}

.rst-content,
.rst-content .document,
.rst-content .section {
  margin: 0;
  max-width: none;
  padding: 0;
  font-size: 16px;
  line-height: 1.7;
}

.rst-content p {
  margin: 0;
}

/* 主题 a:visited 为紫色，逐类把访问后的链接颜色压回自身配色
   （不能统一写 inherit，否则深色导航上的链接会继承正文深色变成"隐形"） */
.site-nav a:visited {
  color: rgba(255, 255, 255, 0.78);
}

.site-nav a.nav-cta:visited {
  color: var(--cyan);
}

.brand:visited {
  color: #fff;
}

.btn-primary:visited {
  color: #04101e;
}

.btn-ghost:visited {
  color: #fff;
}

.btn-invert:visited {
  color: var(--ink);
}

.board-link:visited {
  color: var(--blue);
}

.board-link.is-disabled:visited {
  color: var(--ink-faint);
}

a.support-card:visited,
.footer-inner nav a:visited {
  color: inherit;
}

.rst-content ul.board-tags,
.rst-content ul.board-tags li {
  list-style: none !important;
}

.rst-content .board-tags li::before {
  content: none !important;
}

/* ================================================================
   置强开发板资料站 — 首页 v2
   深色科技 hero + 浅色卡片区
   ================================================================ */

:root {
  --ink: #0e1626;
  --ink-soft: #46536b;
  --ink-faint: #7c8798;
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #e3e8ef;
  --dark: #070d1a;
  --dark-2: #0c1426;
  --cyan: #38d5f0;
  --blue: #4f7df9;
  --indigo: #6d5df6;
  --amber: #ffb454;
  --grad: linear-gradient(120deg, var(--cyan), var(--blue) 55%, var(--indigo));
  --radius: 18px;
  --shadow-lg: 0 24px 60px rgba(9, 18, 38, 0.16);
  --shadow-sm: 0 8px 24px rgba(9, 18, 38, 0.08);
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* 渠道差异：直营内容（购买横幅、店铺按钮、邮箱）仅在 zqboard.com 显示 */
html:not(.channel-direct) .direct-only { display: none !important; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--blue);
}
.eyebrow-dark { color: var(--cyan); }
.eyebrow-light { color: rgba(255, 255, 255, 0.75); }

/* ============================== Header ============================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(7, 13, 26, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 4px 18px rgba(56, 213, 240, 0.35));
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
}

.brand-name small {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.45);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 160ms ease;
}

.site-nav a:hover { color: #fff; }

.nav-cta {
  padding: 8px 16px;
  border: 1px solid rgba(56, 213, 240, 0.5);
  border-radius: 999px;
  color: var(--cyan) !important;
  transition: background 160ms ease, color 160ms ease;
}

.nav-cta:hover {
  background: rgba(56, 213, 240, 0.12);
  color: var(--cyan) !important;
}

/* ============================== Hero ============================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(79, 125, 249, 0.28), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(56, 213, 240, 0.16), transparent 60%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  padding: 150px 0 96px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(720px 480px at 68% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(720px 480px at 68% 40%, #000 30%, transparent 75%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero-glow-a {
  width: 420px; height: 420px;
  right: -80px; top: -120px;
  background: rgba(79, 125, 249, 0.35);
}
.hero-glow-b {
  width: 320px; height: 320px;
  left: -100px; bottom: -140px;
  background: rgba(56, 213, 240, 0.22);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 48px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 34px;
  max-width: 30em;
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--grad);
  color: #04101e;
  box-shadow: 0 10px 30px rgba(79, 125, 249, 0.4);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-invert {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(4, 10, 24, 0.35);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 44px;
  margin: 0;
}

.hero-stats dt {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.2;
}

.hero-stats dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

/* ---- hero 右侧板卡拼贴 ---- */

.hero-visual {
  position: relative;
  min-height: 460px;
}

.board-shot {
  position: absolute;
  margin: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(2, 8, 20, 0.55);
}

.board-shot img { border-radius: 10px; }

.board-shot-t113 {
  width: min(480px, 78%);
  top: 6px;
  right: 0;
  transform: rotate(2.4deg);
}

.board-shot-v3s {
  width: min(340px, 56%);
  left: 0;
  bottom: -18px;
  transform: rotate(-4deg);
}

.chip {
  position: absolute;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--dark-2);
  border: 1px solid rgba(56, 213, 240, 0.45);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(2, 8, 20, 0.5);
}

.chip-t113 { right: -14px; top: -14px; }
.chip-v3s { left: -16px; bottom: 30px; }

/* ============================== Boards ============================== */

.boards { padding: 96px 0 40px; }

.section-head { max-width: 560px; margin-bottom: 48px; }

.section-head h2,
.support h2,
.purchase h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.section-sub,
.purchase p {
  margin: 0;
  color: var(--ink-soft);
}

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

.board-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.board-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #d3dbe6;
}

.board-media {
  position: relative;
  display: grid;
  place-items: center;
  height: 240px;
  padding: 18px;
  background:
    radial-gradient(rgba(79, 125, 249, 0.14) 1px, transparent 1.4px) 0 0 / 16px 16px,
    linear-gradient(180deg, #fbfcfe, #eef2f8);
  border-bottom: 1px solid var(--line);
}

.board-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.board-index {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.board-flag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  color: #04101e;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(79, 125, 249, 0.35);
}

.board-media-visual {
  background:
    radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px) 0 0 / 16px 16px,
    linear-gradient(160deg, var(--dark-2), #16233f);
}

.chip-visual {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 22px 30px;
  border: 1px solid rgba(56, 213, 240, 0.4);
  border-radius: 14px;
  color: var(--cyan);
  box-shadow: inset 0 0 30px rgba(56, 213, 240, 0.08), 0 0 40px rgba(56, 213, 240, 0.12);
}

.chip-visual-abbr {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.3em;
}

.chip-visual strong {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}

.chip-visual small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.55);
}

.board-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.board-chip {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--blue);
}

.board-card-hot .board-chip { color: #0898b8; }

.board-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 750;
}

.board-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.board-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.board-tags li {
  padding: 4px 11px;
  border-radius: 6px;
  background: #eef2f9;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}

.board-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--blue);
}
.board-link:hover { color: var(--indigo); }

.board-link.is-disabled {
  color: var(--ink-faint);
  pointer-events: none;
}

/* ============================== Support ============================== */

.support {
  margin-top: 56px;
  padding: 78px 0;
  background:
    radial-gradient(640px 300px at 90% 0%, rgba(79, 125, 249, 0.22), transparent 60%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
}

.support-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 44px;
}

.support-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.support-note {
  margin-top: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
}

.support-note a { color: rgba(56, 213, 240, 0.8); }
.support-note a:hover { color: var(--cyan); }

.support-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.support-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 160ms ease, background 160ms ease;
}

a.support-card:hover {
  border-color: rgba(56, 213, 240, 0.55);
  background: rgba(56, 213, 240, 0.08);
}

.support-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(56, 213, 240, 0.12);
  color: var(--cyan);
  flex: none;
}

.support-label {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.support-value {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 15.5px;
  font-weight: 650;
}

/* ============================== Purchase ============================== */

.purchase {
  padding: 72px 0;
  background: var(--grad);
  color: #fff;
}

.purchase-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.purchase h2 { color: #fff; }
.purchase .eyebrow-light { color: rgba(255, 255, 255, 0.8); }
.purchase p { color: rgba(255, 255, 255, 0.88); }

/* ============================== Footer ============================== */

.site-footer {
  padding: 30px 0;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner p { margin: 0; }

.footer-inner nav {
  display: flex;
  gap: 22px;
}

.footer-inner nav a:hover { color: #fff; }

/* ============================== Responsive ============================== */

@media (max-width: 1080px) {
  .hero { padding: 130px 0 72px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 72px;
  }
  .hero-copy { max-width: 560px; }
  .hero-visual {
    min-height: 0;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 22px;
    align-items: center;
  }
  .board-shot { position: static; width: auto; }
  .board-shot-t113 { transform: rotate(1.2deg); }
  .board-shot-v3s { transform: rotate(-2deg); }
  .chip { display: none; }
  .support-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .board-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .hero-visual { grid-template-columns: 1fr; max-width: 460px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .site-nav { display: none; }
  .hero { padding: 116px 0 60px; }
  .hero-stats { flex-wrap: wrap; gap: 22px 34px; }
  .support-card { width: 100%; }
  .purchase-inner { flex-direction: column; align-items: flex-start; }
}
