* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f6f8;
  color: #333;
  min-height: 100vh;
}
.header {
  background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
  color: #fff;
  padding: 32px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,68,204,0.25);
}
.header h1 { font-size: 26px; margin-bottom: 6px; letter-spacing: 1px; }
.header p { font-size: 14px; opacity: 0.8; }
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  background: linear-gradient(135deg, #0066ff, #0044cc);
  color: #fff;
}
.btn-success {
  background: linear-gradient(135deg, #00b578, #009966);
  color: #fff;
}
.btn {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: #fff;
}
.date-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.date-group label {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}
.date-input {
  padding: 9px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}
.date-input:focus { border-color: #0066ff; box-shadow: 0 0 0 3px rgba(0,102,255,0.1); }
.status-bar {
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #666;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.status-bar .count { color: #0066ff; font-weight: 600; }
.loading {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}
.loading .spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #e0e0e0;
  border-top-color: #0066ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.list-container { display: flex; flex-direction: column; gap: 12px; }
.list-item {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: all 0.2s;
  border: 1px solid transparent;
}
.list-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-color: #0066ff;
  transform: translateY(-1px);
}
.list-item .item-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-right: 12px;
  flex-shrink: 0;
}
.list-item .item-rank.r1 { background: #ff4d4f; }
.list-item .item-rank.r2 { background: #ff7a45; }
.list-item .item-rank.r3 { background: #ffc53d; }
.list-item .item-rank.rn { background: #d9d9d9; color: #666; }
.list-item .item-top {
  display: flex;
  align-items: flex-start;
}
.list-item .item-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.5;
  text-decoration: none;
  flex: 1;
}
.list-item .item-title:hover { color: #0066ff; }
.list-item .item-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin-top: 8px;
  margin-left: 38px;
}
.list-item .item-meta {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  margin-left: 38px;
  flex-wrap: wrap;
}
.list-item .meta-tag {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
}
.list-item .meta-tag.hot { color: #ff4d4f; font-weight: 500; }
.list-item .meta-tag a {
  color: #0066ff;
  text-decoration: none;
  font-size: 12px;
}
.list-item .meta-tag a:hover { text-decoration: underline; }
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #00b578;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: #ff4d4f; }
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #bbb;
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }
