/* 黑猫数据备份 — Marketing site
   Manga-inspired: pure black/white/gray, ink borders, halftone screentone, hard "stamp" shadows. */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --paper-soft: #f4f4f4;
  --yellow: #ffd400;
  --yellow-dim: #f5c400;
  --gray-900: #141414;
  --gray-700: #3d3d3d;
  --gray-500: #6b6b6b;
  --gray-300: #b3b3b3;
  --gray-200: #d8d8d8;
  --gray-100: #ececec;
  --line: rgba(0, 0, 0, 0.85);
  --line-soft: rgba(0, 0, 0, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 12px 26px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-btn: 0 3px 10px rgba(0, 0, 0, 0.16);
  --shadow-btn-hover: 0 6px 18px rgba(0, 0, 0, 0.2);
  --max-w: 1120px;
  --font: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--paper-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 0.1em 0.45em;
}
a { color: inherit; }
strong { color: var(--ink); }

:focus-visible {
  outline: 2.5px solid var(--yellow-dim);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

/* Halftone screentone texture, reused across light + dark sections */
.halftone {
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 7px 7px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: var(--shadow-btn); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--gray-900); }
.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: var(--yellow-dim); }
.btn-outline { background: var(--paper); color: var(--ink); }
.btn-outline:hover { background: var(--paper-soft); }
.btn[hidden] { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--ink); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-logo { width: 30px; height: 30px; object-fit: contain; border-radius: 50%; }
.brand-name { font-weight: 800; font-size: 15px; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: center; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--gray-500); transition: color 0.15s; }
.nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: 88px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, 0.12);
  background-image: radial-gradient(currentColor 1.5px, transparent 1.8px);
  background-size: 14px 14px;
  mask-image: radial-gradient(680px 460px at 78% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 0deg at 82% 34%, rgba(255,255,255,0.05) 0deg 2deg, transparent 2deg 12deg);
  mask-image: radial-gradient(420px 420px at 82% 34%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero .btn { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.hero .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.hero .btn-accent { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.hero .btn-accent:hover { background: var(--yellow-dim); }
.hero .btn-outline { background: transparent; color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.hero-note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-art-img {
  position: relative;
  width: 300px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--paper-soft); position: relative; }
.section-soft::before {
  content: "";
  position: absolute;
  inset: 0;
  color: rgba(0, 0, 0, 0.06);
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 8px 8px;
  pointer-events: none;
}
.section-soft > .container { position: relative; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding: 3px 10px 3px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}
.section-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}
.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  max-width: 640px;
}
.section-desc {
  font-size: 15px;
  color: var(--gray-500);
  max-width: 620px;
  margin-bottom: 48px;
}

/* ---------- Platforms ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.platform-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.platform-card:hover {
  transform: translateY(-5px);
  border-color: var(--yellow-dim);
  box-shadow: var(--shadow-card-hover);
}
.platform-card img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.platform-name { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.platform-desc { font-size: 12px; color: var(--gray-500); }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--yellow-dim);
  box-shadow: var(--shadow-card-hover);
}
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: background 0.15s ease, color 0.15s ease;
}
.feature-card:hover .feature-icon { background: var(--yellow); color: var(--ink); }
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--gray-500); line-height: 1.7; }

/* ---------- Install ---------- */
.callout {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 20px 20px 24px;
  margin-bottom: 40px;
  max-width: 760px;
  box-shadow: var(--shadow-card);
}
.callout-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.callout p { font-size: 14px; color: var(--gray-700); line-height: 1.7; }

/* Highlighter-marker accent — reused wherever a phrase needs a yellow "marker" underline.
   em-based band (not a %-of-line-height gradient) so it stays aligned at any font size.
   Text color is intentionally NOT forced here — it must inherit (white in the dark hero,
   black via the global `strong` rule elsewhere), since the band only covers a thin sliver
   at the bottom of each glyph and forcing black would make text invisible on a dark bg. */
.hl, .callout strong {
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 100% 0.4em;
  background-position: 0 88%;
  padding: 0 2px;
  font-weight: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.browser-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
}
.browser-tab {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gray-500);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.browser-tab.is-active { background: var(--yellow); color: var(--ink); }
.browser-tab:not(.is-active):hover { color: var(--ink); }

.steps { list-style: none; max-width: 760px; }
.step {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-top: 2px solid var(--gray-200);
}
.step:first-child { border-top: none; padding-top: 0; }
.step-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.step-body h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.step-body p { font-size: 14.5px; color: var(--gray-500); line-height: 1.75; margin-bottom: 12px; }
.step-body p:last-child { margin-bottom: 0; }
.step-body .btn { margin-top: 4px; }
.inline-icon {
  width: 16px; height: 16px;
  vertical-align: -3px;
  margin: 0 2px;
  color: var(--ink);
}

.browser-only { display: none; }
.browser-only.is-visible { display: block; }
code.browser-only.is-visible { display: inline; }

.code-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-soft);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 12px 10px 16px;
  margin-bottom: 4px;
}
.code-row code {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--ink);
}
.copy-btn {
  border: 1.5px solid var(--ink);
  background: #fff;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.copy-btn:hover { background: var(--ink); color: #fff; }
.copy-btn.is-copied { background: var(--yellow); border-color: var(--ink); color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.is-open .faq-question::after { transform: rotate(45deg); }
.faq-item.is-open .faq-question { background: var(--yellow); }
.faq-item.is-open { box-shadow: var(--shadow-card-hover); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.75;
  padding-top: 14px;
  margin: 0 20px 18px;
}

/* ---------- Install Guide Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px 28px 28px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.modal-header h3 { font-size: 19px; font-weight: 800; color: var(--ink); }
.modal-close {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.modal-close svg { width: 15px; height: 15px; }
.modal-close:hover { background: var(--ink); color: #fff; }

.modal-steps {
  display: flex;
  gap: 4px;
  background: var(--paper-soft);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 20px;
}
.modal-step-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gray-500);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.modal-step-tab.is-active { background: var(--yellow); color: var(--ink); }

.modal-panel { display: none; }
.modal-panel.is-active { display: block; }
.modal-panel-text { font-size: 14.5px; color: var(--gray-700); line-height: 1.75; margin-bottom: 14px; }
.modal-panel-note { font-size: 13px; color: var(--gray-500); margin-top: -6px; margin-bottom: 14px; }
.modal-panel .code-row { margin-bottom: 4px; }

/* Chrome / Edge address pair — two equal columns */
.addr-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.addr-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.addr-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  padding-left: 2px;
}
.addr-grid .code-row {
  display: flex;
  width: 100%;
  margin-bottom: 0;
  padding: 9px 7px 9px 10px;
  gap: 4px;
}
.addr-grid .code-row code {
  font-size: 12px;
  letter-spacing: -0.2px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.addr-grid .copy-btn {
  margin-left: auto;
  flex-shrink: 0;
  padding: 4px 8px;
}
@media (max-width: 480px) {
  .addr-grid { flex-direction: column; gap: 10px; }
}

.modal-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--line-soft);
  background: var(--paper-soft);
}
.modal-figure img { display: block; width: 100%; height: auto; }
.modal-figure.is-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 1024 / 520;
  border-style: dashed;
  border-color: var(--gray-300);
  color: var(--gray-300);
}
.modal-figure.is-placeholder svg { width: 40px; height: 40px; }
.modal-figure.is-placeholder span { font-size: 12px; color: var(--gray-500); }

.modal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.modal-dots { display: flex; gap: 6px; }
.modal-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gray-200);
  border: 1.5px solid var(--ink);
}
.modal-dot.is-active { background: var(--yellow); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, 0.08);
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 8px 8px;
  pointer-events: none;
}
.footer-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; font-size: 14px; }
.footer-brand .brand-logo { background: #fff; }
.footer-note { font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: 8px; }
  .hero-art-img { width: 180px; }
  .hero h1 { font-size: 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .section-title { font-size: 24px; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .header-inner { height: 56px; }
  .brand-name { display: none; }
  .browser-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .browser-tabs::-webkit-scrollbar { display: none; }
  .browser-tab { flex-shrink: 0; }
}
