/* 平台列表 - 重新设计 */
.sidebar .platform-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 平台项 - 卡片式设计 */
.sidebar .platform-item {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(42, 42, 42, 0.8) 100%);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sidebar .platform-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow) 0%, var(--accent-yellow) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar .platform-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-yellow);
    box-shadow: 0 8px 32px rgba(240, 185, 11, 0.15), 0 0 0 1px rgba(240, 185, 11, 0.1);
}

.sidebar .platform-item:hover::before {
    opacity: 1;
}

/* 平台卡片链接 */
.sidebar .platform-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* 图标包装器 - 发光效果 */
.sidebar .platform-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar .platform-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--accent-yellow) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar .platform-icon-wrapper svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
}

/* OKX 黑色背景 */
.sidebar .platform-icon-wrapper.okx {
    background: linear-gradient(145deg, #1a1a1a 0%, #000000 100%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Binance 深色背景 - 突出黄色图标 */
.sidebar .platform-icon-wrapper.binance {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.sidebar .platform-item:hover .platform-icon-wrapper {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 4px 20px rgba(240, 185, 11, 0.3);
}

.sidebar .platform-item:hover .platform-icon-wrapper::after {
    opacity: 1;
}

/* 平台信息 */
.sidebar .platform-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar .platform-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.sidebar .platform-item:hover .platform-name {
    color: var(--primary-yellow);
    text-shadow: 0 0 20px rgba(240, 185, 11, 0.3);
}

.sidebar .platform-desc {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 500;
    line-height: 1.4;
}

/* 箭头图标 - 圆形背景 */
.sidebar .platform-arrow {
    width: 32px;
    height: 32px;
    color: var(--text-gray);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    padding: 6px;
}

.sidebar .platform-item:hover .platform-arrow {
    color: var(--primary-yellow);
    background: rgba(240, 185, 11, 0.15);
    transform: translateX(4px);
}

/* 操作按钮组 - 底部区域 */
.sidebar .platform-actions {
    display: flex;
    gap: 10px;
    padding: 0 16px 16px;
}

.sidebar .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sidebar .btn::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;
}

.sidebar .btn:hover::before {
    left: 100%;
}

.sidebar .btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.sidebar .btn:hover svg {
    transform: translateY(-2px);
}

/* 主按钮 - 黄色渐变 */
.sidebar .btn-primary {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
}

.sidebar .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--primary-yellow) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.4);
}

/* 次按钮 - 暗色 */
.sidebar .btn-secondary {
    background: linear-gradient(145deg, rgba(58, 58, 58, 0.8) 0%, rgba(42, 42, 42, 0.6) 100%);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.sidebar .btn-secondary:hover {
    background: linear-gradient(145deg, rgba(68, 68, 68, 0.9) 0%, rgba(58, 58, 58, 0.7) 100%);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.15);
}

/* ==================== 响应式适配 ==================== */

/* 1000-1200px 屏幕适配 */
@media screen and (min-width: 1000px) and (max-width: 1200px) {
    .sidebar .platform-list {
        padding: 12px;
        gap: 12px;
    }

    .sidebar .platform-card {
        padding: 14px;
        gap: 12px;
    }

    .sidebar .platform-icon-wrapper {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .sidebar .platform-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }

    .sidebar .platform-name {
        font-size: 15px;
    }

    .sidebar .platform-desc {
        font-size: 11px;
    }

    .sidebar .platform-arrow {
        width: 28px;
        height: 28px;
        padding: 5px;
    }

    .sidebar .platform-actions {
        padding: 0 14px 14px;
        gap: 8px;
    }

    .sidebar .btn {
        padding: 10px 0;
        font-size: 12px;
    }

    .sidebar .btn svg {
        width: 14px;
        height: 14px;
    }
}

/* 小屏幕适配 */
@media screen and (max-width: 480px) {
    .sidebar .platform-list {
        padding: 12px;
        gap: 12px;
    }

    .sidebar .platform-card {
        padding: 14px;
        gap: 12px;
    }

    .sidebar .platform-icon-wrapper {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .sidebar .platform-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }

    .sidebar .platform-name {
        font-size: 15px;
    }

    .sidebar .platform-desc {
        font-size: 11px;
    }

    .sidebar .platform-arrow {
        width: 28px;
        height: 28px;
        padding: 5px;
    }

    .sidebar .platform-actions {
        padding: 0 14px 14px;
        gap: 8px;
    }

    .sidebar .btn {
        padding: 10px 0;
        font-size: 12px;
    }

    .sidebar .btn svg {
        width: 14px;
        height: 14px;
    }
}

/* 列表动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar .platform-item {
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.sidebar .platform-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar .platform-item:nth-child(2) { animation-delay: 0.2s; }

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(240, 185, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(240, 185, 11, 0);
    }
}

.sidebar .platform-item:hover .platform-icon-wrapper {
    animation: pulse 1.5s infinite;
}
