@charset "UTF-8";

/* ===== 设计变量：沿用参考站的深色配色体系 ===== */
:root {
  color-scheme: dark;
  --bg: #232326;
  --panel: #2b2b2e;
  --panel-2: #313136;
  --text: #f0f0f4;
  --muted: #b5b5bf;
  --line: #494952;
  --line-soft: #3a3a42;
  --accent: #91c8f0;
  --accent-2: #b3a2f2;
  --button: #456cb7;
  --ok: #7ec9a2;
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 4px;
}
[hidden] { display: none !important; }
.wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: 48px; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 5; background: var(--panel); padding: 10px 18px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ===== 顶部 ===== */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 23px; font-weight: 730; letter-spacing: -.6px; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { border-radius: var(--radius); }
.brand-sub { margin-left: 8px; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
nav { display: flex; align-items: center; gap: 24px; font-size: 14px; white-space: nowrap; }
nav a { text-decoration: none; color: var(--muted); position: relative; padding-block: 4px; transition: color .15s; }
nav a:hover, nav a.active { color: var(--text); }
nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--accent); }

/* ===== 品牌动效带 =====
   取自 xinmx.com 的实现：黑底、四层完全重叠的 SVG 描边文字、
   stroke-dasharray 90 310 + 6s 线性循环 + 每层 -1.5s 错位延迟。
   这里把四色换成站点色板，并补上响应式、发光与减少动效的降级。 */
.brand-ribbon {
  background: #0e0e12;
  border-block: 1px solid var(--line-soft);
  padding: 16px 20px 20px;
  text-align: center;
  overflow: hidden;
}
.svgBox { width: 100%; max-width: 1200px; margin: 0 auto; }
.svgBox svg { display: block; width: 100%; height: auto; }
.brand-ribbon .text {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  font-size: 68px;
  font-weight: 800;
  letter-spacing: 10px;
  text-transform: uppercase;
  fill: none;
  stroke-width: 2px;
  stroke-dasharray: 90 310;
  animation: stroke 6s infinite linear;
}
.brand-ribbon .text-1 { stroke: #91c8f0; filter: drop-shadow(0 0 5px #91c8f0); animation-delay: -1.5s; }
.brand-ribbon .text-2 { stroke: #b3a2f2; filter: drop-shadow(0 0 5px #b3a2f2); animation-delay: -3s; }
.brand-ribbon .text-3 { stroke: #7ec9a2; filter: drop-shadow(0 0 5px #7ec9a2); animation-delay: -4.5s; }
.brand-ribbon .text-4 { stroke: #e8c58a; filter: drop-shadow(0 0 5px #e8c58a); animation-delay: -6s; }
@keyframes stroke { 100% { stroke-dashoffset: -400; } }
.svgText-lead { margin: 0; font-size: 14px; color: #8f8f9c; line-height: 2; }
.svgText-lead a { color: #01a6fc; font-weight: 600; text-decoration: none; }
.svgText-lead a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .brand-ribbon { padding: 10px 12px 14px; }
  .svgText-lead { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-ribbon .text {
    animation: none !important;
    stroke-dasharray: none !important;
    stroke: none !important;
    fill: var(--text) !important;
    filter: none !important;
  }
}

/* ===== Hero ===== */
.hero { padding-block: 38px 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; letter-spacing: .3px; color: var(--muted); background: #2b2b2e80; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px #7ec9a226; }
h1 { margin: 0; font-size: clamp(30px, 3.5vw, 46px); letter-spacing: -1.4px; line-height: 1.3; font-weight: 650; }
.lead { margin: 14px 0 30px; color: var(--muted); font-size: 17px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 34px; align-items: start; }
figure { margin: 0; min-width: 0; }

/* ===== 教程 ===== */
.tutorial-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tutorial-controls button, .gallery-controls button {
  font: inherit; font-size: 14px; line-height: 1.5; background: transparent; color: var(--muted);
  border: 1px solid var(--line); padding: 10px 17px; border-radius: 7px; cursor: pointer;
  min-height: 44px; transition: background .15s, color .15s, border-color .15s;
}
.tutorial-controls button:hover, .gallery-controls button:hover { color: var(--text); background: var(--panel); }
.tutorial-controls button[aria-pressed="true"], .gallery-controls button[aria-pressed="true"] {
  border-color: var(--accent); color: var(--accent); background: #91c8f00d;
}
.tutorial-start { position: relative; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #101115; }
.tutorial-start img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tutorial-start button {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px;
  min-height: 48px; max-width: 90%; padding: 12px 20px; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.5;
  color: #fff; background: #263b65f2; border: 1px solid #b5cbe8; border-radius: 8px; cursor: pointer;
  box-shadow: 0 3px 18px #0008; white-space: nowrap; transition: background .15s, transform .15s;
}
.tutorial-start button:hover { background: #365a9a; transform: translate(-50%, -50%) scale(1.02); }
.tutorial-player { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.tutorial-player video { display: block; width: 100%; aspect-ratio: 16/9; background: #0b0b0d; }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.player-head strong { font-size: 15px; font-weight: 600; }
.player-head button { font: inherit; font-size: 13px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.player-head button:hover { color: var(--text); background: var(--panel-2); }
.chapters { list-style: none; margin: 0; padding: 8px 12px 14px; }
.chapters li { display: flex; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 6px; font-size: 14px; }
.chapters li:hover { background: var(--panel-2); }
.chapters .time { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 13px; min-width: 46px; }
.chapters .chapter-title { color: var(--text); }
.player-note { margin: 0; padding: 12px 20px 16px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line-soft); }
figcaption { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); padding-block: 13px; }
.tutorial figcaption a { white-space: nowrap; }
.package-note { margin: 0 0 10px; color: var(--muted); font-size: 13px; }

/* ===== 下载面板 ===== */
.download-panel { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
h2 { font-size: 26px; letter-spacing: -.6px; line-height: 1.4; font-weight: 600; margin: 0; }
.download-panel h2 { font-size: 21px; }
.release { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 0 22px; font-size: 13px; color: var(--muted); }
.release .signed { font-size: 12px; color: var(--ok); white-space: nowrap; }
.download-button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 17px; min-height: 48px;
  border: 1px solid #7294d2; border-radius: 7px; background: var(--button); color: #fff; font-weight: 600; font-size: 16px;
  text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s;
}
.download-button:hover { color: #fff; background: #365a9a; }
.download-button:active { transform: translateY(1px); }
.download-button.secondary { background: transparent; border-color: #8993aa; font-weight: 500; font-size: 15px; min-height: 44px; }
.download-button.secondary:hover { background: #373c49; color: #fff; }
.download-button .btn-label { display: inline-flex; align-items: center; gap: 8px; }
.download-button .tag { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: #9ad9b8; color: #15392a; }
.compat { margin: 7px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.quiet-link { font-size: 13px; color: var(--accent); text-decoration: none; }
.quiet-link:hover { text-decoration: underline; }
.other-platform { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.other-platform + .other-platform { margin-top: 0; border-top: none; padding-top: 4px; }
.other-platform summary { font-size: 13px; color: var(--muted); min-height: 28px; cursor: pointer; }
.other-platform summary:hover { color: var(--text); }
.other-platform a { display: inline-block; margin-top: 12px; color: var(--accent); }
.other-platform p { font-size: 12px; margin: 0; color: var(--muted); }
.other-platform p a { margin-top: 0; }

/* ===== 特性条 ===== */
.feature-strip { display: flex; justify-content: space-between; gap: 24px; padding-block: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.feature-strip p { margin: 0; display: inline-flex; align-items: center; gap: 9px; }
.feature-strip .f-icon { color: var(--accent-2); font-size: 17px; line-height: 1; }

/* ===== 界面截图 ===== */
.workspace-section { padding-top: 54px; }
.section-lead { color: var(--muted); margin: 12px 0 24px; font-size: 15px; }
.gallery-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.workspace-shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.workspace-shot a { display: block; }
.workspace-shot img { display: block; width: 100%; height: auto; background: #101115; }
.workspace-shot figcaption { padding: 13px 18px; }

/* ===== FAQ ===== */
.help-section { padding-block: 50px 42px; max-width: 880px; }
.help-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.faq-tools { display: flex; gap: 8px; }
.faq-tools button { font: inherit; font-size: 12.5px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.faq-tools button:hover { color: var(--text); background: var(--panel); }
.help-section details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.help-section details:first-child { border-top: 1px solid var(--line); }
.help-section summary { cursor: pointer; font-size: 15px; min-height: 28px; list-style-position: outside; }
.help-section summary::marker { color: var(--accent); }
.help-section details[open] summary { color: var(--accent); }
.help-section details p { margin: 16px 0 4px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.help-section details a { color: var(--accent); }
.checksum-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 11px 12px; background: var(--panel); border-radius: 7px; }
.checksum-row .cs-label { flex: 0 0 auto; font-size: 12px; color: var(--muted); min-width: 140px; }
.checksum-row code { flex: 1 1 auto; overflow-wrap: anywhere; font-size: 12px; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-btn { flex: 0 0 auto; font: inherit; font-size: 12px; color: var(--accent); background: transparent; border: 1px solid var(--line); border-radius: 5px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.copy-btn:hover { background: var(--panel-2); }

/* ===== 页脚 / 提示 ===== */
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 25px; font-size: 13px; color: var(--muted); }
footer div { display: flex; gap: 22px; }
footer a { text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 14px); padding: 10px 18px; border-radius: 8px; background: #3a4a63; color: #fff; font-size: 13px; box-shadow: 0 6px 24px #0006; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 响应式 ===== */
@media (max-width: 1050px) {
  .wrap { padding-inline: 32px; }
  nav { gap: 16px; font-size: 13px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 276px; gap: 24px; }
  .download-panel { padding: 20px; }
  .feature-strip { font-size: 14px; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 20px; }
  .site-header { height: auto; min-height: 76px; flex-wrap: wrap; padding-block: 17px; gap: 16px; }
  .brand { font-size: 21px; }
  nav { width: 100%; gap: 20px; overflow-x: auto; padding: 3px 0 8px; font-size: 13px; scrollbar-width: thin; }
  .hero { padding-top: 22px; }
  .lead { font-size: 15px; margin-bottom: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .download-panel { padding: 22px; }
  .download-panel h2 { font-size: 22px; }
  .release { justify-content: flex-start; gap: 18px; }
  .compat { font-size: 13px; }
  .feature-strip { justify-content: flex-start; flex-wrap: wrap; gap: 8px 18px; padding-block: 18px; font-size: 13px; }
  .workspace-section { padding-top: 38px; }
  h2 { font-size: 25px; }
  .section-lead { font-size: 14px; }
  .gallery-controls { gap: 7px; }
  .gallery-controls button, .tutorial-controls button { padding: 10px 13px; font-size: 13px; }
  .workspace-shot figcaption { flex-direction: column; gap: 4px; font-size: 12px; }
  .help-section { padding-block: 38px; }
  .tutorial figcaption { font-size: 12px; }
  .checksum-row { flex-wrap: wrap; }
  .checksum-row .cs-label { min-width: 0; }
  .checksum-row code { flex-basis: 100%; order: 2; }
  .copy-btn { order: 1; margin-left: auto; }
  footer { flex-wrap: wrap; padding-block: 23px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
