
/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
      background: #a8a8a8;
  }
#tokenDropdownList.is-active {
    display: block !important;
}

/* 页面淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 容器样式 */
.container {
    max-width: 1200px;
}

/* 卡片样式优化 */
.card {
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    background-color: #ffffff;
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

/* 卡片滑入动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片交错动画延迟 */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* 卡片标题样式 */
.card-header {
    border-bottom: 1px solid #f5f5f5;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 1rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3273dc, #48bb78);
}

.card-header-title {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.card-header-title .icon {
    margin-right: 0.75rem;
    color: #3273dc;
}

/* 卡片内容样式 */
.card-content {
    padding: 1.5rem;
}

/* 表单字段样式 */
.field {
    margin-bottom: 1.75rem;
    position: relative;
}

/* 标签样式 */
.label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #363636;
    font-size: 0.95rem;
    display: block;
}

/* 输入框样式 */
.input {
    border-radius: 0.5rem;
    border: 1px solid #dbdbdb;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

.input:focus {
    border-color: #3273dc;
    box-shadow: 0 0 0 0.2em rgba(50, 115, 220, 0.15);
    outline: none;
    animation: pulse 1s infinite;
}

/* 输入框脉冲效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0.2em rgba(50, 115, 220, 0.15);
    }
    50% {
        box-shadow: 0 0 0 0.3em rgba(50, 115, 220, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0.2em rgba(50, 115, 220, 0.15);
    }
}

.input.is-readonly {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    font-style: italic;
}

.input::placeholder {
    color: #a0aec0;
}

/* 标签样式 */
.tag {
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.35em 0.5em;
}

/* 按钮样式 */
.button {
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

/* 按钮闪光效果 */
.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

/* 按钮点击波纹效果 */
.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.button:focus:not(:active)::after {
    animation: ripple 0.5s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

.button:hover::before {
    left: 100%;
}

.button:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* 主要按钮样式 */
.button.is-primary {
    background: linear-gradient(135deg, #3273dc, #2366d1);
    color: white;
}

.button.is-primary:hover {
    background: linear-gradient(135deg, #2366d1, #1e5cb8);
}

/* 成功按钮样式 */
.button.is-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.button.is-success:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
}

/* 警告按钮样式 */
.button.is-warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.button.is-warning:hover {
    background: linear-gradient(135deg, #dd6b20, #c05621);
}

/* 信息按钮样式 */
.button.is-info {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.button.is-info:hover {
    background: linear-gradient(135deg, #3182ce, #2c5282);
}

/* 图标样式 */
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 单位标签样式 */
.control.has-icons-right .icon.is-right {
    display: flex;
    align-items: center;
    right: 0.5rem;
}

.control.has-icons-right .icon.is-right .tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
}

/* 帮助文本样式 */
.help {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.5rem;
    line-height: 1.4;
    display: block;
}

/* 选择框样式 */
.select {
    position: relative;
    display: block;
}

.select select {
    border-radius: 0.5rem;
    border: 1px solid #dbdbdb;
    transition: all 0.3s ease;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 1rem;
    background-color: #ffffff;
    width: 100%;
    appearance: none;
    cursor: pointer;
    min-height: 3rem;
}

.select select:focus {
    border-color: #3273dc;
    box-shadow: 0 0 0 0.2em rgba(50, 115, 220, 0.15);
    outline: none;
    animation: pulse 1s infinite;
}

.select::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: #718096;
    pointer-events: none;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.select select:focus + ::after {
    transform: translateY(-50%) rotate(180deg);
}

/* 通知样式 */
.notification {
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    animation: slideInLeft 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

/* 通知滑入动画 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 通知滑出动画 */
.notification.hide {
    animation: slideOutRight 0.3s ease-in forwards;
}

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

/* 通知进度条 */
.notification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.8) 0%, transparent 100%);
    animation: notificationProgress 3s ease-out forwards;
}

@keyframes notificationProgress {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.notification.is-info {
    background-color: #ebf8ff;
    border-color: #90cdf4;
    color: #2c5282;
}

.notification.is-success {
    background-color: #f0fff4;
    border-color: #9ae6b4;
    color: #276749;
}

.notification.is-danger {
    background-color: #fff5f5;
    border-color: #feb2b2;
    color: #c53030;
}

/* 数值输入框样式 */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 代币选择下拉框样式 */
.token-select-container {
  position: relative;
  display: flex;
  align-items: center;
}

#selectedTokenIcon {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 24px;
  z-index: 1;
}

#selectedTokenIcon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: none;
}

/* 为代币选择框添加内边距，避免图标遮挡文本 */
#tokenAddress {
  padding-left: 40px;
}

/* 自定义代币选择下拉框样式 */
.select-wrapper {
  position: relative;
  width: 100%;
}

/* 美化select元素 */
select#tokenAddress {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 12px 45px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select#tokenAddress:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* 确保下拉列表显示图标 */
select#tokenAddress option {
  padding-left: 35px;
  height: 40px;
  line-height: 40px;
}

/* 下拉箭头样式已移除 */
/*
.select-wrapper::after {
  content: '▼';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
  font-size: 12px;
}
*/

/* 响应式调整 */
@media (max-width: 768px) {
  select#tokenAddress {
    padding: 10px 40px 10px 35px;
    font-size: 13px;
  }
  
  #selectedTokenIcon {
    width: 20px;
    height: 20px;
    left: 8px;
  }
}

/* 钻石图标垂直居中样式 */
/* 设置容器为相对定位 */
.control.has-icons-left.diamond-address-container {
    position: relative !important;
}

/* 设置图标容器位置 */
.control.has-icons-left.diamond-address-container .icon.is-left {
    position: absolute !important;
    left: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: auto !important;
    width: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
    z-index: 10 !important;
}

/* 确保图标垂直居中 */
.control.has-icons-left.diamond-address-container .icon.is-left i {
    display: inline-block !important;
    vertical-align: middle !important;
    font-size: 0.875rem !important;
}

/* 调整输入框内边距 */
#central-diamond-address {
    padding-left: 2.25rem !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .columns {
        flex-direction: column;
    }
    
    .column {
        margin-bottom: 1.5rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    /* 移动端动画优化 */
    .card {
        animation-duration: 0.3s;
    }
    
    .notification {
        animation-duration: 0.4s;
    }
}

