/* Bookmark Cleanup — site styles */
:root {
  --ink: #0d1117;
  --ink-2: #242c37;
  --muted: #5b6673;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-2: #f6f8fa;
  --accent: #0b8a63;
  --accent-2: #0a6f50;
  --accent-soft: #e8f6f0;
  --danger: #b4402f;
  --radius: 14px;
  --wrap: 1080px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

html[lang="zh-CN"] h1, html[lang="zh-CN"] h2 { line-height: 1.28; }

h1, h2 { text-wrap: balance; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  flex: none;
}
.logo:hover { text-decoration: none; }
.logo img { width: 26px; height: 26px; border-radius: 7px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14.5px;
}
.site-nav a { color: var(--ink-2); white-space: nowrap; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav .lang {
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.nav-cta {
  flex: none;
  background: var(--ink);
  color: #fff !important;
  padding: 8px 15px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
}
.nav-cta:hover { background: #000; text-decoration: none; }

@media (max-width: 820px) {
  .site-nav { gap: 14px; font-size: 14px; }
  .site-nav .nav-hide { display: none; }
}

/* hero */
.hero {
  padding: 64px 0 44px;
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 52px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(29px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  font-weight: 600;
}
.hero .lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 46ch;
  line-height: 1.6;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(13, 17, 23, .08); transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { background: transparent; }
.btn-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: .72;
  margin-top: 1px;
}
.trust {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* product mock */
.mock {
  background: #0d1117;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(13, 17, 23, .22);
  max-width: 400px;
  width: 100%;
  margin-left: auto;
}
.mock-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mock-bar .track { flex: 1; height: 3px; background: #262d38; border-radius: 2px; overflow: hidden; }
.mock-bar .track i { display: block; width: 42%; height: 100%; background: #35e0a1; }
.mock-bar .cnt { font-size: 10px; color: #7d8794; font-family: var(--mono); }
.mock-card {
  background: #151a21;
  border: 1px solid #232a34;
  border-radius: 14px;
  overflow: hidden;
}
.mock-shot {
  height: 176px;
  background: #1b2129;
  position: relative;
  padding: 12px 14px;
}
.mock-chrome { display: flex; gap: 4px; margin-bottom: 12px; }
.mock-chrome i { width: 6px; height: 6px; border-radius: 50%; background: #333c49; display: block; }
.mock-chrome i:first-child { background: #43505f; }
.sk { display: block; border-radius: 4px; background: #2b323d; }
.sk.h { height: 9px; margin-bottom: 7px; }
.sk.w70 { width: 70%; }
.sk.w45 { width: 45%; }
.sk.img {
  height: 56px;
  width: 100%;
  margin: 10px 0;
  border-radius: 6px;
  background: linear-gradient(120deg, #24313a 0%, #2b3a33 100%);
}
.sk.s { height: 6px; margin-bottom: 5px; background: #262d38; }
.mock-meta { padding: 12px 14px 14px; }
.mock-meta .t { color: #eef1f5; font-size: 13.5px; line-height: 1.4; margin: 0 0 5px; font-weight: 500; }
.mock-meta .d { color: #7d8794; font-size: 11px; font-family: var(--mono); }
.mock-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.mock-actions div {
  text-align: center;
  font-size: 10.5px;
  padding: 7px;
  border-radius: 8px;
  border: 1px solid #232a34;
  color: #a7b1be;
  background: #12171d;
}
.mock-actions .del { color: #f19a9a; border-color: #3a2222; background: #1a1313; }
.mock-actions .keep { color: #8fe3b6; border-color: #1e3a2a; background: #101a14; }

/* sections */
section { padding: 56px 0; }
.section-head { max-width: 620px; margin-bottom: 34px; }
.section-head h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  font-weight: 600;
}
.section-head p { color: var(--muted); margin: 0; font-size: 16.5px; }

.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* stats / problem */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}
.quote b { display: block; font-size: 30px; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 4px; }
.quote p { margin: 0; color: var(--muted); font-size: 14px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}
.feature .ico {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature h3 { font-size: 16px; margin: 0 0 6px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step h3 { font-size: 16px; margin: 10px 0 6px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step .num {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-2);
  background: #fff;
}

/* table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
th { font-weight: 500; color: var(--ink-2); background: var(--bg-2); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--accent-2); }
td.no { color: var(--muted); }

/* install */
.install-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.install {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.install h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.install p { margin: 0 0 16px; color: var(--muted); font-size: 14px; flex: 1; }
.install .btn { justify-content: center; }
.install .meta { margin-top: 10px; font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); font-size: 15px; max-width: 72ch; }

/* companion */
.companion {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  background: linear-gradient(180deg, #f4faf7 0%, #ffffff 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.companion h2 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.02em; font-weight: 600; }
.companion p { margin: 0; color: var(--muted); max-width: 58ch; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 54px;
  background: var(--bg-2);
  font-size: 14px;
  color: var(--muted);
}
.footer-top { display: flex; gap: 30px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 26px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-note { font-size: 13px; line-height: 1.7; margin: 0; max-width: 78ch; }

/* prose (articles, legal) */
.article { max-width: 760px; margin: 0 auto; padding: 44px 0 20px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 7px; opacity: .5; }
.article h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 600;
}
.article .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.article .summary {
  font-size: 17.5px;
  color: var(--ink-2);
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 18px;
  margin: 0 0 32px;
  line-height: 1.65;
}
.prose h2 { font-size: 23px; letter-spacing: -0.02em; margin: 40px 0 12px; font-weight: 600; }
.prose h3 { font-size: 17px; margin: 26px 0 8px; font-weight: 600; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { font-size: 14px; }
.prose blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--line);
  color: var(--muted);
  background: var(--bg-2);
  border-radius: 0 8px 8px 0;
}
.prose code {
  font-family: var(--mono);
  font-size: .92em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}
.prose pre {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: #0f141a;
  border-radius: 10px;
  overflow-x: auto;
  line-height: 1.6;
}
.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: #c9d6e2;
  font-size: 13px;
  white-space: pre;
}
.prose .callout {
  border: 1px solid #cfe6da;
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 20px;
  font-size: 15px;
}
.prose .callout p:last-child { margin-bottom: 0; }

.cta-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  background: var(--bg-2);
  margin: 40px 0 10px;
}
.cta-box h2 { margin: 0 0 8px; font-size: 20px; }
.cta-box p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

.related { margin: 40px 0 0; }
.related h2 { font-size: 18px; margin: 0 0 14px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related li a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.related li a:hover { border-color: #c9d4dd; text-decoration: none; }
.related li b { display: block; font-weight: 500; font-size: 15px; }
.related li span { color: var(--muted); font-size: 13px; }

/* guide index */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-card a { color: var(--ink); }
.guide-card h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; font-weight: 600; }
.guide-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.guide-card .tag { font-size: 12px; color: var(--accent-2); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; align-self: flex-start; }

/* legal */
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal h3 { font-size: 16px; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15px; }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 28px; }

/* language hint */
.lang-hint {
  display: none;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
}
.lang-hint.on { display: block; }
.lang-hint .wrap { display: flex; align-items: center; gap: 14px; padding-top: 9px; padding-bottom: 9px; }
.lang-hint a { color: #8fe3b6; font-weight: 500; }
.lang-hint button {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #8b95a3;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .mock { margin: 0 auto; }
  .features, .steps, .install-grid, .quotes, .guide-grid { grid-template-columns: 1fr; }
  .companion { grid-template-columns: 1fr; }
  section { padding: 42px 0; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .quotes { grid-template-columns: 1fr; }
  .site-nav .nav-hide { display: none; }
  .site-nav { gap: 12px; font-size: 13.5px; }
  .header-inner { gap: 10px; }
  .logo span { font-size: 14.5px; }
  .nav-cta { padding: 7px 11px; font-size: 13px; }
  .site-nav .lang { padding-left: 12px; }
  .companion { padding: 24px; }
  .article { padding-top: 30px; }
}
