/* 青芽云工具 — 零依赖样式 */
:root {
  --bg: #f5f7f4;
  --card: #ffffff;
  --ink: #1c2b22;
  --muted: #64748b;
  --line: #e3e9e4;
  --green: #16a34a;
  --green-d: #15803d;
  --green-bg: #ecfdf3;
  --r: 14px;
  --shadow: 0 1px 2px rgba(22, 34, 27, .06), 0 8px 24px rgba(22, 34, 27, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
button, input, select { font: inherit; color: inherit; }

/* ---------- 顶栏 ---------- */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { max-width: 980px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 17px; line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--muted); }
.privacy-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 12px; color: var(--green-d); background: var(--green-bg);
  border: 1px solid #c9ecd6; border-radius: 999px; padding: 5px 12px;
}
.privacy-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }

/* ---------- 布局 ---------- */
.wrap { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 22px 16px calc(40px + env(safe-area-inset-bottom)); }
.foot { border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 12px; text-align: center; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); line-height: 1.8; }
.foot a { color: var(--muted); }
.foot-beian img { width: 14px; height: auto; vertical-align: -3px; margin-right: 3px; }

/* ---------- 首页 ---------- */
.hero { text-align: center; padding: 26px 10px 8px; }
.hero h1 { font-size: 26px; margin-bottom: 10px; }
.hero p { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 560px; margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.tcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; cursor: pointer; text-align: left; transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column; gap: 8px;
}
.tcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c9ecd6; }
.tcard .ic { font-size: 26px; line-height: 1; }
.tcard b { font-size: 15px; }
.tcard span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.homenote {
  margin-top: 22px; background: var(--green-bg); border: 1px solid #c9ecd6; border-radius: var(--r);
  padding: 14px 16px; font-size: 13px; color: var(--green-d); line-height: 1.8;
}

/* ---------- 工具页 ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; cursor: pointer; }
.crumbs a:hover { color: var(--green-d); }
.crumbs b { color: var(--ink); font-size: 15px; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.tool h2 { font-size: 18px; margin-bottom: 4px; }
.tool .desc { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

.drop {
  border: 2px dashed #c4d6c8; border-radius: 12px; background: #fafcfa;
  padding: 30px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--green); background: var(--green-bg); }
.drop .ic { font-size: 30px; }
.drop p { margin-top: 8px; font-size: 14px; }
.drop p b { color: var(--green-d); }
.drop .fmt { margin-top: 6px; font-size: 12px; color: var(--muted); }

.filed {
  display: flex; align-items: center; gap: 12px; background: #fafcfa;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.filed .ic { font-size: 24px; flex: none; }
.filed .fi { min-width: 0; flex: 1; }
.filed .fn { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filed .fm { font-size: 12px; color: var(--muted); margin-top: 2px; }
.filed .re { flex: none; }
.opts { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 4px; }
.opt { display: flex; flex-direction: column; gap: 5px; min-width: 150px; flex: 1; }
.opt label { font-size: 12.5px; color: var(--muted); }
.opt select, .opt input {
  height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px;
  background: #fff; font-size: 16px;
}
.opt input[type=range] { padding: 0; }
.acts { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn {
  height: 44px; padding: 0 22px; border: none; border-radius: 10px; cursor: pointer;
  font-size: 15px; font-weight: 600; background: #eef2ef; color: var(--ink);
}
.btn:hover { background: #e4ebe5; }
.btn.pri { background: var(--green); color: #fff; }
.btn.pri:hover { background: var(--green-d); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }

.prog { margin-top: 16px; display: none; }
.prog.on { display: block; }
.prog .bar { height: 8px; border-radius: 999px; background: #e8efe9; overflow: hidden; }
.prog .bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .25s; }
.prog .st { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.7; }

.result { margin-top: 16px; display: none; align-items: center; gap: 12px; background: var(--green-bg); border: 1px solid #c9ecd6; border-radius: 12px; padding: 14px 16px; }
.result.on { display: flex; }
.result .ic { font-size: 26px; }
.result .ri { flex: 1; min-width: 0; }
.result .rn { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result .rm { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hint { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 手机端 ---------- */
@media (max-width: 760px) {
  .hero h1 { font-size: 22px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-sub { display: none; }
  .privacy-chip span { display: none; }
  .wrap { padding: 16px 12px calc(32px + env(safe-area-inset-bottom)); }
  .tool { padding: 16px 14px; }
  .opt { min-width: calc(50% - 6px); }
  .acts .btn { flex: 1; }
}
@media (max-width: 430px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Pro 高级版 ---------- */
.top-right { display: flex; align-items: center; gap: 8px; flex: none; }
.pro-chip {
  flex: none; cursor: pointer; font-size: 12px; font-weight: 600;
  color: #b45309; background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 999px; padding: 5px 12px; transition: all .15s;
}
.pro-chip:hover { background: #fef3c7; }
.pro-chip.on { color: #92400e; background: #fef9c3; border-color: #fde047; }
.pro-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(22, 34, 27, .45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.pro-modal {
  position: relative; width: 100%; max-width: 400px; background: var(--card);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 24px;
  display: flex; flex-direction: column; gap: 12px; max-height: 86vh; overflow: auto;
}
.pm-close { position: absolute; top: 10px; right: 14px; cursor: pointer; color: var(--muted); font-size: 16px; }
.pm-big { font-size: 17px; font-weight: 700; text-align: center; }
.pm-feats { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink); }
.pm-feats li { background: var(--bg); border-radius: 8px; padding: 7px 10px; }
.pm-note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.pm-contact { font-size: 13px; text-align: center; color: #b45309; background: #fffbeb; border: 1px dashed #fde68a; border-radius: 8px; padding: 10px; }
.pm-buy { text-align: center; text-decoration: none; }
.pm-input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 15px; letter-spacing: 1px; text-align: center; text-transform: uppercase;
  font-family: ui-monospace, Consolas, monospace;
}
.pm-input:focus { outline: 2px solid var(--green); outline-offset: -1px; }
.pm-err { font-size: 12px; color: #dc2626; text-align: center; min-height: 16px; }
.pm-code { text-align: center; font-family: ui-monospace, Consolas, monospace; font-size: 16px; letter-spacing: 2px; color: var(--green-d); background: var(--green-bg); border-radius: 8px; padding: 10px; }
.pm-ok { display: flex; flex-direction: column; gap: 12px; }

/* ---------- 批量文件列表 ---------- */
.filelist { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.fitem {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
}
.fitem .fi { flex: 1; min-width: 0; }
.fitem .fn { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fitem .fm { font-size: 12px; color: var(--muted); }
.fitem .fx { flex: none; cursor: pointer; border: none; background: transparent; color: var(--muted); font-size: 15px; padding: 4px 6px; border-radius: 6px; }
.fitem .fx:hover { background: #fdecec; color: #dc2626; }
.fitem.done { border-color: #c9ecd6; }
.fitem .fst { flex: none; font-size: 12px; color: var(--muted); }
.fitem .fst.ok { color: var(--green-d); font-weight: 600; }
.fitem .fst.err { color: #dc2626; }

/* ---------- 结果列表（批量） ---------- */
.reslist { display: flex; flex-direction: column; gap: 10px; }
.resitem {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.resitem .ri { flex: 1; min-width: 0; }
.resitem .rn { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resitem .rm { font-size: 12px; color: var(--muted); }
.resitem .btn { flex: none; padding: 7px 14px; font-size: 13px; }
@media (max-width: 640px) {
  .top-right .privacy-chip span { display: none; }
  .pro-modal { padding: 18px; }
}
.pm-hint { font-size: 12px; color: #b45309; text-align: center; min-height: 14px; line-height: 1.6; }

/* ---------- 客服公示 / 支付邮箱 ---------- */
.foot-support { margin: 2px 0; }
.foot-support a { text-decoration: none; border-bottom: 1px dashed var(--line); }
.foot-support a:hover { color: var(--green-d); border-bottom-color: var(--green); }
.pm-email { letter-spacing: 0; text-transform: none; font-family: inherit; font-size: 14px; }
.pm-code { cursor: text; -webkit-user-select: all; user-select: all; }

/* ---------- 定价页 pro.html ---------- */
.pro-wrap { max-width: 900px; }
.pro-hero { text-align: center; padding: 30px 8px 2px; }
.pro-hero .eyebrow {
  display: inline-block; font-size: 12px; color: var(--green-d); background: var(--green-bg);
  border: 1px solid #c9ecd6; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
.pro-hero h1 { font-size: 30px; letter-spacing: -.5px; line-height: 1.25; }
.pro-hero p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.8; }

.plan {
  display: grid; grid-template-columns: 1.12fr .88fr; margin-top: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(22, 34, 27, .06);
}
.plan-main { padding: 28px 28px 26px; }
.plan-tag { font-size: 12px; font-weight: 600; color: var(--green-d); letter-spacing: .4px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 2px; }
.plan-price .num { font-size: 40px; font-weight: 700; letter-spacing: -1.5px; color: var(--ink); line-height: 1.1; }
.plan-price .num i { font-size: 20px; font-style: normal; font-weight: 600; margin-right: 3px; letter-spacing: 0; }
.plan-price .unit { font-size: 13px; color: var(--muted); }
.plan-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.plan-chips span { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 3px 9px; }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 13px; padding: 20px 0; margin-top: 16px; border-top: 1px solid var(--line); }
.plan-feats li { position: relative; padding-left: 26px; font-size: 13.5px; line-height: 1.68; color: var(--muted); }
.plan-feats li b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.plan-feats li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--green-bg); border: 1px solid #c9ecd6;
}
.plan-feats li::after {
  content: ""; position: absolute; left: 5px; top: 6px; width: 6px; height: 3px;
  border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg); transform-origin: left center;
}
.plan-buy .btn { width: 100%; padding: 14px; font-size: 15px; letter-spacing: .3px; }
.plan-buy .btn:hover { background: var(--green-d); }
.buy-alt { display: block; text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.buy-alt[hidden] { display: none; }
.buy-msg { font-size: 12.5px; color: #b45309; text-align: center; min-height: 16px; margin-top: 8px; line-height: 1.6; }
.plan-foot { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.7; }
/* 找回授权码 */
.recover { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.rec-tip { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.rec-row { display: flex; gap: 8px; }
.rec-row input {
  flex: 1; min-width: 0; height: 44px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 14px;
}
.rec-row input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .14); }
.rec-row .btn {
  flex: 0 0 auto; width: auto; height: 44px; padding: 0 18px; font-size: 14px;
}
.rec-row .btn:hover { background: #e4ebe5; }
.rec-msg { font-size: 12.5px; min-height: 16px; margin-top: 8px; line-height: 1.6; color: var(--muted); }
.rec-msg.ok { color: var(--green-d); font-weight: 600; word-break: break-all; }
.rec-msg.err { color: #b45309; }
/* 支持开发者（赞助） */
.donate-lead { font-size: 13.5px; color: var(--muted); line-height: 1.85; margin-bottom: 14px; }
.donate-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.amt-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.amt {
  padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 14px; cursor: pointer; transition: .15s;
}
.amt:hover { border-color: var(--green); }
.amt.on { background: var(--green-bg); border-color: var(--green); color: var(--green-d); font-weight: 700; }
.amt-chips input {
  width: 128px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 14px;
}
.amt-chips input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .14); }
@media (max-width: 560px) {
  .donate-row { flex-direction: column; align-items: stretch; }
  .amt-chips input { width: 100%; }
  .donate-row .btn { width: 100%; }
  /* 纵向布局时 flex:1 会作用到高度（flex-basis:0），需重置，否则 height 失效 */
  .rec-row { flex-direction: column; align-items: stretch; }
  .rec-row input { flex: none; }
  .rec-row .btn { width: 100%; }
}

.plan-side {
  background: #f7faf8; border-left: 1px solid var(--line);
  padding: 28px 24px; display: flex; flex-direction: column;
}
.plan-side h2 { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 1px; }
.pl-steps { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.pl-steps li { display: flex; gap: 12px; font-size: 12.8px; line-height: 1.65; color: var(--muted); }
.pl-steps i {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card);
  border: 1px solid var(--line); color: var(--green-d); font-size: 12px; font-style: normal;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.pl-steps b { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.side-pay { margin-top: 22px; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pay-chips span { font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; }
.side-note { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); line-height: 1.75; }

.sec { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; }
.sec h2 { font-size: 15px; margin-bottom: 12px; }
.sec p { font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.sec p + p { margin-top: 9px; }
.sec strong { color: var(--ink); font-weight: 600; }
.two { display: grid; grid-template-columns: 1.18fr .82fr; gap: 30px; }
.pts { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.pts li { font-size: 12.8px; color: var(--muted); line-height: 1.6; padding-left: 14px; border-left: 2px solid #c9ecd6; }
.pts b { display: block; color: var(--ink); font-weight: 600; font-size: 13.2px; margin-bottom: 2px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qa { background: var(--bg); border-radius: 10px; padding: 14px 16px; }
.qa dt { font-size: 13px; font-weight: 600; line-height: 1.5; }
.qa dd { font-size: 12.6px; color: var(--muted); line-height: 1.75; margin-top: 6px; }
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; background: var(--green-bg); border: 1px solid #c9ecd6;
  border-radius: 14px; padding: 18px 22px;
}
.cta p { font-size: 13px; color: var(--green-d); line-height: 1.7; }
.cta .btn { flex: none; padding: 10px 18px; font-size: 13.5px; }

@media (max-width: 760px) {
  .pro-hero { padding-top: 22px; }
  .pro-hero h1 { font-size: 24px; }
  .plan { grid-template-columns: 1fr; border-radius: 16px; }
  .plan-main { padding: 22px 18px; }
  .plan-side { border-left: none; border-top: 1px solid var(--line); padding: 22px 18px; }
  .plan-price .num { font-size: 34px; }
  .sec { padding: 18px; }
  .two { grid-template-columns: 1fr; gap: 20px; }
  .faq-grid { grid-template-columns: 1fr; }
  .cta { padding: 16px 18px; }
}
