* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f5f6fa;
  color: #2c3e50;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

header {
  margin-bottom: 24px;
}

h1 {
  font-size: 28px;
  font-weight: 600;
}

.subtitle {
  color: #95a5a6;
  font-size: 14px;
  margin-top: 4px;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

#searchInput {
  flex: 1;
  padding: 10px 36px 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}

#searchInput:focus { border-color: #4a90d9; }

.btn-icon {
  position: absolute;
  right: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #95a5a6;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-icon:hover { background: #ecf0f1; }

.upload-btn {
  padding: 10px 18px;
  background: #4a90d9;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  transition: background .2s;
}

.upload-btn:hover { background: #357abd; }

.upload-btn input { display: none; }

.upload-status {
  margin-bottom: 12px;
  font-size: 13px;
  color: #7f8c8d;
}

.upload-status .progress {
  color: #4a90d9;
}

.upload-status .error {
  color: #e74c3c;
}

.file-list {
  list-style: none;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.file-list li {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}

.file-list li:last-child { border-bottom: none; }
.file-list li:hover { background: #fafbfc; }

.file-icon {
  margin-right: 12px;
  font-size: 18px;
}

.file-name {
  flex: 1;
  word-break: break-all;
}

.file-name .highlight {
  background: #fff3a0;
}

.file-meta {
  color: #95a5a6;
  font-size: 13px;
  margin-left: 12px;
  white-space: nowrap;
}

.download-btn {
  margin-left: 12px;
  padding: 6px 14px;
  border: 1px solid #4a90d9;
  color: #4a90d9;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  transition: all .2s;
}

.download-btn:hover {
  background: #4a90d9;
  color: #fff;
}

.loading, .empty {
  text-align: center;
  padding: 40px;
  color: #95a5a6;
}
