/* ============================================================
   墨家 Mo-GSeat · 产品主页 + GitHub 风格 Releases
   2026 巨子工作室
   ============================================================ */

/* ── 基础变量（现代深色产品页）── */
:root {
  /* 主色 */
  --brand: #54aeff;          /* 墨家蓝 */
  --brand-2: #1f6feb;        /* 深蓝 */
  --brand-grad: linear-gradient(135deg, #54aeff 0%, #a371f7 100%);
  --accent: #2ea043;         /* 绿色 OK */
  --warn: #d29922;           /* 黄 */
  --danger: #f85149;         /* 红 */
  /* 背景层级 */
  --bg: #0b1020;             /* 页面主背景 */
  --bg-2: #0f172a;           /* 区块背景 */
  --bg-3: #111a2e;           /* 卡片背景 */
  --bg-card: #152039;        /* 悬浮卡片 */
  --bg-soft: rgba(84,174,255,0.06);
  --grid: rgba(84,174,255,0.08);
  /* 边框 */
  --border: #1e2b4a;
  --border-2: #2a3b63;
  /* 文字 */
  --fg: #e6edf3;
  --fg-2: #b7c5d6;
  --fg-3: #8896b3;
  --fg-4: #5b6a89;
  /* 形状 */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(31,111,235,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
               'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 背景网格 */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 85%;
  background: rgba(84,174,255,0.12);
  color: #a5d6ff;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #c9d7ea;
  white-space: pre-wrap;
  word-break: break-word;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── 通用按钮 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 10px; }
.btn-primary {
  background: var(--brand-grad);
  color: white;
  box-shadow: 0 8px 20px rgba(84,174,255,0.3);
}
.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(84,174,255,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.02);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(84,174,255,0.06);
}
.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--fg-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--border-2);
  background: rgba(255,255,255,0.06);
}
.btn.full { width: 100%; }

/* ================================================================
   顶部导航
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,16,32,0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-grad);
  color: white;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(84,174,255,0.3);
  letter-spacing: -1px;
  font-family: 'KaiTi', '楷体', serif;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
}
.brand-sub {
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--fg-2);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.nav-links a:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}
.nav-links a.nav-releases-link {
  color: var(--brand);
  background: rgba(84,174,255,0.08);
}
.nav-links a.nav-releases-link:hover {
  background: rgba(84,174,255,0.15);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg-2);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ================================================================
   Hero 区
   ================================================================ */
.hero {
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  z-index: -1;
}
.hero::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  top: -180px;
  left: -160px;
}
.hero::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #a371f7 0%, transparent 70%);
  top: -80px;
  right: -120px;
  opacity: 0.3;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(46,160,67,0.08);
  border: 1px solid rgba(46,160,67,0.3);
  border-radius: 999px;
  font-size: 13px;
  color: #2ea043;
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2ea043;
  box-shadow: 0 0 0 3px rgba(46,160,67,0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(46,160,67,0.2); }
  50%     { box-shadow: 0 0 0 6px rgba(46,160,67,0.08); }
}
.hero-title {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--fg);
  margin-bottom: 20px;
}
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-sub strong { color: var(--fg); font-weight: 600; }
.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 620px;
}
.meta-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.2s;
}
.meta-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(84,174,255,0.15);
}
.meta-card strong {
  font-size: 20px;
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.meta-card span {
  font-size: 12px;
  color: var(--fg-3);
}

/* Hero 右侧预览卡 */
.hero-preview { display: flex; justify-content: center; }
.preview-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
.preview-window {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border-bottom: 1px solid var(--border);
}
.window-dots {
  display: flex;
  gap: 6px;
  padding: 14px 18px 0;
}
.window-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #30363d;
}
.window-dots span:nth-child(1) { background: #ff5f56; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }
.window-title {
  padding: 6px 18px 14px;
  font-size: 12px;
  color: var(--fg-3);
  font-family: ui-monospace, Menlo, monospace;
}
.window-body { padding: 12px 20px 20px; }
.seat-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 14px;
}
.seat-plate {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  transform-origin: center bottom;
  animation: seatMotion 4s ease-in-out infinite;
}
@keyframes seatMotion {
  0%,100% { transform: rotateZ(-1.5deg) rotateX(0deg); }
  25%     { transform: rotateZ(0deg) rotateX(-2deg); }
  50%     { transform: rotateZ(1.5deg) rotateX(0deg); }
  75%     { transform: rotateZ(0deg) rotateX(2deg); }
}
.seat-svg { width: 100%; max-width: 260px; }

.axis-values { display: flex; flex-direction: column; gap: 8px; }
.axis-row {
  display: grid;
  grid-template-columns: 50px 1fr 60px;
  align-items: center;
  gap: 10px;
}
.axis-label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.axis-bar {
  height: 6px;
  background: rgba(84,174,255,0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.axis-fill {
  height: 100%;
  background: var(--brand-grad);
  border-radius: 999px;
  transform-origin: left;
  animation: barFlow 3s ease-in-out infinite;
}
.axis-row:nth-child(2) .axis-fill { animation-delay: 0.4s; background: linear-gradient(90deg, #d29922, #f85149); }
.axis-row:nth-child(3) .axis-fill { animation-delay: 0.8s; background: linear-gradient(90deg, #a371f7, #54aeff); }
@keyframes barFlow {
  0%,100% { transform: scaleX(0.3); }
  50%     { transform: scaleX(0.85); }
}
.axis-num {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--fg-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.panel-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.status-item {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  color: var(--fg-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.led {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-item.ok { border-color: rgba(46,160,67,0.4); }
.status-item.ok .led { background: #2ea043; box-shadow: 0 0 6px rgba(46,160,67,0.6); }
.status-item.info { border-color: rgba(84,174,255,0.4); }
.status-item.info .led { background: #54aeff; }
.led.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.25; }
}
.preview-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-size: 12px;
  color: var(--fg-3);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.ver-chip {
  padding: 3px 10px;
  background: var(--brand-grad);
  color: white;
  font-weight: 600;
  border-radius: 999px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
}

/* ================================================================
   通用 section
   ================================================================ */
.section {
  padding: 96px 0;
  position: relative;
}
.section.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--brand);
  background: rgba(84,174,255,0.08);
  border: 1px solid rgba(84,174,255,0.2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-head p {
  font-size: 16px;
  color: var(--fg-3);
  line-height: 1.8;
}

/* ================================================================
   核心特性卡片
   ================================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-grad);
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }
.feat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.feat-blue   { background: rgba(84,174,255,0.12); }
.feat-green  { background: rgba(46,160,67,0.12); }
.feat-purple { background: rgba(163,113,247,0.12); }
.feat-orange { background: rgba(210,153,34,0.12); }
.feat-pink   { background: rgba(248,81,73,0.12); }
.feat-teal   { background: rgba(64,210,182,0.12); }
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feat-tags span {
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--fg-3);
  border-radius: 6px;
}

/* ================================================================
   系统架构流程
   ================================================================ */
.arch-flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.arch-layer {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.arch-layer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.layer-top::before    { background: linear-gradient(90deg, #f85149, #d29922); }
.layer-mid::before    { background: linear-gradient(90deg, #54aeff, #a371f7); }
.layer-bot::before    { background: linear-gradient(90deg, #2ea043, #54aeff); }

.layer-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}
.layer-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-grad);
  color: white;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-family: ui-monospace, Menlo, monospace;
}
.layer-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.lc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--fg);
  transition: all 0.2s;
}
.lc:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.lc small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 11px;
  color: var(--fg-3);
}
.lc.sm {
  padding: 20px 12px;
  font-size: 13px;
}
.lc.sm.red    { border-color: rgba(248,81,73,0.3); background: rgba(248,81,73,0.05); }
.lc.sm.blue   { border-color: rgba(84,174,255,0.3); background: rgba(84,174,255,0.05); }
.lc.sm.green  { border-color: rgba(46,160,67,0.3); background: rgba(46,160,67,0.05); }

.layer-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.lg {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  transition: all 0.2s;
}
.lg:hover { border-color: var(--brand); transform: translateY(-2px); }
.lg h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}
.lg ul { list-style: none; }
.lg ul li {
  font-size: 13px;
  color: var(--fg-2);
  padding: 3px 0 3px 18px;
  position: relative;
}
.lg ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--brand);
}
.lg-blue  h4::before { content: ''; }
.lg-green h4::before { content: ''; }

.layer-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.arrow {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 500;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.seat-result {
  margin-top: 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ================================================================
   快速开始 三步
   ================================================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 38px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), #a371f7, var(--accent));
  border-radius: 999px;
  opacity: 0.3;
}
.step {
  display: flex;
  gap: 28px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 24px;
  background: var(--brand-grad);
  color: white;
  font-size: 32px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(84,174,255,0.3);
  position: relative;
}
.step-body {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
}
.step-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.step-body p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.8;
  margin-bottom: 18px;
}
.cmd-box {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  overflow: hidden;
}
.cmd-title {
  padding: 10px 16px;
  background: rgba(84,174,255,0.06);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}
.cmd-box pre { padding: 14px 16px; }

/* 游戏配置表 */
.game-table {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  overflow: hidden;
}
.gt-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 0.8fr;
  align-items: center;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--fg-2);
  border-top: 1px solid var(--border);
}
.gt-row:first-child { border-top: none; }
.gt-head {
  background: var(--bg-soft);
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.gt-row code { background: rgba(84,174,255,0.1); border-color: var(--border); }

/* ================================================================
   下载中心
   ================================================================ */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dl-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  color: var(--fg);
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.dl-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.dl-card.big {
  padding: 28px;
  grid-template-columns: 80px 1fr auto;
}
.dl-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--brand-grad);
  box-shadow: 0 8px 20px rgba(84,174,255,0.25);
}
.dl-card.big .dl-icon { width: 80px; height: 80px; font-size: 36px; border-radius: 20px; }
.dl-icon.chip  { background: linear-gradient(135deg,#d29922,#f85149); }
.dl-icon.cloud { background: linear-gradient(135deg,#54aeff,#2ea043); }
.dl-icon.doc   { background: linear-gradient(135deg,#a371f7,#54aeff); }
.dl-info { min-width: 0; }
.dl-row1 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.dl-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}
.dl-card.big .dl-info h3 { font-size: 20px; }
.platform-chip {
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--fg-3);
  border-radius: 999px;
  font-weight: 500;
}
.dl-meta {
  font-size: 13px;
  color: var(--fg-2);
  margin-bottom: 4px;
}
.dl-hash {
  font-size: 11px;
  color: var(--fg-4);
  font-family: ui-monospace, Menlo, monospace;
}
.dl-arrow {
  font-size: 24px;
  color: var(--fg-3);
  transition: all 0.25s;
}
.dl-card:hover .dl-arrow {
  color: var(--brand);
  transform: translateX(4px);
}

/* ================================================================
   技术参数表
   ================================================================ */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.spec-group {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all 0.25s;
}
.spec-group:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.spec-group h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.spec-group table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.spec-group table th,
.spec-group table td {
  padding: 10px 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.spec-group table th {
  width: 40%;
  color: var(--fg-3);
  font-weight: 500;
}
.spec-group table td {
  color: var(--fg-2);
  font-weight: 500;
}
.spec-group table tr:last-child th,
.spec-group table tr:last-child td { border-bottom: none; }

/* ================================================================
   ★★★  GitHub 风格 Releases 容器  ★★★
   ================================================================ */
.releases-wrap {
  background: #0d1117 !important;
  border-top: 4px solid var(--brand);
  border-bottom: none;
  padding: 56px 0 80px;
  color: #e6edf3;
  /* 覆盖主页的网格背景 */
  background-image: none;
}
.releases-wrap .wrap::before {
  content: '';
  display: block;
  margin: 0 auto 24px;
  max-width: 280px;
  height: 1px;
}
.gh-container {
  max-width: 980px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  color: #e6edf3;
  font-size: 14px;
  line-height: 1.5;
}

/* 仓库顶部 */
.gh-repo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #21262d;
  margin-bottom: 0;
}
.gh-repo-path {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  color: #e6edf3;
}
.gh-repo-path svg { color: #8b949e; flex-shrink: 0; }
.gh-owner { color: #2f81f7; font-weight: 400; }
.gh-owner:hover { text-decoration: underline; }
.gh-slash { color: #8b949e; font-weight: 300; margin: 0 2px; }
.gh-repo { color: #2f81f7; font-weight: 600; }
.gh-repo:hover { text-decoration: underline; }

.gh-repo-actions {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
}
.gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #21262d;
  color: #e6edf3;
  border: 1px solid #30363d;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  line-height: 20px;
  transition: background 0.15s;
}
.gh-btn:hover { background: #30363d; border-color: #6e7681; }
.gh-repo-actions .gh-btn + .gh-btn { border-left: none; }
.gh-count {
  background: #0d1117;
  color: #e6edf3;
  padding: 0 7px;
  border-radius: 20px;
  border: 1px solid #30363d;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}
.gh-star.starred svg path { fill: #f2cc60; }

/* Tabs */
.gh-tabs {
  display: flex;
  align-items: flex-end;
  overflow-x: auto;
  gap: 4px;
  padding: 0;
  margin-bottom: 0;
  border-bottom: 1px solid #21262d;
}
.gh-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e6edf3;
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
}
.gh-tab:hover { text-decoration: none; background: #161b22; }
.gh-tab.active {
  border-bottom-color: #fd8c73;
  font-weight: 600;
}
.gh-tab-count {
  font-size: 12px;
  font-weight: 500;
  color: #8b949e;
  background: rgba(110,118,129,0.4);
  padding: 0 7px;
  border-radius: 20px;
  line-height: 18px;
  min-width: 18px;
  text-align: center;
}

/* Releases 标题区 */
.gh-releases-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 0 16px;
}
.gh-releases-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #e6edf3;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.gh-subtext {
  font-size: 14px;
  font-weight: 400;
  color: #8b949e;
}
.gh-latest-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #033a16;
  color: #2ea043;
  border: 1px solid #2ea043;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}
.gh-latest-tag svg { color: #2ea043; }

/* Releases 列表 */
.gh-releases-list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}
.gh-rel-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 32px;
}
.gh-rel-item::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: #21262d;
}
.gh-rel-item:last-child { padding-bottom: 0; }
.gh-rel-item:last-child::before { display: none; }

.gh-rel-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0d1117;
  border: 2px solid #6e7681;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a371f7;
  z-index: 1;
  font-size: 12px;
}
.gh-rel-node.latest {
  border-color: #2ea043;
  color: #2ea043;
  background: #033a16;
}

.gh-rel-card {
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  background: #0d1117;
}
.gh-rel-head {
  padding: 16px 20px;
  border-bottom: 1px solid #21262d;
  background: #0d1117;
}
.gh-rel-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.gh-rel-title {
  font-size: 20px;
  font-weight: 600;
  color: #e6edf3;
}
.gh-rel-title:hover { color: #2f81f7; cursor: pointer; }
.gh-rel-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(31,111,235,0.15);
  color: #2f81f7;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.gh-rel-tag svg { color: #2f81f7; width: 12px; height: 12px; }
.gh-rel-latest {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #238636;
  color: white;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.gh-rel-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #8b949e;
}
.gh-rel-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gh-rel-avatar-sm {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #58a6ff, #a371f7);
  color: white;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gh-rel-author .name { color: #e6edf3; font-weight: 500; }

.gh-rel-body {
  padding: 20px 24px;
  color: #e6edf3;
  background: #0d1117;
}
.gh-rel-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #21262d;
  color: #e6edf3;
}
.gh-rel-body ul {
  padding-left: 1.6em;
  color: #e6edf3;
}
.gh-rel-body ul li {
  margin: 6px 0;
  line-height: 1.55;
}
.gh-rel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 0;
  list-style: none;
}
.gh-rel-badges li {
  margin: 0;
  padding: 4px 10px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 20px;
  font-size: 12px;
  color: #8b949e;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gh-rel-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 12px;
  padding: 16px 24px;
  background: #161b22;
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
}
.gh-rel-stat { display: flex; flex-direction: column; gap: 2px; }
.gh-rel-stat-label {
  font-size: 11px;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gh-rel-stat-val {
  font-size: 14px;
  font-weight: 600;
  font-family: ui-monospace, Menlo, monospace;
  color: #e6edf3;
}
.gh-rel-stat-val.small { font-size: 11px; }

.gh-rel-assets { background: #0d1117; }
.gh-rel-assets-head {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: #e6edf3;
  border-bottom: 1px solid #21262d;
}
.gh-rel-assets-head .c {
  font-weight: 400;
  font-size: 12px;
  color: #8b949e;
}
.gh-asset-list { list-style: none; padding: 0; }
.gh-asset {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid #21262d;
  transition: background 0.1s;
}
.gh-asset:last-child { border-bottom: none; }
.gh-asset:hover { background: #161b22; }
.gh-asset-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: #161b22;
  border: 1px solid #30363d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.gh-asset-info { flex: 1; min-width: 0; }
.gh-asset-name {
  font-size: 14px;
  font-weight: 500;
  color: #2f81f7;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gh-asset-name a { color: inherit; }
.gh-asset-name a:hover { text-decoration: underline; }
.gh-plat {
  display: inline-block;
  background: #161b22;
  border: 1px solid #30363d;
  color: #8b949e;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.gh-asset-meta {
  font-size: 12px;
  color: #8b949e;
  margin-top: 2px;
}
.gh-asset-meta .s { margin: 0 6px; color: #30363d; }
.gh-asset-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #21262d;
  border: 1px solid #30363d;
  color: #e6edf3;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  transition: background 0.15s;
  text-decoration: none;
  flex-shrink: 0;
}
.gh-asset-dl:hover { background: #30363d; border-color: #6e7681; text-decoration: none; }
.gh-asset-dl svg { color: #8b949e; }

.gh-rel-reactions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #0d1117;
  border-top: 1px solid #21262d;
  font-size: 12px;
  color: #8b949e;
}
.gh-reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.1s;
}
.gh-reaction:hover { background: #21262d; border-color: #6e7681; }
.gh-reaction .e { font-size: 14px; }
.gh-reaction .n { font-weight: 600; color: #e6edf3; }

/* ================================================================
   联系我们
   ================================================================ */
.contact-section { padding-bottom: 96px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}
.contact-text h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--fg);
  margin: 20px 0 20px;
}
.contact-text > p {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.8;
  margin-bottom: 36px;
}
.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.method {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  transition: all 0.2s;
}
.method:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.method-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(84,174,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.method h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-3);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.method a, .method span {
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
}
.method a:hover { color: var(--brand); }

.contact-card {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 22px;
}
.contact-card label {
  display: block;
  margin-bottom: 16px;
}
.contact-card label > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-3);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--fg);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.15s;
  outline: none;
}
.contact-card input::placeholder,
.contact-card textarea::placeholder { color: var(--fg-4); }
.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(84,174,255,0.15);
}
.contact-card select { cursor: pointer; }
.contact-card textarea { resize: vertical; min-height: 96px; }
.contact-card .btn { margin-top: 8px; padding: 13px 20px; }

/* ================================================================
   Footer
   ================================================================ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  color: var(--fg-3);
}
.foot-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding: 64px 28px 48px;
}
.foot-about {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 18px;
  color: var(--fg-3);
  max-width: 380px;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.foot-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  font-size: 14px;
  color: var(--fg-3);
  transition: color 0.15s;
}
.foot-col a:hover { color: var(--brand); text-decoration: none; }

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-4);
}
.foot-build strong {
  color: var(--brand);
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 600;
}

/* 回到顶部 */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: white;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(84,174,255,0.4);
  text-decoration: none;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { text-decoration: none; transform: translateY(-3px); }

/* ================================================================
   响应式
   ================================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-text { order: 2; }
  .hero-preview { order: 1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-inner { grid-template-columns: 1fr; gap: 36px; }
  .dl-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 14px 20px;
    z-index: 99;
  }
  .hero { padding: 48px 0 72px; }
  .hero-title { font-size: 34px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { flex: 1; }
  .feature-grid { grid-template-columns: 1fr; }
  .layer-cards { grid-template-columns: 1fr 1fr; }
  .layer-grid2 { grid-template-columns: 1fr; }
  .layer-grid3 { grid-template-columns: 1fr; }
  .steps::before { left: 24px; }
  .step-num {
    width: 52px; height: 52px;
    border-radius: 16px;
    font-size: 22px;
  }
  .step { gap: 18px; }
  .gt-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 6px;
    font-size: 13px;
  }
  .gt-row .gt-head span { }
  .contact-methods { grid-template-columns: 1fr; }
  .contact-card { padding: 24px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }

  /* GitHub Releases 响应式 */
  .gh-repo-head { flex-direction: column; align-items: flex-start; }
  .gh-repo-path { font-size: 16px; }
  .gh-repo-actions { align-self: stretch; justify-content: flex-end; }
  .gh-rel-item { padding-left: 28px; }
  .gh-rel-item::before { left: 6px; }
  .gh-rel-node { width: 16px; height: 16px; }
  .gh-rel-body, .gh-rel-stats, .gh-rel-assets-head, .gh-asset, .gh-rel-reactions {
    padding-left: 14px; padding-right: 14px;
  }
  .gh-rel-head { padding: 12px 14px; }
  .gh-rel-title { font-size: 16px; }
  .gh-asset { flex-wrap: wrap; }
  .gh-asset-dl { margin-left: auto; }
}

@media (max-width: 480px) {
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions { flex-direction: column; }
  .dl-card { grid-template-columns: 60px 1fr; gap: 14px; }
  .dl-card .dl-arrow { display: none; }
  .dl-icon { width: 60px; height: 60px; border-radius: 14px; font-size: 26px; }
  .foot-cols { grid-template-columns: 1fr; }
  .gh-btn { padding: 5px 8px; font-size: 11px; }
  .gh-btn svg { width: 14px; height: 14px; }
}
