/* 代币释放平台样式文件 */

body {
  background: linear-gradient(135deg, #1e3a8a, #6b21a8, #1e3a8a) !important;
  background-attachment: fixed;
  min-height: 100vh;
  color: #ffffff;
}

/* Banner 样式 */
.banner {
  /* width: 100%; */
  height: 400px !important;
  /* background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57); */
  background-size: 100% auto;
  background-position: 0% 50%;
  /* animation: gradientShift 8s ease infinite; */
  position: relative;
  overflow: hidden;
  background-image: url('./images/unlock-banner.jpg');
  background-repeat: no-repeat;
}

.mainTitle{
  font-size: 45px;
  letter-spacing: 10px;
}

/* 跨链桥Banner样式 */
.bridge-banner {
  height: 550px !important;
  background-image: url('./images/bridge-2.jpg');
  /* background: linear-gradient(135deg, #1e40af, #3b82f6, #f59e0b, #eab308, #ca8a04); */
  background-size: 100% auto;
  background-position: 50% 30%;
  background-repeat: no-repeat;
  /* animation: bridgeGradientShift 10s ease infinite; */
  position: relative;
  overflow: hidden;
}

.bridge-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); */
  /* animation: shimmer 4s infinite; */
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); */
  /* animation: shimmer 3s infinite; */
}

/* 动画效果 */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes bridgeGradientShift {
  0% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 100% 50%;
  }

  50% {
    background-position: 100% 100%;
  }

  75% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 卡片样式 */
.card {
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.8), rgba(107, 33, 168, 0.8));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 按钮样式 */
.gradient-button {
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  transition: transform 0.2s, background 0.3s;
}

.gradient-button:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #2563eb, #9333ea);
}

.gradient-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 输入框样式 */
input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #a855f7;
  outline: none;
}

::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

/* 状态消息样式 */
.status-success {
  color: #10b981;
}

.status-error {
  color: #ef4444;
}

.status-warning {
  color: #f59e0b;
}

/* 进度条样式 */
.progress-bar {
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  height: 4px;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .banner h1 {
    font-size: 1.5rem;
  }

  .banner p {
    font-size: 1rem;
  }

  .banner .flex {
    flex-direction: column;
    gap: 1rem;
  }
}

/* 工具提示样式 */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* 导航栏样式 */
.navbar {
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.9), rgba(107, 33, 168, 0.9));
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-tab {
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-tab.active {
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-tab.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* 内容区域 */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 批量添加样式 */
.batch-input-area {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: border-color 0.3s;
}

.batch-input-area:focus-within {
  border-color: #a855f7;
}

.batch-input-area textarea {
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  min-height: 120px;
}

.batch-preview {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.batch-item {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.batch-item:last-child {
  border-bottom: none;
}

.batch-item.error {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
}

.batch-item.success {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.3);
}

/* 切换按钮样式 */
.toggle-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.toggle-button.active {
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 跨链桥样式 */
.token-selector {
  cursor: pointer;
  transition: all 0.3s ease;
}

.token-selector:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.token-selector.selected {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
  border-color: #3b82f6;
}

.amount-input-container {
  position: relative;
}

.max-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.max-button:hover {
  transform: translateY(-50%) scale(1.05);
}

.bridge-info-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.bridge-warning {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.bridge-success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.bridge-error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* 代币图标 */
.token-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.usdt-icon {
  background: linear-gradient(135deg, #26a17b, #2ea169);
  color: white;
}

/* 链图标样式 */
.chain-icon {
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chain-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 跨链桥箭头动画 */
.bridge-arrow {
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* 跨链桥特定样式 */
.bridge-info-section {
  background: rgba(30, 64, 175, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
}

.chain-selector {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.chain-selector:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.1);
}

.chain-selector.selected {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.2);
}

/* 跨链历史记录样式 */
.bridge-history-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.3s ease;
}

.bridge-history-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-completed {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-failed {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-confirming {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* 进度条样式 */
.progress-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  height: 4px;
  overflow: hidden;
}

.progress-bar-history {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-pending {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  animation: progressPulse 2s infinite;
}

.progress-completed {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-failed {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

@keyframes progressPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* 历史记录筛选器 */
.history-filter {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
}

.history-filter:focus {
  outline: none;
  border-color: #3b82f6;
}

/* 时间轴样式 */
.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  opacity: 0.3;
  animation: ripple 2s infinite;
}

.timeline-dot.pending {
  background: #fbbf24;
}

.timeline-dot.pending::after {
  background: #fbbf24;
}

.timeline-dot.completed {
  background: #10b981;
}

.timeline-dot.completed::after {
  background: #10b981;
}

.timeline-dot.failed {
  background: #ef4444;
}

.timeline-dot.failed::after {
  background: #ef4444;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.3;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #2563eb, #9333ea);
}
/* 弹窗
样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal-container {
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

.modal-content {
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.95), rgba(107, 33, 168, 0.95));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 24px 24px 0 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 0 24px 24px 24px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 弹窗关闭动画 */
.modal-overlay.closing {
  animation: fadeOut 0.3s ease-out;
}

.modal-overlay.closing .modal-container {
  animation: slideDown 0.3s ease-out;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
}

/* 复制按钮动画 */
.copy-success {
  animation: copyPulse 0.6s ease-out;
}

@keyframes copyPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    background: rgba(34, 197, 94, 0.2);
  }
  100% {
    transform: scale(1);
  }
}

/* 合约配置样式 */
.contract-config-input {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.contract-config-input:read-only {
  background: rgba(255, 255, 255, 0.05);
  cursor: default;
}

.contract-config-input:not(:read-only) {
  background: rgba(255, 255, 255, 0.1);
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.contract-test-success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
}

.contract-test-error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
}

/* 响应式设计 */
@media (max-width: 640px) {
  .modal-container {
    width: 95%;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .modal-body {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .banner{
    height: 250px !important;
  }

  .mainTitle {
    font-size: 15px;
    letter-spacing: 0;
  }
}