* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #26303a;
  line-height: 1.55;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 14px; }

/* 顶部 */
.site-header {
  background: linear-gradient(135deg, #1f4e79, #2e75b6);
  color: #fff;
  padding: 26px 0 20px;
}
.site-header h1 { font-size: 26px; letter-spacing: 1px; }
.subtitle { margin-top: 6px; font-size: 13.5px; color: #c9daec; }

/* 说明横幅 */
.notice-bar {
  background: #fdf0e4;
  border-bottom: 1px solid #e8a04c;
  color: #7a4a12;
  font-size: 13.5px;
  padding: 10px 0;
}
.notice-bar strong { color: #c0392b; }

/* 控制栏 */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}
.toolbar input, .toolbar select {
  font-family: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid #ccd8e4;
  border-radius: 8px;
  background: #fff;
  color: #26303a;
  outline: none;
}
.toolbar input { flex: 1 1 260px; min-width: 200px; }
.toolbar input:focus, .toolbar select:focus { border-color: #2e75b6; box-shadow: 0 0 0 2px rgba(46,117,182,.15); }
.toolbar select { flex: 0 0 auto; }

.stats { font-size: 12.5px; color: #6a7686; margin-bottom: 14px; }
.stats b { color: #1f4e79; }

/* 分组 */
.cat-group { margin-bottom: 22px; }
.cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e7f0f9;
  border-left: 4px solid #2e75b6;
  padding: 8px 12px;
  border-radius: 4px 8px 8px 4px;
  font-size: 15px;
  font-weight: 700;
  color: #1f4e79;
  margin-bottom: 8px;
}
.cat-title .count { margin-left: auto; font-size: 12px; font-weight: 400; color: #6a7686; }

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}
.item {
  background: #fff;
  border: 1px solid #dde6ef;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  word-break: break-all;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.item .fname { color: #26303a; }
.item .fsize { margin-left: auto; flex-shrink: 0; font-size: 11.5px; color: #8a97a7; }

.empty { text-align: center; color: #8a97a7; padding: 40px 0; font-size: 14px; }

/* 页脚 */
.site-footer {
  text-align: center;
  font-size: 12px;
  color: #8a97a7;
  padding: 20px 0 30px;
  border-top: 1px solid #dde6ef;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .site-header h1 { font-size: 21px; }
  .item-grid { grid-template-columns: 1fr; }
  .toolbar input { flex: 1 1 100%; }
}
