/* 前台 H5 样式 */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6fa;
  color: #222;
  min-height: 100vh;
}
.topbar {
  background: linear-gradient(135deg, #2f6fed, #1a4fc4);
  color: #fff;
  padding: 20px 16px 24px;
}
.topbar h1 { font-size: 18px; font-weight: 600; }
.topbar .sub { font-size: 12px; opacity: .85; margin-top: 4px; }
.container { padding: 12px; max-width: 640px; margin: 0 auto; }

/* 目录条 */
.cat-list { display: flex; flex-direction: column; gap: 10px; }
.cat-item {
  display: flex; align-items: center;
  background: #fff; border-radius: 10px;
  padding: 16px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  text-decoration: none; color: inherit;
  transition: transform .1s;
}
.cat-item:active { transform: scale(.98); }
.cat-item .icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: #e8f0ff; color: #2f6fed;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; flex-shrink: 0;
}
.cat-item .meta { flex: 1; margin-left: 12px; min-width: 0; }
.cat-item .name { font-size: 15px; font-weight: 600; }
.cat-item .count { font-size: 12px; color: #888; margin-top: 3px; }
.cat-item .arrow { color: #ccc; font-size: 18px; }

/* 报告列表 */
.report-item {
  display: flex; align-items: center;
  background: #fff; border-radius: 10px;
  padding: 14px 14px; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  text-decoration: none; color: inherit;
}
.report-item .title { flex: 1; font-size: 15px; line-height: 1.4; }
.report-item .badge {
  font-size: 11px; color: #2f6fed; background: #e8f0ff;
  padding: 3px 8px; border-radius: 10px; margin-left: 8px; flex-shrink: 0;
}
/* 组织类型小标签 */
.type-tag {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  border-radius: 10px; margin-right: 6px; flex-shrink: 0;
}
.type-tag.社团 { background: #e8f0ff; color: #2f6fed; }
.type-tag.民非 { background: #fff4e5; color: #e67e22; }
.type-tag.基金会 { background: #f0e8ff; color: #8e44ad; }
.back-bar {
  display: flex; align-items: center;
  padding: 12px 4px; color: #2f6fed; text-decoration: none; font-size: 14px;
}
.empty { text-align: center; color: #999; padding: 60px 20px; font-size: 14px; }

/* 首页搜索框 */
.search-bar {
  display: flex; gap: 8px; margin: 16px 0 18px;
  background: #fff; border-radius: 24px; padding: 4px 4px 4px 16px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.search-bar::before {
  content: "🔍"; font-size: 15px; margin-right: 6px; opacity: .5;
}
.search-bar input {
  flex: 1; padding: 9px 0; border: 0; background: transparent;
  font-size: 14px; outline: none; -webkit-appearance: none;
}
.search-bar button {
  padding: 9px 20px; border-radius: 20px; border: 0;
  background: #2f6fed; color: #fff; font-size: 14px; font-weight: 500;
  cursor: pointer; -webkit-appearance: none;
}

/* 报告查看页 */
.view-frame {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #fff; border: 0; width: 100%; height: 100%;
}
.view-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  background: #fff; border-bottom: 1px solid #eee;
  padding: 10px 12px; display: flex; align-items: center;
}
.view-topbar a { color: #2f6fed; text-decoration: none; font-size: 14px; }
.view-topbar .t { flex: 1; text-align: center; font-size: 14px; color: #333; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
