/* ===== 工具蜂 gongjufeng.com 全站样式 ===== */
:root {
  --bee: #F7A800;
  --bee-dark: #C77F00;
  --bee-light: #FFF4D6;
  --ink: #1F2329;
  --ink-2: #5B6470;
  --line: #ECE5D3;
  --bg: #FFFCF3;
  --card: #FFFFFF;
  --ok: #1F9254;
  --err: #C2372C;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---- 顶部导航 ---- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; }
.brand .bee { font-size: 26px; }
.brand .bee img { width: 26px; height: 26px; border-radius: 6px; vertical-align: -6px; }
.brand small { font-size: 12px; color: var(--ink-2); font-weight: 400; margin-left: 2px; }
.nav .links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav .links a { color: var(--ink-2); padding: 6px 2px; }
.nav .links a:hover, .nav .links a.active { color: var(--bee-dark); font-weight: 600; }

/* ---- Hero ---- */
.hero { text-align: center; padding: 64px 0 40px; }
.hero h1 { font-size: 40px; letter-spacing: 1px; }
.hero h1 .hl { color: var(--bee-dark); }
.hero p.sub { color: var(--ink-2); font-size: 17px; margin-top: 12px; }
.hero .badges { margin-top: 18px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge { background: var(--bee-light); color: var(--bee-dark); font-size: 13px; padding: 5px 14px; border-radius: 999px; }

/* ---- 卡片 ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 24px 0 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: .18s; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(199,127,0,.12); border-color: var(--bee); }
.card .icon { font-size: 34px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { color: var(--ink-2); font-size: 14px; }
.card .go { display: inline-block; margin-top: 14px; color: var(--bee-dark); font-weight: 600; font-size: 14px; }

/* ---- 通用区块 ---- */
.section { padding: 40px 0; }
.section h2 { font-size: 24px; margin-bottom: 18px; }
.section h2 .bar { display: inline-block; width: 6px; height: 22px; background: var(--bee); border-radius: 3px; margin-right: 10px; vertical-align: -3px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.feature b { display: block; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 14px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { font-weight: 600; cursor: pointer; }
details.faq p { color: var(--ink-2); margin-top: 8px; font-size: 14.5px; }

/* ---- 工具页 ---- */
.tool-wrap { max-width: 780px; margin: 34px auto 60px; padding: 0 20px; }
.tool-head h1 { font-size: 28px; }
.tool-head .desc { color: var(--ink-2); margin-top: 8px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 20px; }
.opt-row { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 15px; flex-wrap: wrap; }
.opt-row select, .opt-row input[type=text] { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; font-size: 15px; font-weight: 600; padding: 11px 26px; border-radius: 10px; transition: .15s; }
.btn-primary { background: var(--bee); color: #fff; }
.btn-primary:hover { background: var(--bee-dark); }
.btn-primary:disabled { background: #D8D2C2; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--bee-dark); border: 1.5px solid var(--bee); }
.file-box { border: 2px dashed var(--bee); background: var(--bee-light); border-radius: var(--radius); padding: 30px 20px; text-align: center; cursor: pointer; }
.file-box:hover { background: #FFEFBD; }
.file-box .big { font-size: 30px; }
.file-box .hint { color: var(--ink-2); font-size: 13px; margin-top: 6px; }
.file-list { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.file-list li { list-style: none; padding: 3px 0; }
.status { margin-top: 14px; font-size: 14px; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.steps { margin-top: 26px; }
.steps h2 { font-size: 20px; margin-bottom: 12px; }
.steps ol { padding-left: 22px; color: var(--ink-2); font-size: 14.5px; }
.steps ol li { margin-bottom: 6px; }
.privacy-note { margin-top: 22px; background: var(--bee-light); border-radius: 10px; padding: 12px 16px; font-size: 13.5px; color: var(--bee-dark); }

/* ---- 下载页 ---- */
.dl-card { display: flex; gap: 26px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-top: 22px; flex-wrap: wrap; }
.dl-card .info { flex: 1; min-width: 260px; }
.dl-card h2 { font-size: 22px; }
.dl-meta { color: var(--ink-2); font-size: 13.5px; margin: 10px 0 16px; }
.dl-meta span { margin-right: 18px; }
.shop-tip { background: var(--bee-light); border-radius: 10px; padding: 14px 18px; font-size: 14px; color: var(--bee-dark); margin-top: 18px; }

/* ---- 门户：搜索框 ---- */
.search-bar { margin: 22px auto 0; max-width: 520px; display: flex; align-items: center; background: #fff; border: 2px solid var(--bee); border-radius: 999px; padding: 10px 20px; box-shadow: 0 4px 18px rgba(199,127,0,.08); }
.search-bar .s-icon { font-size: 17px; margin-right: 10px; }
.search-bar input { flex: 1; border: none; outline: none; font-size: 15px; background: transparent; font-family: inherit; }

/* ---- 门户：分类与卡片角标 ---- */
.cat h2 .cat-icon { margin-right: 2px; }
.cat h2 .cat-desc { font-size: 13px; color: var(--ink-2); font-weight: 400; margin-left: 12px; }
.card { position: relative; }
.tag-hot, .tag-soon { position: absolute; top: 14px; right: 14px; font-size: 11.5px; padding: 2px 10px; border-radius: 999px; }
.tag-hot { background: #FFE9EE; color: #C2372C; font-weight: 600; }
.tag-soon { background: #EEF1F4; color: #8A93A0; }
.card.soon { opacity: .82; }
.card.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card .go.muted { color: var(--ink-2); font-weight: 400; }
.card-links { margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; gap: 14px; }
.card-links .go { margin-top: 0; }
.tool-card { display: flex; flex-direction: column; }
.tool-card > p { flex: 1; }
.card h3 a:hover { color: var(--bee-dark); }
.guide-link { font-size: 13px; color: var(--ink-2); }
.guide-link:hover { color: var(--bee-dark); }

/* ---- 门户：专区快捷跳转（zcrdh 式分区导航） ---- */
html { scroll-behavior: smooth; }
.cat-chips {
  max-width: 1080px; margin: 0 auto; padding: 0 20px 6px;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.cat-chips .chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 18px; font-size: 14px; color: var(--ink-2); transition: .15s;
}
.cat-chips .chip:hover { border-color: var(--bee); color: var(--bee-dark); transform: translateY(-1px); }
.cat-count {
  display: inline-block; vertical-align: 4px; margin-left: 10px;
  background: #F5F1E6; color: var(--ink-2); font-size: 12px; font-weight: 400;
  padding: 2px 10px; border-radius: 999px;
}

/* ---- 门户：专区面板化（每个板块独立边框+渐变底色） ---- */
.cat {
  --tint: #F7F4EA; --tint-line: #E0D8C4; --bar: var(--ink-2);
  scroll-margin-top: 80px;
  background: linear-gradient(180deg, var(--tint), transparent 72%);
  border: 1.5px solid var(--tint-line);
  border-radius: var(--radius);
  padding: 26px 20px 12px;
  margin: 30px auto 0;
}
.cat:last-of-type { margin-bottom: 20px; }
.cat .grid { padding: 18px 0 20px; }
.cat h2 .bar { background: var(--bar); }
.cat[data-cat="sheet"] { --tint: #EDF4FC; --tint-line: #B5D4F4; --bar: #378ADD; }
.cat[data-cat="pdf"]    { --tint: #FBEFE9; --tint-line: #F0B9A0; --bar: #D85A30; }
.cat[data-cat="image"]  { --tint: #F0F6E6; --tint-line: #C0DD97; --bar: #639922; }
.cat[data-cat="text"]   { --tint: #F1F0FD; --tint-line: #C6C2F3; --bar: #7F77DD; }
.cat[data-cat="life"]   { --tint: #E8F6F5; --tint-line: #9FD3CF; --bar: #2E9E94; }
.cat-count { background: #FFFFFFB3; }
.cat[data-cat="sheet"]  .cat-count { color: #185FA5; }
.cat[data-cat="pdf"]    .cat-count { color: #993C1D; }
.cat[data-cat="image"]  .cat-count { color: #3B6D11; }
.cat[data-cat="text"]   .cat-count { color: #534AB7; }
.cat[data-cat="life"]   .cat-count { color: #1D7A72; }

/* ---- 门户：职场场景高亮专区 ---- */
.cat-featured {
  background: linear-gradient(180deg, var(--bee-light), transparent 70%);
  border: 1.5px solid var(--bee);
  border-radius: var(--radius);
  padding: 26px 20px 10px;
  margin: 34px auto 10px;
}
.cat-featured h2 { margin-bottom: 4px; }
.cat-featured h2 .bar { background: var(--bee-dark); }
.cat-featured .cat-badge {
  display: inline-block; vertical-align: 4px; margin-left: 10px;
  background: var(--bee-dark); color: #fff; font-size: 12px; font-weight: 600;
  padding: 2px 12px; border-radius: 999px;
}
.cat-featured .cat-count { background: #F7E3B2; color: var(--bee-dark); }
.cat-featured .grid { padding: 18px 0 24px; }
.cat-featured .card { border-color: #F0DFAE; }
.cat-featured .card:hover { border-color: var(--bee-dark); box-shadow: 0 10px 28px rgba(199,127,0,.18); }

/* ---- 门户：桌面版横条 ---- */
.dl-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(90deg, var(--bee-light), #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.dl-strip b { font-size: 18px; }
.dl-strip p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }

/* ---- 页脚 ---- */
.site-footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 26px 0 34px; color: var(--ink-2); font-size: 13px; text-align: center; }
.site-footer .links { margin-bottom: 8px; }
.site-footer .links a { margin: 0 10px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .nav { gap: 14px; }
  .nav .links { gap: 12px; font-size: 13.5px; }
}

/* ---------- 新工具（PDF/图片/文本）扩展样式 ---------- */
.rule-row { display: flex; gap: 8px; margin: 8px 0; align-items: center; flex-wrap: wrap; }
.rule-row input[type=text] { flex: 1; min-width: 140px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.rule-row .arrow { color: var(--ink-2); flex: none; }
.btn-sm { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); background: #fff; }
.btn-sm:hover { border-color: var(--bee); color: var(--bee-dark); }
.btn-sm.danger:hover { border-color: #d33; color: #d33; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; flex-wrap: wrap; }
.file-list .fmeta { color: var(--ink-2); font-size: 13px; }
.file-list .ok { color: #1a8f3c; }
.file-list .warn { color: #c05000; }
.thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.preview-box { border: 1px solid var(--line); border-radius: var(--radius); margin-top: 12px; max-width: 100%; overflow: hidden; }
.preview-box canvas, .preview-box img { max-width: 100%; display: block; }
.check-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; margin: 10px 0; }
.check-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
input[type=range] { accent-color: var(--bee); }
textarea.txt-area { width: 100%; min-height: 160px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; line-height: 1.7; resize: vertical; box-sizing: border-box; font-family: Consolas, "Microsoft YaHei", monospace; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; }
.pos-grid button { height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; font-size: 12px; }
.pos-grid button.on { background: var(--bee); color: #fff; border-color: var(--bee); }

/* ---- 法律依据折叠框（法定算法类工具） ---- */
details.legal { margin-top:16px; border:1px dashed #D8CFB4; border-radius:10px; background:#FBFAF6; }
details.legal summary { cursor:pointer; padding:11px 16px; font-size:14px; font-weight:600; color:var(--ink-2); user-select:none; list-style:revert; }
details.legal summary:hover { color:var(--bee-dark); }
details.legal ul { margin:0; padding:2px 20px 14px 34px; font-size:13px; color:var(--ink-2); line-height:1.9; }
details.legal li { margin-top:4px; }
details.legal b { color:var(--ink); }

/* Artalk: hide "Powered By" branding (MIT 允许，保留分发包内 LICENSE) */
.atk-copyright { display:none !important; }

/* ============ v9: 首页双板块入口 + 桌面工具卡片 + 三栏页脚 ============ */
/* 首页两大板块入口卡片 */
.dual-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; text-align: left; }
.entry-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 14px; text-decoration: none; border: 1px solid var(--line); background: #fff; transition: transform .15s, box-shadow .15s; }
.entry-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.entry-card.online { border-top: 3px solid #1d5fd7; }
.entry-card.desktop { border-top: 3px solid var(--bee, #f4a900); }
.entry-card .e-icon { font-size: 30px; line-height: 1; }
.entry-card .e-body b { font-size: 16px; color: var(--ink, #1d3557); display: block; margin-bottom: 4px; }
.entry-card .e-body p { margin: 0; font-size: 13px; color: var(--ink-2, #4a5a70); line-height: 1.7; }
.entry-card .e-go { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--bee-dark, #c77c00); }
@media (max-width: 700px) { .dual-entry { grid-template-columns: 1fr; } }

/* 桌面工具卡片（首页/专区共用） */
.soft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 20px 0; }
.soft-card { background: #fff; border: 1px solid #e3eaf3; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.soft-card .icon { font-size: 34px; line-height: 1; }
.soft-card h3 { margin: 0; font-size: 18px; color: #1d3557; }
.soft-card p { margin: 0; font-size: 14px; color: #4a5a70; line-height: 1.7; flex: 1; }
.soft-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.soft-card .tag { font-size: 12px; background: #eef4fd; color: #1d5fd7; border-radius: 999px; padding: 3px 10px; }
.soft-card .go { align-self: flex-start; }

/* 三栏页脚 */
.site-footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.9fr; gap: 24px; text-align: left; margin-bottom: 6px; }
.site-footer .foot-brand .fb-name { font-weight: 700; color: var(--ink, #1d3557); display: flex; align-items: center; gap: 8px; font-size: 15px; }
.site-footer .foot-brand .fb-name small { color: var(--ink-2, #4a5a70); font-weight: 400; }
.site-footer .foot-brand p { font-size: 13px; color: var(--ink-2, #4a5a70); margin-top: 8px; line-height: 1.7; }
.site-footer .foot-col { display: flex; flex-direction: column; gap: 6px; }
.site-footer .foot-col b { font-size: 14px; color: var(--ink, #1d3557); margin-bottom: 2px; }
.site-footer .foot-col a { color: var(--ink-2, #4a5a70); font-size: 13px; text-decoration: none; }
.site-footer .foot-col a:hover { color: var(--bee-dark, #c77c00); }
.site-footer .foot-bottom { border-top: 1px solid var(--line, #e3eaf3); margin-top: 18px; padding-top: 14px; }
@media (max-width: 760px) { .site-footer .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---- 门户：视图切换条（列表 / APP 图标，sticky 悬浮） ---- */
.portal-bar {
  position: sticky; top: 62px; z-index: 40;
  max-width: 1080px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(255, 252, 243, .94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.portal-bar .cat-chips { margin: 0; padding: 0; flex: 1; justify-content: flex-start; }
.view-toggle {
  display: inline-flex; gap: 4px; flex: none;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.vt-btn {
  border: 0; background: transparent; padding: 6px 16px; border-radius: 999px;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer; transition: .15s;
  font-family: inherit; white-space: nowrap;
}
.vt-btn:hover { color: var(--bee-dark); }
.vt-btn.active { background: var(--bee); color: #fff; font-weight: 600; }

/* ---- 门户：APP 图标视图（手机桌面磁贴风格） ---- */
.grid-apps {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px; padding: 18px 0 22px;
}
body.view-apps .grid { display: none; }
body.view-apps .grid-apps { display: grid; }
.app-tile {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 14px 4px 12px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
  transition: .15s; text-align: center;
}
.app-tile:hover { transform: translateY(-3px); border-color: var(--bee); box-shadow: 0 8px 20px rgba(199,127,0,.12); }
.app-tile:active { transform: scale(.96); }
.app-icon {
  width: 54px; height: 54px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: linear-gradient(140deg, #FFF7E2, #FFF1CF);
  border: 1px solid #F0E2B8;
  box-shadow: inset 0 -3px 6px rgba(199,127,0,.07), 0 2px 5px rgba(199,127,0,.06);
}
.app-name {
  font-size: 12.5px; line-height: 1.3; color: var(--ink);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; word-break: break-all;
}
.app-tag {
  position: absolute; top: 5px; right: 5px; font-size: 10px; line-height: 1;
  background: var(--err); color: #fff; border-radius: 5px; padding: 3px 5px;
}
.app-tag.soon { background: #A9AFB9; }
.app-tile.soon { opacity: .72; }
.app-tile.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
@media (max-width: 560px) {
  .grid-apps { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .portal-bar { gap: 10px; padding: 8px 14px; }
  .portal-bar .cat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .portal-bar .cat-chips::-webkit-scrollbar { display: none; }
  .portal-bar .cat-chips .chip { flex: none; }
}

/* ---- 移动端：头部导航改横滑（修复窄屏链接竖排换行） ---- */
@media (max-width: 720px) {
  .site-header .nav { height: auto; flex-wrap: wrap; gap: 6px 14px; padding: 8px 0; }
  .site-header .nav .links {
    order: 2; width: 100%; margin-left: 0;
    display: flex; flex-wrap: nowrap; white-space: nowrap;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    gap: 18px; padding-bottom: 2px;
  }
  .site-header .nav .links::-webkit-scrollbar { display: none; }
  .site-header .nav .links a { flex: none; }
  /*  sticky 条会让头部变高后错位，移动端改为静态 */
  .portal-bar { position: static; top: auto; }
}
@media (max-width: 400px) {
  .brand small { display: none; }
}

/* ---- 自媒体工具区组件 ---- */
.wx-mark { background: #ffe8e6; color: #c0392b; padding: 0 2px; border-radius: 3px; }
.wx-mark[data-cat="medical"] { background: #fff3d6; color: #9a6b00; }
.wx-mark[data-cat="platform"] { background: #e6f0ff; color: #1d5fd1; }
.report-box { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.report-box .rb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: #F5F1E6; font-size: 14px; font-weight: 600; }
.report-box .rb-body { padding: 4px 16px 12px; max-height: 420px; overflow: auto; }
.hit-row { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.hit-row:last-child { border-bottom: 0; }
.hit-word { font-weight: 700; color: var(--err); flex: none; }
.hit-cat { flex: none; font-size: 12px; color: var(--ink-2); background: #F5F1E6; border-radius: 999px; padding: 1px 8px; }
.hit-tip { color: var(--ink-2); font-size: 13px; }
.preview-box { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; font-size: 15px; line-height: 1.9; max-height: 400px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.md-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.md-panes textarea { width: 100%; height: 440px; resize: vertical; font-family: Menlo, Consolas, Courier New, monospace; font-size: 13.5px; line-height: 1.7; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.md-preview { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px; height: 440px; overflow: auto; }
.md-preview .phone { max-width: 578px; margin: 0 auto; }
.theme-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-card { border: 2px solid var(--line); border-radius: 12px; padding: 9px 16px; cursor: pointer; background: #fff; font-size: 14px; font-family: inherit; transition: .15s; }
.theme-card:hover { border-color: var(--bee); }
.theme-card.active { border-color: var(--bee); background: var(--bee-light); font-weight: 600; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.cover-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.cover-item canvas { width: 100%; height: auto; border-radius: 8px; background: #f3f3f3; cursor: grab; touch-action: none; display: block; }
.cover-item .ci-name { font-size: 13px; font-weight: 600; margin: 8px 0 2px; }
.cover-item .ci-note { font-size: 12px; color: var(--ink-2); }
.cover-item .ci-actions { margin-top: 8px; display: flex; gap: 8px; align-items: center; }
.preset-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.preset-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; font-family: inherit; transition: .15s; }
.preset-chip.on { border-color: var(--bee); background: var(--bee-light); font-weight: 600; }
.title-cand { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 10px; }
.title-cand .tc-body { flex: 1; }
.title-cand .tc-text { font-size: 15px; font-weight: 600; }
.title-cand .tc-tags { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.score-badge { flex: none; font-size: 13px; font-weight: 700; color: #fff; background: var(--bee-dark); border-radius: 8px; padding: 3px 10px; }
.limit-table { width: 100%; border-collapse: collapse; margin-top: 12px; background: #fff; font-size: 14px; }
.limit-table th, .limit-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.limit-table th { background: #F5F1E6; }
.limit-over { color: var(--err); font-weight: 700; }
.limit-ok { color: var(--ok); }
.issue-row { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.issue-row:last-child { border-bottom: 0; }
.issue-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.issue-type { font-size: 12px; border-radius: 999px; padding: 1px 8px; background: #F5F1E6; color: var(--ink-2); }
.issue-wrong { color: var(--err); font-weight: 700; }
.issue-right { color: var(--ok); font-weight: 700; }
.issue-ctx { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.mini-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 12px; font-size: 13px; cursor: pointer; font-family: inherit; }
.mini-btn:hover { border-color: var(--bee); color: var(--bee-dark); }
@media (max-width: 760px) {
  .md-panes { grid-template-columns: 1fr; }
  .md-panes textarea, .md-preview { height: 320px; }
}

/* ---- 选题日历组件 ---- */
.cal-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.cal-bar label { font-size: 13px; color: var(--ink-2); }
.cal-bar select, .cal-bar input[type="date"] { margin-top: 4px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; }
.wd-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.wd-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 13px; font-size: 13px; cursor: pointer; font-family: inherit; transition: .15s; }
.wd-chip.on { border-color: var(--bee); background: var(--bee-light); font-weight: 600; }
.cal-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cal-stat { font-size: 13px; background: #F5F1E6; border-radius: 999px; padding: 4px 12px; color: var(--ink-2); }
.cal-stat b { color: var(--bee-dark); }
.cal-week { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.cal-week-head { padding: 9px 14px; background: #F5F1E6; font-size: 13.5px; font-weight: 700; }
.cal-day { display: flex; gap: 12px; padding: 11px 14px; border-top: 1px dashed var(--line); }
.cal-day:first-of-type { border-top: 0; }
.cal-date { flex: none; width: 58px; text-align: center; }
.cal-date b { display: block; font-size: 14px; }
.cal-date span { font-size: 12px; color: var(--ink-2); }
.cal-body { flex: 1; min-width: 0; }
.cal-node { display: inline-block; font-size: 12px; border-radius: 999px; padding: 2px 10px; margin-bottom: 5px; font-weight: 600; }
.cal-node.cal-h1 { background: #eef2f5; color: #5b6b7a; }
.cal-node.cal-h2 { background: #fff3d6; color: #9a6b00; }
.cal-node.cal-h3 { background: #ffe8e6; color: #c0392b; }
.cal-topic { font-size: 14px; line-height: 1.7; }
.cal-topic .cal-tag { flex: none; font-size: 11px; border-radius: 4px; padding: 1px 6px; margin-right: 6px; font-weight: 600; }
.cal-topic.cal-main .cal-tag { background: var(--bee-dark); color: #fff; }
.cal-topic.cal-backup { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.cal-topic.cal-backup .cal-tag { background: #eef2f5; color: #5b6b7a; }
.cal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---- 发布时间指南组件 ---- */
.pt-plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.pt-plat { border: 2px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; cursor: pointer; background: #fff; font-size: 14px; font-family: inherit; transition: .15s; }
.pt-plat:hover { border-color: var(--bee); }
.pt-plat.active { border-color: var(--bee); background: var(--bee-light); font-weight: 700; }
.pt-plat .pt-picon { display: block; font-size: 22px; margin-bottom: 4px; }
.pt-windows { margin-top: 16px; }
.pt-window { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 8px; }
.pt-w-date { flex: none; font-size: 13px; font-weight: 700; color: var(--bee-dark); }
.pt-w-date span { display: block; font-size: 11px; color: var(--ink-2); font-weight: 400; }
.pt-w-body { flex: 1; min-width: 0; }
.pt-w-label { font-size: 14px; font-weight: 600; }
.pt-stars { flex: none; color: #e8a33d; font-size: 13px; letter-spacing: 1px; }
.pt-stars .pt-off { color: #d8d8d8; }
.pt-w-why { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.pt-tips { margin-top: 16px; border-left: 3px solid var(--bee); background: #fdfcf7; padding: 10px 14px; border-radius: 0 8px 8px 0; }
.pt-tips li { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
@media (max-width: 760px) {
  .cal-day { flex-direction: column; gap: 4px; }
  .cal-date { width: auto; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .cal-date b { display: inline; }
}
