/* ==========================================================================
   澄图 · 设计系统
   浅色底 / 黑色主色 / 大圆角 / 极细分割线 / 渐变强调字
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-mute: #f4f4f5;
  --ink: #0a0a0a;
  --text: #18181b;
  --text-2: #52525b;
  --muted: #8b8b93;
  --line: #e9e9ec;
  --line-soft: #f2f2f4;
  --ok: #0f9d58;
  --ok-bg: #eaf7ef;
  --warn: #b45309;
  --warn-bg: #fdf4e6;
  --err: #dc2626;
  --err-bg: #fdeeee;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, .05);
  --shadow: 0 1px 2px rgba(9, 9, 11, .04), 0 14px 36px -16px rgba(9, 9, 11, .18);
  --shadow-pop: 0 2px 6px rgba(9, 9, 11, .06), 0 26px 60px -24px rgba(9, 9, 11, .35);
  --grad: linear-gradient(96deg, #2563eb 0%, #7c3aed 44%, #f59e0b 100%);
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "PingFang SC",
    "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ------------------------------- 导航 ------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: -.02em;
}
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav-links a {
  padding: 8px 12px; border-radius: 10px;
  font-size: 14px; color: var(--text-2); font-weight: 500;
  transition: .16s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-mute); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-email { font-size: 13px; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.credits-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: .16s;
}
.credits-pill:hover { border-color: #d9d9de; }
.credits-pill .coin { font-size: 12px; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid transparent; background: transparent;
  color: var(--muted); cursor: pointer; transition: .16s;
}
.icon-btn:hover { background: var(--bg-mute); color: var(--ink); }

/* ------------------------------- 按钮 ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55); transform: translateY(-1px); }

.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: #d4d4d8; background: var(--bg-soft); }

.btn-line { background: transparent; color: var(--text); border-color: var(--line); }
.btn-line:hover:not(:disabled) { background: var(--bg-mute); }

.btn-lg { padding: 14px 26px; font-size: 15.5px; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ------------------------------- 通用块 ------------------------------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding-block: 88px; }
.section-tight { padding-block: 56px; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800; letter-spacing: -.03em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 26px; }

.split-line { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ------------------------------- Hero ------------------------------- */
.hero { text-align: center; padding-block: 76px 40px; }
.hero-title {
  margin: 0;
  font-size: clamp(36px, 6.2vw, 70px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.042em;
  color: var(--ink);
}
.hero-title .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 20px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 16px);
}
.hero-actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------------- 拖动对比组件 --------------------------- */
.showcase { padding-block: 26px 0; }
.cmp {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 936; /* JS 会按实际图片比例覆盖 */
  max-height: 70vh;         /* 竖图不至于撑出屏幕，超出部分以留白呈现 */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-mute);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}
.cmp-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* contain：完整显示原图/结果，绝不裁切（原先是 cover，竖图会被裁成一条） */
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.cmp-before-layer { position: absolute; inset: 0; will-change: clip-path; }
.cmp-line {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 14px rgba(0, 0, 0, .28);
  pointer-events: none;
}
.cmp-knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  display: grid; place-items: center;
  font-size: 11px; letter-spacing: 1px; color: var(--ink);
  font-weight: 700;
}
.cmp-tag {
  position: absolute; top: 16px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.cmp-tag-left { left: 16px; }
.cmp-tag-right { right: 16px; background: rgba(10, 10, 10, .78); color: #fff; }
.cmp-hint { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; }
/* 工具页里的对比组件：透明底用棋盘格；右列里留一点下边距 */
.tp-cmp { margin-bottom: 4px; }
.tp-cmp-checker {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e9e9e9 25%, transparent 25%),
    linear-gradient(-45deg, #e9e9e9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e9e9e9 75%),
    linear-gradient(-45deg, transparent 75%, #e9e9e9 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

/* --------------------------- 三步流程 --------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.step-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
}
.step-title { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.step-desc { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* ------------------------------- 价格 ------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; align-items: stretch; }
.price-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card .p-name { font-size: 13px; font-weight: 600; color: var(--text-2); }
.price-card .p-amount {
  margin-top: 12px;
  font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1;
}
.price-card .p-amount small { font-size: 15px; font-weight: 700; margin-right: 1px; }
.price-card .p-credits { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.price-card .p-feats { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; }
.price-card .p-feats li { font-size: 12.5px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.price-card .p-feats li::before { content: "✓"; font-size: 12px; font-weight: 700; color: var(--ok); line-height: 1.6; }
.price-card .p-buy { margin-top: auto; }

.price-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 24px 60px -26px rgba(0, 0, 0, .6);
  transform: translateY(-6px);
}
.price-card.featured:hover { transform: translateY(-9px); }
.price-card.featured .p-name,
.price-card.featured .p-credits,
.price-card.featured .p-feats li { color: rgba(255, 255, 255, .72); }
.price-card.featured .p-feats li::before { color: #7ee2a8; }
.price-card.featured .p-buy { background: #fff; color: var(--ink); }

.p-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  white-space: nowrap;
}
.price-card.featured .p-badge { background: #fff; color: var(--ink); }
.p-badge.test { background: var(--bg-mute); color: var(--text-2); border: 1px solid var(--line); }

/* ------------------------------- CTA ------------------------------- */
.cta {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
  display: grid; place-items: center;
  text-align: center;
  color: #fff;
  isolation: isolate;
}
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 8, 12, .48) 0%, rgba(8, 8, 12, .72) 100%);
}
.cta h2 { margin: 0 0 18px; font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.cta .btn { background: #fff; color: var(--ink); }

/* ------------------------------- 页脚 ------------------------------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0 46px;
  margin-top: 88px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.footer a:hover { color: var(--ink); }

/* ------------------------------- 表单 ------------------------------- */
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input, select.input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--text);
  font-size: 14.5px; outline: none;
  transition: .16s;
}
.input::placeholder { color: #b4b4bb; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, .06); }
.input:disabled { background: var(--bg-soft); }

/* --------------------------- 登录页 --------------------------- */
.auth-page { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 48px 24px; background: var(--bg-soft); }
.auth-card {
  width: 100%; max-width: 420px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 24px; padding: 32px;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.auth-card .sub { margin: 0 0 24px; color: var(--muted); font-size: 13.5px; }
.auth-tabs { display: flex; gap: 4px; background: var(--bg-mute); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.auth-tabs button {
  flex: 1; padding: 9px 0; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-2); font-size: 14px; font-weight: 600;
  transition: .16s;
}
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-foot { margin-top: 18px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* 表单错误提示 */
.form-error {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0 0 12px; padding: 10px 12px;
  border-radius: 12px;
  background: var(--err-bg); color: var(--err);
  font-size: 13px; line-height: 1.5;
  animation: errIn .18s ease-out;
}
.form-error svg { flex: 0 0 auto; margin-top: 1.5px; }
@keyframes errIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.input.invalid { border-color: #f0b4b4; background: #fffafa; }
.input.invalid:focus { border-color: var(--err); box-shadow: 0 0 0 3px rgba(220, 38, 38, .08); }

/* --------------------------- 控制台 --------------------------- */
.page-head { padding: 44px 0 8px; text-align: center; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.035em; }
.page-head p { margin: 0; color: var(--muted); font-size: 14.5px; }

.uploader {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 28px;
}
.drop {
  border: 1.5px dashed #d6d6dc;
  border-radius: 20px;
  background: #fcfcfd;
  padding: 54px 24px;
  text-align: center;
  cursor: pointer;
  transition: .18s;
}
.drop:hover, .drop.over { border-color: var(--ink); background: #f7f7f9; }
.drop-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.drop-title { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.drop-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.uploader-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 16px; flex-wrap: wrap;
}
.seg { display: inline-flex; gap: 2px; padding: 4px; background: var(--bg-mute); border-radius: 999px; }
.seg button {
  border: 0; background: transparent; cursor: pointer;
  padding: 8px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  transition: .16s;
}
.seg button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.bar-note { font-size: 12.5px; color: var(--muted); }
.bar-note b { color: var(--text); font-weight: 600; }

.result-panel { margin-top: 22px; }
.result-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.result-title { font-size: 14px; font-weight: 700; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.status-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dot.run { background: #f59e0b; animation: pulse 1.2s infinite; }
.dot.ok { background: var(--ok); }
.dot.err { background: var(--err); }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

.thumbs { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.thumb {
  width: 64px; height: 64px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-mute);
  cursor: pointer; padding: 0; transition: .16s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--ink); transform: translateY(-2px); }
/* 结果文件过期后不要整条消失，留个占位说明情况 */
.thumb.is-dead {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed; background: var(--bg-soft);
}
.thumb.is-dead::after { content: "已过期"; font-size: 10px; color: var(--muted); }
.thumb.is-dead:hover { border-color: var(--line); transform: none; }

/* 积分卡 */
.balance-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.balance { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.balance-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
/* 积分流水：限高 + 内部滚动，表头吸顶 */
.ledger-scroll { max-height: 320px; overflow-y: auto; }
.ledger-scroll thead th { position: sticky; top: 0; z-index: 1; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  text-align: left; padding: 10px 12px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfd; }
.num-pos { color: var(--ok); font-weight: 600; }
.num-neg { color: var(--err); font-weight: 600; }

.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: var(--bg-mute); color: var(--text-2);
  border: 1px solid var(--line);
}
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.pending { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.err { background: var(--err-bg); color: var(--err); border-color: transparent; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 30px;
  transform: translate(-50%, 14px);
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-pop);
  opacity: 0; pointer-events: none;
  transition: .24s ease; z-index: 200;
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 空状态 */
.empty { padding: 34px 0; text-align: center; color: var(--muted); font-size: 13.5px; }

/* 支付结果页 */
.pay-card { max-width: 460px; margin: 0 auto; text-align: center; }
.pay-icon {
  width: 62px; height: 62px; border-radius: 20px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
}
.pay-amount { font-size: 40px; font-weight: 800; letter-spacing: -.04em; margin: 8px 0 4px; }
.kv { display: flex; justify-content: space-between; font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.kv:last-of-type { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }

/* --------------------------- 响应式 --------------------------- */
@media (max-width: 960px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-3px); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* 多工具站不能藏导航：改成第二行可横滑，保证任何页面都能回工具页 */
  .nav-inner { padding: 0 16px; gap: 10px; flex-wrap: wrap; row-gap: 4px; }
  .nav-links {
    display: flex; order: 3; width: 100%; margin-left: 0; gap: 2px;
    overflow-x: auto; scrollbar-width: none; padding: 2px 0 8px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 6px 11px; font-size: 12.5px; white-space: nowrap; }
  .nav-email { display: none; }
  .wrap { padding: 0 16px; }
  .section { padding-block: 60px; }
  .hero { padding-block: 48px 28px; }
  .pricing { grid-template-columns: 1fr; }
  .cmp { border-radius: 20px; }
  .cmp-tag { top: 10px; padding: 5px 10px; font-size: 11px; }
  .cmp-tag-left { left: 10px; }
  .cmp-tag-right { right: 10px; }
  .cmp-knob { width: 40px; height: 40px; }
  .drop { padding: 40px 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ==========================================================================
   功能价目表
   ========================================================================== */
.pnote { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 16px; }

.fp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.fp-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  background: #fff; transition: border-color .18s ease;
}
.fp-card:hover { border-color: #d4d4d8; }
.fp-name { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.fp-amount {
  font-size: 28px; font-weight: 800; letter-spacing: -.04em;
  margin: 8px 0 10px; font-variant-numeric: tabular-nums;
}
.fp-amount small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.fp-card p { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin: 0; }
.fp-soon { background: var(--bg-soft); border-style: dashed; }
.fp-soon .fp-amount { color: var(--muted); font-size: 18px; letter-spacing: 0; }

/* 按量计费：按分组列成清单。
   早先是「一张卡一个工具」的网格，工具从 6 个涨到 18 个以后最后一行只剩一两张，
   看着像没加载完。改成分组清单，加工具只是多一行，不会再有半截空行。 */
.fp-groups {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; max-width: 960px; margin: 0 auto;
}
.fp-group {
  border: 1px solid var(--line); border-radius: 18px;
  background: #fff; padding: 4px 20px 10px;
}
.fp-group > h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--muted); padding: 14px 0 8px; margin: 0;
}
.fp-group ul { list-style: none; margin: 0; padding: 0; }
.fp-group li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--line-soft);
}
.fp-group li:first-child { border-top: 0; }
.fp-group li > a {
  font-size: 13.5px; font-weight: 650; color: var(--ink); white-space: nowrap;
}
.fp-group li > a:hover { text-decoration: underline; }
.fp-group li > .fp-desc {
  flex: 1; min-width: 0; font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fp-group li > b {
  font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fp-group li > b > i { font-style: normal; font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }

@media (max-width: 760px) {
  .fp-card { padding: 16px; }
  .fp-amount { font-size: 24px; }
  .fp-groups { grid-template-columns: 1fr; }
  .fp-group li > .fp-desc { display: none; }
}

/* ==========================================================================
   工具工作台
   ========================================================================== */
.tool-head { text-align: center; margin: 12px 0 26px; }
.tool-title { font-size: 34px; font-weight: 800; letter-spacing: -.035em; margin: 0 0 10px; }
.tool-sub { font-size: 14px; color: var(--muted); margin: 0; }

/* 类目 TAB：点击筛选，URL 带 ?g= 可直接落到某个类目 */
.tool-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0 0 30px;
}
.tool-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: .16s;
}
.tool-tab span {
  font-size: 11px; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tool-tab:hover { border-color: #d4d4d8; color: var(--ink); }
.tool-tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tool-tab.is-on span { color: rgba(255, 255, 255, .55); }
.tool-hint {
  text-align: center; font-size: 13px; color: var(--muted);
  margin: 0 0 26px; min-height: 20px;
}
.tool-card.is-hidden { display: none; }

/* 按类目分区：每个类目自带标题行 + 一行卡片 */
.tool-sec { margin-bottom: 38px; }
.tool-sec.is-hidden { display: none; }
.tool-sec-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px; padding-bottom: 11px;
  border-bottom: 1px solid var(--line-soft);
}
.tool-sec-head h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.tool-sec-head p { margin: 0; font-size: 12.5px; color: var(--muted); }
.tool-sec-head em {
  margin-left: auto; font-style: normal;
  font-size: 11.5px; font-weight: 600; color: var(--muted);
}

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.tool-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; color: inherit; text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
a.tool-card:hover { border-color: #cfcfd4; transform: translateY(-2px); }

.tool-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-mute); color: var(--ink);
}
.tool-icon svg { width: 22px; height: 22px; }

.tool-body { flex: 1; }
.tool-name {
  font-size: 15px; font-weight: 700; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.tool-live {
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  color: #0f6e56; background: #e1f5ee;
}
.tool-soon {
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  color: #5f5e5a; background: #f1efe8;
}
.tool-desc { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin-top: 7px; }
.tool-meta {
  font-size: 12px; color: var(--muted); padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.tool-meta b { font-size: 15px; font-weight: 800; color: var(--ink); margin-right: 2px; }

.tool-card.soon { background: var(--bg-soft); border-style: dashed; }
.tool-card.soon .tool-icon { background: #fff; color: var(--muted); }
.tool-card.soon .tool-name { color: var(--text-2); }

.tool-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-top: 28px; padding: 18px 20px;
  border: 1px solid var(--line-soft); border-radius: 18px; background: var(--bg-soft);
}
.tool-foot b { display: block; font-size: 14px; letter-spacing: -.01em; }
.tool-foot span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-title { font-size: 28px; }
}
@media (max-width: 640px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-title { font-size: 24px; }
  .tool-head { margin-bottom: 24px; }
  .tool-foot { flex-direction: column; align-items: stretch; }
  .tool-foot .btn { justify-content: center; }
}

/* ==========================================================================
   单工具页（证件照 / 抠图）
   ========================================================================== */
.tp-head { text-align: center; margin: 6px 0 30px; }
.tp-title { font-size: 32px; font-weight: 800; letter-spacing: -.035em; margin: 0 0 9px; }
.tp-sub { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.6; }

.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.tp-left, .tp-right { min-width: 0; }

.tp-drop { padding: 30px 20px; cursor: pointer; position: relative; overflow: hidden; }
.tp-drop.over { border-color: var(--ink); background: var(--bg-mute); }
.tp-preview {
  display: block; width: 100%; max-height: 320px; object-fit: contain;
  border-radius: 12px; background: var(--bg-soft);
}
.tp-drop:has(.tp-preview:not(.hidden)) { padding: 12px; border-style: solid; }

.tp-field { margin-top: 18px; }
.tp-field > label {
  display: block; font-size: 12px; font-weight: 700; color: var(--text-2);
  letter-spacing: .02em; margin-bottom: 9px;
}
.tp-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-seg button {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .16s ease;
}
.tp-seg button:hover { border-color: #cfcfd4; }
.tp-seg button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.tp-hint { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

.tp-bgs { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-bgs button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 9px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .16s ease;
}
.tp-bgs button:hover { border-color: #cfcfd4; }
.tp-bgs button.active { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(10,10,10,.08); color: var(--ink); }
.tp-bgs button > span {
  width: 16px; height: 16px; border-radius: 50%; background: var(--sw, #fff);
  border: 1px solid rgba(0,0,0,.12); flex-shrink: 0;
}
.tp-bgs button > .tp-checker {
  background-image:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
  background-color: #fff;
}

.tp-go { width: 100%; margin-top: 22px; justify-content: center; }
.tp-err {
  margin-top: 12px; padding: 10px 13px; border-radius: 11px;
  background: var(--danger-bg, #fcebeb); color: #a32d2d;
  font-size: 12.5px; line-height: 1.5;
}

.tp-empty {
  border: 1px dashed var(--line); border-radius: 18px; background: var(--bg-soft);
  padding: 56px 24px; text-align: center;
  min-height: 420px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.tp-empty > div { font-size: 14px; font-weight: 600; color: var(--text-2); }
.tp-empty > span { display: block; font-size: 12px; color: var(--muted); margin-top: 7px; }

.tp-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-mute); border-radius: 999px; width: fit-content; margin-bottom: 12px; }
.tp-tabs button {
  padding: 7px 16px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.tp-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.tp-stage {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  min-height: 260px;
}
.tp-stage img { max-width: 100%; max-height: 460px; display: block; box-shadow: 0 1px 4px rgba(10,10,10,.14); }
.tp-stage-checker {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e9e9e9 25%, transparent 25%),
    linear-gradient(-45deg, #e9e9e9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e9e9e9 75%),
    linear-gradient(-45deg, transparent 75%, #e9e9e9 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.tp-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 12px; flex-wrap: wrap;
}
.tp-meta { font-size: 12px; color: var(--muted); }

.tp-loading { margin-top: 8px; }
.tp-loading .bar-track { margin-bottom: 10px; }

@media (max-width: 860px) {
  .tp-grid { grid-template-columns: 1fr; gap: 20px; }
  .tp-title { font-size: 26px; }
  .tp-stage img { max-height: 360px; }
}

/* ---------- 工具页 v2：滑块 / 开关 / 选择器 / 画布 ---------- */
.tp-select {
  width: 100%; appearance: none; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; font-size: 13px; color: var(--ink);
  font-family: inherit; cursor: pointer;
}
.tp-select:focus { outline: none; border-color: var(--ink); }

/* 多行输入（二维码内容这类长文本）：跟 tp-select 同一套边框与圆角 */
.tp-textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; font-size: 13px; color: var(--ink);
  font-family: inherit; line-height: 1.6; resize: vertical; min-height: 76px;
}
.tp-textarea:focus { outline: none; border-color: var(--ink); }
/* /app 的放大模型选择：跟 seg 并排，不占满整行（优先级要压过 .tp-select） */
.tp-select.model-sel {
  width: auto; min-width: 200px; padding: 9px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.tp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tp-row > span { font-size: 12.5px; color: var(--text-2); }
.tp-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: 999px; background: var(--bg-mute); outline: none; margin: 12px 0 2px;
}
.tp-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); border: 3px solid #fff; cursor: pointer;
  box-shadow: 0 1px 4px rgba(10, 10, 10, .28);
}
.tp-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); cursor: pointer; user-select: none; }
.tp-switch input { display: none; }
.tp-switch i { width: 34px; height: 20px; border-radius: 999px; background: #dcdce1; position: relative; transition: .18s; flex: none; }
.tp-switch i::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1px 2px rgba(10, 10, 10, .22);
}
.tp-switch input:checked + i { background: var(--ink); }
.tp-switch input:checked + i::after { transform: translateX(14px); }
.tp-field > label.tp-switch { margin-bottom: 0; font-weight: 400; letter-spacing: 0; }
.tp-switchrow { display: flex; align-items: flex-start; gap: 10px; }
.tp-switchrow .tp-switch { flex: none; margin-top: 1px; }
.tp-switch-text { flex: 1; min-width: 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.tp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-tip { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.tp-mini { font-size: 11px; color: var(--muted); }
.tp-compare { display: inline-flex; align-items: center; gap: 6px; }
.tp-paint { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg-mute); line-height: 0; }
.tp-paint canvas { width: 100%; height: auto; display: block; touch-action: none; cursor: crosshair; }
.tp-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tp-tools button {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 12px; color: var(--text-2); cursor: pointer; font-family: inherit;
}
.tp-tools button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tp-color { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
/* 证件照换正装已下线，对应的模板缩略图样式一并移除 */
.tp-row > label {
  display: block; font-size: 12px; font-weight: 700; color: var(--text-2);
  letter-spacing: .02em; margin: 0;
}

/* ---------- 控制台：工具处理记录 ---------- */
.tj-list {
  display: flex; flex-direction: column; gap: 8px;
  /* 记录多了也不能把页面一直往下撑：列表自己滚 */
  max-height: 352px; overflow-y: auto; overscroll-behavior: contain;
  padding-right: 6px; scrollbar-width: thin;
}
.tj-list::-webkit-scrollbar { width: 8px; }
.tj-list::-webkit-scrollbar-track { background: transparent; }
.tj-list::-webkit-scrollbar-thumb { background: #dcdce2; border-radius: 999px; }
.tj-list::-webkit-scrollbar-thumb:hover { background: #c6c6ce; }
.tj-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.tj-thumb {
  width: 44px; height: 44px; flex: none; border-radius: 9px; overflow: hidden;
  background: var(--bg-mute); display: flex; align-items: center; justify-content: center;
}
.tj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tj-main { flex: 1; min-width: 0; }
.tj-name { font-size: 13px; font-weight: 600; }
.tj-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tj-badge { font-size: 11px; color: var(--muted); }
.tj-act { display: flex; gap: 6px; flex: none; }
.tj-act a { font-size: 12px; }
.tj-thumb[data-view] { cursor: zoom-in; }
.tj-thumb[data-view]:hover { outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---------- 当前页大图预览（处理记录「查看」） ---------- */
.tt-lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(12, 12, 14, .84);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 26px 26px 22px;
}
.tt-lb.open { display: flex; flex-direction: column; gap: 12px; }
.tt-lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; }
.tt-lb-name { font-size: 13px; font-weight: 600; }
.tt-lb-btns { display: flex; gap: 8px; }
.tt-lb-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.tt-lb-body img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 12px; box-shadow: 0 26px 64px rgba(0, 0, 0, .55); background: #fff;
}
@media (max-width: 720px) {
  .tj-list { max-height: 300px; }
  .tt-lb { padding: 14px 12px 12px; }
  .tt-lb-body img { border-radius: 8px; }
}

/* ---------- 工具页：返回工具集 ---------- */
.tp-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  text-decoration: none; padding: 6px 13px 6px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  transition: color .16s, border-color .16s, background .16s, transform .16s;
}
.tp-back:hover { color: var(--ink); border-color: #c9c9d0; background: var(--bg-mute); }
.tp-back:active { transform: translateX(-1px); }
.tp-back svg { flex: none; }
@media (max-width: 720px) {
  .tp-back { font-size: 12px; padding: 5px 11px 5px 8px; }
}

/* ==========================================================================
   浏览器端批量工具（智能压缩 / 格式转换）
   这些工具完全在本地跑，页面结构比服务端工具简单：左边参数、右边文件队列
   ========================================================================== */
.bt-note {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 16px; padding: 6px 12px;
  font-size: 12px; color: var(--ok); background: var(--ok-bg);
  border-radius: 999px;
}
.bt-note svg { width: 13px; height: 13px; }

.bt-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 520px; overflow-y: auto; padding-right: 4px;
}
.bt-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--bg-soft);
}
.bt-row.failed { background: var(--err-bg); border-color: #f6d5d5; }
.bt-thumb {
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 10px; border: 1px solid var(--line); background: #fff;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--muted);
}
.bt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bt-main { flex: 1; min-width: 0; }
.bt-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bt-sub {
  font-size: 11.5px; color: var(--muted); margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.bt-save { color: var(--ok); font-weight: 700; }
.bt-grow { color: var(--warn); font-weight: 700; }
.bt-act { flex: 0 0 auto; display: flex; gap: 6px; }
.bt-empty {
  padding: 34px 16px; text-align: center; color: var(--muted); font-size: 13px;
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.bt-total {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--text-2);
}

/* ------------------------------- 每日签到 -------------------------------
   设计语言取自 Replicate DESIGN.md：
   奶油托盘 #f9f7f3 + 热橙印章 #ea2804 + 全圆角交互 + 只用 1px 描边不堆投影
   ------------------------------------------------------------------------ */
.ci-card {
  position: relative; overflow: hidden;
  background: #fff;
  border: 1px solid rgba(32, 32, 32, .12);
  border-radius: 16px;
  padding: 26px 26px 22px;
}
.ci-eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #8d8d8d; margin-bottom: 10px;
}
.ci-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ci-title { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.08; letter-spacing: -.6px; color: #202020; }
.ci-sub { margin: 8px 0 0; font-size: 14px; color: #575757; }
.ci-streak {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 8px 14px; border-radius: 999px;
  background: #f9f7f3; border: 1px solid rgba(32, 32, 32, .12);
  white-space: nowrap;
}
.ci-streak b { font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: #202020; font-variant-numeric: tabular-nums; }
.ci-streak span { font-size: 12px; color: #575757; }

.ci-tray {
  margin: 22px 0 18px; padding: 28px 24px;
  background: #f9f7f3; border-radius: 14px;
}
.ci-boxes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 560px; margin: 0 auto;
}
.ci-box {
  position: relative; aspect-ratio: .82; padding: 0; border: 0; background: none;
  cursor: pointer; perspective: 1000px; -webkit-tap-highlight-color: transparent;
}
.ci-box:disabled { cursor: default; }
.ci-inner {
  display: block; position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .66s cubic-bezier(.3, 1.24, .5, 1);
}
.ci-box.is-open .ci-inner { transform: rotateY(180deg); }
.ci-box:hover:not(:disabled):not(.is-open) .ci-inner { transform: translateY(-4px); }

.ci-face, .ci-back {
  position: absolute; inset: 0; border-radius: 14px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.ci-face {
  background: linear-gradient(162deg, #f04b22 0%, #ea2804 44%, #b81d00 100%);
  box-shadow: 0 10px 22px -14px rgba(184, 29, 0, .9);
}
.ci-band {
  position: absolute; top: 0; left: 0; right: 0; height: 22px;
  background: linear-gradient(180deg, #f8d36a, #e9a91b);
}
.ci-seal {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 10px;
  background: radial-gradient(circle at 34% 26%, #ffe9a8, #f3c14b 58%, #d99a17);
  color: #8a3b06; font-size: 24px; font-weight: 800;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .75), 0 3px 8px rgba(120, 53, 15, .3);
}
.ci-hint {
  margin-top: 12px; font-size: 11px; letter-spacing: .08em;
  color: rgba(255, 255, 255, .72);
}

.ci-back {
  transform: rotateY(180deg);
  gap: 6px;
  background: #fff; border: 1px solid rgba(32, 32, 32, .12);
}
.ci-num { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: #8d8d8d; }
.ci-unit { font-size: 11.5px; color: #8d8d8d; }
.ci-box.is-win .ci-back {
  border: 2px solid #ea2804;
  box-shadow: 0 12px 26px -16px rgba(234, 40, 4, .55);
}
.ci-box.is-win .ci-num { color: #ea2804; }
.ci-box.is-win .ci-unit { color: #c01f00; font-weight: 600; }
/* 注意：不能给 .ci-inner 加 opacity——CSS 会把 preserve-3d 压平，
   翻过去的正面又冒出来盖住背面，看着像「没翻开」 */
.ci-box.is-lose .ci-back { background: #f3f0e8; border-color: rgba(32, 32, 32, .07); }
.ci-box.is-lose .ci-num { font-size: 17px; font-weight: 600; letter-spacing: 0; color: #646464; }
.ci-box.is-lose .ci-unit { color: #8d8d8d; }
.ci-box.is-win { animation: ci-pop .46s cubic-bezier(.3, 1.4, .5, 1) .6s both; }
@keyframes ci-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.ci-box.is-shaking .ci-inner { animation: ci-shake .15s linear 3; }
@keyframes ci-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px) rotate(-1deg); }
  75% { transform: translateX(4px) rotate(1deg); }
}

.ci-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ci-tip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #3a3a3a; }
.ci-tip i { width: 6px; height: 6px; border-radius: 50%; background: #ea2804; flex: 0 0 auto; }
.ci-tip.done i { background: #2b9a66; }
.ci-week { display: flex; gap: 6px; }
.ci-dot {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: #f9f7f3; border: 1px solid rgba(32, 32, 32, .08);
  color: #8d8d8d; font-size: 10.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ci-dot.on { background: #fdeae4; border-color: #f6c3b5; color: #c01f00; }
.ci-dot.today { border-color: #ea2804; color: #ea2804; }
.ci-dot.on.today { background: #ea2804; border-color: #ea2804; color: #fff; }

/* 顶栏积分 pill 的「待签到」红点 */
.credits-pill { position: relative; }
.credits-pill.has-dot::after {
  content: ""; position: absolute; top: -2px; right: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ea2804; border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(234, 40, 4, .22);
}

@media (max-width: 560px) {
  .ci-card { padding: 20px 18px 18px; border-radius: 14px; }
  .ci-title { font-size: 24px; letter-spacing: -.4px; }
  .ci-sub { font-size: 13px; }
  .ci-tray { padding: 18px 14px; margin: 18px 0 14px; }
  .ci-boxes { gap: 10px; }
  .ci-seal { width: 40px; height: 40px; font-size: 19px; }
  .ci-hint { margin-top: 8px; }
  .ci-num { font-size: 24px; }
  .ci-box.is-lose .ci-num { font-size: 14px; }
  .ci-dot { width: 23px; height: 23px; font-size: 9.5px; }
  .ci-week { gap: 4px; }
}

/* ------------------------------- 裁剪 / 水印 ------------------------------- */
.anchor-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  width: 168px;
}
.anchor-grid button {
  height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  cursor: pointer; transition: .14s;
}
.anchor-grid button:hover { border-color: #cfcfd4; background: var(--bg-soft); }
.anchor-grid button.active {
  background: var(--ink); border-color: var(--ink);
  box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 7px var(--ink);
}

.crop-stage { display: flex; flex-direction: column; }
/* 棋盘格：透明区域一眼可辨，圆形头像导出 PNG 时特别有用 */
.crop-canvas-wrap {
  display: grid; place-items: center;
  min-height: 260px; padding: 14px;
  border: 1px solid var(--line); border-radius: 14px;
  background: repeating-conic-gradient(#f6f6f7 0% 25%, #fff 0% 50%) 50% / 18px 18px;
}
.crop-canvas-wrap canvas {
  max-width: 100%; max-height: 460px;
  border-radius: 6px;
  box-shadow: 0 10px 26px -16px rgba(9, 9, 11, .4);
}
.crop-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; font-size: 12.5px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.wm-row { display: flex; gap: 10px; align-items: center; }
.wm-row .tp-select { flex: 1; }
.wm-color {
  width: 46px; height: 40px; padding: 2px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
}

/* ------------------------------- 免费大模型 API 大全 ------------------------------- */
.llm-stats {
  font-size: 13.5px; color: var(--text-2); margin: -6px 0 18px;
}
.llm-stats b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.llm-updated { color: var(--muted); font-size: 12px; margin-left: 12px; }

.llm-bar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 18px;
}
.llm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.llm-chip {
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 12.5px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: .14s; display: inline-flex; gap: 6px; align-items: baseline;
}
.llm-chip span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.llm-chip:hover { border-color: #cfcfd4; }
.llm-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.llm-chip.is-on span { color: rgba(255, 255, 255, .72); }

.llm-search {
  flex: 1; min-width: 220px; max-width: 340px; margin-left: auto;
  padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font-size: 13.5px; outline: none;
}
.llm-search:focus { border-color: var(--ink); }

.llm-list { display: flex; flex-direction: column; gap: 16px; }
.llm-prov {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px;
}
.llm-prov-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 10px;
}
.llm-prov-name { font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.llm-count { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--bg-mute); border-radius: 999px; padding: 3px 9px; }
.llm-req { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 9px; }
.llm-req.ok { background: #ecfdf5; color: #047857; }
.llm-req.warn { background: #fff7ed; color: #b45309; }

.llm-model {
  padding: 12px 0 11px; border-top: 1px solid var(--bg-mute);
}
.llm-m-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.llm-m-name { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.llm-badge {
  font-size: 10.5px; font-weight: 600; padding: 2.5px 8px; border-radius: 999px;
  background: var(--bg-mute); color: var(--text-2);
}
.llm-badge.cn { background: #ecfdf5; color: #047857; }
.llm-m-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--muted); }
.llm-tag { font-size: 11px; color: var(--text-2); }
.llm-tag + .llm-tag::before { content: "·"; margin-right: 8px; color: var(--line); }
.llm-m-note { margin-top: 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.6; }

.llm-empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 40px 0; }

@media (max-width: 560px) {
  .llm-search { max-width: none; margin-left: 0; width: 100%; }
  .llm-prov { padding: 14px 14px 10px; border-radius: 14px; }
}

/* 工具墙底部的资源入口条 */
.llm-entry {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px; padding: 16px 20px;
  background: #fff; border: 1px dashed var(--line); border-radius: 16px;
}
.llm-entry b { display: block; font-size: 14px; letter-spacing: -.01em; }
.llm-entry span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }

/* ------------------------------- 文档转换 ------------------------------- */
.dc-tabs { display: flex; gap: 8px; margin: 22px 0 24px; }
.dc-tabs button {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13.5px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: .14s;
}
.dc-tabs button:hover { border-color: #cfcfd4; }
.dc-tabs button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.dc-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.dc-modes button {
  text-align: left; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .14s;
}
.dc-modes button b { display: block; font-size: 14px; }
.dc-modes button span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.dc-modes button:hover { border-color: #cfcfd4; }
.dc-modes button.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.dc-picked {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.dc-picked-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-x {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%;
  border: 0; background: var(--bg-mute); color: var(--text-2);
  font-size: 15px; line-height: 1; cursor: pointer;
}
.dc-x:hover { background: #fde8e8; color: #b91c1c; }

.dc-input {
  width: 100%; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; font-size: 13.5px; outline: none;
}
.dc-input:focus { border-color: var(--ink); }

.dc-view {
  width: 100%; height: 560px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--bg-soft);
}
.dc-meta { margin: 12px 0 14px; font-size: 12.5px; color: var(--muted); }

.dc-flist { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.dc-file {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; background: var(--bg-soft);
  border: 1px solid var(--line);
}
.dc-file-name { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-file-size { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.dc-results { display: flex; flex-direction: column; gap: 10px; }
.dc-out {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
}
.dc-out-info b { display: block; font-size: 13.5px; }
.dc-out-info span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

.dc-progress {
  display: flex; align-items: center; gap: 9px;
  margin-top: 12px; font-size: 12.5px; color: var(--text-2);
}
.dc-progress span {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--ink);
  animation: dc-spin .8s linear infinite;
}
@keyframes dc-spin { to { transform: rotate(360deg); } }

/* 转换产物的页面样式：模拟 A4 纸面（离屏渲染用，用户看不到这块 DOM） */
.dc-page {
  background: #fff; color: #111;
  font-family: "Times New Roman", SimSun, "Songti SC", serif;
  font-size: 15px; line-height: 1.75; box-sizing: border-box;
}
.dc-page-inner { overflow: hidden; }
.dc-page p { margin: 0 0 10px; }
.dc-page h1 { font-size: 24px; margin: 0 0 12px; }
.dc-page h2 { font-size: 20px; margin: 16px 0 10px; }
.dc-page h3 { font-size: 17px; margin: 14px 0 8px; }
.dc-page ul, .dc-page ol { margin: 0 0 10px; padding-left: 24px; }
.dc-page img { max-width: 100%; }
.dc-page table { border-collapse: collapse; width: 100%; font-size: 12.5px; margin: 8px 0; }
.dc-page table td, .dc-page table th { border: 1px solid #c9c9cf; padding: 5px 7px; vertical-align: top; }
.dc-page table th { background: #f4f4f5; font-weight: 600; }
.dc-page blockquote { margin: 8px 0; padding-left: 12px; border-left: 3px solid #d4d4d8; color: #444; }

.dc-sheet { margin-bottom: 18px; }
.dc-sheet-name { font-family: "Microsoft YaHei", system-ui, sans-serif; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.dc-table { border-collapse: collapse; font-family: "Microsoft YaHei", system-ui, sans-serif; font-size: 10.5px; }
.dc-table td { border: 1px solid #d6d6db; padding: 3px 6px; vertical-align: top; max-width: 220px; word-break: break-word; }

@media (max-width: 720px) {
  .dc-modes { grid-template-columns: repeat(2, 1fr); }
  .dc-view { height: 380px; }
}
