/* Site Block Sidebar 组件 - 币安风格 */

/* 侧边栏容器 */
.sidebar {
    background: var(--bg-card, #181A20);
    border-radius: 12px;
    border: 1px solid var(--border-light, rgba(240, 185, 11, 0.1));
    overflow: hidden;
}

/* 侧边栏头部 */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.1) 0%, rgba(240, 185, 11, 0.05) 100%);
    border-bottom: 1px solid var(--border-light, rgba(240, 185, 11, 0.1));
}

.sidebar-header-icon {
    width: 24px;
    height: 24px;
    color: var(--primary, #F0B90B);
    flex-shrink: 0;
}

.sidebar-header-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-light, #ffffff);
}

/* 平台列表 */
.platform-list {
    padding: 0;
    margin: 0;
}

/* 平台项目 */
.platform-item {
    position: relative;
    border-bottom: 1px solid var(--border-light, rgba(240, 185, 11, 0.05));
    transition: all 0.3s ease;
}

.platform-item:last-child {
    border-bottom: none;
}

.platform-item:hover {
    background: rgba(240, 185, 11, 0.02);
}

/* 平台卡片 - 主链接区域 */
.platform-card {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--text-gray, #848E9C);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.platform-card:hover::before {
    left: 100%;
}

/* 平台图标包装器 */
.platform-icon-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-light, rgba(240, 185, 11, 0.2));
    background: var(--bg-card, #181A20);
    flex-shrink: 0;
}

.platform-icon-wrapper svg {
    width: 70%;
    height: 70%;
}

.platform-icon-wrapper.okx {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.platform-icon-wrapper.binance {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* 平台信息 */
.platform-info {
    flex: 1;
    margin-left: 1rem;
    min-width: 0;
}

.platform-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light, #ffffff);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.platform-desc {
    font-size: 0.875rem;
    color: var(--text-gray, #848E9C);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 平台箭头 */
.platform-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-gray, #848E9C);
    margin-left: 0.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.platform-card:hover .platform-arrow {
    transform: translateX(4px);
    color: var(--primary, #F0B90B);
}

/* 平台操作按钮区域 */
.platform-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0 1.5rem 1.25rem;
    margin-top: -0.5rem;
}

.platform-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    flex: 1;
    white-space: nowrap;
}

.platform-actions .btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.platform-actions .btn-primary {
    background: var(--primary, #F0B90B);
    color: var(--bg-dark, #0B0E11);
    border-color: var(--primary, #F0B90B);
}

.platform-actions .btn-primary:hover {
    background: var(--primary-dark, #D9A441);
    border-color: var(--primary-dark, #D9A441);
}

.platform-actions .btn-secondary {
    background: transparent;
    color: var(--text-gray, #848E9C);
    border-color: var(--border-light, rgba(240, 185, 11, 0.2));
}

.platform-actions .btn-secondary:hover {
    background: rgba(240, 185, 11, 0.1);
    border-color: var(--primary, #F0B90B);
    color: var(--primary, #F0B90B);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .sidebar-header {
        padding: 1rem 1.25rem;
    }
    
    .sidebar-header-title {
        font-size: 1rem;
    }
    
    .platform-card {
        padding: 1rem 1.25rem;
    }
    
    .platform-icon-wrapper {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    
    .platform-info {
        margin-left: 0.75rem;
    }
    
    .platform-name {
        font-size: 0.9375rem;
    }
    
    .platform-desc {
        font-size: 0.8125rem;
    }
    
    .platform-actions {
        padding: 0 1.25rem 1rem;
        gap: 0.375rem;
        flex-wrap: nowrap;
    }
    
    .platform-actions .btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .platform-actions {
        flex-direction: row;
    }
    
    .platform-actions .btn {
        width: auto;
    }
}
