/* SVG图标样式 */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.3em;
}

.icon-sm {
  width: 0.8em;
  height: 0.8em;
}

/* 封面样式 */
.cover-container {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
}

.cover-placeholder .icon {
  width: 24px;
  height: 24px;
}

/* 加载动画样式 */
.cover-loading {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.enhanced-404-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  transition: all 0.2s;
}

.stat-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.stat-card.pure-music {
  border-left-color: #10b981;
}

.stat-card.cloud-music {
  border-left-color: #3b82f6;
}

.stat-card.enhanced-404 {
  border-left-color: #ef4444;
}

.stat-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--fg);
  margin-bottom: 0.3rem;
}

.stat-description {
  font-size: 0.9rem;
  color: var(--fg-secondary);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.tab {
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--fg-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(14, 165, 233, 0.1);
}

.tab:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.05);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.data-table th,
.data-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: rgba(255,255,255,0.05);
  font-weight: bold;
  color: var(--accent);
}

.data-table tr:hover {
  background: rgba(255,255,255,0.05);
}

.platform-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.platform-ncm { background: #e11d48; color: white; }
.platform-qq { background: #3b82f6; color: white; }
.platform-am { background: #10b981; color: white; }
.platform-spotify { background: #1db954; color: white; }

.count-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.count-high { background: #ef4444; color: white; }
.count-medium { background: #f59e0b; color: white; }
.count-low { background: #10b981; color: white; }

.time-ago {
  font-size: 0.85rem;
  color: var(--fg-secondary);
}

.ip-list {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loading {
  text-align: center;
  padding: 2rem;
}

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.no-data {
  text-align: center;
  padding: 3rem;
  color: var(--fg-secondary);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.action-btn {
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.action-btn:hover {
  background: #0284c7;
  transform: translateY(-2px);
}

.action-btn.secondary {
  background: #6b7280;
}

.action-btn.secondary:hover {
  background: #4b5563;
}

.action-btn.danger {
  background: #ef4444;
}

.action-btn.danger:hover {
  background: #dc2626;
}

.search-box {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
}

.filter-select {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination button:hover {
  background: #0284c7;
}

.pagination button:disabled {
  background: #6b7280;
  cursor: not-allowed;
}

.pagination-info {
  margin: 0 1rem;
  color: var(--fg-secondary);
}
