* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  width: 98%;
  max-width: none;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 25px 0;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  animation: fadeInDown 0.8s ease-out;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.search-form-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-form {
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 90vw;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.8s ease-out;
}

.search-form.searching {
  transform: translateY(-30px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.loading {
  text-align: center;
  padding: 60px;
  animation: fadeIn 0.5s ease-out;
}

.loading-spinner {
  border: 4px solid rgba(76, 175, 80, 0.1);
  border-top: 4px solid #4CAF50;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  margin: 0 auto 25px;
}

.loading p {
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.form-group {
  flex: 1;
  min-width: 250px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input {
  width: 100%;
  padding: 6px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  background-color: white;
}

button {
  padding: 6px 24px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

button:active {
  transform: translateY(0);
}

#resetBtn {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

#resetBtn:hover {
  box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

.add-dot-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 15px;
  background-color: #f9f9f9;
  color: #333;
  border: 2px solid #e0e0e0;
  border-left: none;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-weight: 500;
  font-family: inherit;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
  outline: none;
}

.add-dot-btn:hover {
  background-color: #e0e0e0;
  border-color: #ccc;
  transform: none;
}

.results {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 30px;
  min-height: 400px;
  animation: fadeInUp 0.8s ease-out;
}

.results h2 {
  margin-bottom: 25px;
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #999;
  animation: fadeIn 0.5s ease-out;
}

.empty-state p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.table-container {
  overflow-x: auto;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 10;
}

tr:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

tr:last-child td {
  border-bottom: none;
}

a {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  white-space: nowrap;
  margin: 2px 0;
}

a:hover {
  color: #45a049;
  text-decoration: underline;
}

/* 操作列样式 */
td a {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  td a {
    margin-right: 6px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  td a {
    margin-right: 4px;
    font-size: 12px;
  }
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  justify-content: flex-end;
}

.pagination-total {
  font-size: 14px;
  color: #666;
  margin-right: 10px;
}

.pagination-page-size {
  padding: 5px 10px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  color: #333;
  cursor: pointer;
  margin-right: 10px;
}

.pagination-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: white;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #4CAF50;
  color: #4CAF50;
  transform: none;
  box-shadow: none;
}

.pagination-btn-active {
  background-color: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-ellipsis {
  padding: 0 5px;
  color: #666;
  font-size: 14px;
}

.pagination-go {
  font-size: 14px;
  color: #666;
  margin: 0 5px;
}

.pagination-go-input {
  width: 60px;
  padding: 5px 10px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  margin: 0 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  
  .search-form {
    padding: 30px;
  }
  
  .search-form-container {
    padding: 20px 0;
  }
  
  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .form-row > div {
    min-width: 100% !important;
    flex: none !important;
  }
  
  .form-row label {
    font-size: 16px !important;
    font-weight: 600 !important;
  }
  
  input {
    height: 44px !important;
    font-size: 16px !important;
  }
  
  .add-dot-btn {
    height: 44px !important;
    font-size: 16px !important;
    padding: 0 20px !important;
  }
  
  .verification-question {
    height: 44px !important;
    font-size: 16px !important;
    min-width: 130px !important;
  }
  
  .form-row > div:last-child {
    display: flex;
    flex-direction: row;
    gap: 12px;
  }
  
  .form-row > div:last-child button {
    flex: 1;
    height: 44px !important;
    font-size: 16px !important;
    padding: 0 32px !important;
    margin-top: 0;
  }
  
  .results {
    padding: 20px;
  }
  
  th, td {
    padding: 12px 16px;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
  }
}

/* 图片查看器样式 */
.image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.image-viewer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.image-viewer-content {
  position: relative;
  z-index: 1001;
  max-width: 90%;
  max-height: 90%;
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: scaleIn 0.3s ease-out;
}

.image-viewer-close {
  position: absolute;
  top: -40px;
  right: 0;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: none;
}

.image-viewer-close:hover {
  background-color: rgba(0,0,0,0.8);
  transform: none;
}

/* 验证码弹窗样式 */
.verification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.verification-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.verification-content {
  position: relative;
  background: white;
  border-radius: 10px;
  padding: 30px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 1001;
  animation: fadeInUp 0.3s ease;
}

.verification-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  color: #666;
  border: none;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.verification-close:hover {
  color: #333;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .verification-close {
    top: 8px;
    right: 8px;
    font-size: 20px;
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .verification-close {
    top: 6px;
    right: 6px;
    font-size: 18px;
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 375px) {
  .verification-close {
    top: 4px;
    right: 4px;
    font-size: 16px;
    width: 22px;
    height: 22px;
  }
}

.verification-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.verification-question {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  border: 1px solid #e0e0e0;
}

.verification-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.verification-input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.verification-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.verification-buttons button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#verificationSubmit {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

#verificationSubmit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

#verificationCancel {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

#verificationCancel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

.image-viewer-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 5px;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.8rem;
  }
  
  .search-form {
    padding: 25px;
    max-width: 95vw;
  }
  
  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .form-group {
    min-width: 100%;
  }
  
  button {
    width: 100%;
    margin-top: 10px;
    padding: 12px 20px;
    font-size: 15px;
  }
  
  .results {
    padding: 15px;
    min-height: 300px;
  }
  
  .results h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  
  th, td {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
  }
  
  .loading p {
    font-size: 1rem;
  }
  
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .pagination-total {
    font-size: 13px;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .pagination-btn {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  
  .pagination-go-input {
    width: 50px;
    padding: 4px 8px;
    font-size: 13px;
  }
  
  .verification-content {
    width: 90%;
    padding: 25px;
  }
  
  .verification-question {
    font-size: 16px;
    padding: 15px;
  }
  
  .image-viewer-content {
    max-width: 95%;
    max-height: 95%;
    padding: 15px;
  }
  
  .image-viewer-close {
    top: -35px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
  
  .header {
    padding: 20px 0;
    margin-bottom: 30px;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .search-form {
    padding: 20px;
    border-radius: 12px;
  }
  
  label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  input {
    padding: 12px 14px;
    font-size: 15px;
  }
  
  button {
    padding: 12px 18px;
    font-size: 14px;
  }
  
  .add-dot-btn {
    padding: 0 12px;
    font-size: 13px;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: auto;
    background-color: #f9f9f9;
    color: #333;
    border: 2px solid #e0e0e0;
    border-left: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-family: inherit;
    margin: 0;
    line-height: 1;
    outline: none;
  }
  
  .results {
    padding: 12px;
    border-radius: 12px;
  }
  
  .results h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .table-container {
    border-radius: 8px;
  }
  
  th, td {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  th {
    font-size: 12px;
  }
  
  .empty-state {
    padding: 50px 15px;
  }
  
  .empty-state p {
    font-size: 1rem;
  }
  
  .pagination {
    margin-top: 20px;
    padding-top: 15px;
    gap: 6px;
  }
  
  .pagination-total {
    font-size: 12px;
  }
  
  .pagination-page-size {
    padding: 4px 8px;
    font-size: 12px;
  }
  
  .pagination-btn {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  
  .pagination-ellipsis {
    font-size: 12px;
  }
  
  .pagination-go {
    font-size: 12px;
  }
  
  .pagination-go-input {
    width: 45px;
    padding: 4px 6px;
    font-size: 12px;
  }
  
  .verification-content {
    width: 95%;
    padding: 20px;
    border-radius: 8px;
  }
  
  .verification-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .verification-question {
    font-size: 15px;
    padding: 12px;
    margin-bottom: 15px;
  }
  
  .verification-input {
    padding: 12px 14px;
    font-size: 15px;
  }
  
  .verification-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .verification-buttons button {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
  }
  
  .image-viewer-content {
    max-width: 98%;
    max-height: 98%;
    padding: 10px;
    border-radius: 8px;
  }
  
  .image-viewer-content img {
    max-height: 75vh;
  }
  
  .image-viewer-close {
    top: -30px;
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
}

@media (max-width: 375px) {
  .header h1 {
    font-size: 1.3rem;
  }
  
  .search-form {
    padding: 15px;
  }
  
  .form-group {
    min-width: 100%;
  }
  
  input {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  button {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .add-dot-btn {
    padding: 0 10px;
    font-size: 12px;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: auto;
    background-color: #f9f9f9;
    color: #333;
    border: 2px solid #e0e0e0;
    border-left: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-family: inherit;
    margin: 0;
    line-height: 1;
    outline: none;
  }
  
  th, td {
    padding: 6px 8px;
    font-size: 12px;
  }
  
  th {
    font-size: 11px;
  }
  
  .pagination-btn {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  
  .verification-content {
    padding: 15px;
  }
  
  .verification-content h3 {
    font-size: 1.1rem;
  }
  
  .verification-question {
    font-size: 14px;
    padding: 10px;
  }
  
  .verification-input {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  button:hover {
    transform: none;
  }
  
  button:active {
    transform: scale(0.98);
  }
  
  .pagination-btn:hover:not(:disabled) {
    transform: none;
  }
  
  .add-dot-btn:hover {
    transform: none;
  }
  
  .image-viewer-close:hover {
    transform: none;
  }
  
  #verificationSubmit:hover,
  #verificationCancel:hover {
    transform: none;
  }
  
  #verificationSubmit:active,
  #verificationCancel:active {
    transform: scale(0.98);
  }
}