html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#check-section {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  color: #10253F;
}

#check-section * {
  font-family: inherit;
}

#check-section .file-slots {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

#check-section .file-slot {
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-top: 0;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  cursor: pointer;
}

#check-section .file-slot:hover {
  border-color: rgba(0, 183, 163, 0.4);
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#check-section .file-slot.is-valid {
  border-color: #00B7A3;
  background: rgba(30, 64, 175, 0.18);
}

.slot-icon {
  color: #00B7A3;
  opacity: 1;
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 16px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 8px;
  border: 1px solid rgba(30, 64, 175, 0.2);
  transition: all 0.3s ease;
}

.slot-icon:hover {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  border-color: rgba(30, 64, 175, 0.4);
  transform: scale(1.1);
}

.slot-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slot-name {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 500;
  line-height: 1.2;
}

.slot-type {
  font-size: 12px;
  color: #6B7280;
}

.slot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-btn, .remove-btn {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  border: 2px solid rgba(30, 64, 175, 0.4);
  color: #00B7A3;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(20px);
  position: relative;
}

.select-btn:hover {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.25) 0%, rgba(59, 130, 246, 0.25) 100%);
  border-color: rgba(30, 64, 175, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.remove-btn {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);
  border-color: rgba(220, 38, 38, 0.4);
  color: #dc2626;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
}

.remove-btn:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.25) 0%, rgba(239, 68, 68, 0.25) 100%);
  border-color: rgba(220, 38, 38, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.file-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.form-section {
  margin-top: 24px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  flex: 1;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
  outline: none;
  border-color: #00B7A3;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(0, 183, 163, 0.1);
}

.form-input::placeholder {
  color: #6B7280;
}

.check-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.check-card:hover {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(25px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.file-input {
  display: none;
}

.btn-check {
  font-family: inherit;
  background: linear-gradient(135deg, #00C1D4 0%, #00E6AF 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-check:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 183, 163, 0.3);
}

.btn-check:active {
  transform: translateY(0);
}

.btn-check.secondary {
  background: #f8f9fa;
  color: #0E1E25;
  border: 1px solid #00B7A3;
}

.btn-check.secondary:hover {
  background: #e6fffa;
  border-color: #00E6AF;
}

.btn-check:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-check:disabled:hover {
  transform: none;
  box-shadow: none;
}

.result-area {
  margin-top: 28px;
  display: none;
  width: 100%;
  align-items: center;
}

.result-area.show {
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: fadeInUp 0.45s ease-out;
}

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

.result-status-line {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.result-divider {
  flex: 1;
  height: 1px;
  background: rgba(16, 37, 63, 0.16);
}

.result-status {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  color: #10253F;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-status.status-valid {
  color: #0f9d58;
}

.result-status.status-expired {
  color: #d88a00;
}

.result-status.status-revoked {
  color: #d63a57;
}

.result-status.status-unknown {
  color: #54606f;
}

.result-details {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(16, 37, 63, 0.18);
}

.result-row:last-child {
  border-bottom: none;
}

.result-row.is-hidden {
  display: none;
}

.result-label {
  font-size: 15px;
  letter-spacing: 0.2px;
  text-transform: none;
  color: rgba(16, 37, 63, 0.72);
}

.result-value {
  font-size: 16px;
  font-weight: 600;
  color: #10253F;
  text-align: right;
  word-break: break-word;
}

.result-value.monospace {
  font-family: "SFMono-Regular", "Menlo", "PingFang SC", monospace;
  font-size: 15px;
}

.result-extra {
  width: 100%;
  max-width: 520px;
  display: none;
  flex-direction: column;
  gap: 16px;
}

.result-extra.show {
  display: flex;
}

.result-extra .result-row {
  border-bottom: none;
  padding-bottom: 0;
}

.result-actions {
  display: flex;
  width: 100%;
}

.result-actions.centered {
  justify-content: center;
}

.result-actions .btn-tertiary {
  min-width: 220px;
  text-align: center;
}

.check-card.hidden {
  display: none;
}

@media (max-width: 768px) {
  .result-area {
    padding: 0;
  }

  .result-status-line {
    flex-direction: column;
    gap: 12px;
  }

  .result-status {
    white-space: normal;
    text-align: center;
  }

  .result-details {
    gap: 14px;
  }

  .result-row {
    grid-template-columns: 1fr;
    gap: 4px;
    border-bottom: 1px dashed rgba(16, 37, 63, 0.12);
    padding-bottom: 10px;
  }

  .result-value {
    text-align: left;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .btn-tertiary {
    width: 100%;
  }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  border-top-color: #00B7A3;
  animation: spin 1s ease-in-out infinite;
}

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

.error-message {
  font-family: inherit;
  background: rgba(255, 107, 107, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 107, 107, 0.25);
  color: #dc2626;
  padding: 16px;
  border-radius: 12px;
  margin-top: 20px;
  display: none;
}

.error-message.show {
  display: block;
}

.success-message {
  font-family: inherit;
  background: rgba(0, 230, 175, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 230, 175, 0.25);
  color: #16a34a;
  padding: 16px;
  border-radius: 12px;
  margin-top: 20px;
  display: none;
}

.success-message.show {
  display: block;
}

@media (max-width: 1024px) {
  .file-slots {
    gap: 14px;
  }

  .file-slot {
    height: 60px;
    padding: 0 18px;
  }
}

@media (max-width: 768px) {
  .file-slots {
    gap: 12px;
  }

  .file-slot {
    height: 56px;
    padding: 0 16px;
    font-size: 13px;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .form-input {
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .result-summary {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .result-extra {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .btn-check {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .file-slots {
    gap: 10px;
  }

  .file-slot {
    height: 52px;
    padding: 0 14px;
    font-size: 12px;
  }

  .slot-icon {
    width: 18px;
    height: 18px;
    font-size: 14px;
  }

  .slot-name {
    font-size: 13px;
  }

  .slot-type {
    font-size: 11px;
  }

  .select-btn, .remove-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .btn-check {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
