* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 40px 20px;
  color: #333;
}
.container { max-width: 1100px; margin: 0 auto; }
.header { text-align: center; margin-bottom: 32px; color: #fff; }
.header h1 { font-size: 28px; font-weight: 600; margin-bottom: 8px; letter-spacing: 1px; }
.header p { font-size: 14px; opacity: 0.85; }

.search-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  margin-bottom: 24px;
}
.search-box { display: flex; gap: 12px; }
.search-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s;
}
.search-input:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,0.15); }
.search-btn {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.search-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.4); }
.search-btn:active { transform: translateY(0); }
.search-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.stats {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 20px 0;
  border-top: none;
  font-size: 13px;
  color: #888;
}
.stats span strong { color: #667eea; font-weight: 600; }

.result-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  display: none;
}
.result-card.show { display: block; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: #f8f9fc; }
th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #eee;
  white-space: nowrap;
  font-size: 13px;
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
  line-height: 1.6;
  vertical-align: top;
  white-space: normal;
  word-break: break-all;
}
tbody tr:hover { background: #fafbff; }
tbody tr:last-child td { border-bottom: none; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.tag-express { background: #e8f0fe; color: #1a73e8; }
.tag-qty { background: #e6f4ea; color: #137333; }

.empty { text-align: center; padding: 80px 20px; color: #aaa; }
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.loading { text-align: center; padding: 60px 20px; color: #888; }
.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #e8e8e8;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border-top: 1px solid #f0f0f0;
}
.page-btn {
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
}
.page-btn:hover:not(:disabled) { border-color: #667eea; color: #667eea; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { font-size: 13px; color: #888; margin: 0 12px; }

.footer { text-align: center; margin-top: 24px; color: rgba(255,255,255,0.7); font-size: 12px; }

.welcome {
  background: #fff;
  border-radius: 16px;
  padding: 60px 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  text-align: center;
}
.welcome-icon { font-size: 64px; margin-bottom: 20px; }
.welcome h2 { font-size: 20px; color: #333; margin-bottom: 12px; }
.welcome p { font-size: 14px; color: #888; line-height: 1.8; }
.welcome-tips { margin-top: 24px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.tip-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #666; }
.tip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

@media (max-width: 768px) {
  body { padding: 20px 12px; }
  .header h1 { font-size: 22px; }
  .search-card { padding: 20px; }
  .search-box { flex-direction: column; }
  .search-btn { width: 100%; }
  th, td { padding: 10px 12px; font-size: 13px; }
  .welcome { padding: 40px 20px; }
  .welcome-tips { flex-direction: column; gap: 12px; align-items: flex-start; }
}
