.iframe-debug-page {
  min-height: 100vh;
  background: var(--primary-gradient);
  padding: 20px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.header {
  text-align: center;
  color: white;
  margin-bottom: 30px;

  h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }

  p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
  }
}

.content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.control-panel,
.message-panel {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px var(--primary-shadow);

  h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
  }
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;

  @media (max-width: 480px) {
    flex-direction: column;
  }
}

.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

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

  &.btn-primary {
    background: var(--primary-gradient);
    color: white;

    &:hover {
      background: linear-gradient(
        135deg,
        var(--primary-color-dark) 0%,
        var(--primary-color) 100%
      );
    }
  }

  &.btn-secondary {
    background: linear-gradient(
      135deg,
      var(--primary-color-light) 0%,
      var(--primary-color) 100%
    );
    color: white;

    &:hover {
      background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-color-dark) 100%
      );
    }
  }

  &.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;

    &:hover {
      background: linear-gradient(135deg, #ee5a52 0%, #d63031 100%);
    }
  }
}

.message-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 10px;
  background: #f8f9fa;
  font-size: 12px;
}

.no-messages {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  padding: 20px;
}

.message-item {
  background: white;
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: 6px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 4px var(--primary-shadow-light);
  font-size: 12px;
  &:last-child {
    margin-bottom: 0;
  }
}

.message-text {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #333;
  word-break: break-all;
  line-height: 1.4;
}

.info-panel {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px var(--primary-shadow);

  h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
  }
}

.info-item {
  margin-bottom: 12px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid var(--primary-color);

  strong {
    color: #495057;
    margin-right: 8px;
  }

  &:last-child {
    margin-bottom: 0;
  }
}

// 滚动条样式
.message-list::-webkit-scrollbar {
  width: 8px;
}

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

.message-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;

  &:hover {
    background: #a8a8a8;
  }
}

// 响应式设计
@media (max-width: 768px) {
  .iframe-debug-page {
    padding: 15px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .control-panel,
  .message-panel,
  .info-panel {
    padding: 20px;
  }

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

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.8rem;
  }

  .content {
    gap: 15px;
  }

  .control-panel,
  .message-panel,
  .info-panel {
    padding: 15px;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

// URL 参数区域样式
.url-params-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #e1e5e9;

  h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
  }
}

.no-params {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.params-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.param-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;

  &:hover {
    background: #e9ecef;
    transform: translateX(5px);
  }
}

.param-key {
  font-weight: 600;
  color: #333;
  min-width: 80px;
  margin-right: 10px;
}

.param-value {
  color: #666;
  font-family: "Courier New", monospace;
  word-break: break-all;
  flex: 1;
}
