:root {
  --primary-color: #07C160;
  --success-color: #07C160;
  --danger-color: #FA5151;
  --warning-color: #FF9F43;
  --light-bg: #F5F5F5;
  --table-header: #F7F7F7;
  --table-border: #E7E7E7;
  --table-hover: #F0F0F0;
  --wechat-green: #07C160;
  --wechat-dark-green: #06AD56;
  --wechat-light-green: #E8F5E9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
  background-color: var(--light-bg);
  color: #333;
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
}

.header-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-icon img,
.header-icon svg,
.header-icon .icon {
  width: 40px;
  height: 48px;
  object-fit: contain;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, var(--wechat-green), var(--wechat-dark-green));
  color: white;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.content {
  padding: 30px;
}

.input-group {
  margin-bottom: 30px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--table-border);
}

.input-group .form-group {
  margin-bottom: 15px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--wechat-green);
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
  outline: none;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  color: #000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: var(--wechat-green);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s;
  text-align: center;
}

.btn:hover {
  background: var(--wechat-dark-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-block {
  display: block;
  width: 100%;
}

.result-container {
  margin-top: 30px;
}

.result-box {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  border-left: 4px solid;
}

.success-box {
  background-color: rgba(7, 193, 96, 0.1);
  border-left-color: var(--success-color);
}

.danger-box {
  background-color: rgba(250, 81, 81, 0.1);
  border-left-color: var(--danger-color);
}

.warning-box {
  background-color: rgba(255, 159, 67, 0.1);
  border-left-color: var(--warning-color);
}

.result-icon {
  font-size: 2rem;
  margin-right: 20px;
  flex-shrink: 0;
}

.result-content h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 500;
}

.result-content p {
  margin-bottom: 5px;
}

.domain-name {
  font-weight: bold;
  word-break: break-all;
}

.nav-links {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.nav-link {
  margin: 0 15px;
  color: var(--wechat-green);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.nav-link i {
  margin-right: 8px;
}

.nav-link:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 0.9rem;
  border-top: 1px solid var(--table-border);
}

.complaints-container {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--table-border);
}

.complaints-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.complaints-table th,
.complaints-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--table-border);
}

.complaints-table th {
  background-color: var(--table-header);
  font-weight: 500;
  color: #666;
}

.complaints-table tbody tr:hover {
  background-color: var(--table-hover);
}

.scrollable-table {
  max-height: 400px;
  overflow-y: auto;
}

.scrollable-table::-webkit-scrollbar {
  width: 8px;
}

.scrollable-table::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.scrollable-table::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.scrollable-table::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.shark-wave {
    height: 15px;
    width: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%2307C160" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%2307C160" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%2307C160"/></svg>');
    background-size: 200% auto;
    background-repeat: repeat-x;
    margin-top: -1px;
}

.shark-icon {
    position: absolute;
    right: 30px;
    top: 20px;
    font-size: 3rem;
    opacity: 0.2;
    transform: rotate(30deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(30deg); }
    50% { transform: translateY(-20px) rotate(35deg); }
}

/* ========== 弹窗通用 ========== */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.modal.show {
  pointer-events: auto;
}

.modal-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal.show .modal-mask {
  opacity: 1;
}

.modal.hide .modal-mask {
  opacity: 0;
}

.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 30px 28px 24px;
  width: 340px;
  max-width: 90%;
  text-align: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%) scale(0.85);
  top: 50%;
  left: 50%;
  margin: 0;
  position: fixed;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-dialog {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal.hide .modal-dialog {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
}

.modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
}

.progress-icon {
  background: linear-gradient(135deg, #07C160, #06AD56);
  box-shadow: 0 6px 16px rgba(7, 193, 96, 0.35);
  animation: spinPulse 2s ease-in-out infinite;
}

@keyframes spinPulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(7, 193, 96, 0.35); }
  50% { box-shadow: 0 6px 24px rgba(7, 193, 96, 0.55); }
}

.error-icon {
  background: linear-gradient(135deg, #f56c6c, #e74c3c);
  box-shadow: 0 6px 16px rgba(245, 108, 108, 0.35);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.success-icon {
  background: linear-gradient(135deg, #07C160, #06AD56);
  box-shadow: 0 6px 16px rgba(7, 193, 96, 0.35);
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #303133;
  margin-bottom: 10px;
}

.modal-progress-text {
  font-size: 2rem;
  font-weight: 700;
  color: #07C160;
  margin-bottom: 14px;
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  letter-spacing: -0.5px;
}

.progress-divider {
  color: #c0c4cc;
  font-weight: 400;
  margin: 0 4px;
  font-size: 1.4rem;
}

.progress-total {
  color: #909399;
  font-weight: 500;
  font-size: 1.2rem;
}

.progress-bar {
  height: 8px;
  background: #ecf5ff;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #07C160, #06AD56);
  border-radius: 4px;
  transition: width 0.15s ease;
  box-shadow: 0 0 8px rgba(7, 193, 96, 0.4);
}

.modal-hint {
  font-size: 0.88rem;
  color: #909399;
  min-height: 20px;
  line-height: 1.5;
}

.modal-message {
  font-size: 0.95rem;
  color: #606266;
  line-height: 1.6;
  margin-bottom: 8px;
  word-break: break-all;
}

.modal-message.small {
  font-size: 0.82rem;
  color: #909399;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.modal-btn {
  flex: 1;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.modal-btn.btn-primary {
  background: linear-gradient(135deg, #f56c6c, #e74c3c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 108, 108, 0.3);
}

.modal-btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 108, 108, 0.45);
}

.modal-btn.btn-success {
  background: linear-gradient(135deg, #07C160, #06AD56);
  color: #fff;
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.modal-btn.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(7, 193, 96, 0.45);
}

.modal-btn.btn-plain {
  background: #f4f4f5;
  color: #606266;
}

.modal-btn.btn-plain:hover {
  background: #e9e9eb;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
  .content {
    padding: 20px;
  }

  header {
    padding: 20px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .result-box {
    flex-direction: column;
    text-align: center;
  }

  .result-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .nav-link {
    margin: 5px 0;
  }

  .complaints-container {
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    border-right: none;
  }

  .complaints-table {
    min-width: 100%;
    font-size: 0.8rem;
  }

  .complaints-table th,
  .complaints-table td {
    padding: 8px 10px;
  }

  .modal-dialog {
    width: 280px;
    padding: 24px 20px 18px;
  }

  .modal-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .modal-title {
    font-size: 1.05rem;
  }

  .modal-progress-text {
    font-size: 1.6rem;
  }

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

  .modal-btn {
    padding: 10px;
  }
}
