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

* {
  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;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: pan-x pan-y;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  font-size: 16px;
  max-font-size: 16px;
  transform-origin: left top;
}

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

.header-icon i {
  font-size: 3rem;
}

.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(--primary-color), var(--primary-dark));
  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: 16px;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  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(--primary-color);
  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(--primary-dark);
  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(--primary-color);
  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-card {
  margin-top: 24px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}

.complaints-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
}

.complaints-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.complaints-header-icon svg {
  width: 28px !important;
  height: 28px !important;
}

.complaints-header-text {
  flex: 1;
  min-width: 0;
}

.complaints-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.complaints-subtitle {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-top: 3px;
}

.complaints-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
}

.complaints-timeline {
  max-height: 480px;
  overflow-y: auto;
  padding: 10px 6px 12px;
  position: relative;
}

.complaints-timeline.loading::before {
  content: '';
  display: block;
  height: 148px;
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 25%, rgba(148, 163, 184, 0.18) 37%, rgba(148, 163, 184, 0.08) 63%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  background-size: 220% 100%, 100% 100%;
  animation: timelineSkeleton 1.6s ease-in-out infinite;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

@keyframes timelineSkeleton {
  0% {
    background-position: 200% 0, 0 0;
  }
  100% {
    background-position: -20% 0, 0 0;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  animation: timelineFadeUp 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

@keyframes timelineFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  display: none;
}

.timeline-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 24px;
  padding: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.timeline-card::before,
.timeline-card::after {
  display: none;
}

.timeline-card:hover {
  border-color: #dbe5ee;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.timeline-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.timeline-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.14), rgba(7, 193, 96, 0.06));
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.timeline-user-meta {
  min-width: 0;
}

.timeline-account {
  font-size: 1.02rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.timeline-phone {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.timeline-status {
  font-size: 0.72rem;
  padding: 7px 12px;
  background: #ecfdf3;
  color: #059669;
  border: 1px solid #ccefdc;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.timeline-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: none;
  animation: none;
}

.timeline-info {
  display: none;
}

.timeline-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.timeline-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e8eef5;
  font-weight: 600;
}

.timeline-meta-pill.warning {
  color: #b45309;
  background: #fff7ed;
  border-color: #fde7d4;
}

.timeline-reason {
  margin-top: 0;
  padding: 14px 15px;
  background: #f8fafc;
  border-radius: 16px;
  font-size: 0.84rem;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
  border: 1px solid #edf2f7;
  position: relative;
}

.timeline-reason i {
  color: var(--primary-dark);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.84rem;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf3;
  border: 1px solid #d9f3e3;
  border-radius: 50%;
}

.timeline-reason span {
  flex: 1;
}

.complaints-timeline::-webkit-scrollbar {
  width: 6px;
}

.complaints-timeline::-webkit-scrollbar-track {
  background: transparent;
}

.complaints-timeline::-webkit-scrollbar-thumb {
  background: #dcdfe6;
  border-radius: 3px;
}

.complaints-timeline::-webkit-scrollbar-thumb:hover {
  background: #c0c4cc;
}

.shark-wave {
    height: 15px;
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: -1px;
}

.shark-wave svg {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
}

.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, var(--primary-color), var(--primary-dark));
  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, var(--primary-color), var(--primary-dark));
  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: var(--primary-color);
  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, var(--primary-color), var(--primary-dark));
  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, var(--primary-color), var(--primary-dark));
  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-timeline {
    padding: 10px 2px;
    max-height: 420px;
  }

  .complaints-timeline.loading::before {
    height: 132px;
    border-radius: 22px;
  }

  .timeline-item {
    margin-bottom: 12px;
  }

  .timeline-card {
    padding: 15px;
    border-radius: 20px;
  }

  .timeline-card::before,
  .timeline-card::after {
    display: none;
  }

  .timeline-top {
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
  }

  .timeline-user {
    gap: 10px;
  }

  .timeline-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 0.92rem;
  }

  .timeline-account {
    font-size: 0.96rem;
  }

  .timeline-phone {
    font-size: 0.74rem;
  }

  .timeline-status {
    font-size: 0.68rem;
    padding: 6px 10px;
  }

  .timeline-status::before {
    width: 6px;
    height: 6px;
  }

  .timeline-info {
    display: none;
  }

  .timeline-meta-bar {
    gap: 6px;
    margin-bottom: 12px;
  }

  .timeline-meta-pill {
    font-size: 0.7rem;
    padding: 6px 9px;
  }

  .timeline-reason {
    font-size: 0.76rem;
    padding: 12px;
    border-radius: 14px;
    gap: 10px;
  }

  .timeline-reason i {
    width: 20px;
    height: 20px;
    font-size: 0.82rem;
  }

  .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;
  }
}
