/* ============================================================
   文件全能王 · 设计系统
   参考：Smallpdf 的卡片化 / iLovePDF 的宫格密度 / 夸克全能王的年轻渐变
   ============================================================ */
:root {
  /* 品牌色 */
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  /* 分类色 */
  --c-pdf: #e5484d;
  --c-word: #2563eb;
  --c-image: #16a34a;
  --c-ppt: #ea580c;
  --c-excel: #0d9488;
  --c-ebook: #9333ea;
  --c-convert: #b45309;
  /* 中性色 */
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --bg: #f6f7fb;
  --card: #ffffff;
  /* 语义 */
  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  /* 尺寸 */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-hover: 0 4px 8px rgba(15,23,42,.06), 0 16px 40px rgba(79,70,229,.14);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部公告条（广告位: web_home_top_notice） ---------- */
.top-notice {
  background: var(--brand-grad);
  color: #fff; font-size: .82rem; text-align: center; padding: 7px 16px;
}
.top-notice a { text-decoration: underline; font-weight: 600; }

/* ---------- 导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar .container { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.logo-badge {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand-grad);
  display: grid; place-items: center; color: #fff; font-size: 18px;
  box-shadow: 0 4px 12px rgba(79,70,229,.35);
}
.nav-links { display: flex; gap: 18px; flex: 1; }
.nav-links a {
  padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-size: .92rem; font-weight: 500;
  transition: .15s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: #eef2ff; color: var(--brand); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 12px; font-weight: 600; transition: .18s;
  padding: 10px 22px; font-size: .95rem;
}
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(79,70,229,.45); }
.btn-primary:disabled { opacity: .55; transform: none; cursor: not-allowed; }
.btn-ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 64px 20px 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 480px; z-index: -1;
  background:
    radial-gradient(420px 260px at 20% 30%, rgba(79,70,229,.12), transparent 70%),
    radial-gradient(420px 260px at 80% 20%, rgba(124,58,237,.10), transparent 70%),
    radial-gradient(500px 300px at 50% 90%, rgba(22,163,74,.06), transparent 70%);
}
.hero h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--ink-3); margin: 14px auto 26px; max-width: 620px; font-size: 1.05rem; }
.hero-stats { display: flex; justify-content: center; gap: 36px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats b { font-size: 1.5rem; display: block; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--ink-3); font-size: .82rem; }

/* 搜索 */
.search-box { max-width: 560px; margin: 0 auto; position: relative; }
.search-box input {
  width: 100%; padding: 15px 52px 15px 22px; border-radius: 999px; font-size: 1rem;
  border: 1.5px solid var(--line); background: #fff; box-shadow: var(--shadow); outline: none; transition: .2s;
}
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.search-box .s-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; color: var(--ink-3); }

/* ---------- 分类 Tab ---------- */
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 34px 0 26px; }
.cat-tab {
  padding: 9px 20px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line);
  color: var(--ink-2); font-weight: 600; font-size: .9rem; transition: .15s;
}
.cat-tab:hover { border-color: var(--brand); color: var(--brand); }
.cat-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 工具宫格 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding-bottom: 10px; }
.tool-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; position: relative;
  transition: .18s ease; cursor: pointer; overflow: hidden;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.tool-card .t-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; color: #fff; background: var(--tc, var(--brand));
  box-shadow: 0 6px 14px color-mix(in srgb, var(--tc, var(--brand)) 35%, transparent);
}
.tool-card h3 { font-size: .98rem; font-weight: 700; }
.tool-card p { font-size: .78rem; color: var(--ink-3); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-badge { position: absolute; top: 12px; right: 12px; font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.badge-vip { background: linear-gradient(135deg,#f59e0b,#f97316); color: #fff; }
.badge-beta { background: #fef3c7; color: #b45309; }
.badge-planned { background: #f1f5f9; color: #64748b; }
.tool-card.is-planned { opacity: .72; }
.tool-card.is-planned:hover { transform: none; box-shadow: var(--shadow); }

/* ---------- 广告位 ---------- */
.ad-slot {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px dashed #cbd5e1; background: #fbfcfe;
}
.ad-slot::before {
  content: "广告"; position: absolute; top: 6px; left: 8px; z-index: 2;
  font-size: .6rem; color: #94a3b8; background: rgba(255,255,255,.85); padding: 0 6px; border-radius: 4px; letter-spacing: 1px;
}
.ad-slot .ad-inner { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 100%; padding: 14px; text-align: center; }
.ad-banner { margin: 0 auto; min-height: 0; }
.ad-banner.fm-ad-filled { margin: 22px auto; }
.ad-banner .ad-inner { flex-direction: row; }
.ad-demo-card {
  display: flex; align-items: center; gap: 12px; justify-content: center; width: 100%;
  background: linear-gradient(120deg, #eef2ff, #faf5ff); border-radius: 8px; padding: 14px;
}
.ad-demo-card .ad-title { font-weight: 700; font-size: .95rem; color: var(--ink); }
.ad-demo-card .ad-cta {
  background: var(--brand); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.ad-skyscraper { width: 300px; min-height: 600px; flex-shrink: 0; }
.ad-skyscraper .ad-demo-card { flex-direction: column; height: 100%; justify-content: center; }
.ad-rect { min-height: 280px; width: 336px; max-width: 100%; margin: 0 auto; }
.ad-grid-item { min-height: 100%; border-style: dashed; }
.ad-grid-item .ad-demo-card { flex-direction: column; background: linear-gradient(160deg,#fffbeb,#fef3c7); height: 100%; }

/* 插屏广告 */
.ad-interstitial-mask {
  position: fixed; inset: 0; z-index: 999; background: rgba(15,23,42,.55);
  display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.ad-interstitial-mask.show { display: flex; }
.ad-interstitial {
  width: 400px; max-width: 92vw; background: #fff; border-radius: 20px; overflow: hidden;
  position: relative; box-shadow: 0 24px 64px rgba(0,0,0,.3); animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.ad-interstitial .ad-body { padding: 44px 30px 30px; text-align: center; }
.ad-interstitial .ad-close {
  position: absolute; top: 10px; right: 12px; border: none; background: #f1f5f9; color: var(--ink-3);
  width: 30px; height: 30px; border-radius: 50%; font-size: 14px;
}
.ad-interstitial .ad-tag { position: absolute; top: 12px; left: 14px; font-size: .62rem; color: #94a3b8; letter-spacing: 1px; }

/* ---------- 工具页 ---------- */
.tool-hero { background: var(--tc, var(--brand)); color: #fff; padding: 20px 0 74px; position: relative; }
.tool-hero .container { text-align: center; }
.tool-hero h1 { font-size: 1.35rem; font-weight: 800; }
.tool-hero p { opacity: .9; margin-top: 5px; font-size: .85rem; }
.tool-hero .crumb { font-size: .75rem; opacity: .85; margin-bottom: 6px; }
.tool-hero .crumb a { text-decoration: underline; }
.tool-layout { display: flex; gap: 24px; margin-top: -48px; align-items: flex-start; }
.tool-main { flex: 1; min-width: 0; }
.tool-panel { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 30px; }

/* 批量处理按钮（突出展示） */
.batch-btn { display: flex; align-items: center; gap: 10px; border: 2px solid #f59e0b; background: #fffbeb;
  border-radius: 14px; padding: 12px 18px; cursor: pointer; font-weight: 700; color: #b45309;
  transition: .15s; font-size: .95rem; }
.batch-btn:hover { background: #fef3c7; transform: translateY(-1px); }
.batch-btn .b-icon { font-size: 1.6rem; }
.batch-btn.on { border-color: #16a34a; background: #f0fdf4; color: #15803d; }

/* 上传区 */
.dropzone {
  border: 2.5px dashed #c7d2fe; border-radius: 18px; background: #f8faff;
  padding: 18px 20px; text-align: center; transition: .2s; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: #eef2ff; }
.dropzone .dz-icon { font-size: 1.7rem; margin-bottom: 6px; }
.dropzone h3 { font-size: 1.02rem; margin-bottom: 4px; }
.dropzone p { color: var(--ink-3); font-size: .85rem; }
.dropzone .accept-tip { margin-top: 8px; font-size: .75rem; color: #94a3b8; }

.file-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex; align-items: center; gap: 12px; background: #f8fafc; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; font-size: .88rem;
}
.file-item .f-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-item .f-size { color: var(--ink-3); font-size: .78rem; }
.file-item .f-del { border: none; background: none; color: var(--danger); font-size: 1rem; }

/* 参数表单 */
.param-form { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.param-item label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.param-item input, .param-item select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .9rem; outline: none;
  font-family: inherit; transition: .15s; background: #fff;
}
.param-item input:focus, .param-item select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.param-textarea textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .9rem; outline: none; font-family: inherit; transition: .15s; background: #fff; resize: vertical; line-height: 1.5; }
.param-textarea textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }

/* ---------- 批量重命名规则面板 ---------- */
#renamePanel { margin-top: 18px; }
.rm-block { background: #fafbff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.rm-h { font-size: .98rem; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; color: var(--ink-1); }
.rm-sub { font-size: .8rem; color: var(--ink-3); margin: 0 0 12px; line-height: 1.5; }
.rm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 12px; }
.rm-switch { font-size: .82rem; font-weight: 400; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.rm-add { margin-left: auto; background: var(--brand); color: #fff; border: none; border-radius: 8px; padding: 5px 12px; font-size: .8rem; cursor: pointer; font-family: inherit; }
.rm-add:hover { opacity: .9; }
.rm-rows { display: flex; flex-direction: column; gap: 8px; }
.rm-ins, .rm-rep { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.rm-ins select, .rm-rep input, .rm-ins input { padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px; font-size: .85rem; font-family: inherit; background: #fff; }
.rm-del { border: none; background: #ffe3e3; color: #c0392b; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; font-size: .85rem; }
.rm-del:hover { background: #ffc9c9; }
.rm-rx-wrap { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--ink-2); white-space: nowrap; cursor: pointer; user-select: none; }
.rm-rx-wrap input { width: auto !important; }
.rm-pv { max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.rm-pv-tip { font-size: .82rem; color: var(--ink-3); text-align: center; padding: 14px 0; }
.rm-pv-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .85rem; border-bottom: 1px dashed #eee; }
.rm-pv-row:last-child { border-bottom: none; }
.rm-pv-old { color: var(--ink-3); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-pv-arrow { color: var(--brand); font-weight: 700; }
.rm-pv-new { color: #1a7f37; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-pv-same .rm-pv-new { color: var(--ink-2); font-weight: 400; }

/* 处理状态 */
.progress-wrap { display: none; text-align: center; padding: 50px 0; }
.progress-wrap.show { display: block; }
.spinner {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%;
  border: 4px solid #e0e7ff; border-top-color: var(--brand); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-bar { height: 8px; background: #eef2ff; border-radius: 999px; overflow: hidden; max-width: 380px; margin: 14px auto; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--brand-grad); border-radius: 999px; transition: width .4s; }

/* 结果 */
.result-wrap { display: none; text-align: center; padding: 40px 0 10px; }
.result-wrap.show { display: block; }
.result-ok { font-size: 3.4rem; }
.result-wrap h3 { font-size: 1.3rem; margin: 10px 0 4px; }
.result-wrap .r-size { color: var(--ink-3); font-size: .85rem; margin-bottom: 22px; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 侧边栏 */
.tool-side { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.side-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.side-card h4 { font-size: .9rem; margin-bottom: 12px; color: var(--ink-2); }
.related-list { display: flex; flex-direction: column; gap: 6px; }
.related-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: .85rem; transition: .12s; }
.related-list a:hover { background: #f1f5ff; color: var(--brand); }
.related-list .r-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; color: #fff; background: var(--tc, var(--brand)); }

/* ---------- 功能区说明（SEO） ---------- */
.seo-section { padding: 56px 0; }
.seo-section h2 { font-size: 1.5rem; margin-bottom: 14px; }
.seo-section p { color: var(--ink-2); max-width: 860px; margin-bottom: 12px; }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; margin-top: 26px; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature-card .f-emoji { font-size: 1.8rem; }
.feature-card h3 { margin: 10px 0 6px; font-size: 1.02rem; }
.feature-card p { color: var(--ink-3); font-size: .84rem; }

/* ---------- 定价 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 40px 0; }
.price-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 32px 28px; position: relative; border: 2px solid transparent; }
.price-card.hot { border-color: var(--brand); transform: scale(1.03); }
.price-card .p-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand-grad); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 16px; border-radius: 999px; }
.price-card h3 { font-size: 1.1rem; }
.price-card .p-price { font-size: 2.4rem; font-weight: 800; margin: 12px 0; }
.price-card .p-price small { font-size: .85rem; color: var(--ink-3); font-weight: 500; }
.price-card ul { list-style: none; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.price-card ul li::before { content: "✓"; color: var(--success); font-weight: 700; margin-right: 8px; }

/* ---------- 开发者 ---------- */
.dev-hero { background: #0f172a; color: #fff; padding: 70px 0; }
.dev-hero h1 { font-size: 2.2rem; }
.dev-hero p { color: #94a3b8; margin-top: 12px; max-width: 640px; }
.code-block { background: #1e293b; color: #e2e8f0; border-radius: 14px; padding: 20px 22px; font-family: "SF Mono", Consolas, monospace; font-size: .82rem; overflow-x: auto; line-height: 1.7; }
.code-block .c-k { color: #7dd3fc; } .code-block .c-s { color: #86efac; } .code-block .c-c { color: #64748b; }
.step-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin: 30px 0; }
.step-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step-card .s-num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }

/* ---------- 页脚 ---------- */
.footer { background: #0f172a; color: #94a3b8; margin-top: 70px; padding: 50px 0 30px; font-size: .85rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer a { display: block; padding: 4px 0; transition: .15s; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 20px; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 12px; text-align: center; }

/* 提示条 */
.toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%) translateY(-16px); z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 22px; border-radius: 999px; font-size: .88rem;
  opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .tool-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 8px; }
  .nav-links a { font-size: .85rem; padding: 6px 8px; }
}
@media (max-width: 820px) {
  .nav-links { gap: 4px; }
  .nav-links a { font-size: .8rem; padding: 6px 6px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .nav-links { display: none; }
  .tool-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .tool-hero h1 { font-size: 1.5rem; }
  .tool-panel { padding: 20px; }
  .ad-banner { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- V2.4：进度步骤 / 批量 / 页面重排可视化 ---------- */
.f-move{border:none;background:#eef2ff;color:#4f46e5;border-radius:6px;width:24px;height:24px;cursor:pointer;font-size:.8rem}
.f-move:hover{background:#dbe4ff}
.btn-sm{padding:5px 12px;font-size:.8rem}
.reorder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;max-height:380px;overflow-y:auto;padding:4px}
.reorder-card{border:2px solid var(--line,#e8e8ef);border-radius:10px;overflow:hidden;cursor:grab;background:#fff;transition:border-color .15s}
.reorder-card:hover{border-color:#4f7cff}
.reorder-card img{width:100%;display:block;background:#f6f8ff;aspect-ratio:0.707;object-fit:contain}
.ro-label{display:flex;justify-content:space-between;align-items:center;padding:4px 8px;font-size:.75rem;color:var(--ink-2)}
.ro-del{border:none;background:#fee2e2;color:#dc2626;border-radius:6px;width:20px;height:20px;cursor:pointer;font-size:.7rem;line-height:1}


/* ---------- 统一广告位（Google AdSense 自动广告 + 显式广告位） ---------- */
.ad-slot.fm-ad-slot {
  display: block !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  min-height: 0 !important;
}
.ad-slot.fm-ad-slot::before { content: none !important; }
.fm-ad-box {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  min-height: 0;                 /* 默认空态：占 0 高，不撑开空白 */
  background: transparent;       /* 与页面 --bg 一致，无颜色区分 */
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
}
/* 空/未填充：彻底收起。初始 fm-ad-empty 仍保留渲染（供 AdSense 测量/填充），
   最终 fm-ad-unfilled 直接隐藏，避免裸露白块与大段空白。 */
.fm-ad-box.fm-ad-empty {
  min-height: 0 !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; background: transparent !important;
}
.fm-ad-box.fm-ad-unfilled,
.ad-slot.fm-ad-unfilled { display: none !important; }
/* 填充后：给最小高度，间距由 .ad-banner.fm-ad-filled 控制 */
.fm-ad-box.fm-ad-filled { min-height: 60px; }
.fm-ad-tag { display: none; }   /* 站内“广告”角标不显示，保持干净 */
.fm-ad-box ins.adsbygoogle { margin: 0 auto; display: block; }
.ad-rect .fm-ad-box { min-height: 180px; }
.ad-skyscraper .fm-ad-box { min-height: 300px; }
.ad-grid-item .fm-ad-box { min-height: 100%; height: 100%; }
.ad-interstitial .fm-ad-box { min-height: 110px; }
.fm-landing-ad { max-width: 920px; margin: 18px auto 0; padding: 0 22px; }
@media (max-width: 640px) {
  .ad-rect .fm-ad-box { min-height: 140px; }
  .ad-skyscraper .fm-ad-box { min-height: 140px; }
}


/* ---------- 广告位承载真实 Google AdSense 广告单元 ---------- */
.fm-ad-box.fm-ad-self {
  display: flex; align-items: center; justify-content: center;
  background: #f8faff;
}
.fm-ad-box.fm-ad-self {
  display: flex; align-items: center; justify-content: center;
  background: #f8faff;
}
.fm-ad-selflink {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 96px; text-decoration: none;
}
.fm-ad-selflink b { font-size: .92rem; font-weight: 600; color: #1f4e9e; }
.fm-ad-selflink span { font-size: .78rem; font-weight: 400; color: #8a94a8; }
