/* Ledge Tools 官网样式：一份文件，跟随系统深色模式，不用外部字体 */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #efefec;
  --text: #1c1c1e;
  --muted: #5f5f66;
  --line: #e2e2de;
  --accent: #2f5be0;
  --accent-ink: #ffffff;
  --accent-soft: #e8eefd;
  --pro: #b4540a;
  --pro-soft: #fbecdc;
  --ok: #1e7f4c;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --surface: #1d1d20;
    --surface-2: #26262a;
    --text: #ececef;
    --muted: #a1a1aa;
    --line: #313136;
    --accent: #6d8ff5;
    --accent-ink: #0d1020;
    --accent-soft: #1f2846;
    --pro: #f0a35c;
    --pro-soft: #3a2a1a;
    --ok: #58c88b;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }

/* 顶部 */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; display: block; }
.nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 0.94rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
@media (max-width: 560px) {
  .nav { gap: 12px; font-size: 0.88rem; }
  .nav .hide-sm { display: none; }
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { border-color: var(--accent); filter: brightness(1.06); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* 首页大标题 */
.hero { padding: 64px 0 32px; }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 5fr 6fr; } }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .note { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }

/* 截图位：图还没放时也能看出这里是张图 */
.shot {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow);
}
.shot img { width: 100%; height: auto; }
/* 竖长的弹窗截图：限宽居中，字的大小接近屏幕上的实际大小 */
.shot.tall { width: 100%; max-width: 420px; justify-self: center; }

/* 区块 */
section.block { padding: 56px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 28px; }

.feature-row { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; padding: 28px 0; }
@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 48px; }
  .feature-row.flip > :first-child { order: 2; }
}
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.feature-list li { padding-left: 18px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 1px 7px; border-radius: 999px; vertical-align: 0.12em; margin-left: 4px;
  background: var(--pro-soft); color: var(--pro);
}
.tag.free { background: var(--accent-soft); color: var(--accent); }

.callout {
  border-radius: var(--radius); padding: 28px; background: var(--accent-soft);
  display: grid; gap: 16px; align-items: center; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .callout { grid-template-columns: 1fr auto; } }
.callout p { margin: 0; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}

/* 定价 */
.plans { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 880px) { .plans { grid-template-columns: 1fr 1fr 1.18fr; align-items: center; } }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.plan .price { font-size: 2.2rem; font-weight: 750; line-height: 1.1; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.94rem; }
.plan ul li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
.plan .btn { width: 100%; }
.plan.featured {
  border: 2px solid var(--accent); box-shadow: var(--shadow); padding: 34px 28px; position: relative;
}
.plan.featured .price { font-size: 2.7rem; }
.plan .ribbon {
  position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--accent-ink);
  font-size: 0.8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.pay-note { font-size: 0.82rem; color: var(--muted); margin: 0; }

.field { display: grid; gap: 6px; margin-bottom: 18px; max-width: 420px; }
.field label { font-weight: 600; font-size: 0.94rem; }
input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
textarea { min-height: 120px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85rem; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.status { min-height: 1.5em; font-size: 0.92rem; margin-top: 10px; }
.status.error { color: #c0392b; }
@media (prefers-color-scheme: dark) { .status.error { color: #ff7b6b; } }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface-2); font-weight: 650; }
td.yes { color: var(--ok); font-weight: 600; }

/* 常见问题 */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* 说明页正文 */
.prose { padding: 48px 0 64px; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.35em; }

/* 使用手册：宽屏左边目录跟着滚，窄屏目录收成一个可展开的框放在最上面 */
.manual { display: grid; gap: 32px; grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 900px) { .manual { grid-template-columns: 220px 1fr; gap: 48px; } }
.toc { font-size: 0.9rem; }
.toc details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px 16px; }
.toc summary { cursor: pointer; font-weight: 650; }
.toc ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.toc a { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.toc .ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toc a:hover { color: var(--text); text-decoration: none; }
@media (min-width: 900px) {
  .toc { position: sticky; top: 78px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; }
  .toc details { border: 0; background: none; padding: 0; }
}
.manual-body { min-width: 0; }
.manual-body > section { padding-bottom: 8px; scroll-margin-top: 76px; }
.manual-body > section + section { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.manual-body h2 { font-size: 1.5rem; }
.manual-body h3 { margin-top: 1.4em; scroll-margin-top: 76px; }
.manual-body ul, .manual-body ol { padding-left: 1.3em; }
.manual-body li { margin-bottom: 0.35em; }
.manual-body .table-wrap { margin: 12px 0 18px; }
.where { font-size: 0.875rem; color: var(--muted); }
kbd {
  font: 0.85em ui-monospace, "SF Mono", Menlo, monospace; padding: 1px 6px; border-radius: 6px;
  border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface);
}
.tip { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 10px 14px; border-radius: 0 10px 10px 0; margin: 12px 0; }
.tip p { margin: 0; }

/* 取件页 */
.license-box { display: grid; gap: 12px; }
.license-box textarea { min-height: 150px; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 0.9rem; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--muted); }
.site-footer p { margin: 6px 0 0; }

[hidden] { display: none !important; }
