/* ==========================================================
   学友资料站 - 全站样式（PC / 手机端响应式）
   纯 CSS，无第三方依赖
   ========================================================== */

:root{
  --brand:#1B5FDE;
  --brand-dark:#123FA0;
  --brand-soft:#EAF0FF;
  --accent:#FF6A00;
  --accent-dark:#D95700;
  --ink:#14172A;
  --ink-2:#3C4460;
  --muted:#6C7488;
  --line:#E3E7F2;
  --bg:#F4F7FC;
  --card:#FFFFFF;
  --danger:#D92D20;
  --ok:#0E9F6E;
  --radius:12px;
  --radius-sm:9px;
  --shadow:0 1px 2px rgba(20,23,42,.04), 0 6px 18px rgba(20,23,42,.06);
  --shadow-sm:0 1px 3px rgba(20,23,42,.07);
  --maxw:1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  font-size:15.5px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }
h1,h2,h3,h4{ margin:0; line-height:1.28; font-weight:700; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button,input,select,textarea{ font:inherit; color:inherit; }
:focus-visible{ outline:3px solid #93B4FF; outline-offset:2px; border-radius:6px; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 20px; }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip-link{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:#fff; padding:9px 14px; border-radius:0 0 10px 0; font-weight:700;
}
.skip-link:focus{ left:0; }

/* ---------------- 顶部导航 ---------------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.94);
  /* 苹果 iOS Safari（含 17 及更早版本）与部分安卓/鸿蒙浏览器只认 -webkit- 前缀，
     不写这一行会丢掉毛玻璃效果，这里两种写法都保留 */
  -webkit-backdrop-filter:saturate(180%) blur(10px);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{ display:flex; align-items:center; gap:14px; min-height:56px; flex-wrap:wrap; }
.brand{ display:flex; align-items:center; gap:9px; font-weight:800; font-size:1.02rem; color:var(--ink); }
.brand:hover{ text-decoration:none; }
.brand-mark{
  width:30px; height:30px; border-radius:8px; flex:0 0 auto;
  background:linear-gradient(135deg,var(--brand),#5B8DEF);
  color:#fff; display:grid; place-items:center; font-size:14px; font-weight:800;
}
.nav{ margin-left:auto; display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.nav a{ padding:6px 12px; border-radius:99px; color:var(--ink-2); font-size:.9rem; font-weight:600; }
.nav a:hover{ background:var(--brand-soft); color:var(--brand-dark); text-decoration:none; }
.nav a.is-active{ background:var(--brand); color:#fff; }

/* ---------------- 按钮 ---------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:9px 15px; border-radius:99px; border:1px solid transparent;
  font-weight:700; font-size:.92rem; cursor:pointer; white-space:nowrap;
  transition:transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration:none; line-height:1.4;
}
.btn:hover{ text-decoration:none; }
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--accent); color:#fff; box-shadow:0 6px 16px rgba(255,106,0,.26); }
.btn-primary:hover{ background:var(--accent-dark); }
.btn-brand{ background:var(--brand); color:#fff; }
.btn-brand:hover{ background:var(--brand-dark); }
.btn-quark{ background:linear-gradient(135deg,#2B7BFF,var(--brand)); color:#fff; box-shadow:0 6px 16px rgba(27,95,222,.24); }
.btn-quark:hover{ background:linear-gradient(135deg,#1F6BEA,var(--brand-dark)); }
.btn-ghost{ background:#fff; border-color:var(--line); color:var(--ink-2); }
.btn-ghost:hover{ border-color:#C7D3EC; background:#F7FAFF; }
.btn-danger-ghost{ background:#fff; border-color:#F3C4C0; color:var(--danger); }
.btn-danger-ghost:hover{ background:#FEF3F2; }
.btn-sm{ padding:6px 12px; font-size:.84rem; }
.btn-block{ width:100%; }
.btn[disabled],.btn.is-disabled{
  opacity:.55; cursor:not-allowed; box-shadow:none; background:#F1F3F9;
  color:var(--muted); border-color:var(--line);
}

/* ---------------- 首页 Hero ---------------- */
.hero{
  background:linear-gradient(180deg,#FFFFFF 0%,#EEF3FF 100%);
  border-bottom:1px solid var(--line);
  padding:34px 0 26px;
}
.hero-inner{ max-width:780px; }
.hero h1{ font-size:1.8rem; letter-spacing:-.01em; }
.hero .lede{ margin-top:10px; color:var(--ink-2); font-size:1rem; }
.stats{ display:flex; gap:24px; margin-top:18px; flex-wrap:wrap; }
.stat b{ display:block; font-size:1.34rem; color:var(--brand-dark); line-height:1.2; }
.stat span{ color:var(--muted); font-size:.84rem; }
.searchbar{ margin-top:18px; position:relative; max-width:560px; }
.searchbar input{
  width:100%; padding:12px 42px 12px 44px; border-radius:99px;
  border:1px solid var(--line); background:#fff; box-shadow:var(--shadow-sm); font-size:.98rem;
}
.searchbar input:focus{ border-color:#A9C0FF; outline:none; box-shadow:0 0 0 4px rgba(27,95,222,.12); }
.searchbar .search-ico{ position:absolute; left:15px; top:50%; transform:translateY(-50%); color:var(--muted); display:flex; }
.searchbar .search-clear{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  border:0; background:#F1F3F9; color:var(--ink-2); border-radius:99px;
  width:28px; height:28px; cursor:pointer; display:none; align-items:center; justify-content:center;
}
.searchbar.has-value .search-clear{ display:flex; }

/* ---------------- 提示条 / 空状态 ---------------- */
.page-body{ padding:4px 0 0; }
.notice{
  margin:16px 0; padding:11px 14px; border-radius:var(--radius-sm); font-size:.88rem;
  background:#FFF8EC; border:1px solid #FBE0B5; color:#8A4B00;
}
.notice.notice-info{ background:#EEF4FF; border-color:#CFDDFF; color:#1B3E8F; }
.notice b{ font-weight:800; }
.empty{
  padding:34px 18px; text-align:center; color:var(--muted);
  background:#fff; border:1px dashed var(--line); border-radius:var(--radius);
}
.empty strong{ display:block; color:var(--ink-2); margin-bottom:5px; font-size:1rem; }

/* ---------------- 模块分区 ---------------- */
.module{ padding:24px 0 2px; }
.module-head{ display:flex; align-items:center; gap:10px; margin-bottom:12px; flex-wrap:wrap; }
.module-badge{
  width:38px; height:38px; border-radius:10px; display:grid; place-items:center;
  flex:0 0 auto; background:var(--brand-soft); color:var(--brand-dark);
}
.module-badge svg{ width:20px; height:20px; }
.module-head h2{ font-size:1.14rem; }
.module-count{ color:var(--muted); font-size:.84rem; font-weight:600; }
.module-desc{ color:var(--muted); font-size:.86rem; flex-basis:100%; }
.module-link{ margin-left:auto; font-size:.86rem; font-weight:700; }

/* ---------------- 资料条目 ---------------- */
.entry-list{ display:grid; gap:10px; }
.entry{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:13px 15px; display:flex; gap:14px; align-items:flex-start;
  box-shadow:var(--shadow-sm); border-left:3px solid var(--brand);
}
.entry-main{ min-width:0; flex:1; }
.entry h3{ font-size:.98rem; margin-bottom:3px; overflow-wrap:anywhere; }
.entry h3 a{ color:var(--ink); }
.entry h3 a:hover{ color:var(--brand); text-decoration:underline; }
.entry .entry-desc{
  color:var(--ink-2); font-size:.88rem; overflow-wrap:anywhere;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.entry-meta{ margin-top:6px; color:var(--muted); font-size:.78rem; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.tag{
  display:inline-flex; align-items:center; gap:4px; background:#F1F4FB; color:var(--ink-2);
  border-radius:5px; padding:1px 6px; font-size:.74rem; font-weight:600;
}

/* ---------------- 内页 ---------------- */
.page{ padding:22px 0; }
.crumb{ color:var(--muted); font-size:.86rem; margin-bottom:12px; }
.crumb a{ color:var(--ink-2); font-weight:600; }
.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-sm); padding:18px;
}
.detail h1{ font-size:1.38rem; margin-bottom:10px; overflow-wrap:anywhere; }
.detail-meta{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; align-items:center; }
.pill{ background:var(--brand-soft); color:var(--brand-dark); border-radius:99px; padding:3px 10px; font-size:.78rem; font-weight:700; }
.detail-body{ color:var(--ink-2); white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
.detail-body.is-empty{ color:var(--muted); font-style:normal; }
.pan-box{ margin-top:18px; padding:14px; border-radius:var(--radius-sm); background:#F7F9FE; border:1px solid var(--line); }
.pan-box h4{ font-size:.88rem; color:var(--muted); margin-bottom:8px; font-weight:700; }
.pan-row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:.9rem; }
.pan-row + .pan-row{ margin-top:6px; }
.pan-row code{
  background:#fff; border:1px solid var(--line); border-radius:6px; padding:3px 8px;
  font-size:.88rem; overflow-wrap:anywhere; word-break:break-all; font-family:ui-monospace,Consolas,monospace;
}
.pan-row a{ overflow-wrap:anywhere; word-break:break-all; }
.detail-actions{ margin-top:18px; display:flex; gap:10px; flex-wrap:wrap; }

/* ---------------- 后台 ---------------- */
.admin-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:20px 0 14px; }
.admin-head h1{ font-size:1.3rem; }
.admin-bar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.admin-user{ color:var(--muted); font-size:.86rem; }
.admin-login{ max-width:430px; margin:5vh auto 60px; }
.admin-login .card{ padding:22px; }
.admin-login h1{ font-size:1.24rem; margin-bottom:5px; }
.admin-login .sub{ color:var(--muted); font-size:.88rem; margin-bottom:16px; }

.field{ margin-bottom:12px; }
.field label{ display:block; font-weight:700; font-size:.86rem; margin-bottom:5px; color:var(--ink-2); }
.field .hint{ font-weight:400; color:var(--muted); font-size:.78rem; }
.input,.select,.textarea{
  width:100%; padding:9px 11px; border:1px solid var(--line); border-radius:var(--radius-sm);
  background:#fff; font-size:.92rem;
}
.input:focus,.select:focus,.textarea:focus{ border-color:#A9C0FF; outline:none; box-shadow:0 0 0 4px rgba(27,95,222,.1); }
.textarea{ min-height:90px; resize:vertical; }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
.form-grid .full{ grid-column:1 / -1; }
.form-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }

.msg{ padding:9px 12px; border-radius:var(--radius-sm); font-size:.88rem; margin-bottom:12px; }
.msg-error{ background:#FEF3F2; border:1px solid #FBD5D2; color:var(--danger); }
.msg-ok{ background:#ECFDF3; border:1px solid #BBEBD2; color:#046C4E; }
.msg[hidden]{ display:none; }

.tabs{
  display:flex; gap:5px; background:#fff; border:1px solid var(--line);
  padding:4px; border-radius:99px; width:max-content; max-width:100%; flex-wrap:wrap;
}
.tabs button{
  border:0; background:transparent; padding:6px 15px; border-radius:99px;
  font-weight:700; color:var(--ink-2); cursor:pointer;
}
.tabs button[aria-selected="true"]{ background:var(--brand); color:#fff; }

.panel{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:16px; box-shadow:var(--shadow-sm);
}
.panel + .panel{ margin-top:14px; }
.panel h3{ font-size:1rem; margin-bottom:12px; }
.panel-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.panel-head h3{ margin:0; }
.panel-head .btn{ margin-left:auto; }

.tbl-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:var(--radius); }
table.tbl{ width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); min-width:560px; }
table.tbl th,table.tbl td{
  padding:9px 12px; text-align:left; border-bottom:1px solid var(--line);
  font-size:.88rem; vertical-align:top;
}
table.tbl th{ background:#F7F9FE; font-size:.8rem; color:var(--muted); font-weight:700; }
table.tbl tr:last-child td{ border-bottom:0; }
table.tbl td.cell-tight{ white-space:nowrap; }
.row-actions{ display:flex; gap:6px; flex-wrap:wrap; }
.url-cell{ overflow-wrap:anywhere; word-break:break-all; max-width:280px; display:inline-block; }

/* 后台「资料管理」关键词搜索：输入框 + 清空按钮 + 命中条数 */
.admin-search{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:-2px 0 12px; }
.admin-search .input{ flex:1 1 260px; min-width:180px; width:auto; }
.admin-search-count{ margin-left:auto; color:var(--muted); font-size:.8rem; white-space:nowrap; }

/* 后台「发布资料」批量导入（Excel 表格）：拖拽区 + 逐行预览 + 结果汇总 */
.import-drop{
  border:2px dashed var(--line); border-radius:var(--radius); padding:18px 16px; text-align:center;
  background:#FBFCFF; transition:border-color .15s ease, background-color .15s ease;
}
.import-drop.is-over{ border-color:var(--brand); background:#F2F6FF; }
.import-drop.is-disabled{ opacity:.62; }
.import-drop-title{ margin:0 0 2px; font-weight:700; }
.import-drop-or{ margin:0 0 4px; color:var(--muted); font-size:.82rem; }
.import-drop .form-actions{ margin-top:6px; justify-content:center; }
.import-drop .hint{ display:block; margin-top:10px; }
.import-summary{
  margin:12px 0 8px; padding:9px 12px; border-radius:var(--radius);
  background:#F7F9FE; border:1px solid var(--line); font-size:.86rem; line-height:1.7;
}
.import-dup{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin:0 0 10px; font-size:.9rem; }
.import-dup-label{ font-weight:700; }
label.check-inline{ display:flex; align-items:flex-start; gap:7px; font-weight:600; cursor:pointer; }
label.check-inline input{ width:auto; margin-top:3px; flex:0 0 auto; }
label.check-inline .hint{ display:block; font-weight:400; margin-top:2px; }
.import-tbl-wrap{ max-height:400px; overflow-y:auto; border:1px solid var(--line); }
.import-tbl-wrap table.tbl{ border:0; }
.import-row-error td{ background:#FEF3F2; }
.import-row-dup td{ background:#FFFBF0; }
.import-warn{ color:var(--danger); font-weight:700; }
.import-done{
  margin-top:12px; padding:12px 14px; border-radius:var(--radius);
  background:#F2FBF5; border:1px solid #CDEBD8;
}
.import-done-head{ font-size:.92rem; margin-bottom:6px; }
.import-done .tbl-wrap{ margin-top:8px; }

/* ---------------- 页脚 ---------------- */
.site-footer{
  margin-top:44px; padding:24px 0 32px; border-top:1px solid var(--line);
  color:var(--muted); font-size:.86rem;
}
.site-footer .wrap{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.site-footer a{ color:var(--ink-2); font-weight:600; }
.site-footer .spacer{ margin-left:auto; }

/* ---------------- 响应式 ---------------- */
@media (max-width:820px){
  .hero{ padding:26px 0 20px; }
  .hero h1{ font-size:1.5rem; }
  .form-grid{ grid-template-columns:1fr; }
  /* 手机/平板浏览器（iOS Safari、鸿蒙、安卓）聚焦字号小于 16px 的输入框时
     会自动放大整个页面，所以表单控件统一保持 16px */
  .input,.select,.textarea{ font-size:16px; }
}

@media (max-width:640px){
  body{ font-size:15px; }
  .wrap{ padding:0 14px; }
  .site-header .wrap{ min-height:52px; gap:8px; }
  .brand{ font-size:.95rem; }
  .nav a{ padding:5px 10px; font-size:.86rem; }
  .hero h1{ font-size:1.32rem; }
  .hero .lede{ font-size:.92rem; }
  .stats{ gap:16px; margin-top:16px; }
  .stat b{ font-size:1.24rem; }
  .searchbar input{ padding:11px 40px 11px 40px; font-size:16px; }
  .admin-search{ margin-top:0; }
  .admin-search .input{ flex-basis:100%; }
  .admin-search-count{ margin-left:0; }
  .import-drop{ padding:16px 12px; }
  .import-dup{ gap:10px; }
  .import-tbl-wrap{ max-height:300px; }
  .entry{ flex-direction:column; gap:10px; padding:12px; }
  .module-link{ margin-left:0; flex-basis:100%; }
  .module{ padding:20px 0 2px; }
  .card{ padding:15px; }
  .detail h1{ font-size:1.18rem; }
  .admin-head h1{ font-size:1.14rem; }
  .admin-login .card{ padding:17px; }
  .site-footer .wrap{ flex-direction:column; align-items:flex-start; gap:8px; }
  .site-footer .spacer{ margin-left:0; }
}

/* ==========================================================
   以下为「分模块导航 / 详情页区块 / 标签」等组件样式
   ========================================================== */

/* 修复 flex 等 display 规则覆盖 [hidden] 的问题（如提取码行） */
[hidden]{ display:none !important; }

.notice.notice-error{ background:#FEF3F2; border-color:#FBD5D2; color:var(--danger); }

/* 首页 Hero 补充 */
.hero .hero-intro{ margin-top:8px; color:var(--muted); font-size:.9rem; }

/* 通用小节标题 */
.sect-title{ display:flex; align-items:baseline; gap:12px; margin-bottom:12px; flex-wrap:wrap; }
.sect-title h2{ font-size:1.1rem; }
.hint-text{ color:var(--muted); font-size:.8rem; }

/* 模块导航条 */
.quick-nav-wrap{ margin:20px 0 0; }
.quick-nav{ display:flex; flex-wrap:wrap; gap:8px; }
.nav-chip{
  display:inline-flex; align-items:center; gap:8px; padding:7px 12px;
  border-radius:99px; background:#fff; border:1px solid var(--line);
  color:var(--ink-2); font-weight:600; font-size:.88rem; box-shadow:var(--shadow-sm);
}
.nav-chip:hover{ border-color:#C7D3EC; background:#F7FAFF; color:var(--brand-dark); text-decoration:none; }
.nav-chip svg{ width:17px; height:17px; color:var(--brand); flex:0 0 auto; }
.chip-count{ background:var(--brand-soft); color:var(--brand-dark); border-radius:99px; padding:1px 8px; font-size:.74rem; font-weight:700; }

/* 模块页 */
.module-head h1{ font-size:1.28rem; }
.module-more{ margin-top:10px; }

/* 标签 chips */
.tag-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.chip{
  display:inline-flex; align-items:center; gap:5px; padding:3px 9px;
  border-radius:99px; border:1px solid var(--line); background:#fff;
  color:var(--ink-2); font-size:.78rem; font-weight:600; line-height:1.65; cursor:pointer;
}
.chip:hover{ border-color:#A9C0FF; background:#F3F7FF; color:var(--brand-dark); text-decoration:none; }
.chip.is-active{ background:var(--brand); border-color:var(--brand); color:#fff; }
.chip-num{ background:var(--brand-soft); color:var(--brand-dark); border-radius:99px; padding:0 6px; font-size:.7rem; font-weight:700; }
.chip.is-active .chip-num{ background:rgba(255,255,255,.26); color:#fff; }
.tag-chips-sm{ gap:5px; margin-top:6px; }
.tag-chips-sm .chip{ padding:2px 8px; font-size:.74rem; }

/* 详情页区块 */
.detail .sect{ margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.sect-head{ display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.sect-head h2{ font-size:1rem; }
.sect-ico{ display:grid; place-items:center; width:28px; height:28px; border-radius:8px; background:var(--brand-soft); color:var(--brand-dark); flex:0 0 auto; }

/* 资源信息 */
.info-list{ border:1px solid var(--line); border-radius:var(--radius-sm); overflow:hidden; }
.info-row{ display:flex; gap:12px; padding:8px 12px; font-size:.88rem; }
.info-row + .info-row{ border-top:1px solid var(--line); }
.info-row .k{ flex:0 0 100px; color:var(--muted); font-weight:600; }
.info-row .v{ flex:1; min-width:0; overflow-wrap:anywhere; }

/* 文件清单 */
.file-list{ border:1px solid var(--line); border-radius:var(--radius-sm); padding:12px; background:#FBFCFE; }
.file-folder{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:.9rem; color:var(--ink-2); margin-bottom:8px; }
.file-list ul{ display:grid; gap:6px; }
.file-list ul li{ display:flex; align-items:center; gap:8px; font-size:.86rem; color:var(--ink-2); overflow-wrap:anywhere; }
.file-list ul li svg{ flex:0 0 auto; color:var(--muted); }
/* 文件清单里的图片条目 */
.file-list ul li.file-img{ display:block; }
.file-list ul li.file-img img{
  display:block; max-width:100%; height:auto; border-radius:var(--radius-sm);
  border:1px solid var(--line); background:#fff;
}
.file-img-cap{ display:block; margin-top:6px; font-size:.76rem; color:var(--muted); }

/* 后台：资源文件清单的图片上传与缩略预览 */
.file-tools{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:8px; }
.file-tools .hint{ color:var(--muted); font-size:.76rem; }
.file-thumbs{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.file-thumb{ position:relative; width:96px; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; padding:6px; text-align:center; }
.file-thumb img{ display:block; width:100%; height:64px; object-fit:contain; border-radius:4px; background:#F6F8FC; }
.file-thumb .file-thumb-cap{ display:block; margin-top:5px; font-size:.72rem; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-thumb .file-thumb-del{ position:absolute; top:-7px; right:-7px; width:20px; height:20px; border-radius:99px; border:1px solid var(--line); background:#fff; color:#B4232A; font-size:.78rem; line-height:1; cursor:pointer; padding:0; }
.file-thumb.is-broken img{ opacity:.35; }

/* 免责声明 */
.disclaimer{
  margin-top:20px; padding:12px 14px; border-radius:var(--radius-sm);
  background:#FFF8EC; border:1px solid #FBE0B5; color:#8A4B00;
  font-size:.83rem; line-height:1.7;
}

/* 相关推荐 */
.related-list{ display:grid; gap:8px; }
.related-item{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 13px; border:1px solid var(--line); border-radius:var(--radius-sm);
  background:#fff; box-shadow:var(--shadow-sm); color:var(--ink);
}
.related-item:hover{ border-color:#C7D3EC; background:#F7FAFF; text-decoration:none; }
.related-item strong{ font-size:.92rem; overflow-wrap:anywhere; }
.related-item span{ color:var(--muted); font-size:.76rem; white-space:nowrap; }

/* 后台表单补充 */
.field label.check{ display:flex; align-items:center; gap:8px; font-weight:600; font-size:.86rem; }
.field label.check input{ width:auto; }
.kv-row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:8px; }
.kv-row .input{ flex:1 1 130px; }
.kv-row .btn{ flex:0 0 auto; }

/* 后台「排序设置」面板 */
#sortForm .check{ display:flex; align-items:flex-start; gap:10px; font-weight:600; font-size:.92rem; margin-bottom:12px; cursor:pointer; }
#sortForm .check input{ width:auto; margin-top:3px; flex:0 0 auto; }
#sortForm .check .hint{ display:block; font-weight:400; margin-top:2px; }
/* ---------------- 资料热度排行榜（累计 / 最近24小时 / 最近7天 / 最近30天，各前 100 条） ---------------- */
.heat-section-title{ font-size:.94rem; margin:16px 0 8px; }
.heat-grid{
  display:grid; gap:12px;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
}
.heat-window{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:10px 12px 8px;
}
.heat-window-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  padding-bottom:7px; border-bottom:1px solid var(--line); margin-bottom:7px;
}
.heat-window-head .heat-title{ font-weight:700; font-size:.9rem; color:var(--ink); }
.heat-window-head .heat-count{ color:var(--muted); font-size:.76rem; white-space:nowrap; }
/* 单个榜单内部滚动，避免前 100 条把页面拉得过长 */
.heat-window .heat-list{ max-height:300px; overflow:auto; gap:7px; padding:2px 4px 2px 0; }
.heat-list{ display:flex; flex-direction:column; gap:8px; }
.heat-row{ display:flex; align-items:center; gap:8px; font-size:.86rem; }
.heat-row .heat-rank{ flex:0 0 22px; color:var(--muted); font-weight:700; font-variant-numeric:tabular-nums; }
.heat-row .heat-name{ flex:1 1 auto; min-width:0; overflow-wrap:anywhere; }
.heat-row .heat-num{ flex:0 0 auto; color:var(--muted); font-variant-numeric:tabular-nums; }
.heat-bar{ display:block; height:5px; border-radius:99px; background:linear-gradient(90deg,#BFD2FF,#1B5FDE); min-width:4px; margin-top:5px; }
.heat-empty{ color:var(--muted); font-size:.84rem; padding:10px 0; }
/* 后台「全部资料」列表：访问次数列 */
.visit-num{ font-variant-numeric:tabular-nums; font-weight:600; color:var(--ink-2); }
/* 后台「全部资料」列表的分页宿主 */
.res-pager-host{ margin-top:12px; }

/* ---------------- 新组件响应式 ---------------- */
@media (max-width:640px){
  .nav-chip{ padding:6px 10px; font-size:.84rem; }
  .info-row{ flex-direction:column; gap:2px; }
  .info-row .k{ flex:0 0 auto; }
  .related-item{ flex-direction:column; align-items:flex-start; gap:4px; }
  .related-item span{ white-space:normal; }
  .heat-grid{ grid-template-columns:1fr; }
  .heat-window{ padding:9px 11px 8px; }
  .heat-window .heat-list{ max-height:260px; }
}

@media (prefers-reduced-motion:reduce){
  *{ transition:none !important; animation:none !important; }
}

/* ---------------- 搜索引擎可读的静态区块（收录页清单） ---------------- */
.seo-links{
  margin-top:26px;
  padding:18px 20px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.seo-links h2{ font-size:1rem; margin:0 0 10px; }
.seo-links p.seo-hint{ margin:0 0 10px; color:var(--muted); font-size:.86rem; }
.seo-links ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px 14px; }
.seo-links li{ font-size:.92rem; }
.seo-links a{ color:var(--brand); }

@media (max-width:640px){
  .seo-links{ padding:15px 14px; }
  .seo-links ul{ gap:6px 10px; }
}

/* ---------------- 页脚备案信息（网站备案通过后在 config.js 填写） ---------------- */
.footer-icp{ color:var(--muted); font-size:.82rem; }
.footer-icp[hidden]{ display:none; }
.footer-icp a{ color:var(--muted); font-weight:400; text-decoration:none; }
.footer-icp a:hover{ color:var(--brand); text-decoration:underline; }

/* ---------------- 后台访问统计面板 ---------------- */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
  gap:12px;
  margin:0 0 14px;
}
.stat-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:13px 15px;
}
.stat-card-main{ border-color:#BFD2FF; background:var(--brand-soft); }
.stat-num{ font-size:1.5rem; font-weight:700; color:var(--brand); line-height:1.2; }
.stat-card-main .stat-num{ color:var(--brand-dark); }
.stat-label{ margin-top:5px; color:var(--ink-2); font-size:.86rem; }
.stats-meta{ color:var(--muted); font-size:.84rem; line-height:1.75; }
.stats-meta code{ background:var(--bg); border:1px solid var(--line); border-radius:4px; padding:1px 5px; font-size:.82rem; }

/* ==========================================================
   夸克网盘「免费领取」：详情页底部横幅 + 免费领取页
   ========================================================== */

/* 详情页底部的夸克横幅（整块是入口，点击进入「免费领取」页） */
.quark-banner-wrap{ margin:18px 0 0; }
.claim-banner{
  display:block; max-width:820px; margin:0 auto; border-radius:var(--radius);
  overflow:hidden; box-shadow:0 8px 22px rgba(27,95,222,.20);
}
.claim-banner:hover{ box-shadow:0 10px 26px rgba(27,95,222,.32); text-decoration:none; }
/* 图片版横幅：整张图就是入口，不缩放超出自身尺寸时保持清晰 */
.claim-banner--img{ background:#fff; line-height:0; }
.claim-banner--img img{ display:block; width:100%; height:auto; }
/* 文字版横幅（config.js 里没配图片时的兜底） */
.claim-banner:not(.claim-banner--img){
  display:flex; align-items:center; gap:14px; padding:16px 20px;
  background:linear-gradient(120deg,#2B7BFF 0%, var(--brand) 55%, var(--brand-dark) 100%);
  color:#fff;
}
.claim-banner:not(.claim-banner--img):hover{ color:#fff; }
.claim-banner .cb-ico{
  flex:0 0 auto; display:grid; place-items:center; width:48px; height:48px;
  border-radius:13px; background:rgba(255,255,255,.18); color:#fff;
}
.claim-banner .cb-text{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.claim-banner .cb-text strong{ font-size:1.04rem; font-weight:800; }
.claim-banner .cb-text em{ font-style:normal; font-size:.84rem; color:rgba(255,255,255,.92); }
.claim-banner .cb-btn{
  margin-left:auto; flex:0 0 auto; padding:9px 18px; border-radius:99px;
  background:#fff; color:var(--brand-dark); font-weight:800; font-size:.9rem; white-space:nowrap;
}

/* 「免费领取夸克网盘1TB空间」页面 */
.claim-hero{
  padding:24px 22px; border-radius:var(--radius);
  background:linear-gradient(120deg,#2B7BFF 0%, var(--brand) 55%, var(--brand-dark) 100%);
  color:#fff; box-shadow:var(--shadow);
}
.claim-hero h1{ color:#fff; font-size:1.5rem; line-height:1.35; }
.claim-hero p{ margin-top:10px; color:rgba(255,255,255,.94); font-size:.96rem; line-height:1.75; }
.claim-hero strong{ color:#FFE27A; }

.claim-block{ margin-top:18px; }
.claim-steps{ display:grid; gap:10px; }
.claim-step{
  display:flex; gap:13px; padding:13px 15px; background:#fff;
  border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm);
}
.claim-step .cs-num{
  flex:0 0 auto; width:30px; height:30px; border-radius:50%; display:grid; place-items:center;
  font-weight:800; color:#fff; font-size:.92rem; background:linear-gradient(135deg,#2B7BFF,var(--brand-dark));
}
.claim-step h3{ font-size:.96rem; margin-bottom:5px; }
.claim-step p{ color:var(--ink-2); font-size:.9rem; line-height:1.8; }
.claim-note{
  padding:13px 15px; border-radius:var(--radius-sm);
  background:#FFF8EC; border:1px solid #FBE0B5; color:#8A4B00; font-size:.88rem; line-height:1.85;
}
.claim-note ul{ margin:0; padding-left:20px; }
.claim-note li + li{ margin-top:6px; }
.claim-note strong{ color:#6E3B00; }
.claim-link-row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:12px; }
.claim-link-row code{
  flex:1 1 280px; min-width:0; background:var(--bg); border:1px solid var(--line);
  border-radius:var(--radius-sm); padding:10px 12px; font-size:.88rem;
  overflow-wrap:anywhere; word-break:break-all; color:var(--ink-2);
}
.claim-cta{ margin-top:18px; display:flex; gap:10px; flex-wrap:wrap; }

@media (max-width:640px){
  .claim-hero{ padding:18px 15px; }
  .claim-hero h1{ font-size:1.2rem; }
  .claim-banner{ max-width:100%; box-shadow:none; }
  .claim-banner:not(.claim-banner--img){ flex-wrap:wrap; gap:12px; padding:14px; }
  .claim-banner .cb-btn{ margin-left:0; width:100%; text-align:center; }
  .claim-cta .btn{ flex:1 1 auto; }
}

/* ==========================================================
   「全部资料」独立索引页（all.html）：按模块分组列出全站资料
   ========================================================== */
.all-group + .all-group{ margin-top:22px; }
.all-group h2{
  font-size:1rem; margin-bottom:10px;
  display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
}
.all-count{ color:var(--muted); font-size:.82rem; font-weight:600; }
.all-list{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:8px 20px;
}
.all-item{ display:flex; align-items:baseline; gap:9px; min-width:0; font-size:.92rem; }
.all-item::before{
  content:""; flex:0 0 auto; width:6px; height:6px; border-radius:99px;
  background:var(--brand); margin-top:7px;
}
.all-item a{ color:var(--ink-2); overflow-wrap:anywhere; }
.all-item a:hover{ color:var(--brand); }
/* 首页「全部学习资料」入口：指向独立索引页 */
.seo-links .all-more{ font-weight:700; }

/* ==========================================================
   列表分页控件（模块页 module.html / 全部资料页 all.html）
   ========================================================== */
.pager{
  margin-top:18px; display:flex; align-items:center; justify-content:center;
  gap:6px; flex-wrap:wrap;
}
.pager-btn{
  min-width:36px; padding:7px 11px; border-radius:10px;
  border:1px solid var(--line); background:#fff; color:var(--ink-2);
  font-weight:700; font-size:.88rem; cursor:pointer;
}
.pager-btn:hover:not([disabled]):not(.is-current){ border-color:#C7D3EC; background:#F7FAFF; color:var(--brand-dark); }
.pager-btn.is-current{ background:var(--brand); border-color:var(--brand); color:#fff; cursor:default; }
.pager-btn[disabled]{ opacity:.5; cursor:not-allowed; }
.pager-gap{ color:var(--muted); padding:0 2px; }
.pager-info{
  flex-basis:100%; text-align:center; color:var(--muted);
  font-size:.82rem; margin-top:8px;
}

@media (max-width:640px){
  .all-list{ grid-template-columns:1fr; gap:6px; }
  .pager-btn{ min-width:32px; padding:6px 9px; font-size:.84rem; }
}

/* ==========================================================
   手机端触控与可读性加固（≤640px）
   实测依据：390x844 全站扫描中，顶栏导航 31px、分类胶囊 35px、
   条目标题链接 20px、面包屑 18px、页脚链接 17px，均低于手指
   可靠点击的高度。这里只放大可点击热区与必要间距，不放大视觉
   密度、不改变桌面端版式（桌面端元素高度保持原值）。
   ========================================================== */
@media (max-width:640px){
  /* 顶栏导航与首页分类胶囊：热区提高到 38–40px */
  .site-header .wrap{ min-height:56px; }
  .nav a{ display:inline-flex; align-items:center; min-height:40px; padding:8px 13px; }
  .nav-chip{ min-height:38px; padding:8px 12px; }
  /* 模块页筛选胶囊：36px 起，保留原有紧凑感 */
  .chip{ min-height:36px; padding:6px 11px; }
  /* 条目标题整行可点，标题上下留 4px 缓冲 */
  .entry h3 a{ display:block; padding:4px 0; }
  .all-item a{ display:inline-block; padding:4px 0; }
  /* 面包屑、页脚、模块入口链接补足热区 */
  .crumb a{ display:inline-block; padding:6px 2px; }
  .site-footer a{ display:inline-block; padding:5px 0; }
  .module-link{ display:inline-flex; align-items:center; min-height:40px; }
  /* 主要操作按钮 44px，表格内小按钮 40px */
  .btn{ min-height:44px; }
  .btn-sm{ min-height:40px; }
  /* 分页按钮 40px 见方，避免误触相邻页码 */
  .pager-btn{ min-width:40px; min-height:40px; display:inline-flex; align-items:center; justify-content:center; }
  /* 后台选项卡：换行时每块仍够高 */
  .tabs button{ min-height:40px; }
  /* 后台表格：六列在窄屏放不下，保留左右滑动，压窄列宽并给右缘阴影提示 */
  .tbl-wrap{ box-shadow:inset -12px 0 10px -9px rgba(23,32,64,.16); }
  table.tbl{ min-width:480px; }
  table.tbl th, table.tbl td{ padding:8px 10px; }
  /* 粘性顶栏下，锚点与 scrollIntoView 不把内容顶到导航背后 */
  .page, #pageCard{ scroll-margin-top:64px; }
}
/* 超窄屏（iPhone SE 一代、320px 级安卓）：顶栏会折成两行，
   给底部留出与顶部对称的呼吸位，并把胶囊收紧一点，避免首屏被
   14 个模块胶囊占掉太多。视觉缩小、热区仍保持 36px 以上。 */
@media (max-width:380px){
  .site-header .wrap{ padding-bottom:4px; }
  .nav a{ padding:6px 11px; }
  .nav-chip{ min-height:36px; padding:6px 11px; }
}

/* ==========================================================
   资料介绍富文本编辑器（后台发布 / 编辑资料）
   ----------------------------------------------------------
   工具栏是纯 CSS 按钮，编辑区是 contenteditable，不依赖任何
   第三方库、不引 CDN。编辑区默认高度比原来的文本框大很多，
   并提供「全屏写作」整屏模式；手机上整条工具栏可横向滑动。
   ========================================================== */
.rte{
  border:1px solid var(--line); border-radius:var(--radius-sm);
  background:#fff; overflow:visible;
}
.rte:focus-within{ border-color:#A9C0FF; box-shadow:0 0 0 4px rgba(27,95,222,.1); }

/* ---- 工具栏 ---- */
.rte-bar{
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  padding:6px 8px; background:#F7F9FF;
  border-bottom:1px solid var(--line); border-radius:var(--radius-sm) var(--radius-sm) 0 0;
  position:sticky; top:0; z-index:3;
}
.rte-group{ display:flex; align-items:center; gap:4px; }
.rte-group + .rte-group{ padding-left:6px; border-left:1px solid var(--line); }
.rte-group-right{ margin-left:auto; border-left:0 !important; }
.rte-btn{
  min-height:32px; padding:4px 9px; border:1px solid transparent; border-radius:7px;
  background:transparent; color:var(--ink-2); font-size:.86rem; font-weight:600;
  cursor:pointer; line-height:1.2; white-space:nowrap;
}
.rte-btn:hover{ background:#EAF0FF; border-color:#D5E1FB; color:var(--brand-dark); }
.rte-btn:active{ background:#DCE7FF; }
.rte-btn:focus-visible{ outline:2px solid var(--brand); outline-offset:1px; }
.rte-btn-b{ font-weight:800; }
.rte-btn-u{ text-decoration:underline; }
.rte-btn-i{ font-style:italic; }
.rte-btn-text{ font-size:.82rem; font-weight:500; }
.rte-color-btn{ display:inline-flex; align-items:center; gap:3px; padding:4px 7px; }
.rte-color-btn .rte-a{ font-weight:800; border-bottom:3px solid #D93026; line-height:1; padding-bottom:1px; }
.rte-caret{ font-size:.7rem; color:var(--muted); }

/* 颜色色板：浮在工具栏下方 */
.rte-color-wrap{ position:relative; }
.rte-swatch{
  position:absolute; top:calc(100% + 6px); left:0; z-index:20;
  display:grid; grid-template-columns:repeat(4,1fr); gap:6px; padding:8px;
  background:#fff; border:1px solid var(--line); border-radius:10px;
  box-shadow:0 8px 22px rgba(20,23,42,.14); width:176px;
}
.rte-swatch[hidden]{ display:none; }
.rte-swatch-item{
  width:32px; height:32px; padding:0; border:1px solid var(--line); border-radius:8px;
  background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.rte-swatch-item span{ width:20px; height:20px; border-radius:5px; display:block; }
.rte-swatch-item:hover{ border-color:var(--brand); box-shadow:0 0 0 3px rgba(27,95,222,.12); }

/* 字号下拉：跟输入框同一套观感 */
.rte-size-label{ display:inline-flex; align-items:center; gap:4px; }
.rte-size-text{ font-size:.8rem; color:var(--muted); }
.rte-size{
  height:32px; padding:2px 6px; border:1px solid var(--line); border-radius:7px;
  background:#fff; color:var(--ink-2); font-size:.82rem; cursor:pointer;
}
.rte-size:focus{ outline:none; border-color:#A9C0FF; box-shadow:0 0 0 3px rgba(27,95,222,.1); }

/* ---- 编辑区（明显放大：默认 360px 起，内容多时自动长高到 620px 封顶） ---- */
.rte-body{
  min-height:360px; max-height:620px; overflow-y:auto;
  padding:14px 16px; color:var(--ink);
  font-size:15.5px; line-height:1.75; outline:none;
  overflow-wrap:anywhere; word-break:break-word;
}
.rte-body.is-empty::before{
  content:attr(data-ph); color:#9AA3B5; pointer-events:none; display:block;
}
.rte-body p{ margin:0 0 10px; }
.rte-body p:last-child{ margin-bottom:0; }
.rte-body h3{ font-size:1.18rem; margin:14px 0 8px; }
.rte-body h4{ font-size:1.02rem; margin:12px 0 6px; }
.rte-body ul,.rte-body ol{ margin:8px 0 10px; padding-left:22px; }
.rte-body li{ margin:3px 0; }
.rte-body blockquote{
  margin:10px 0; padding:8px 12px; border-left:3px solid var(--brand-soft);
  background:#F7F9FF; color:var(--ink-2);
}
.rte-body img{ max-width:100%; height:auto; margin:8px 0; border-radius:8px; }
.rte-body a{ color:var(--brand); text-decoration:underline; }

/* ---- 底部状态条 ---- */
.rte-foot{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:6px 10px; border-top:1px solid var(--line);
  background:#FBFCFE; color:var(--muted); font-size:.78rem;
  border-radius:0 0 var(--radius-sm) var(--radius-sm);
}
.rte-count{ font-weight:700; color:var(--ink-2); }
.rte-status{ color:var(--ok); }
.rte-status.is-err{ color:var(--danger); }
.rte-tip{ margin-left:auto; color:#98A1B3; }
.rte-picker{ display:none; }

/* ---- 全屏写作：铺满整屏，清掉页面滚动，Esc 或「退出全屏」返回 ---- */
.rte.rte-full{
  position:fixed; inset:0; z-index:9999; border-radius:0; border:0;
  display:flex; flex-direction:column; background:#fff;
  box-shadow:0 0 0 100vmax rgba(20,23,42,.28);
}
.rte.rte-full .rte-bar{ border-radius:0; }
.rte.rte-full .rte-body{ flex:1 1 auto; max-height:none; min-height:0; }
.rte.rte-full .rte-foot{ border-radius:0; }
body.rte-lock{ overflow:hidden; }

/* ==========================================================
   前台：资料介绍富文本展示
   （详情页 / 静态收录页共用；纯文本老资料仍走 .detail-body 原样式）
   ========================================================== */
.detail-body.is-rich{ white-space:normal; }
.detail-body.is-rich p{ margin:0 0 10px; }
.detail-body.is-rich p:last-child{ margin-bottom:0; }
.detail-body.is-rich strong,.detail-body.is-rich b{ color:var(--ink); font-weight:800; }
.detail-body.is-rich h3{ font-size:1.1rem; color:var(--ink); margin:16px 0 8px; }
.detail-body.is-rich h4{ font-size:1rem; color:var(--ink); margin:14px 0 6px; }
.detail-body.is-rich ul,.detail-body.is-rich ol{ margin:8px 0 12px; padding-left:22px; }
.detail-body.is-rich li{ margin:4px 0; }
.detail-body.is-rich blockquote{
  margin:12px 0; padding:9px 13px; border-left:3px solid var(--brand-soft);
  background:#F7F9FF; color:var(--ink-2); border-radius:0 8px 8px 0;
}
.detail-body.is-rich img{
  max-width:100%; height:auto; margin:10px 0; border-radius:8px;
  border:1px solid var(--line); background:#fff;
}
.detail-body.is-rich a{ color:var(--brand); text-decoration:underline; word-break:break-all; }
.detail-body.is-rich a:hover{ color:var(--brand-dark); }

@media (max-width:820px){
  .rte-body{ min-height:300px; max-height:520px; padding:12px 13px; }
  .rte-swatch{ width:160px; }
}

@media (max-width:640px){
  /* 手机上工具栏折行显示，保证每个按钮都露在屏幕上（不再横滑藏起来） */
  .rte-bar{
    flex-wrap:wrap; overflow:visible; gap:4px; padding:6px;
  }
  .rte-group{ flex:0 0 auto; flex-wrap:wrap; gap:4px; padding:0; }
  .rte-group + .rte-group{ padding-left:0; }
  .rte-group-right{ margin-left:0; }
  .rte-btn{ min-height:34px; }
  .rte-btn-text{ font-size:.78rem; padding:0 7px; }
  .rte-btn-b,.rte-btn-u,.rte-btn-i{ width:32px; }
  .rte-size{ height:34px; }
  .rte-size-text{ font-size:.74rem; }
  .rte-swatch{ width:176px; }
  .rte-body{ min-height:280px; max-height:440px; font-size:16px; }
  .rte-tip{ display:none; }
  .rte.rte-full .rte-body{ font-size:16px; }
  /* 前台富文本：窄屏图片不撑破容器 */
  .detail-body.is-rich img{ margin:8px 0; }
  .detail-body.is-rich ul,.detail-body.is-rich ol{ padding-left:20px; }
}

/* 编辑器宽度约束：工具栏在窄屏是一条可横向滑动的长条，它的内容宽度
   不能让外层网格/表单跟着撑宽（否则手机上整页会横向溢出）。 */
.field{ min-width:0; }
.rte-host,.rte{ min-width:0; max-width:100%; }
.rte-bar{ min-width:0; max-width:100%; }
