/* BiliTool 落地页 —— 与程序内的界面共用一套视觉（粉色主色 #fb7299） */

* { box-sizing: border-box; }

:root {
  --accent: #fb7299;
  --accent-d: #e85f86;
  --ink: #1f2329;
  --ink-2: #5b6470;
  --ink-3: #8b939e;
  --line: #e8ebef;
  --bg: #ffffff;
  --bg-alt: #fafbfc;
  --warn: #b45309;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB",
               -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
code {
  font-family: Consolas, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: #f2f4f7;
  padding: 1px 5px;
  border-radius: 4px;
  color: #c2416b;
}

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 22px; height: 58px; }
.brand { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.logo { width: 26px; height: 26px; display: block; border-radius: 7px; }
.links { display: flex; gap: 20px; margin-left: auto; }
.links a {
  color: var(--ink-2); text-decoration: none; font-size: 13.5px;
  transition: color .15s;
}
.links a:hover { color: var(--accent); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink);
  padding: 9px 18px; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all .15s;
}
.btn:hover { border-color: #d6dbe2; }
.btn.primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 2px 10px rgba(251,114,153,.3);
}
.btn.primary:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.btn.lg { padding: 15px 36px; font-size: 16px; border-radius: 11px; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 60px;
  background:
    radial-gradient(900px 380px at 50% -8%, rgba(251,114,153,.13), transparent 70%),
    var(--bg);
  text-align: center;
}
.hero h1 {
  font-size: 40px; line-height: 1.28; margin: 0 0 18px;
  letter-spacing: -.5px; font-weight: 800;
}
.lede { font-size: 17px; color: var(--ink-2); margin: 0 0 32px; line-height: 1.85; }
.lede b { color: var(--ink); }

.cta { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta-meta { text-align: left; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.dim { color: var(--ink-3); }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; margin-top: 52px;
}
.facts > div { background: #fff; padding: 20px 14px; }
.facts b { display: block; font-size: 19px; color: var(--accent); margin-bottom: 3px; }
.facts span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 区块 ---------- */
.sec { padding: 64px 0; }
.sec.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec h2 { font-size: 26px; margin: 0 0 10px; letter-spacing: -.3px; }
.sec .sub { color: var(--ink-2); margin: 0 0 36px; }

/* ---------- 三列说明 ---------- */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.col {
  background: #fff; border: 1px solid var(--line);
  border-radius: 13px; padding: 26px 22px;
}
.num {
  font-family: Consolas, monospace; font-size: 13px; font-weight: 700;
  color: var(--accent); letter-spacing: 1px; margin-bottom: 12px;
}
.col h3 { font-size: 16px; margin: 0 0 10px; }
.col p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }

/* ---------- 功能网格 ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 20px 20px 18px;
}
.feat h4 { margin: 0 0 8px; font-size: 14.5px; }
.feat h4::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent); margin-right: 9px; vertical-align: 2px;
}
.feat p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.8; }

/* ---------- 截图 ---------- */
.shot { margin: 0 0 22px; }
.shot img {
  width: 100%; display: block; border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 26px rgba(31,35,41,.08);
}
.shot figcaption {
  font-size: 12.5px; color: var(--ink-3);
  margin-top: 10px; text-align: center;
}
.shot-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0;
         display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li {
  counter-increment: s; position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 26px 22px 22px;
}
.steps li::before {
  content: counter(s);
  position: absolute; top: -13px; left: 22px;
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps b { display: block; font-size: 15px; margin-bottom: 9px; }
.steps span { font-size: 13px; color: var(--ink-2); line-height: 1.85; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: 11px;
  padding: 0 20px; margin-bottom: 10px; background: #fff;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 14.5px;
  padding: 15px 0; list-style: none;
  display: flex; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: '+'; color: var(--accent); font-weight: 700;
  font-size: 17px; width: 14px; flex: none;
}
.faq details[open] summary::before { content: '−'; }
.faq details > p {
  margin: 0 0 14px; font-size: 13.5px; color: var(--ink-2);
  line-height: 1.9; padding-left: 24px;
}
.faq details > p:first-of-type { margin-top: -4px; }
.faq .warn { color: var(--warn); }
.faq .warn b { color: #92400e; }

/* ---------- 获取 Cookie 教程 ---------- */
.cwarn {
  background: #fff8f0; border: 1px solid #f5e0c8; border-radius: 11px;
  padding: 15px 18px; font-size: 13.5px; color: #8a5a1e; line-height: 1.85;
  margin-bottom: 26px;
}
.cwarn b { color: #7c4a12; }

.csteps {
  counter-reset: cs; list-style: none; padding: 0; margin: 0;
  max-width: 780px;
}
.csteps > li {
  counter-increment: cs; position: relative;
  padding: 0 0 20px 44px; margin-left: 13px;
  border-left: 1px solid var(--line);
}
.csteps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.csteps > li::before {
  content: counter(cs);
  position: absolute; left: -14px; top: -2px;
  width: 27px; height: 27px; border-radius: 50%;
  background: #fff; border: 1px solid #f3c3d3; color: var(--accent);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
/* 只作用于步骤标题这个「直接子元素」的 b。
   写成 .csteps b 会把句子中间的行内加粗也变成块级，导致强行换行。 */
.csteps > li > b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }
.csteps span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.csteps a { color: var(--accent); }

.csub {
  margin: 28px 0 0; max-width: 780px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  padding: 0 20px;
}
.csub > summary {
  cursor: pointer; list-style: none; padding: 15px 0;
  font-weight: 600; font-size: 14px; color: var(--accent);
}
.csub > summary::-webkit-details-marker { display: none; }
.csub > summary::before { content: '▸ '; }
.csub[open] > summary::before { content: '▾ '; }
.csub .csteps { padding-bottom: 6px; }

.cfqa {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px;
}
.cfqa > div {
  background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 18px 20px;
}
/* 同上：只作用于卡片标题的直接子元素 b */
.cfqa > div > b { display: block; font-size: 14px; margin-bottom: 7px; }
.cfqa p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.85; }

/* ---------- 更新日志 ---------- */
.log { max-width: 820px; }
.logitem {
  position: relative;
  padding: 0 0 24px 24px;
  border-left: 2px solid var(--line);
}
.logitem:last-child { border-left-color: transparent; padding-bottom: 0; }
.logitem::before {
  content: ''; position: absolute; left: -8px; top: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid #d9dee5;
}
.logitem.current::before { background: var(--accent); border-color: var(--accent); }
.loghead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.loghead b { font-size: 16px; }
.logdate { font-size: 12.5px; color: var(--ink-3); margin-left: auto; }
.tag {
  font-size: 11px; font-weight: 600;
  background: #fdeef4; color: var(--accent);
  border-radius: 4px; padding: 1px 7px;
}
.logitem ul { margin: 0; padding-left: 20px; }
.logitem li {
  font-size: 13.5px; color: var(--ink-2);
  line-height: 1.9; margin-bottom: 2px;
}

/* ---------- 须知 ---------- */
.warnbar {
  background: #fffbf5; border-top: 1px solid #f5e6d3;
}
.warnbar h2 { font-size: 19px; }
.warnbar p { color: #7c5a2a; font-size: 13.5px; max-width: 780px; }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 26px 0; font-size: 13px; color: var(--ink-2);
}
footer .wrap { display: flex; gap: 16px; align-items: center; }
footer .dim { margin-left: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .links { display: none; }
  .hero h1 { font-size: 29px; }
  .lede { font-size: 15px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .cols, .feats, .steps, .shot-2, .cfqa { grid-template-columns: 1fr; }
  .sec { padding: 46px 0; }
  .hero { padding: 52px 0 44px; }
  .cta { flex-direction: column; }
  .cta-meta { text-align: center; }
}
