:root {
  --primary-color: #6c5ce7;
  --secondary-color: #a29bfe;
  --accent-color: #fd79a8;
  --dark-color: #2d3436;
  --light-color: #f5f6fa;
  --glass-color: rgba(255, 255, 255, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
}

body {
  min-height: 100vh;
  background: url("https://ts2.tc.mm.bing.net/th/id/OIP-C.9QLvMgPljp0iHc6JnSMCnQHaHT?rs=1&pid=ImgDetMain&o=7&rm=3")
    center/cover no-repeat fixed;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  line-height: 1.6;
  position: relative;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 0.5rem auto;
  border-radius: 2px;
}

h2 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.input-section {
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 3rem;
  transition: var(--transition);
}

.input-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: white;
  font-weight: 500;
}

select,
input[type="text"] {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

select:focus,
input[type="text"]:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
}

button {
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

button:active {
  transform: translateY(0);
}

.filter-section {
  margin-bottom: 2rem;
}

.filter-section input {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 1.25rem;
  text-align: left;
}

th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.5);
}

tr:hover {
  background: rgba(108, 92, 231, 0.1);
}

#gunTable td:nth-child(1),
#gunTable td:nth-child(2),
#gunTable td:nth-child(3) {
  text-shadow: 
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

#gunTable button {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

#gunTable button:last-child {
  margin-right: 0;
}

#gunTable button:first-child {
  background: #ff7675;
}

#gunTable button:first-child:hover {
  background: #d63031;
}

#gunTable button:last-child {
  background: #00b894;
}

#gunTable button:last-child:hover {
  background: #00a884;
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .input-section,
  .display-section {
    padding: 1.5rem;
  }

  th,
  td {
    padding: 0.75rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  animation: fadeIn 0.6s ease-out;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* B站链接样式 */
.bilibili-link {
  text-align: center;
  margin-top: 3rem;
  padding: 1rem;
}

.bilibili-link a {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #fb7299;
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bilibili-link a:hover {
  background: #ff9db5;
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

.bilibili-link a:active {
  transform: translateY(0);
}
