/* site.css — 专策笔免费工具箱共享皮肤（对齐主站设计语言）
   主站 token：品牌靛蓝 #4f6df5 系（--brand-primary）、gray-900 大标题、白色卡片 + 柔和大阴影、
   浅色渐变页面底、靛蓝 200 描边 pill 徽章。字体：系统开源字体栈（与主站一致，无商用 webfont）。 */

:root {
  --pf: #4f6df5;
  --pf-hover: #3d5be0;
  --pf-soft: #eef2ff;
  --pf-line: #c7d2fe;
  --pf-accent: #f5a623;
  --ink: #111827;
  --ink2: #4b5563;
  --ink3: #9ca3af;
  --line: #e5e7eb;
  --ok: #059669;   --ok-bg: #ecfdf5;   --ok-line: #a7f3d0;
  --warn: #b45309; --warn-bg: #fffbeb; --warn-line: #fde68a;
  --bad: #dc2626;  --bad-bg: #fef2f2;  --bad-line: #fecaca;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fafbfe 0%, #ffffff 46%, #f7f8fb 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 导航 ---------- */
.nav { display: flex; align-items: center; gap: 12px; padding: 13px 32px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav .logo { width: 30px; height: 30px; border-radius: 8px; color: #fff;
  background: linear-gradient(135deg, var(--pf), #4f46e5);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(79,109,245,.35); }
.nav .logo svg { width: 16px; height: 16px; }
.nav .name { font-weight: 700; font-size: 15.5px; }
.nav .name small { font-weight: 500; font-size: 12px; color: var(--ink3); margin-left: 6px; }
.nav .sp { flex: 1; }
.nav a.navlink { font-size: 13.5px; color: var(--ink2); text-decoration: none; padding: 7px 12px;
  border-radius: 8px; transition: all .15s; }
.nav a.navlink:hover { background: #f0f2f7; color: var(--ink); }
.nav a.navlink.on { background: var(--pf-soft); color: var(--pf); font-weight: 700; }
.nav .divv { width: 1px; height: 20px; background: var(--line); margin: 0 2px; }
.nav a.cta-sm { font-size: 13.5px; font-weight: 600; color: #fff; text-decoration: none;
  background: var(--pf); padding: 8px 16px; border-radius: 8px;
  box-shadow: 0 2px 10px rgba(79,109,245,.3); transition: all .15s; }
.nav a.cta-sm:hover { background: var(--pf-hover); transform: translateY(-1px); }

/* ---------- 导航：镜像主站（登录态两套 + 用户菜单） ---------- */
.nav { flex-wrap: wrap; row-gap: 4px; }
.nav a.logo { color: #fff; text-decoration: none; }
.navgroup { display: flex; align-items: center; }
.navgroup[hidden] { display: none; }
.navdrop { position: relative; }
.navdrop .dropbtn { background: none; border: 0; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px; }
.dropmenu { position: absolute; left: 0; top: calc(100% + 6px); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-width: 150px; z-index: 60;
  box-shadow: 0 10px 40px -10px rgba(15,23,42,.18); }
.dropmenu a { display: block; padding: 9px 14px; font-size: 13.5px; color: var(--ink2);
  text-decoration: none; border-radius: 7px; }
.dropmenu a:hover { background: #f0f2f7; color: var(--ink); }
.auth-area { display: flex; align-items: center; gap: 10px; }
.credchip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
  color: #92600a; background: #fef3c7; border: 1px solid #fde68a; border-radius: 999px;
  padding: 7px 13px; text-decoration: none; white-space: nowrap; }
.belllink { display: inline-flex; align-items: center; padding: 7px 8px; border-radius: 8px;
  color: var(--ink2); }
.belllink:hover { background: #f0f2f7; color: var(--ink); }
.usermenu { position: relative; }
.ubtn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0;
  cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
  padding: 5px 8px; border-radius: 999px; }
.ubtn:hover { background: #f0f2f7; }
.uavatar { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 13px;
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #22d3ee); }
.uname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.udrop { position: absolute; right: 0; top: calc(100% + 6px); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-width: 150px; z-index: 60;
  box-shadow: 0 10px 40px -10px rgba(15,23,42,.18); }
.udrop a, .udrop button { display: block; width: 100%; text-align: left; padding: 9px 14px;
  font-size: 13.5px; color: var(--ink2); text-decoration: none; border-radius: 7px;
  background: none; border: 0; cursor: pointer; font-family: inherit; }
.udrop a:hover, .udrop button:hover { background: #f0f2f7; color: var(--ink); }
.udrop .signout { color: #dc2626; }
@media (max-width: 1280px) { .nav .name small { display: none; } }
@media (max-width: 1080px) { .nav a.navlink, .nav a.cta-sm, .navdrop .dropbtn { padding: 6px 9px; font-size: 13px; } }

/* ---------- 工具子导航（第二行） ---------- */
.subnav { display: flex; gap: 8px; align-items: center; padding: 8px 32px 0; flex-wrap: wrap; }
.subtab { font-size: 13.5px; color: var(--ink2); text-decoration: none; padding: 8px 14px;
  border-radius: 9px; border: 1px solid transparent; }
.subtab:hover { background: #f0f2f7; color: var(--ink); }
.subtab.on { background: var(--pf-soft); color: var(--pf); font-weight: 700; border-color: var(--pf-line); }

/* ---------- Hero ---------- */
.head { max-width: 1240px; margin: 0 auto; padding: 42px 24px 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--pf-line);
  background: #fff; color: var(--pf-hover); font-size: 12.5px; font-weight: 500;
  padding: 5px 12px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
.head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin-top: 14px; }
.head h1 em { font-style: normal; color: var(--pf); }
.head .sub { color: var(--ink2); font-size: 15px; margin-top: 10px; max-width: 780px; }
.head .sub b { color: var(--ink); font-weight: 600; }

/* ---------- 布局与卡片 ---------- */
.cols { max-width: 1240px; margin: 26px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: 470px minmax(0,1fr); gap: 22px; align-items: start; }
.single { max-width: 860px; margin: 26px auto 0; padding: 0 24px; }
@media (max-width: 1020px) { .cols { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; box-shadow: 0 1px 2px rgba(2,32,71,.05), 0 12px 32px -14px rgba(2,32,71,.12); }
.card.right { position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow-y: auto; }

.step { display: flex; gap: 10px; align-items: baseline; margin: 0 0 8px; }
.step .num { flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pf), #4f46e5); color: #fff;
  font-size: 12.5px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; transform: translateY(4px); }
.step .t { font-size: 14px; font-weight: 700; }
.step .h { font-size: 12.5px; color: var(--ink3); }

textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13.5px; padding: 11px 13px; background: #fbfcfe; font-family: inherit;
  line-height: 1.75; resize: vertical; transition: border-color .15s, box-shadow .15s; }
textarea:focus { outline: none; border-color: var(--pf);
  box-shadow: 0 0 0 3px rgba(79,109,245,.12); background: #fff; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--pf); color: #fff; border: 0; padding: 12px 20px;
  border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 10px rgba(79,109,245,.3); transition: all .15s; }
.btn:hover { background: var(--pf-hover); transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79,109,245,.35); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn.alt { background: #fff; color: var(--pf); border: 1.5px solid var(--pf);
  box-shadow: none; }
.btn.alt:hover { background: var(--pf-soft); transform: translateY(-1px); }
.btn.acc { background: linear-gradient(135deg, var(--pf-accent), #e09510);
  box-shadow: 0 2px 10px rgba(245,166,35,.35); }
.btn.acc:hover { box-shadow: 0 6px 18px rgba(245,166,35,.4); }

/* ---------- 结果 / 检查卡 ---------- */
.sumline { border-radius: 10px; padding: 11px 15px; font-size: 14px; font-weight: 700; }
.sumline small { display: block; font-weight: 400; font-size: 12.5px; margin-top: 2px; opacity: .85; }
.sumline.good { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.sumline.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.sumline.bad  { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-line); }

.issue { border-radius: 10px; padding: 12px 15px; font-size: 13.5px; margin-top: 10px; }
.issue.bad { background: var(--bad-bg); border: 1px solid var(--bad-line); }
.issue.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); }
.issue .it { font-weight: 700; font-size: 13.5px; }
.issue.bad .it { color: var(--bad); }
.issue.warn .it { color: var(--warn); }
.issue .todo { font-size: 12px; color: var(--ink); opacity: .8; margin-top: 2px; }
.issue ul { margin: 6px 0 0 18px; font-size: 13px; }
.issue li { margin-bottom: 2px; }

table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
td, th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
th { background: #f7f8fb; font-weight: 600; }
td.zero { color: var(--bad); font-weight: 700; }

.blocktitle { font-size: 13.5px; font-weight: 700; margin: 18px 0 6px; }

/* ---------- 引流转化块（深蓝渐变，对齐主站 hero） ---------- */
.convert { margin: 48px auto 0; max-width: 1240px; padding: 0 24px 26px; }
.convert .inner { position: relative; overflow: hidden; border-radius: 18px;
  background: linear-gradient(135deg, #0c1428 0%, #162040 55%, #1a1f3a 100%);
  color: #fff; padding: 38px 42px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.convert .inner::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 90% at 85% 10%, rgba(245,166,35,.14) 0%, transparent 70%),
              radial-gradient(ellipse 60% 80% at 8% 90%, rgba(79,109,245,.22) 0%, transparent 70%); }
.convert .txt { position: relative; max-width: 640px; }
.convert .txt .k { display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  color: #93c5fd; border: 1px solid rgba(147,197,253,.3); border-radius: 999px;
  padding: 3px 12px; background: rgba(79,109,245,.15); }
.convert .txt h2 { font-size: 22px; font-weight: 800; margin-top: 12px; letter-spacing: -.3px; }
.convert .txt p { font-size: 13.5px; color: #cbd5e1; margin-top: 6px; }
.convert .txt p b { color: #fbbf24; }
.convert .acts { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.convert .acts a.big { display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--pf-accent), #e09510); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 14.5px;
  padding: 13px 24px; border-radius: 10px;
  box-shadow: 0 4px 18px rgba(245,166,35,.4); transition: all .15s; }
.convert .acts a.big:hover { transform: translateY(-2px); }
.convert .acts a.ghost { display: inline-flex; align-items: center; color: #cbd5e1;
  text-decoration: none; font-size: 13.5px; padding: 13px 16px; border-radius: 10px;
  border: 1px solid rgba(203,213,225,.25); transition: all .15s; }
.convert .acts a.ghost:hover { color: #fff; border-color: rgba(203,213,225,.5); }

/* ---------- 页脚 ---------- */
.footer { max-width: 1240px; margin: 0 auto; padding: 26px 24px 44px;
  border-top: 1px solid var(--line); margin-top: 40px;
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  color: var(--ink3); font-size: 12.5px; }
.footer .brand { font-weight: 700; color: var(--ink2); }
.footer a { color: var(--ink2); text-decoration: none; }
.footer a:hover { color: var(--pf); }
.footer .prot { margin-left: auto; }

/* ---------- 小件 ---------- */
.note { font-size: 12px; color: var(--ink3); }
details.legend { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 8px; }
details.legend summary { font-size: 12.5px; color: var(--ink3); cursor: pointer; }
details.legend .body { font-size: 12px; color: var(--ink3); margin-top: 6px; }
.cta-inline { display: flex; gap: 18px; font-size: 13px; flex-wrap: wrap; margin-top: 12px; }
.cta-inline a { color: var(--pf); font-weight: 600; text-decoration: none; }
.cta-inline a:hover { text-decoration: underline; }
